configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for editres 1.0.9.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/-/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/editres/-/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='editres'
607 PACKAGE_TARNAME='editres'
608 PACKAGE_VERSION='1.0.9'
609 PACKAGE_STRING='editres 1.0.9'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/editres/-/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 appdefaultdir
651 APPDEFS_LIBS
652 APPDEFS_CFLAGS
653 EDITRES_LIBS
654 EDITRES_CFLAGS
655 MAN_SUBSTS
656 XORG_MAN_PAGE
657 ADMIN_MAN_DIR
658 DRIVER_MAN_DIR
659 MISC_MAN_DIR
660 FILE_MAN_DIR
661 LIB_MAN_DIR
662 APP_MAN_DIR
663 ADMIN_MAN_SUFFIX
664 DRIVER_MAN_SUFFIX
665 MISC_MAN_SUFFIX
666 FILE_MAN_SUFFIX
667 LIB_MAN_SUFFIX
668 APP_MAN_SUFFIX
669 SED
670 host_os
671 host_vendor
672 host_cpu
673 host
674 build_os
675 build_vendor
676 build_cpu
677 build
678 INSTALL_CMD
679 PKG_CONFIG_LIBDIR
680 PKG_CONFIG_PATH
681 PKG_CONFIG
682 CHANGELOG_CMD
683 STRICT_CFLAGS
684 CWARNFLAGS
685 BASE_CFLAGS
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 am__nodep
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__include
694 DEPDIR
695 OBJEXT
696 EXEEXT
697 ac_ct_CC
698 CPPFLAGS
699 LDFLAGS
700 CFLAGS
701 CC
702 AM_BACKSLASH
703 AM_DEFAULT_VERBOSITY
704 AM_DEFAULT_V
705 AM_V
706 CSCOPE
707 ETAGS
708 CTAGS
709 am__untar
710 am__tar
711 AMTAR
712 am__leading_dot
713 SET_MAKE
714 AWK
715 mkdir_p
716 MKDIR_P
717 INSTALL_STRIP_PROGRAM
718 STRIP
719 install_sh
720 MAKEINFO
721 AUTOHEADER
722 AUTOMAKE
723 AUTOCONF
724 ACLOCAL
725 VERSION
726 PACKAGE
727 CYGPATH_W
728 am__isrc
729 INSTALL_DATA
730 INSTALL_SCRIPT
731 INSTALL_PROGRAM
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 runstatedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL
771 am__quote'
772 ac_subst_files=''
773 ac_user_opts='
774 enable_option_checking
775 enable_silent_rules
776 enable_dependency_tracking
777 enable_selective_werror
778 enable_strict_compilation
779 with_xkb
780 with_appdefaultdir
781 '
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 PKG_CONFIG
791 PKG_CONFIG_PATH
792 PKG_CONFIG_LIBDIR
793 EDITRES_CFLAGS
794 EDITRES_LIBS
795 APPDEFS_CFLAGS
796 APPDEFS_LIBS'
797
798
799 # Initialize some variables set by options.
800 ac_init_help=
801 ac_init_version=false
802 ac_unrecognized_opts=
803 ac_unrecognized_sep=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
820
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 runstatedir='${localstatedir}/run'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
868
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
873
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
888
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
893
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: '$ac_useropt'"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=no ;;
916
917 -docdir | --docdir | --docdi | --doc | --do)
918 ac_prev=docdir ;;
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 docdir=$ac_optarg ;;
921
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 ac_prev=dvidir ;;
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 dvidir=$ac_optarg ;;
926
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: '$ac_useropt'"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=\$ac_optarg ;;
942
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
951
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
955
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
962
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
967
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
973
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
980
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
985
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
990
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
997
998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1002
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1009
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1014
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1018
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1022
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1026
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1035
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1040
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1047
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1054
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1071
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1076
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1081
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1085
1086 -runstatedir | --runstatedir | --runstatedi | --runstated \
1087 | --runstate | --runstat | --runsta | --runst | --runs \
1088 | --run | --ru | --r)
1089 ac_prev=runstatedir ;;
1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092 | --run=* | --ru=* | --r=*)
1093 runstatedir=$ac_optarg ;;
1094
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1111
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1116
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1121
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1128
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1139
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: '$ac_useropt'"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1155
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: '$ac_useropt'"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
1171
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1175
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1182
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1189
1190 -*) as_fn_error $? "unrecognized option: '$ac_option'
1191 Try '$0 --help' for more information"
1192 ;;
1193
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1203
1204 *)
1205 # FIXME: should be removed in autoconf 3.0.
1206 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 ;;
1211
1212 esac
1213 done
1214
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1218 fi
1219
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1226 fi
1227
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir runstatedir
1233 do
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
1242 case $ac_val in
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1248
1249 # There might be people who depend on the old broken behavior: '$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1255
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1262 fi
1263 fi
1264
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268 test "$silent" = yes && exec 6>/dev/null
1269
1270
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 printf "%s\n" X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)[^/].*/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\).*/{
1302 s//\1/
1303 q
1304 }
1305 s/.*/./; q'`
1306 srcdir=$ac_confdir
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 srcdir=..
1309 fi
1310 else
1311 ac_srcdir_defaulted=no
1312 fi
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 fi
1317 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1324 fi
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1337
1338 #
1339 # Report the --help message.
1340 #
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 'configure' configures editres 1.0.9 to adapt to many kinds of systems.
1346
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1351
1352 Defaults for the options are specified in brackets.
1353
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print 'checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for '--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or '..']
1364
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1370
1371 By default, 'make install' will install all the files in
1372 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than '$ac_default_prefix' using '--prefix',
1374 for instance '--prefix=\$HOME'.
1375
1376 For better control, use the options below.
1377
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/editres]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1400
1401 cat <<\_ACEOF
1402
1403 Program names:
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407
1408 System types:
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of editres 1.0.9:";;
1417 esac
1418 cat <<\_ACEOF
1419
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --disable-selective-werror
1431 Turn off selective compiler errors. (default:
1432 enabled)
1433 --enable-strict-compilation
1434 Enable all warnings from compiler and make them
1435 errors (default: disabled)
1436
1437 Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --without-xkb Disable use of XKB to sound bells (Default is
1441 with-xkb)
1442 --with-appdefaultdir=<pathname>
1443 specify directory for app-defaults files (default is
1444 autodetected)
1445
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1454 PKG_CONFIG path to pkg-config utility
1455 PKG_CONFIG_PATH
1456 directories to add to pkg-config's search path
1457 PKG_CONFIG_LIBDIR
1458 path overriding pkg-config's built-in search path
1459 EDITRES_CFLAGS
1460 C compiler flags for EDITRES, overriding pkg-config
1461 EDITRES_LIBS
1462 linker flags for EDITRES, overriding pkg-config
1463 APPDEFS_CFLAGS
1464 C compiler flags for APPDEFS, overriding pkg-config
1465 APPDEFS_LIBS
1466 linker flags for APPDEFS, overriding pkg-config
1467
1468 Use these variables to override the choices made by 'configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/-/issues>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 continue
1482 ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501 .) # We are building in place.
1502 ac_srcdir=.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for configure.gnu first; this name is used for a wrapper for
1518 # Metaconfig's "Configure" on case-insensitive file systems.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1525 else
1526 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 fi || ac_status=$?
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1529 done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534 cat <<\_ACEOF
1535 editres configure 1.0.9
1536 generated by GNU Autoconf 2.72
1537
1538 Copyright (C) 2023 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541 _ACEOF
1542 exit
1543 fi
1544
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1548
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext conftest.beam
1556 if { { ac_try="$ac_compile"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 printf "%s\n" "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext
1575 then :
1576 ac_retval=0
1577 else case e in #(
1578 e) printf "%s\n" "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1 ;;
1582 esac
1583 fi
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_compile
1588
1589 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1590 # ------------------------------------------------------------------
1591 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1592 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1593 ac_fn_check_decl ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 as_decl_name=`echo $2|sed 's/ *(.*//'`
1597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1598 printf %s "checking whether $as_decl_name is declared... " >&6; }
1599 if eval test \${$3+y}
1600 then :
1601 printf %s "(cached) " >&6
1602 else case e in #(
1603 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1604 eval ac_save_FLAGS=\$$6
1605 as_fn_append $6 " $5"
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1608 $4
1609 int
1610 main (void)
1611 {
1612 #ifndef $as_decl_name
1613 #ifdef __cplusplus
1614 (void) $as_decl_use;
1615 #else
1616 (void) $as_decl_name;
1617 #endif
1618 #endif
1619
1620 ;
1621 return 0;
1622 }
1623 _ACEOF
1624 if ac_fn_c_try_compile "$LINENO"
1625 then :
1626 eval "$3=yes"
1627 else case e in #(
1628 e) eval "$3=no" ;;
1629 esac
1630 fi
1631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1632 eval $6=\$ac_save_FLAGS
1633 ;;
1634 esac
1635 fi
1636 eval ac_res=\$$3
1637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 printf "%s\n" "$ac_res" >&6; }
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641 } # ac_fn_check_decl
1642
1643 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1644 # -------------------------------------------------------
1645 # Tests whether HEADER exists and can be compiled using the include files in
1646 # INCLUDES, setting the cache variable VAR accordingly.
1647 ac_fn_c_check_header_compile ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 printf %s "checking for $2... " >&6; }
1652 if eval test \${$3+y}
1653 then :
1654 printf %s "(cached) " >&6
1655 else case e in #(
1656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1658 $4
1659 #include <$2>
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"
1662 then :
1663 eval "$3=yes"
1664 else case e in #(
1665 e) eval "$3=no" ;;
1666 esac
1667 fi
1668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1669 esac
1670 fi
1671 eval ac_res=\$$3
1672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673 printf "%s\n" "$ac_res" >&6; }
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676 } # ac_fn_c_check_header_compile
1677
1678 # ac_fn_c_try_link LINENO
1679 # -----------------------
1680 # Try to link conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_link ()
1682 {
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1685 if { { ac_try="$ac_link"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 printf "%s\n" "$ac_try_echo"; } >&5
1692 (eval "$ac_link") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest$ac_exeext && {
1704 test "$cross_compiling" = yes ||
1705 test -x conftest$ac_exeext
1706 }
1707 then :
1708 ac_retval=0
1709 else case e in #(
1710 e) printf "%s\n" "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1 ;;
1714 esac
1715 fi
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_link
1725 ac_configure_args_raw=
1726 for ac_arg
1727 do
1728 case $ac_arg in
1729 *\'*)
1730 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1731 esac
1732 as_fn_append ac_configure_args_raw " '$ac_arg'"
1733 done
1734
1735 case $ac_configure_args_raw in
1736 *$as_nl*)
1737 ac_safe_unquote= ;;
1738 *)
1739 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1740 ac_unsafe_a="$ac_unsafe_z#~"
1741 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1742 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1743 esac
1744
1745 cat >config.log <<_ACEOF
1746 This file contains any messages produced by compilers while
1747 running configure, to aid debugging if configure makes a mistake.
1748
1749 It was created by editres $as_me 1.0.9, which was
1750 generated by GNU Autoconf 2.72. Invocation command line was
1751
1752 $ $0$ac_configure_args_raw
1753
1754 _ACEOF
1755 exec 5>>config.log
1756 {
1757 cat <<_ASUNAME
1758 ## --------- ##
1759 ## Platform. ##
1760 ## --------- ##
1761
1762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1767
1768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1770
1771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1774 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1778
1779 _ASUNAME
1780
1781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 for as_dir in $PATH
1783 do
1784 IFS=$as_save_IFS
1785 case $as_dir in #(((
1786 '') as_dir=./ ;;
1787 */) ;;
1788 *) as_dir=$as_dir/ ;;
1789 esac
1790 printf "%s\n" "PATH: $as_dir"
1791 done
1792 IFS=$as_save_IFS
1793
1794 } >&5
1795
1796 cat >&5 <<_ACEOF
1797
1798
1799 ## ----------- ##
1800 ## Core tests. ##
1801 ## ----------- ##
1802
1803 _ACEOF
1804
1805
1806 # Keep a trace of the command line.
1807 # Strip out --no-create and --no-recursion so they do not pile up.
1808 # Strip out --silent because we don't want to record it for future runs.
1809 # Also quote any args containing shell meta-characters.
1810 # Make two passes to allow for proper duplicate-argument suppression.
1811 ac_configure_args=
1812 ac_configure_args0=
1813 ac_configure_args1=
1814 ac_must_keep_next=false
1815 for ac_pass in 1 2
1816 do
1817 for ac_arg
1818 do
1819 case $ac_arg in
1820 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1822 | -silent | --silent | --silen | --sile | --sil)
1823 continue ;;
1824 *\'*)
1825 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1826 esac
1827 case $ac_pass in
1828 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1829 2)
1830 as_fn_append ac_configure_args1 " '$ac_arg'"
1831 if test $ac_must_keep_next = true; then
1832 ac_must_keep_next=false # Got value, back to normal.
1833 else
1834 case $ac_arg in
1835 *=* | --config-cache | -C | -disable-* | --disable-* \
1836 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1837 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1838 | -with-* | --with-* | -without-* | --without-* | --x)
1839 case "$ac_configure_args0 " in
1840 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1841 esac
1842 ;;
1843 -* ) ac_must_keep_next=true ;;
1844 esac
1845 fi
1846 as_fn_append ac_configure_args " '$ac_arg'"
1847 ;;
1848 esac
1849 done
1850 done
1851 { ac_configure_args0=; unset ac_configure_args0;}
1852 { ac_configure_args1=; unset ac_configure_args1;}
1853
1854 # When interrupted or exit'd, cleanup temporary files, and complete
1855 # config.log. We remove comments because anyway the quotes in there
1856 # would cause problems or look ugly.
1857 # WARNING: Use '\'' to represent an apostrophe within the trap.
1858 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1859 trap 'exit_status=$?
1860 # Sanitize IFS.
1861 IFS=" "" $as_nl"
1862 # Save into config.log some information that might help in debugging.
1863 {
1864 echo
1865
1866 printf "%s\n" "## ---------------- ##
1867 ## Cache variables. ##
1868 ## ---------------- ##"
1869 echo
1870 # The following way of writing the cache mishandles newlines in values,
1871 (
1872 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in #(
1875 *${as_nl}*)
1876 case $ac_var in #(
1877 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1878 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1879 esac
1880 case $ac_var in #(
1881 _ | IFS | as_nl) ;; #(
1882 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1883 *) { eval $ac_var=; unset $ac_var;} ;;
1884 esac ;;
1885 esac
1886 done
1887 (set) 2>&1 |
1888 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1889 *${as_nl}ac_space=\ *)
1890 sed -n \
1891 "s/'\''/'\''\\\\'\'''\''/g;
1892 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1893 ;; #(
1894 *)
1895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1896 ;;
1897 esac |
1898 sort
1899 )
1900 echo
1901
1902 printf "%s\n" "## ----------------- ##
1903 ## Output variables. ##
1904 ## ----------------- ##"
1905 echo
1906 for ac_var in $ac_subst_vars
1907 do
1908 eval ac_val=\$$ac_var
1909 case $ac_val in
1910 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1911 esac
1912 printf "%s\n" "$ac_var='\''$ac_val'\''"
1913 done | sort
1914 echo
1915
1916 if test -n "$ac_subst_files"; then
1917 printf "%s\n" "## ------------------- ##
1918 ## File substitutions. ##
1919 ## ------------------- ##"
1920 echo
1921 for ac_var in $ac_subst_files
1922 do
1923 eval ac_val=\$$ac_var
1924 case $ac_val in
1925 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1926 esac
1927 printf "%s\n" "$ac_var='\''$ac_val'\''"
1928 done | sort
1929 echo
1930 fi
1931
1932 if test -s confdefs.h; then
1933 printf "%s\n" "## ----------- ##
1934 ## confdefs.h. ##
1935 ## ----------- ##"
1936 echo
1937 cat confdefs.h
1938 echo
1939 fi
1940 test "$ac_signal" != 0 &&
1941 printf "%s\n" "$as_me: caught signal $ac_signal"
1942 printf "%s\n" "$as_me: exit $exit_status"
1943 } >&5
1944 rm -f core *.core core.conftest.* &&
1945 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1946 exit $exit_status
1947 ' 0
1948 for ac_signal in 1 2 13 15; do
1949 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1950 done
1951 ac_signal=0
1952
1953 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1954 rm -f -r conftest* confdefs.h
1955
1956 printf "%s\n" "/* confdefs.h */" > confdefs.h
1957
1958 # Predefined preprocessor variables.
1959
1960 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1961
1962 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1963
1964 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1965
1966 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1967
1968 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1969
1970 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1971
1972
1973 # Let the site file select an alternate cache file if it wants to.
1974 # Prefer an explicitly selected file to automatically selected ones.
1975 if test -n "$CONFIG_SITE"; then
1976 ac_site_files="$CONFIG_SITE"
1977 elif test "x$prefix" != xNONE; then
1978 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1979 else
1980 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1981 fi
1982
1983 for ac_site_file in $ac_site_files
1984 do
1985 case $ac_site_file in #(
1986 */*) :
1987 ;; #(
1988 *) :
1989 ac_site_file=./$ac_site_file ;;
1990 esac
1991 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1993 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1994 sed 's/^/| /' "$ac_site_file" >&5
1995 . "$ac_site_file" \
1996 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1997 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1998 as_fn_error $? "failed to load site script $ac_site_file
1999 See 'config.log' for more details" "$LINENO" 5; }
2000 fi
2001 done
2002
2003 if test -r "$cache_file"; then
2004 # Some versions of bash will fail to source /dev/null (special files
2005 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2006 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2008 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2009 case $cache_file in
2010 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2011 *) . "./$cache_file";;
2012 esac
2013 fi
2014 else
2015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2016 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2017 >$cache_file
2018 fi
2019
2020 # Test code for whether the C compiler supports C89 (global declarations)
2021 ac_c_conftest_c89_globals='
2022 /* Does the compiler advertise C89 conformance?
2023 Do not test the value of __STDC__, because some compilers set it to 0
2024 while being otherwise adequately conformant. */
2025 #if !defined __STDC__
2026 # error "Compiler does not advertise C89 conformance"
2027 #endif
2028
2029 #include <stddef.h>
2030 #include <stdarg.h>
2031 struct stat;
2032 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2033 struct buf { int x; };
2034 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2035 static char *e (char **p, int i)
2036 {
2037 return p[i];
2038 }
2039 static char *f (char * (*g) (char **, int), char **p, ...)
2040 {
2041 char *s;
2042 va_list v;
2043 va_start (v,p);
2044 s = g (p, va_arg (v,int));
2045 va_end (v);
2046 return s;
2047 }
2048
2049 /* C89 style stringification. */
2050 #define noexpand_stringify(a) #a
2051 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2052
2053 /* C89 style token pasting. Exercises some of the corner cases that
2054 e.g. old MSVC gets wrong, but not very hard. */
2055 #define noexpand_concat(a,b) a##b
2056 #define expand_concat(a,b) noexpand_concat(a,b)
2057 extern int vA;
2058 extern int vbee;
2059 #define aye A
2060 #define bee B
2061 int *pvA = &expand_concat(v,aye);
2062 int *pvbee = &noexpand_concat(v,bee);
2063
2064 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2065 function prototypes and stuff, but not \xHH hex character constants.
2066 These do not provoke an error unfortunately, instead are silently treated
2067 as an "x". The following induces an error, until -std is added to get
2068 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2069 array size at least. It is necessary to write \x00 == 0 to get something
2070 that is true only with -std. */
2071 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2072
2073 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2074 inside strings and character constants. */
2075 #define FOO(x) '\''x'\''
2076 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2077
2078 int test (int i, double x);
2079 struct s1 {int (*f) (int a);};
2080 struct s2 {int (*f) (double a);};
2081 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2082 int, int);'
2083
2084 # Test code for whether the C compiler supports C89 (body of main).
2085 ac_c_conftest_c89_main='
2086 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2087 '
2088
2089 # Test code for whether the C compiler supports C99 (global declarations)
2090 ac_c_conftest_c99_globals='
2091 /* Does the compiler advertise C99 conformance? */
2092 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2093 # error "Compiler does not advertise C99 conformance"
2094 #endif
2095
2096 // See if C++-style comments work.
2097
2098 #include <stdbool.h>
2099 extern int puts (const char *);
2100 extern int printf (const char *, ...);
2101 extern int dprintf (int, const char *, ...);
2102 extern void *malloc (size_t);
2103 extern void free (void *);
2104
2105 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2106 // dprintf is used instead of fprintf to avoid needing to declare
2107 // FILE and stderr.
2108 #define debug(...) dprintf (2, __VA_ARGS__)
2109 #define showlist(...) puts (#__VA_ARGS__)
2110 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2111 static void
2112 test_varargs_macros (void)
2113 {
2114 int x = 1234;
2115 int y = 5678;
2116 debug ("Flag");
2117 debug ("X = %d\n", x);
2118 showlist (The first, second, and third items.);
2119 report (x>y, "x is %d but y is %d", x, y);
2120 }
2121
2122 // Check long long types.
2123 #define BIG64 18446744073709551615ull
2124 #define BIG32 4294967295ul
2125 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2126 #if !BIG_OK
2127 #error "your preprocessor is broken"
2128 #endif
2129 #if BIG_OK
2130 #else
2131 #error "your preprocessor is broken"
2132 #endif
2133 static long long int bignum = -9223372036854775807LL;
2134 static unsigned long long int ubignum = BIG64;
2135
2136 struct incomplete_array
2137 {
2138 int datasize;
2139 double data[];
2140 };
2141
2142 struct named_init {
2143 int number;
2144 const wchar_t *name;
2145 double average;
2146 };
2147
2148 typedef const char *ccp;
2149
2150 static inline int
2151 test_restrict (ccp restrict text)
2152 {
2153 // Iterate through items via the restricted pointer.
2154 // Also check for declarations in for loops.
2155 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2156 continue;
2157 return 0;
2158 }
2159
2160 // Check varargs and va_copy.
2161 static bool
2162 test_varargs (const char *format, ...)
2163 {
2164 va_list args;
2165 va_start (args, format);
2166 va_list args_copy;
2167 va_copy (args_copy, args);
2168
2169 const char *str = "";
2170 int number = 0;
2171 float fnumber = 0;
2172
2173 while (*format)
2174 {
2175 switch (*format++)
2176 {
2177 case '\''s'\'': // string
2178 str = va_arg (args_copy, const char *);
2179 break;
2180 case '\''d'\'': // int
2181 number = va_arg (args_copy, int);
2182 break;
2183 case '\''f'\'': // float
2184 fnumber = va_arg (args_copy, double);
2185 break;
2186 default:
2187 break;
2188 }
2189 }
2190 va_end (args_copy);
2191 va_end (args);
2192
2193 return *str && number && fnumber;
2194 }
2195 '
2196
2197 # Test code for whether the C compiler supports C99 (body of main).
2198 ac_c_conftest_c99_main='
2199 // Check bool.
2200 _Bool success = false;
2201 success |= (argc != 0);
2202
2203 // Check restrict.
2204 if (test_restrict ("String literal") == 0)
2205 success = true;
2206 char *restrict newvar = "Another string";
2207
2208 // Check varargs.
2209 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2210 test_varargs_macros ();
2211
2212 // Check flexible array members.
2213 struct incomplete_array *ia =
2214 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2215 ia->datasize = 10;
2216 for (int i = 0; i < ia->datasize; ++i)
2217 ia->data[i] = i * 1.234;
2218 // Work around memory leak warnings.
2219 free (ia);
2220
2221 // Check named initializers.
2222 struct named_init ni = {
2223 .number = 34,
2224 .name = L"Test wide string",
2225 .average = 543.34343,
2226 };
2227
2228 ni.number = 58;
2229
2230 int dynamic_array[ni.number];
2231 dynamic_array[0] = argv[0][0];
2232 dynamic_array[ni.number - 1] = 543;
2233
2234 // work around unused variable warnings
2235 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2236 || dynamic_array[ni.number - 1] != 543);
2237 '
2238
2239 # Test code for whether the C compiler supports C11 (global declarations)
2240 ac_c_conftest_c11_globals='
2241 /* Does the compiler advertise C11 conformance? */
2242 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2243 # error "Compiler does not advertise C11 conformance"
2244 #endif
2245
2246 // Check _Alignas.
2247 char _Alignas (double) aligned_as_double;
2248 char _Alignas (0) no_special_alignment;
2249 extern char aligned_as_int;
2250 char _Alignas (0) _Alignas (int) aligned_as_int;
2251
2252 // Check _Alignof.
2253 enum
2254 {
2255 int_alignment = _Alignof (int),
2256 int_array_alignment = _Alignof (int[100]),
2257 char_alignment = _Alignof (char)
2258 };
2259 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2260
2261 // Check _Noreturn.
2262 int _Noreturn does_not_return (void) { for (;;) continue; }
2263
2264 // Check _Static_assert.
2265 struct test_static_assert
2266 {
2267 int x;
2268 _Static_assert (sizeof (int) <= sizeof (long int),
2269 "_Static_assert does not work in struct");
2270 long int y;
2271 };
2272
2273 // Check UTF-8 literals.
2274 #define u8 syntax error!
2275 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2276
2277 // Check duplicate typedefs.
2278 typedef long *long_ptr;
2279 typedef long int *long_ptr;
2280 typedef long_ptr long_ptr;
2281
2282 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2283 struct anonymous
2284 {
2285 union {
2286 struct { int i; int j; };
2287 struct { int k; long int l; } w;
2288 };
2289 int m;
2290 } v1;
2291 '
2292
2293 # Test code for whether the C compiler supports C11 (body of main).
2294 ac_c_conftest_c11_main='
2295 _Static_assert ((offsetof (struct anonymous, i)
2296 == offsetof (struct anonymous, w.k)),
2297 "Anonymous union alignment botch");
2298 v1.i = 2;
2299 v1.w.k = 5;
2300 ok |= v1.i != 5;
2301 '
2302
2303 # Test code for whether the C compiler supports C11 (complete).
2304 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2305 ${ac_c_conftest_c99_globals}
2306 ${ac_c_conftest_c11_globals}
2307
2308 int
2309 main (int argc, char **argv)
2310 {
2311 int ok = 0;
2312 ${ac_c_conftest_c89_main}
2313 ${ac_c_conftest_c99_main}
2314 ${ac_c_conftest_c11_main}
2315 return ok;
2316 }
2317 "
2318
2319 # Test code for whether the C compiler supports C99 (complete).
2320 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2321 ${ac_c_conftest_c99_globals}
2322
2323 int
2324 main (int argc, char **argv)
2325 {
2326 int ok = 0;
2327 ${ac_c_conftest_c89_main}
2328 ${ac_c_conftest_c99_main}
2329 return ok;
2330 }
2331 "
2332
2333 # Test code for whether the C compiler supports C89 (complete).
2334 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2335
2336 int
2337 main (int argc, char **argv)
2338 {
2339 int ok = 0;
2340 ${ac_c_conftest_c89_main}
2341 return ok;
2342 }
2343 "
2344
2345 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2346 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2347 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2348 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2349 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2350 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2351 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2352 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2353 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2354
2355 # Auxiliary files required by this configure script.
2356 ac_aux_files="config.guess config.sub compile missing install-sh"
2357
2358 # Locations in which to look for auxiliary files.
2359 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2360
2361 # Search for a directory containing all of the required auxiliary files,
2362 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2363 # If we don't find one directory that contains all the files we need,
2364 # we report the set of missing files from the *first* directory in
2365 # $ac_aux_dir_candidates and give up.
2366 ac_missing_aux_files=""
2367 ac_first_candidate=:
2368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 as_found=false
2371 for as_dir in $ac_aux_dir_candidates
2372 do
2373 IFS=$as_save_IFS
2374 case $as_dir in #(((
2375 '') as_dir=./ ;;
2376 */) ;;
2377 *) as_dir=$as_dir/ ;;
2378 esac
2379 as_found=:
2380
2381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2382 ac_aux_dir_found=yes
2383 ac_install_sh=
2384 for ac_aux in $ac_aux_files
2385 do
2386 # As a special case, if "install-sh" is required, that requirement
2387 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2388 # and $ac_install_sh is set appropriately for whichever one is found.
2389 if test x"$ac_aux" = x"install-sh"
2390 then
2391 if test -f "${as_dir}install-sh"; then
2392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2393 ac_install_sh="${as_dir}install-sh -c"
2394 elif test -f "${as_dir}install.sh"; then
2395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2396 ac_install_sh="${as_dir}install.sh -c"
2397 elif test -f "${as_dir}shtool"; then
2398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2399 ac_install_sh="${as_dir}shtool install -c"
2400 else
2401 ac_aux_dir_found=no
2402 if $ac_first_candidate; then
2403 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2404 else
2405 break
2406 fi
2407 fi
2408 else
2409 if test -f "${as_dir}${ac_aux}"; then
2410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2411 else
2412 ac_aux_dir_found=no
2413 if $ac_first_candidate; then
2414 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2415 else
2416 break
2417 fi
2418 fi
2419 fi
2420 done
2421 if test "$ac_aux_dir_found" = yes; then
2422 ac_aux_dir="$as_dir"
2423 break
2424 fi
2425 ac_first_candidate=false
2426
2427 as_found=false
2428 done
2429 IFS=$as_save_IFS
2430 if $as_found
2431 then :
2432
2433 else case e in #(
2434 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2435 esac
2436 fi
2437
2438
2439 # These three variables are undocumented and unsupported,
2440 # and are intended to be withdrawn in a future Autoconf release.
2441 # They can cause serious problems if a builder's source tree is in a directory
2442 # whose full name contains unusual characters.
2443 if test -f "${ac_aux_dir}config.guess"; then
2444 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2445 fi
2446 if test -f "${ac_aux_dir}config.sub"; then
2447 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2448 fi
2449 if test -f "$ac_aux_dir/configure"; then
2450 ac_configure="$SHELL ${ac_aux_dir}configure"
2451 fi
2452
2453 # Check that the precious variables saved in the cache have kept the same
2454 # value.
2455 ac_cache_corrupted=false
2456 for ac_var in $ac_precious_vars; do
2457 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458 eval ac_new_set=\$ac_env_${ac_var}_set
2459 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460 eval ac_new_val=\$ac_env_${ac_var}_value
2461 case $ac_old_set,$ac_new_set in
2462 set,)
2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2464 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2465 ac_cache_corrupted=: ;;
2466 ,set)
2467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2468 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2470 ,);;
2471 *)
2472 if test "x$ac_old_val" != "x$ac_new_val"; then
2473 # differences in whitespace do not lead to failure.
2474 ac_old_val_w=`echo x $ac_old_val`
2475 ac_new_val_w=`echo x $ac_new_val`
2476 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2478 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2479 ac_cache_corrupted=:
2480 else
2481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2482 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2483 eval $ac_var=\$ac_old_val
2484 fi
2485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2486 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2488 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2489 fi;;
2490 esac
2491 # Pass precious variables to config.status.
2492 if test "$ac_new_set" = set; then
2493 case $ac_new_val in
2494 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495 *) ac_arg=$ac_var=$ac_new_val ;;
2496 esac
2497 case " $ac_configure_args " in
2498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2499 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2500 esac
2501 fi
2502 done
2503 if $ac_cache_corrupted; then
2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2505 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2508 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2509 and start over" "$LINENO" 5
2510 fi
2511 ## -------------------- ##
2512 ## Main body of script. ##
2513 ## -------------------- ##
2514
2515 ac_ext=c
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520
2521
2522
2523 ac_config_headers="$ac_config_headers config.h"
2524
2525
2526 # Initialize Automake
2527 am__api_version='1.16'
2528
2529
2530
2531 # Find a good install program. We prefer a C program (faster),
2532 # so one script is as good as another. But avoid the broken or
2533 # incompatible versions:
2534 # SysV /etc/install, /usr/sbin/install
2535 # SunOS /usr/etc/install
2536 # IRIX /sbin/install
2537 # AIX /bin/install
2538 # AmigaOS /C/install, which installs bootblocks on floppy discs
2539 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2540 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2541 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2542 # OS/2's system install, which has a completely different semantic
2543 # ./install, which can be erroneously created by make from ./install.sh.
2544 # Reject install programs that cannot install multiple files.
2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2546 printf %s "checking for a BSD-compatible install... " >&6; }
2547 if test -z "$INSTALL"; then
2548 if test ${ac_cv_path_install+y}
2549 then :
2550 printf %s "(cached) " >&6
2551 else case e in #(
2552 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555 IFS=$as_save_IFS
2556 case $as_dir in #(((
2557 '') as_dir=./ ;;
2558 */) ;;
2559 *) as_dir=$as_dir/ ;;
2560 esac
2561 # Account for fact that we put trailing slashes in our PATH walk.
2562 case $as_dir in #((
2563 ./ | /[cC]/* | \
2564 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2565 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2566 /usr/ucb/* ) ;;
2567 *)
2568 # OSF1 and SCO ODT 3.0 have their own names for install.
2569 # Don't use installbsd from OSF since it installs stuff as root
2570 # by default.
2571 for ac_prog in ginstall scoinst install; do
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2574 if test $ac_prog = install &&
2575 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2576 # AIX install. It has an incompatible calling convention.
2577 :
2578 elif test $ac_prog = install &&
2579 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2580 # program-specific install script used by HP pwplus--don't use.
2581 :
2582 else
2583 rm -rf conftest.one conftest.two conftest.dir
2584 echo one > conftest.one
2585 echo two > conftest.two
2586 mkdir conftest.dir
2587 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2588 test -s conftest.one && test -s conftest.two &&
2589 test -s conftest.dir/conftest.one &&
2590 test -s conftest.dir/conftest.two
2591 then
2592 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2593 break 3
2594 fi
2595 fi
2596 fi
2597 done
2598 done
2599 ;;
2600 esac
2601
2602 done
2603 IFS=$as_save_IFS
2604
2605 rm -rf conftest.one conftest.two conftest.dir
2606 ;;
2607 esac
2608 fi
2609 if test ${ac_cv_path_install+y}; then
2610 INSTALL=$ac_cv_path_install
2611 else
2612 # As a last resort, use the slow shell script. Don't cache a
2613 # value for INSTALL within a source directory, because that will
2614 # break other packages using the cache if that directory is
2615 # removed, or if the value is a relative name.
2616 INSTALL=$ac_install_sh
2617 fi
2618 fi
2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2620 printf "%s\n" "$INSTALL" >&6; }
2621
2622 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2623 # It thinks the first close brace ends the variable substitution.
2624 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2625
2626 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2627
2628 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2629
2630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2631 printf %s "checking whether build environment is sane... " >&6; }
2632 # Reject unsafe characters in $srcdir or the absolute working directory
2633 # name. Accept space and tab only in the latter.
2634 am_lf='
2635 '
2636 case `pwd` in
2637 *[\\\"\#\$\&\'\`$am_lf]*)
2638 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2639 esac
2640 case $srcdir in
2641 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2642 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2643 esac
2644
2645 # Do 'set' in a subshell so we don't clobber the current shell's
2646 # arguments. Must try -L first in case configure is actually a
2647 # symlink; some systems play weird games with the mod time of symlinks
2648 # (eg FreeBSD returns the mod time of the symlink's containing
2649 # directory).
2650 if (
2651 am_has_slept=no
2652 for am_try in 1 2; do
2653 echo "timestamp, slept: $am_has_slept" > conftest.file
2654 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2655 if test "$*" = "X"; then
2656 # -L didn't work.
2657 set X `ls -t "$srcdir/configure" conftest.file`
2658 fi
2659 if test "$*" != "X $srcdir/configure conftest.file" \
2660 && test "$*" != "X conftest.file $srcdir/configure"; then
2661
2662 # If neither matched, then we have a broken ls. This can happen
2663 # if, for instance, CONFIG_SHELL is bash and it inherits a
2664 # broken ls alias from the environment. This has actually
2665 # happened. Such a system could not be considered "sane".
2666 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2667 alias in your environment" "$LINENO" 5
2668 fi
2669 if test "$2" = conftest.file || test $am_try -eq 2; then
2670 break
2671 fi
2672 # Just in case.
2673 sleep 1
2674 am_has_slept=yes
2675 done
2676 test "$2" = conftest.file
2677 )
2678 then
2679 # Ok.
2680 :
2681 else
2682 as_fn_error $? "newly created file is older than distributed files!
2683 Check your system clock" "$LINENO" 5
2684 fi
2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2686 printf "%s\n" "yes" >&6; }
2687 # If we didn't sleep, we still need to ensure time stamps of config.status and
2688 # generated files are strictly newer.
2689 am_sleep_pid=
2690 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2691 ( sleep 1 ) &
2692 am_sleep_pid=$!
2693 fi
2694
2695 rm -f conftest.file
2696
2697 test "$program_prefix" != NONE &&
2698 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2699 # Use a double $ so make ignores it.
2700 test "$program_suffix" != NONE &&
2701 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2702 # Double any \ or $.
2703 # By default was 's,x,x', remove it if useless.
2704 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2705 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2706
2707
2708 # Expand $ac_aux_dir to an absolute path.
2709 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2710
2711
2712 if test x"${MISSING+set}" != xset; then
2713 MISSING="\${SHELL} '$am_aux_dir/missing'"
2714 fi
2715 # Use eval to expand $SHELL
2716 if eval "$MISSING --is-lightweight"; then
2717 am_missing_run="$MISSING "
2718 else
2719 am_missing_run=
2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2721 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2722 fi
2723
2724 if test x"${install_sh+set}" != xset; then
2725 case $am_aux_dir in
2726 *\ * | *\ *)
2727 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2728 *)
2729 install_sh="\${SHELL} $am_aux_dir/install-sh"
2730 esac
2731 fi
2732
2733 # Installed binaries are usually stripped using 'strip' when the user
2734 # run "make install-strip". However 'strip' might not be the right
2735 # tool to use in cross-compilation environments, therefore Automake
2736 # will honor the 'STRIP' environment variable to overrule this program.
2737 if test "$cross_compiling" != no; then
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}strip; ac_word=$2
2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 printf %s "checking for $ac_word... " >&6; }
2743 if test ${ac_cv_prog_STRIP+y}
2744 then :
2745 printf %s "(cached) " >&6
2746 else case e in #(
2747 e) if test -n "$STRIP"; then
2748 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2752 do
2753 IFS=$as_save_IFS
2754 case $as_dir in #(((
2755 '') as_dir=./ ;;
2756 */) ;;
2757 *) as_dir=$as_dir/ ;;
2758 esac
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2761 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2763 break 2
2764 fi
2765 done
2766 done
2767 IFS=$as_save_IFS
2768
2769 fi ;;
2770 esac
2771 fi
2772 STRIP=$ac_cv_prog_STRIP
2773 if test -n "$STRIP"; then
2774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2775 printf "%s\n" "$STRIP" >&6; }
2776 else
2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778 printf "%s\n" "no" >&6; }
2779 fi
2780
2781
2782 fi
2783 if test -z "$ac_cv_prog_STRIP"; then
2784 ac_ct_STRIP=$STRIP
2785 # Extract the first word of "strip", so it can be a program name with args.
2786 set dummy strip; ac_word=$2
2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 printf %s "checking for $ac_word... " >&6; }
2789 if test ${ac_cv_prog_ac_ct_STRIP+y}
2790 then :
2791 printf %s "(cached) " >&6
2792 else case e in #(
2793 e) if test -n "$ac_ct_STRIP"; then
2794 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2798 do
2799 IFS=$as_save_IFS
2800 case $as_dir in #(((
2801 '') as_dir=./ ;;
2802 */) ;;
2803 *) as_dir=$as_dir/ ;;
2804 esac
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_ac_ct_STRIP="strip"
2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi ;;
2816 esac
2817 fi
2818 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2819 if test -n "$ac_ct_STRIP"; then
2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2821 printf "%s\n" "$ac_ct_STRIP" >&6; }
2822 else
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 printf "%s\n" "no" >&6; }
2825 fi
2826
2827 if test "x$ac_ct_STRIP" = x; then
2828 STRIP=":"
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831 yes:)
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2835 esac
2836 STRIP=$ac_ct_STRIP
2837 fi
2838 else
2839 STRIP="$ac_cv_prog_STRIP"
2840 fi
2841
2842 fi
2843 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2844
2845
2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2847 printf %s "checking for a race-free mkdir -p... " >&6; }
2848 if test -z "$MKDIR_P"; then
2849 if test ${ac_cv_path_mkdir+y}
2850 then :
2851 printf %s "(cached) " >&6
2852 else case e in #(
2853 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2855 do
2856 IFS=$as_save_IFS
2857 case $as_dir in #(((
2858 '') as_dir=./ ;;
2859 */) ;;
2860 *) as_dir=$as_dir/ ;;
2861 esac
2862 for ac_prog in mkdir gmkdir; do
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2865 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2866 'mkdir ('*'coreutils) '* | \
2867 *'BusyBox '* | \
2868 'mkdir (fileutils) '4.1*)
2869 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2870 break 3;;
2871 esac
2872 done
2873 done
2874 done
2875 IFS=$as_save_IFS
2876 ;;
2877 esac
2878 fi
2879
2880 test -d ./--version && rmdir ./--version
2881 if test ${ac_cv_path_mkdir+y}; then
2882 MKDIR_P="$ac_cv_path_mkdir -p"
2883 else
2884 # As a last resort, use plain mkdir -p,
2885 # in the hope it doesn't have the bugs of ancient mkdir.
2886 MKDIR_P='mkdir -p'
2887 fi
2888 fi
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2890 printf "%s\n" "$MKDIR_P" >&6; }
2891
2892 for ac_prog in gawk mawk nawk awk
2893 do
2894 # Extract the first word of "$ac_prog", so it can be a program name with args.
2895 set dummy $ac_prog; ac_word=$2
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 printf %s "checking for $ac_word... " >&6; }
2898 if test ${ac_cv_prog_AWK+y}
2899 then :
2900 printf %s "(cached) " >&6
2901 else case e in #(
2902 e) if test -n "$AWK"; then
2903 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 case $as_dir in #(((
2910 '') as_dir=./ ;;
2911 */) ;;
2912 *) as_dir=$as_dir/ ;;
2913 esac
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2916 ac_cv_prog_AWK="$ac_prog"
2917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2918 break 2
2919 fi
2920 done
2921 done
2922 IFS=$as_save_IFS
2923
2924 fi ;;
2925 esac
2926 fi
2927 AWK=$ac_cv_prog_AWK
2928 if test -n "$AWK"; then
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2930 printf "%s\n" "$AWK" >&6; }
2931 else
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 printf "%s\n" "no" >&6; }
2934 fi
2935
2936
2937 test -n "$AWK" && break
2938 done
2939
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2941 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2942 set x ${MAKE-make}
2943 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2944 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2945 then :
2946 printf %s "(cached) " >&6
2947 else case e in #(
2948 e) cat >conftest.make <<\_ACEOF
2949 SHELL = /bin/sh
2950 all:
2951 @echo '@@@%%%=$(MAKE)=@@@%%%'
2952 _ACEOF
2953 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2954 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2955 *@@@%%%=?*=@@@%%%*)
2956 eval ac_cv_prog_make_${ac_make}_set=yes;;
2957 *)
2958 eval ac_cv_prog_make_${ac_make}_set=no;;
2959 esac
2960 rm -f conftest.make ;;
2961 esac
2962 fi
2963 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965 printf "%s\n" "yes" >&6; }
2966 SET_MAKE=
2967 else
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 printf "%s\n" "no" >&6; }
2970 SET_MAKE="MAKE=${MAKE-make}"
2971 fi
2972
2973 rm -rf .tst 2>/dev/null
2974 mkdir .tst 2>/dev/null
2975 if test -d .tst; then
2976 am__leading_dot=.
2977 else
2978 am__leading_dot=_
2979 fi
2980 rmdir .tst 2>/dev/null
2981
2982 # Check whether --enable-silent-rules was given.
2983 if test ${enable_silent_rules+y}
2984 then :
2985 enableval=$enable_silent_rules;
2986 fi
2987
2988 case $enable_silent_rules in # (((
2989 yes) AM_DEFAULT_VERBOSITY=0;;
2990 no) AM_DEFAULT_VERBOSITY=1;;
2991 *) AM_DEFAULT_VERBOSITY=1;;
2992 esac
2993 am_make=${MAKE-make}
2994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2995 printf %s "checking whether $am_make supports nested variables... " >&6; }
2996 if test ${am_cv_make_support_nested_variables+y}
2997 then :
2998 printf %s "(cached) " >&6
2999 else case e in #(
3000 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3001 BAR0=false
3002 BAR1=true
3003 V=1
3004 am__doit:
3005 @$(TRUE)
3006 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3007 am_cv_make_support_nested_variables=yes
3008 else
3009 am_cv_make_support_nested_variables=no
3010 fi ;;
3011 esac
3012 fi
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3015 if test $am_cv_make_support_nested_variables = yes; then
3016 AM_V='$(V)'
3017 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3018 else
3019 AM_V=$AM_DEFAULT_VERBOSITY
3020 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3021 fi
3022 AM_BACKSLASH='\'
3023
3024 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026 # is not polluted with repeated "-I."
3027 am__isrc=' -I$(srcdir)'
3028 # test to see if srcdir already configured
3029 if test -f $srcdir/config.status; then
3030 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3031 fi
3032 fi
3033
3034 # test whether we have cygpath
3035 if test -z "$CYGPATH_W"; then
3036 if (cygpath --version) >/dev/null 2>/dev/null; then
3037 CYGPATH_W='cygpath -w'
3038 else
3039 CYGPATH_W=echo
3040 fi
3041 fi
3042
3043
3044 # Define the identity of the package.
3045 PACKAGE='editres'
3046 VERSION='1.0.9'
3047
3048
3049 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3050
3051
3052 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3053
3054 # Some tools Automake needs.
3055
3056 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3057
3058
3059 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3060
3061
3062 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3063
3064
3065 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3066
3067
3068 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3069
3070 # For better backward compatibility. To be removed once Automake 1.9.x
3071 # dies out for good. For more background, see:
3072 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3073 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3074 mkdir_p='$(MKDIR_P)'
3075
3076 # We need awk for the "check" target (and possibly the TAP driver). The
3077 # system "awk" is bad on some platforms.
3078 # Always define AMTAR for backward compatibility. Yes, it's still used
3079 # in the wild :-( We should find a proper way to deprecate it ...
3080 AMTAR='$${TAR-tar}'
3081
3082
3083 # We'll loop over all known methods to create a tar archive until one works.
3084 _am_tools='gnutar pax cpio none'
3085
3086 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3087
3088
3089
3090
3091
3092 # Variables for tags utilities; see am/tags.am
3093 if test -z "$CTAGS"; then
3094 CTAGS=ctags
3095 fi
3096
3097 if test -z "$ETAGS"; then
3098 ETAGS=etags
3099 fi
3100
3101 if test -z "$CSCOPE"; then
3102 CSCOPE=cscope
3103 fi
3104
3105
3106
3107 # POSIX will say in a future version that running "rm -f" with no argument
3108 # is OK; and we want to be able to make that assumption in our Makefile
3109 # recipes. So use an aggressive probe to check that the usage we want is
3110 # actually supported "in the wild" to an acceptable degree.
3111 # See automake bug#10828.
3112 # To make any issue more visible, cause the running configure to be aborted
3113 # by default if the 'rm' program in use doesn't match our expectations; the
3114 # user can still override this though.
3115 if rm -f && rm -fr && rm -rf; then : OK; else
3116 cat >&2 <<'END'
3117 Oops!
3118
3119 Your 'rm' program seems unable to run without file operands specified
3120 on the command line, even when the '-f' option is present. This is contrary
3121 to the behaviour of most rm programs out there, and not conforming with
3122 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3123
3124 Please tell bug-automake@gnu.org about your system, including the value
3125 of your $PATH and any error possibly output before this message. This
3126 can help us improve future automake versions.
3127
3128 END
3129 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3130 echo 'Configuration will proceed anyway, since you have set the' >&2
3131 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3132 echo >&2
3133 else
3134 cat >&2 <<'END'
3135 Aborting the configuration process, to ensure you take notice of the issue.
3136
3137 You can download and install GNU coreutils to get an 'rm' implementation
3138 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3139
3140 If you want to complete the configuration process using your problematic
3141 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3142 to "yes", and re-run configure.
3143
3144 END
3145 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3146 fi
3147 fi
3148
3149
3150 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171 DEPDIR="${am__leading_dot}deps"
3172
3173 ac_config_commands="$ac_config_commands depfiles"
3174
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3176 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3177 cat > confinc.mk << 'END'
3178 am__doit:
3179 @echo this is the am__doit target >confinc.out
3180 .PHONY: am__doit
3181 END
3182 am__include="#"
3183 am__quote=
3184 # BSD make does it like this.
3185 echo '.include "confinc.mk" # ignored' > confmf.BSD
3186 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3187 echo 'include confinc.mk # ignored' > confmf.GNU
3188 _am_result=no
3189 for s in GNU BSD; do
3190 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3191 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }
3195 case $?:`cat confinc.out 2>/dev/null` in #(
3196 '0:this is the am__doit target') :
3197 case $s in #(
3198 BSD) :
3199 am__include='.include' am__quote='"' ;; #(
3200 *) :
3201 am__include='include' am__quote='' ;;
3202 esac ;; #(
3203 *) :
3204 ;;
3205 esac
3206 if test "$am__include" != "#"; then
3207 _am_result="yes ($s style)"
3208 break
3209 fi
3210 done
3211 rm -f confinc.* confmf.*
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3213 printf "%s\n" "${_am_result}" >&6; }
3214
3215 # Check whether --enable-dependency-tracking was given.
3216 if test ${enable_dependency_tracking+y}
3217 then :
3218 enableval=$enable_dependency_tracking;
3219 fi
3220
3221 if test "x$enable_dependency_tracking" != xno; then
3222 am_depcomp="$ac_aux_dir/depcomp"
3223 AMDEPBACKSLASH='\'
3224 am__nodep='_no'
3225 fi
3226 if test "x$enable_dependency_tracking" != xno; then
3227 AMDEP_TRUE=
3228 AMDEP_FALSE='#'
3229 else
3230 AMDEP_TRUE='#'
3231 AMDEP_FALSE=
3232 fi
3233
3234
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 printf %s "checking for $ac_word... " >&6; }
3245 if test ${ac_cv_prog_CC+y}
3246 then :
3247 printf %s "(cached) " >&6
3248 else case e in #(
3249 e) if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 case $as_dir in #(((
3257 '') as_dir=./ ;;
3258 */) ;;
3259 *) as_dir=$as_dir/ ;;
3260 esac
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267 done
3268 done
3269 IFS=$as_save_IFS
3270
3271 fi ;;
3272 esac
3273 fi
3274 CC=$ac_cv_prog_CC
3275 if test -n "$CC"; then
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277 printf "%s\n" "$CC" >&6; }
3278 else
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 printf "%s\n" "no" >&6; }
3281 fi
3282
3283
3284 fi
3285 if test -z "$ac_cv_prog_CC"; then
3286 ac_ct_CC=$CC
3287 # Extract the first word of "gcc", so it can be a program name with args.
3288 set dummy gcc; ac_word=$2
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290 printf %s "checking for $ac_word... " >&6; }
3291 if test ${ac_cv_prog_ac_ct_CC+y}
3292 then :
3293 printf %s "(cached) " >&6
3294 else case e in #(
3295 e) if test -n "$ac_ct_CC"; then
3296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301 IFS=$as_save_IFS
3302 case $as_dir in #(((
3303 '') as_dir=./ ;;
3304 */) ;;
3305 *) as_dir=$as_dir/ ;;
3306 esac
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_ac_ct_CC="gcc"
3310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3311 break 2
3312 fi
3313 done
3314 done
3315 IFS=$as_save_IFS
3316
3317 fi ;;
3318 esac
3319 fi
3320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3321 if test -n "$ac_ct_CC"; then
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3323 printf "%s\n" "$ac_ct_CC" >&6; }
3324 else
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 printf "%s\n" "no" >&6; }
3327 fi
3328
3329 if test "x$ac_ct_CC" = x; then
3330 CC=""
3331 else
3332 case $cross_compiling:$ac_tool_warned in
3333 yes:)
3334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3335 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336 ac_tool_warned=yes ;;
3337 esac
3338 CC=$ac_ct_CC
3339 fi
3340 else
3341 CC="$ac_cv_prog_CC"
3342 fi
3343
3344 if test -z "$CC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3347 set dummy ${ac_tool_prefix}cc; ac_word=$2
3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 printf %s "checking for $ac_word... " >&6; }
3350 if test ${ac_cv_prog_CC+y}
3351 then :
3352 printf %s "(cached) " >&6
3353 else case e in #(
3354 e) if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360 IFS=$as_save_IFS
3361 case $as_dir in #(((
3362 '') as_dir=./ ;;
3363 */) ;;
3364 *) as_dir=$as_dir/ ;;
3365 esac
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_CC="${ac_tool_prefix}cc"
3369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372 done
3373 done
3374 IFS=$as_save_IFS
3375
3376 fi ;;
3377 esac
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 printf "%s\n" "$CC" >&6; }
3383 else
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 printf "%s\n" "no" >&6; }
3386 fi
3387
3388
3389 fi
3390 fi
3391 if test -z "$CC"; then
3392 # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 printf %s "checking for $ac_word... " >&6; }
3396 if test ${ac_cv_prog_CC+y}
3397 then :
3398 printf %s "(cached) " >&6
3399 else case e in #(
3400 e) if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 ac_prog_rejected=no
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407 IFS=$as_save_IFS
3408 case $as_dir in #(((
3409 '') as_dir=./ ;;
3410 */) ;;
3411 *) as_dir=$as_dir/ ;;
3412 esac
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3415 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3416 ac_prog_rejected=yes
3417 continue
3418 fi
3419 ac_cv_prog_CC="cc"
3420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423 done
3424 done
3425 IFS=$as_save_IFS
3426
3427 if test $ac_prog_rejected = yes; then
3428 # We found a bogon in the path, so make sure we never use it.
3429 set dummy $ac_cv_prog_CC
3430 shift
3431 if test $# != 0; then
3432 # We chose a different compiler from the bogus one.
3433 # However, it has the same basename, so the bogon will be chosen
3434 # first if we set CC to just the basename; use the full file name.
3435 shift
3436 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3437 fi
3438 fi
3439 fi ;;
3440 esac
3441 fi
3442 CC=$ac_cv_prog_CC
3443 if test -n "$CC"; then
3444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3445 printf "%s\n" "$CC" >&6; }
3446 else
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 printf "%s\n" "no" >&6; }
3449 fi
3450
3451
3452 fi
3453 if test -z "$CC"; then
3454 if test -n "$ac_tool_prefix"; then
3455 for ac_prog in cl.exe
3456 do
3457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3460 printf %s "checking for $ac_word... " >&6; }
3461 if test ${ac_cv_prog_CC+y}
3462 then :
3463 printf %s "(cached) " >&6
3464 else case e in #(
3465 e) if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3467 else
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471 IFS=$as_save_IFS
3472 case $as_dir in #(((
3473 '') as_dir=./ ;;
3474 */) ;;
3475 *) as_dir=$as_dir/ ;;
3476 esac
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3481 break 2
3482 fi
3483 done
3484 done
3485 IFS=$as_save_IFS
3486
3487 fi ;;
3488 esac
3489 fi
3490 CC=$ac_cv_prog_CC
3491 if test -n "$CC"; then
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 printf "%s\n" "$CC" >&6; }
3494 else
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 printf "%s\n" "no" >&6; }
3497 fi
3498
3499
3500 test -n "$CC" && break
3501 done
3502 fi
3503 if test -z "$CC"; then
3504 ac_ct_CC=$CC
3505 for ac_prog in cl.exe
3506 do
3507 # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy $ac_prog; ac_word=$2
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 printf %s "checking for $ac_word... " >&6; }
3511 if test ${ac_cv_prog_ac_ct_CC+y}
3512 then :
3513 printf %s "(cached) " >&6
3514 else case e in #(
3515 e) if test -n "$ac_ct_CC"; then
3516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 case $as_dir in #(((
3523 '') as_dir=./ ;;
3524 */) ;;
3525 *) as_dir=$as_dir/ ;;
3526 esac
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_ac_ct_CC="$ac_prog"
3530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533 done
3534 done
3535 IFS=$as_save_IFS
3536
3537 fi ;;
3538 esac
3539 fi
3540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3543 printf "%s\n" "$ac_ct_CC" >&6; }
3544 else
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 printf "%s\n" "no" >&6; }
3547 fi
3548
3549
3550 test -n "$ac_ct_CC" && break
3551 done
3552
3553 if test "x$ac_ct_CC" = x; then
3554 CC=""
3555 else
3556 case $cross_compiling:$ac_tool_warned in
3557 yes:)
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3559 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3560 ac_tool_warned=yes ;;
3561 esac
3562 CC=$ac_ct_CC
3563 fi
3564 fi
3565
3566 fi
3567 if test -z "$CC"; then
3568 if test -n "$ac_tool_prefix"; then
3569 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3570 set dummy ${ac_tool_prefix}clang; ac_word=$2
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 printf %s "checking for $ac_word... " >&6; }
3573 if test ${ac_cv_prog_CC+y}
3574 then :
3575 printf %s "(cached) " >&6
3576 else case e in #(
3577 e) if test -n "$CC"; then
3578 ac_cv_prog_CC="$CC" # Let the user override the test.
3579 else
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581 for as_dir in $PATH
3582 do
3583 IFS=$as_save_IFS
3584 case $as_dir in #(((
3585 '') as_dir=./ ;;
3586 */) ;;
3587 *) as_dir=$as_dir/ ;;
3588 esac
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_CC="${ac_tool_prefix}clang"
3592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3593 break 2
3594 fi
3595 done
3596 done
3597 IFS=$as_save_IFS
3598
3599 fi ;;
3600 esac
3601 fi
3602 CC=$ac_cv_prog_CC
3603 if test -n "$CC"; then
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 printf "%s\n" "$CC" >&6; }
3606 else
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 printf "%s\n" "no" >&6; }
3609 fi
3610
3611
3612 fi
3613 if test -z "$ac_cv_prog_CC"; then
3614 ac_ct_CC=$CC
3615 # Extract the first word of "clang", so it can be a program name with args.
3616 set dummy clang; ac_word=$2
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 printf %s "checking for $ac_word... " >&6; }
3619 if test ${ac_cv_prog_ac_ct_CC+y}
3620 then :
3621 printf %s "(cached) " >&6
3622 else case e in #(
3623 e) if test -n "$ac_ct_CC"; then
3624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629 IFS=$as_save_IFS
3630 case $as_dir in #(((
3631 '') as_dir=./ ;;
3632 */) ;;
3633 *) as_dir=$as_dir/ ;;
3634 esac
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3637 ac_cv_prog_ac_ct_CC="clang"
3638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3639 break 2
3640 fi
3641 done
3642 done
3643 IFS=$as_save_IFS
3644
3645 fi ;;
3646 esac
3647 fi
3648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3649 if test -n "$ac_ct_CC"; then
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3651 printf "%s\n" "$ac_ct_CC" >&6; }
3652 else
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 printf "%s\n" "no" >&6; }
3655 fi
3656
3657 if test "x$ac_ct_CC" = x; then
3658 CC=""
3659 else
3660 case $cross_compiling:$ac_tool_warned in
3661 yes:)
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3663 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3664 ac_tool_warned=yes ;;
3665 esac
3666 CC=$ac_ct_CC
3667 fi
3668 else
3669 CC="$ac_cv_prog_CC"
3670 fi
3671
3672 fi
3673
3674
3675 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3676 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3677 as_fn_error $? "no acceptable C compiler found in \$PATH
3678 See 'config.log' for more details" "$LINENO" 5; }
3679
3680 # Provide some information about the compiler.
3681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3682 set X $ac_compile
3683 ac_compiler=$2
3684 for ac_option in --version -v -V -qversion -version; do
3685 { { ac_try="$ac_compiler $ac_option >&5"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 printf "%s\n" "$ac_try_echo"; } >&5
3692 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3693 ac_status=$?
3694 if test -s conftest.err; then
3695 sed '10a\
3696 ... rest of stderr output deleted ...
3697 10q' conftest.err >conftest.er1
3698 cat conftest.er1 >&5
3699 fi
3700 rm -f conftest.er1 conftest.err
3701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702 test $ac_status = 0; }
3703 done
3704
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707
3708 int
3709 main (void)
3710 {
3711
3712 ;
3713 return 0;
3714 }
3715 _ACEOF
3716 ac_clean_files_save=$ac_clean_files
3717 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3718 # Try to create an executable without -o first, disregard a.out.
3719 # It will help us diagnose broken compilers, and finding out an intuition
3720 # of exeext.
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3722 printf %s "checking whether the C compiler works... " >&6; }
3723 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3724
3725 # The possible output files:
3726 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3727
3728 ac_rmfiles=
3729 for ac_file in $ac_files
3730 do
3731 case $ac_file in
3732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3733 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3734 esac
3735 done
3736 rm -f $ac_rmfiles
3737
3738 if { { ac_try="$ac_link_default"
3739 case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742 esac
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 printf "%s\n" "$ac_try_echo"; } >&5
3745 (eval "$ac_link_default") 2>&5
3746 ac_status=$?
3747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }
3749 then :
3750 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3751 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3752 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3753 # so that the user can short-circuit this test for compilers unknown to
3754 # Autoconf.
3755 for ac_file in $ac_files ''
3756 do
3757 test -f "$ac_file" || continue
3758 case $ac_file in
3759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3760 ;;
3761 [ab].out )
3762 # We found the default executable, but exeext='' is most
3763 # certainly right.
3764 break;;
3765 *.* )
3766 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3767 then :; else
3768 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3769 fi
3770 # We set ac_cv_exeext here because the later test for it is not
3771 # safe: cross compilers may not add the suffix if given an '-o'
3772 # argument, so we may need to know it at that point already.
3773 # Even if this section looks crufty: it has the advantage of
3774 # actually working.
3775 break;;
3776 * )
3777 break;;
3778 esac
3779 done
3780 test "$ac_cv_exeext" = no && ac_cv_exeext=
3781
3782 else case e in #(
3783 e) ac_file='' ;;
3784 esac
3785 fi
3786 if test -z "$ac_file"
3787 then :
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 printf "%s\n" "no" >&6; }
3790 printf "%s\n" "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3792
3793 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3794 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3795 as_fn_error 77 "C compiler cannot create executables
3796 See 'config.log' for more details" "$LINENO" 5; }
3797 else case e in #(
3798 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3799 printf "%s\n" "yes" >&6; } ;;
3800 esac
3801 fi
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3803 printf %s "checking for C compiler default output file name... " >&6; }
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3805 printf "%s\n" "$ac_file" >&6; }
3806 ac_exeext=$ac_cv_exeext
3807
3808 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3809 ac_clean_files=$ac_clean_files_save
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3811 printf %s "checking for suffix of executables... " >&6; }
3812 if { { ac_try="$ac_link"
3813 case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 printf "%s\n" "$ac_try_echo"; } >&5
3819 (eval "$ac_link") 2>&5
3820 ac_status=$?
3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3823 then :
3824 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3825 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3826 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3827 # 'rm'.
3828 for ac_file in conftest.exe conftest conftest.*; do
3829 test -f "$ac_file" || continue
3830 case $ac_file in
3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3832 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3833 break;;
3834 * ) break;;
3835 esac
3836 done
3837 else case e in #(
3838 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3839 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3840 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3841 See 'config.log' for more details" "$LINENO" 5; } ;;
3842 esac
3843 fi
3844 rm -f conftest conftest$ac_cv_exeext
3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3846 printf "%s\n" "$ac_cv_exeext" >&6; }
3847
3848 rm -f conftest.$ac_ext
3849 EXEEXT=$ac_cv_exeext
3850 ac_exeext=$EXEEXT
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853 #include <stdio.h>
3854 int
3855 main (void)
3856 {
3857 FILE *f = fopen ("conftest.out", "w");
3858 if (!f)
3859 return 1;
3860 return ferror (f) || fclose (f) != 0;
3861
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 ac_clean_files="$ac_clean_files conftest.out"
3867 # Check that the compiler produces executables we can run. If not, either
3868 # the compiler is broken, or we cross compile.
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3870 printf %s "checking whether we are cross compiling... " >&6; }
3871 if test "$cross_compiling" != yes; then
3872 { { ac_try="$ac_link"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 printf "%s\n" "$ac_try_echo"; } >&5
3879 (eval "$ac_link") 2>&5
3880 ac_status=$?
3881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882 test $ac_status = 0; }
3883 if { ac_try='./conftest$ac_cv_exeext'
3884 { { case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 printf "%s\n" "$ac_try_echo"; } >&5
3890 (eval "$ac_try") 2>&5
3891 ac_status=$?
3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; }; then
3894 cross_compiling=no
3895 else
3896 if test "$cross_compiling" = maybe; then
3897 cross_compiling=yes
3898 else
3899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3900 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3901 as_fn_error 77 "cannot run C compiled programs.
3902 If you meant to cross compile, use '--host'.
3903 See 'config.log' for more details" "$LINENO" 5; }
3904 fi
3905 fi
3906 fi
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3908 printf "%s\n" "$cross_compiling" >&6; }
3909
3910 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3911 conftest.o conftest.obj conftest.out
3912 ac_clean_files=$ac_clean_files_save
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3914 printf %s "checking for suffix of object files... " >&6; }
3915 if test ${ac_cv_objext+y}
3916 then :
3917 printf %s "(cached) " >&6
3918 else case e in #(
3919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921
3922 int
3923 main (void)
3924 {
3925
3926 ;
3927 return 0;
3928 }
3929 _ACEOF
3930 rm -f conftest.o conftest.obj
3931 if { { ac_try="$ac_compile"
3932 case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935 esac
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 printf "%s\n" "$ac_try_echo"; } >&5
3938 (eval "$ac_compile") 2>&5
3939 ac_status=$?
3940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }
3942 then :
3943 for ac_file in conftest.o conftest.obj conftest.*; do
3944 test -f "$ac_file" || continue;
3945 case $ac_file in
3946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3948 break;;
3949 esac
3950 done
3951 else case e in #(
3952 e) printf "%s\n" "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3956 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3957 as_fn_error $? "cannot compute suffix of object files: cannot compile
3958 See 'config.log' for more details" "$LINENO" 5; } ;;
3959 esac
3960 fi
3961 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3962 esac
3963 fi
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3965 printf "%s\n" "$ac_cv_objext" >&6; }
3966 OBJEXT=$ac_cv_objext
3967 ac_objext=$OBJEXT
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3969 printf %s "checking whether the compiler supports GNU C... " >&6; }
3970 if test ${ac_cv_c_compiler_gnu+y}
3971 then :
3972 printf %s "(cached) " >&6
3973 else case e in #(
3974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976
3977 int
3978 main (void)
3979 {
3980 #ifndef __GNUC__
3981 choke me
3982 #endif
3983
3984 ;
3985 return 0;
3986 }
3987 _ACEOF
3988 if ac_fn_c_try_compile "$LINENO"
3989 then :
3990 ac_compiler_gnu=yes
3991 else case e in #(
3992 e) ac_compiler_gnu=no ;;
3993 esac
3994 fi
3995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3997 ;;
3998 esac
3999 fi
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4001 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003
4004 if test $ac_compiler_gnu = yes; then
4005 GCC=yes
4006 else
4007 GCC=
4008 fi
4009 ac_test_CFLAGS=${CFLAGS+y}
4010 ac_save_CFLAGS=$CFLAGS
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4012 printf %s "checking whether $CC accepts -g... " >&6; }
4013 if test ${ac_cv_prog_cc_g+y}
4014 then :
4015 printf %s "(cached) " >&6
4016 else case e in #(
4017 e) ac_save_c_werror_flag=$ac_c_werror_flag
4018 ac_c_werror_flag=yes
4019 ac_cv_prog_cc_g=no
4020 CFLAGS="-g"
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023
4024 int
4025 main (void)
4026 {
4027
4028 ;
4029 return 0;
4030 }
4031 _ACEOF
4032 if ac_fn_c_try_compile "$LINENO"
4033 then :
4034 ac_cv_prog_cc_g=yes
4035 else case e in #(
4036 e) CFLAGS=""
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4039
4040 int
4041 main (void)
4042 {
4043
4044 ;
4045 return 0;
4046 }
4047 _ACEOF
4048 if ac_fn_c_try_compile "$LINENO"
4049 then :
4050
4051 else case e in #(
4052 e) ac_c_werror_flag=$ac_save_c_werror_flag
4053 CFLAGS="-g"
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056
4057 int
4058 main (void)
4059 {
4060
4061 ;
4062 return 0;
4063 }
4064 _ACEOF
4065 if ac_fn_c_try_compile "$LINENO"
4066 then :
4067 ac_cv_prog_cc_g=yes
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4070 esac
4071 fi
4072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4073 esac
4074 fi
4075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4076 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4077 esac
4078 fi
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4080 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4081 if test $ac_test_CFLAGS; then
4082 CFLAGS=$ac_save_CFLAGS
4083 elif test $ac_cv_prog_cc_g = yes; then
4084 if test "$GCC" = yes; then
4085 CFLAGS="-g -O2"
4086 else
4087 CFLAGS="-g"
4088 fi
4089 else
4090 if test "$GCC" = yes; then
4091 CFLAGS="-O2"
4092 else
4093 CFLAGS=
4094 fi
4095 fi
4096 ac_prog_cc_stdc=no
4097 if test x$ac_prog_cc_stdc = xno
4098 then :
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4100 printf %s "checking for $CC option to enable C11 features... " >&6; }
4101 if test ${ac_cv_prog_cc_c11+y}
4102 then :
4103 printf %s "(cached) " >&6
4104 else case e in #(
4105 e) ac_cv_prog_cc_c11=no
4106 ac_save_CC=$CC
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 $ac_c_conftest_c11_program
4110 _ACEOF
4111 for ac_arg in '' -std=gnu11
4112 do
4113 CC="$ac_save_CC $ac_arg"
4114 if ac_fn_c_try_compile "$LINENO"
4115 then :
4116 ac_cv_prog_cc_c11=$ac_arg
4117 fi
4118 rm -f core conftest.err conftest.$ac_objext conftest.beam
4119 test "x$ac_cv_prog_cc_c11" != "xno" && break
4120 done
4121 rm -f conftest.$ac_ext
4122 CC=$ac_save_CC ;;
4123 esac
4124 fi
4125
4126 if test "x$ac_cv_prog_cc_c11" = xno
4127 then :
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4129 printf "%s\n" "unsupported" >&6; }
4130 else case e in #(
4131 e) if test "x$ac_cv_prog_cc_c11" = x
4132 then :
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4134 printf "%s\n" "none needed" >&6; }
4135 else case e in #(
4136 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4137 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4138 CC="$CC $ac_cv_prog_cc_c11" ;;
4139 esac
4140 fi
4141 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4142 ac_prog_cc_stdc=c11 ;;
4143 esac
4144 fi
4145 fi
4146 if test x$ac_prog_cc_stdc = xno
4147 then :
4148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4149 printf %s "checking for $CC option to enable C99 features... " >&6; }
4150 if test ${ac_cv_prog_cc_c99+y}
4151 then :
4152 printf %s "(cached) " >&6
4153 else case e in #(
4154 e) ac_cv_prog_cc_c99=no
4155 ac_save_CC=$CC
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4158 $ac_c_conftest_c99_program
4159 _ACEOF
4160 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4161 do
4162 CC="$ac_save_CC $ac_arg"
4163 if ac_fn_c_try_compile "$LINENO"
4164 then :
4165 ac_cv_prog_cc_c99=$ac_arg
4166 fi
4167 rm -f core conftest.err conftest.$ac_objext conftest.beam
4168 test "x$ac_cv_prog_cc_c99" != "xno" && break
4169 done
4170 rm -f conftest.$ac_ext
4171 CC=$ac_save_CC ;;
4172 esac
4173 fi
4174
4175 if test "x$ac_cv_prog_cc_c99" = xno
4176 then :
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4178 printf "%s\n" "unsupported" >&6; }
4179 else case e in #(
4180 e) if test "x$ac_cv_prog_cc_c99" = x
4181 then :
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183 printf "%s\n" "none needed" >&6; }
4184 else case e in #(
4185 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4186 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4187 CC="$CC $ac_cv_prog_cc_c99" ;;
4188 esac
4189 fi
4190 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4191 ac_prog_cc_stdc=c99 ;;
4192 esac
4193 fi
4194 fi
4195 if test x$ac_prog_cc_stdc = xno
4196 then :
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4198 printf %s "checking for $CC option to enable C89 features... " >&6; }
4199 if test ${ac_cv_prog_cc_c89+y}
4200 then :
4201 printf %s "(cached) " >&6
4202 else case e in #(
4203 e) ac_cv_prog_cc_c89=no
4204 ac_save_CC=$CC
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207 $ac_c_conftest_c89_program
4208 _ACEOF
4209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4210 do
4211 CC="$ac_save_CC $ac_arg"
4212 if ac_fn_c_try_compile "$LINENO"
4213 then :
4214 ac_cv_prog_cc_c89=$ac_arg
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.beam
4217 test "x$ac_cv_prog_cc_c89" != "xno" && break
4218 done
4219 rm -f conftest.$ac_ext
4220 CC=$ac_save_CC ;;
4221 esac
4222 fi
4223
4224 if test "x$ac_cv_prog_cc_c89" = xno
4225 then :
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4227 printf "%s\n" "unsupported" >&6; }
4228 else case e in #(
4229 e) if test "x$ac_cv_prog_cc_c89" = x
4230 then :
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232 printf "%s\n" "none needed" >&6; }
4233 else case e in #(
4234 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4235 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4236 CC="$CC $ac_cv_prog_cc_c89" ;;
4237 esac
4238 fi
4239 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4240 ac_prog_cc_stdc=c89 ;;
4241 esac
4242 fi
4243 fi
4244
4245 ac_ext=c
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250
4251
4252 ac_ext=c
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4258 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4259 if test ${am_cv_prog_cc_c_o+y}
4260 then :
4261 printf %s "(cached) " >&6
4262 else case e in #(
4263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4265
4266 int
4267 main (void)
4268 {
4269
4270 ;
4271 return 0;
4272 }
4273 _ACEOF
4274 # Make sure it works both with $CC and with simple cc.
4275 # Following AC_PROG_CC_C_O, we do the test twice because some
4276 # compilers refuse to overwrite an existing .o file with -o,
4277 # though they will create one.
4278 am_cv_prog_cc_c_o=yes
4279 for am_i in 1 2; do
4280 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4281 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } \
4285 && test -f conftest2.$ac_objext; then
4286 : OK
4287 else
4288 am_cv_prog_cc_c_o=no
4289 break
4290 fi
4291 done
4292 rm -f core conftest*
4293 unset am_i ;;
4294 esac
4295 fi
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4297 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4298 if test "$am_cv_prog_cc_c_o" != yes; then
4299 # Losing compiler, so override with the script.
4300 # FIXME: It is wrong to rewrite CC.
4301 # But if we don't then we get into trouble of one sort or another.
4302 # A longer-term fix would be to have automake use am__CC in this case,
4303 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4304 CC="$am_aux_dir/compile $CC"
4305 fi
4306 ac_ext=c
4307 ac_cpp='$CPP $CPPFLAGS'
4308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311
4312
4313 depcc="$CC" am_compiler_list=
4314
4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4316 printf %s "checking dependency style of $depcc... " >&6; }
4317 if test ${am_cv_CC_dependencies_compiler_type+y}
4318 then :
4319 printf %s "(cached) " >&6
4320 else case e in #(
4321 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4322 # We make a subdir and do the tests there. Otherwise we can end up
4323 # making bogus files that we don't know about and never remove. For
4324 # instance it was reported that on HP-UX the gcc test will end up
4325 # making a dummy file named 'D' -- because '-MD' means "put the output
4326 # in D".
4327 rm -rf conftest.dir
4328 mkdir conftest.dir
4329 # Copy depcomp to subdir because otherwise we won't find it if we're
4330 # using a relative directory.
4331 cp "$am_depcomp" conftest.dir
4332 cd conftest.dir
4333 # We will build objects and dependencies in a subdirectory because
4334 # it helps to detect inapplicable dependency modes. For instance
4335 # both Tru64's cc and ICC support -MD to output dependencies as a
4336 # side effect of compilation, but ICC will put the dependencies in
4337 # the current directory while Tru64 will put them in the object
4338 # directory.
4339 mkdir sub
4340
4341 am_cv_CC_dependencies_compiler_type=none
4342 if test "$am_compiler_list" = ""; then
4343 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4344 fi
4345 am__universal=false
4346 case " $depcc " in #(
4347 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4348 esac
4349
4350 for depmode in $am_compiler_list; do
4351 # Setup a source with many dependencies, because some compilers
4352 # like to wrap large dependency lists on column 80 (with \), and
4353 # we should not choose a depcomp mode which is confused by this.
4354 #
4355 # We need to recreate these files for each test, as the compiler may
4356 # overwrite some of them when testing with obscure command lines.
4357 # This happens at least with the AIX C compiler.
4358 : > sub/conftest.c
4359 for i in 1 2 3 4 5 6; do
4360 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4361 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4362 # Solaris 10 /bin/sh.
4363 echo '/* dummy */' > sub/conftst$i.h
4364 done
4365 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4366
4367 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4368 # mode. It turns out that the SunPro C++ compiler does not properly
4369 # handle '-M -o', and we need to detect this. Also, some Intel
4370 # versions had trouble with output in subdirs.
4371 am__obj=sub/conftest.${OBJEXT-o}
4372 am__minus_obj="-o $am__obj"
4373 case $depmode in
4374 gcc)
4375 # This depmode causes a compiler race in universal mode.
4376 test "$am__universal" = false || continue
4377 ;;
4378 nosideeffect)
4379 # After this tag, mechanisms are not by side-effect, so they'll
4380 # only be used when explicitly requested.
4381 if test "x$enable_dependency_tracking" = xyes; then
4382 continue
4383 else
4384 break
4385 fi
4386 ;;
4387 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4388 # This compiler won't grok '-c -o', but also, the minuso test has
4389 # not run yet. These depmodes are late enough in the game, and
4390 # so weak that their functioning should not be impacted.
4391 am__obj=conftest.${OBJEXT-o}
4392 am__minus_obj=
4393 ;;
4394 none) break ;;
4395 esac
4396 if depmode=$depmode \
4397 source=sub/conftest.c object=$am__obj \
4398 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4399 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4400 >/dev/null 2>conftest.err &&
4401 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4402 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4403 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4404 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4405 # icc doesn't choke on unknown options, it will just issue warnings
4406 # or remarks (even with -Werror). So we grep stderr for any message
4407 # that says an option was ignored or not supported.
4408 # When given -MP, icc 7.0 and 7.1 complain thusly:
4409 # icc: Command line warning: ignoring option '-M'; no argument required
4410 # The diagnosis changed in icc 8.0:
4411 # icc: Command line remark: option '-MP' not supported
4412 if (grep 'ignoring option' conftest.err ||
4413 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4414 am_cv_CC_dependencies_compiler_type=$depmode
4415 break
4416 fi
4417 fi
4418 done
4419
4420 cd ..
4421 rm -rf conftest.dir
4422 else
4423 am_cv_CC_dependencies_compiler_type=none
4424 fi
4425 ;;
4426 esac
4427 fi
4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4429 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4430 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4431
4432 if
4433 test "x$enable_dependency_tracking" != xno \
4434 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4435 am__fastdepCC_TRUE=
4436 am__fastdepCC_FALSE='#'
4437 else
4438 am__fastdepCC_TRUE='#'
4439 am__fastdepCC_FALSE=
4440 fi
4441
4442
4443
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4445 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4446 if test ${ac_cv_c_undeclared_builtin_options+y}
4447 then :
4448 printf %s "(cached) " >&6
4449 else case e in #(
4450 e) ac_save_CFLAGS=$CFLAGS
4451 ac_cv_c_undeclared_builtin_options='cannot detect'
4452 for ac_arg in '' -fno-builtin; do
4453 CFLAGS="$ac_save_CFLAGS $ac_arg"
4454 # This test program should *not* compile successfully.
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4457
4458 int
4459 main (void)
4460 {
4461 (void) strchr;
4462 ;
4463 return 0;
4464 }
4465 _ACEOF
4466 if ac_fn_c_try_compile "$LINENO"
4467 then :
4468
4469 else case e in #(
4470 e) # This test program should compile successfully.
4471 # No library function is consistently available on
4472 # freestanding implementations, so test against a dummy
4473 # declaration. Include always-available headers on the
4474 # off chance that they somehow elicit warnings.
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4477 #include <float.h>
4478 #include <limits.h>
4479 #include <stdarg.h>
4480 #include <stddef.h>
4481 extern void ac_decl (int, char *);
4482
4483 int
4484 main (void)
4485 {
4486 (void) ac_decl (0, (char *) 0);
4487 (void) ac_decl;
4488
4489 ;
4490 return 0;
4491 }
4492 _ACEOF
4493 if ac_fn_c_try_compile "$LINENO"
4494 then :
4495 if test x"$ac_arg" = x
4496 then :
4497 ac_cv_c_undeclared_builtin_options='none needed'
4498 else case e in #(
4499 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4500 esac
4501 fi
4502 break
4503 fi
4504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4505 esac
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4508 done
4509 CFLAGS=$ac_save_CFLAGS
4510 ;;
4511 esac
4512 fi
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4514 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4515 case $ac_cv_c_undeclared_builtin_options in #(
4516 'cannot detect') :
4517 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4518 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4519 as_fn_error $? "cannot make $CC report undeclared builtins
4520 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4521 'none needed') :
4522 ac_c_undeclared_builtin_options='' ;; #(
4523 *) :
4524 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4525 esac
4526
4527 ac_header= ac_cache=
4528 for ac_item in $ac_header_c_list
4529 do
4530 if test $ac_cache; then
4531 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4532 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4533 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4534 fi
4535 ac_header= ac_cache=
4536 elif test $ac_header; then
4537 ac_cache=$ac_item
4538 else
4539 ac_header=$ac_item
4540 fi
4541 done
4542
4543
4544
4545
4546
4547
4548
4549
4550 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4551 then :
4552
4553 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4554
4555 fi
4556
4557
4558
4559
4560 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4561 if test "x$ac_cv_have_decl___clang__" = xyes
4562 then :
4563 CLANGCC="yes"
4564 else case e in #(
4565 e) CLANGCC="no" ;;
4566 esac
4567 fi
4568 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4569 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4570 then :
4571 INTELCC="yes"
4572 else case e in #(
4573 e) INTELCC="no" ;;
4574 esac
4575 fi
4576 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4577 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4578 then :
4579 SUNCC="yes"
4580 else case e in #(
4581 e) SUNCC="no" ;;
4582 esac
4583 fi
4584
4585
4586
4587
4588
4589
4590
4591
4592 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4593 if test -n "$ac_tool_prefix"; then
4594 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 printf %s "checking for $ac_word... " >&6; }
4598 if test ${ac_cv_path_PKG_CONFIG+y}
4599 then :
4600 printf %s "(cached) " >&6
4601 else case e in #(
4602 e) case $PKG_CONFIG in
4603 [\\/]* | ?:[\\/]*)
4604 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4605 ;;
4606 *)
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4609 do
4610 IFS=$as_save_IFS
4611 case $as_dir in #(((
4612 '') as_dir=./ ;;
4613 */) ;;
4614 *) as_dir=$as_dir/ ;;
4615 esac
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4618 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626 ;;
4627 esac ;;
4628 esac
4629 fi
4630 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4631 if test -n "$PKG_CONFIG"; then
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4633 printf "%s\n" "$PKG_CONFIG" >&6; }
4634 else
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 printf "%s\n" "no" >&6; }
4637 fi
4638
4639
4640 fi
4641 if test -z "$ac_cv_path_PKG_CONFIG"; then
4642 ac_pt_PKG_CONFIG=$PKG_CONFIG
4643 # Extract the first word of "pkg-config", so it can be a program name with args.
4644 set dummy pkg-config; ac_word=$2
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 printf %s "checking for $ac_word... " >&6; }
4647 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4648 then :
4649 printf %s "(cached) " >&6
4650 else case e in #(
4651 e) case $ac_pt_PKG_CONFIG in
4652 [\\/]* | ?:[\\/]*)
4653 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4654 ;;
4655 *)
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659 IFS=$as_save_IFS
4660 case $as_dir in #(((
4661 '') as_dir=./ ;;
4662 */) ;;
4663 *) as_dir=$as_dir/ ;;
4664 esac
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4667 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675 ;;
4676 esac ;;
4677 esac
4678 fi
4679 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4680 if test -n "$ac_pt_PKG_CONFIG"; then
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4682 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4683 else
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 printf "%s\n" "no" >&6; }
4686 fi
4687
4688 if test "x$ac_pt_PKG_CONFIG" = x; then
4689 PKG_CONFIG=""
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692 yes:)
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned=yes ;;
4696 esac
4697 PKG_CONFIG=$ac_pt_PKG_CONFIG
4698 fi
4699 else
4700 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4701 fi
4702
4703 fi
4704 if test -n "$PKG_CONFIG"; then
4705 _pkg_min_version=0.9.0
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4707 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4708 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4710 printf "%s\n" "yes" >&6; }
4711 else
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 printf "%s\n" "no" >&6; }
4714 PKG_CONFIG=""
4715 fi
4716 fi
4717
4718
4719 # Make sure we can run config.sub.
4720 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4721 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4722
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4724 printf %s "checking build system type... " >&6; }
4725 if test ${ac_cv_build+y}
4726 then :
4727 printf %s "(cached) " >&6
4728 else case e in #(
4729 e) ac_build_alias=$build_alias
4730 test "x$ac_build_alias" = x &&
4731 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4732 test "x$ac_build_alias" = x &&
4733 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4734 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4735 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4736 ;;
4737 esac
4738 fi
4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4740 printf "%s\n" "$ac_cv_build" >&6; }
4741 case $ac_cv_build in
4742 *-*-*) ;;
4743 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4744 esac
4745 build=$ac_cv_build
4746 ac_save_IFS=$IFS; IFS='-'
4747 set x $ac_cv_build
4748 shift
4749 build_cpu=$1
4750 build_vendor=$2
4751 shift; shift
4752 # Remember, the first character of IFS is used to create $*,
4753 # except with old shells:
4754 build_os=$*
4755 IFS=$ac_save_IFS
4756 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4757
4758
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4760 printf %s "checking host system type... " >&6; }
4761 if test ${ac_cv_host+y}
4762 then :
4763 printf %s "(cached) " >&6
4764 else case e in #(
4765 e) if test "x$host_alias" = x; then
4766 ac_cv_host=$ac_cv_build
4767 else
4768 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4769 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4770 fi
4771 ;;
4772 esac
4773 fi
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4775 printf "%s\n" "$ac_cv_host" >&6; }
4776 case $ac_cv_host in
4777 *-*-*) ;;
4778 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4779 esac
4780 host=$ac_cv_host
4781 ac_save_IFS=$IFS; IFS='-'
4782 set x $ac_cv_host
4783 shift
4784 host_cpu=$1
4785 host_vendor=$2
4786 shift; shift
4787 # Remember, the first character of IFS is used to create $*,
4788 # except with old shells:
4789 host_os=$*
4790 IFS=$ac_save_IFS
4791 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4792
4793
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4795 printf %s "checking for a sed that does not truncate output... " >&6; }
4796 if test ${ac_cv_path_SED+y}
4797 then :
4798 printf %s "(cached) " >&6
4799 else case e in #(
4800 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4801 for ac_i in 1 2 3 4 5 6 7; do
4802 ac_script="$ac_script$as_nl$ac_script"
4803 done
4804 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4805 { ac_script=; unset ac_script;}
4806 if test -z "$SED"; then
4807 ac_path_SED_found=false
4808 # Loop through the user's path and test for each of PROGNAME-LIST
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812 IFS=$as_save_IFS
4813 case $as_dir in #(((
4814 '') as_dir=./ ;;
4815 */) ;;
4816 *) as_dir=$as_dir/ ;;
4817 esac
4818 for ac_prog in sed gsed
4819 do
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4822 as_fn_executable_p "$ac_path_SED" || continue
4823 # Check for GNU ac_path_SED and select it if it is found.
4824 # Check for GNU $ac_path_SED
4825 case `"$ac_path_SED" --version 2>&1` in #(
4826 *GNU*)
4827 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4828 #(
4829 *)
4830 ac_count=0
4831 printf %s 0123456789 >"conftest.in"
4832 while :
4833 do
4834 cat "conftest.in" "conftest.in" >"conftest.tmp"
4835 mv "conftest.tmp" "conftest.in"
4836 cp "conftest.in" "conftest.nl"
4837 printf "%s\n" '' >> "conftest.nl"
4838 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4840 as_fn_arith $ac_count + 1 && ac_count=$as_val
4841 if test $ac_count -gt ${ac_path_SED_max-0}; then
4842 # Best one so far, save it but keep looking for a better one
4843 ac_cv_path_SED="$ac_path_SED"
4844 ac_path_SED_max=$ac_count
4845 fi
4846 # 10*(2^10) chars as input seems more than enough
4847 test $ac_count -gt 10 && break
4848 done
4849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850 esac
4851
4852 $ac_path_SED_found && break 3
4853 done
4854 done
4855 done
4856 IFS=$as_save_IFS
4857 if test -z "$ac_cv_path_SED"; then
4858 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4859 fi
4860 else
4861 ac_cv_path_SED=$SED
4862 fi
4863 ;;
4864 esac
4865 fi
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4867 printf "%s\n" "$ac_cv_path_SED" >&6; }
4868 SED="$ac_cv_path_SED"
4869 rm -f conftest.sed
4870
4871
4872
4873
4874
4875
4876 # Check whether --enable-selective-werror was given.
4877 if test ${enable_selective_werror+y}
4878 then :
4879 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4880 else case e in #(
4881 e) SELECTIVE_WERROR=yes ;;
4882 esac
4883 fi
4884
4885
4886
4887
4888
4889 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4890 if test "x$SUNCC" = "xyes"; then
4891 BASE_CFLAGS="-v"
4892 else
4893 BASE_CFLAGS=""
4894 fi
4895
4896 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910 xorg_testset_save_CFLAGS="$CFLAGS"
4911
4912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4915 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4916 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4917 then :
4918 printf %s "(cached) " >&6
4919 else case e in #(
4920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922 int i;
4923 _ACEOF
4924 if ac_fn_c_try_compile "$LINENO"
4925 then :
4926 xorg_cv_cc_flag_unknown_warning_option=yes
4927 else case e in #(
4928 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4929 esac
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4932 esac
4933 fi
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4935 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4937 CFLAGS="$xorg_testset_save_CFLAGS"
4938 fi
4939
4940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4943 fi
4944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4946 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4947 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4948 then :
4949 printf %s "(cached) " >&6
4950 else case e in #(
4951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4953 int i;
4954 _ACEOF
4955 if ac_fn_c_try_compile "$LINENO"
4956 then :
4957 xorg_cv_cc_flag_unused_command_line_argument=yes
4958 else case e in #(
4959 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4960 esac
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4963 esac
4964 fi
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4966 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4968 CFLAGS="$xorg_testset_save_CFLAGS"
4969 fi
4970
4971 found="no"
4972
4973 if test $found = "no" ; then
4974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4976 fi
4977
4978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4980 fi
4981
4982 CFLAGS="$CFLAGS -Wall"
4983
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4985 printf %s "checking if $CC supports -Wall... " >&6; }
4986 cacheid=xorg_cv_cc_flag__Wall
4987 if eval test \${$cacheid+y}
4988 then :
4989 printf %s "(cached) " >&6
4990 else case e in #(
4991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 int i;
4994 int
4995 main (void)
4996 {
4997
4998 ;
4999 return 0;
5000 }
5001 _ACEOF
5002 if ac_fn_c_try_link "$LINENO"
5003 then :
5004 eval $cacheid=yes
5005 else case e in #(
5006 e) eval $cacheid=no ;;
5007 esac
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5010 conftest$ac_exeext conftest.$ac_ext ;;
5011 esac
5012 fi
5013
5014
5015 CFLAGS="$xorg_testset_save_CFLAGS"
5016
5017 eval supported=\$$cacheid
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5019 printf "%s\n" "$supported" >&6; }
5020 if test "$supported" = "yes" ; then
5021 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5022 found="yes"
5023 fi
5024 fi
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040 xorg_testset_save_CFLAGS="$CFLAGS"
5041
5042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5045 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5046 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5047 then :
5048 printf %s "(cached) " >&6
5049 else case e in #(
5050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 int i;
5053 _ACEOF
5054 if ac_fn_c_try_compile "$LINENO"
5055 then :
5056 xorg_cv_cc_flag_unknown_warning_option=yes
5057 else case e in #(
5058 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5059 esac
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5062 esac
5063 fi
5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5065 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5067 CFLAGS="$xorg_testset_save_CFLAGS"
5068 fi
5069
5070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5073 fi
5074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5076 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5077 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5078 then :
5079 printf %s "(cached) " >&6
5080 else case e in #(
5081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 int i;
5084 _ACEOF
5085 if ac_fn_c_try_compile "$LINENO"
5086 then :
5087 xorg_cv_cc_flag_unused_command_line_argument=yes
5088 else case e in #(
5089 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5090 esac
5091 fi
5092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5093 esac
5094 fi
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5096 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5098 CFLAGS="$xorg_testset_save_CFLAGS"
5099 fi
5100
5101 found="no"
5102
5103 if test $found = "no" ; then
5104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5106 fi
5107
5108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5110 fi
5111
5112 CFLAGS="$CFLAGS -Wpointer-arith"
5113
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5115 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5116 cacheid=xorg_cv_cc_flag__Wpointer_arith
5117 if eval test \${$cacheid+y}
5118 then :
5119 printf %s "(cached) " >&6
5120 else case e in #(
5121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123 int i;
5124 int
5125 main (void)
5126 {
5127
5128 ;
5129 return 0;
5130 }
5131 _ACEOF
5132 if ac_fn_c_try_link "$LINENO"
5133 then :
5134 eval $cacheid=yes
5135 else case e in #(
5136 e) eval $cacheid=no ;;
5137 esac
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5140 conftest$ac_exeext conftest.$ac_ext ;;
5141 esac
5142 fi
5143
5144
5145 CFLAGS="$xorg_testset_save_CFLAGS"
5146
5147 eval supported=\$$cacheid
5148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5149 printf "%s\n" "$supported" >&6; }
5150 if test "$supported" = "yes" ; then
5151 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5152 found="yes"
5153 fi
5154 fi
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 xorg_testset_save_CFLAGS="$CFLAGS"
5171
5172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5175 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5176 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5177 then :
5178 printf %s "(cached) " >&6
5179 else case e in #(
5180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5182 int i;
5183 _ACEOF
5184 if ac_fn_c_try_compile "$LINENO"
5185 then :
5186 xorg_cv_cc_flag_unknown_warning_option=yes
5187 else case e in #(
5188 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5189 esac
5190 fi
5191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5192 esac
5193 fi
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5195 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5197 CFLAGS="$xorg_testset_save_CFLAGS"
5198 fi
5199
5200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5203 fi
5204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5206 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5207 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5208 then :
5209 printf %s "(cached) " >&6
5210 else case e in #(
5211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 int i;
5214 _ACEOF
5215 if ac_fn_c_try_compile "$LINENO"
5216 then :
5217 xorg_cv_cc_flag_unused_command_line_argument=yes
5218 else case e in #(
5219 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5220 esac
5221 fi
5222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5223 esac
5224 fi
5225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5226 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5228 CFLAGS="$xorg_testset_save_CFLAGS"
5229 fi
5230
5231 found="no"
5232
5233 if test $found = "no" ; then
5234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5236 fi
5237
5238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5240 fi
5241
5242 CFLAGS="$CFLAGS -Wmissing-declarations"
5243
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5245 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5246 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5247 if eval test \${$cacheid+y}
5248 then :
5249 printf %s "(cached) " >&6
5250 else case e in #(
5251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 int i;
5254 int
5255 main (void)
5256 {
5257
5258 ;
5259 return 0;
5260 }
5261 _ACEOF
5262 if ac_fn_c_try_link "$LINENO"
5263 then :
5264 eval $cacheid=yes
5265 else case e in #(
5266 e) eval $cacheid=no ;;
5267 esac
5268 fi
5269 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5270 conftest$ac_exeext conftest.$ac_ext ;;
5271 esac
5272 fi
5273
5274
5275 CFLAGS="$xorg_testset_save_CFLAGS"
5276
5277 eval supported=\$$cacheid
5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5279 printf "%s\n" "$supported" >&6; }
5280 if test "$supported" = "yes" ; then
5281 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5282 found="yes"
5283 fi
5284 fi
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300 xorg_testset_save_CFLAGS="$CFLAGS"
5301
5302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5305 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5306 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5307 then :
5308 printf %s "(cached) " >&6
5309 else case e in #(
5310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5312 int i;
5313 _ACEOF
5314 if ac_fn_c_try_compile "$LINENO"
5315 then :
5316 xorg_cv_cc_flag_unknown_warning_option=yes
5317 else case e in #(
5318 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5319 esac
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5322 esac
5323 fi
5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5325 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5327 CFLAGS="$xorg_testset_save_CFLAGS"
5328 fi
5329
5330 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5333 fi
5334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5336 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5337 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5338 then :
5339 printf %s "(cached) " >&6
5340 else case e in #(
5341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 int i;
5344 _ACEOF
5345 if ac_fn_c_try_compile "$LINENO"
5346 then :
5347 xorg_cv_cc_flag_unused_command_line_argument=yes
5348 else case e in #(
5349 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5350 esac
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5353 esac
5354 fi
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5356 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5358 CFLAGS="$xorg_testset_save_CFLAGS"
5359 fi
5360
5361 found="no"
5362
5363 if test $found = "no" ; then
5364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5366 fi
5367
5368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5370 fi
5371
5372 CFLAGS="$CFLAGS -Wformat=2"
5373
5374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5375 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5376 cacheid=xorg_cv_cc_flag__Wformat_2
5377 if eval test \${$cacheid+y}
5378 then :
5379 printf %s "(cached) " >&6
5380 else case e in #(
5381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383 int i;
5384 int
5385 main (void)
5386 {
5387
5388 ;
5389 return 0;
5390 }
5391 _ACEOF
5392 if ac_fn_c_try_link "$LINENO"
5393 then :
5394 eval $cacheid=yes
5395 else case e in #(
5396 e) eval $cacheid=no ;;
5397 esac
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5400 conftest$ac_exeext conftest.$ac_ext ;;
5401 esac
5402 fi
5403
5404
5405 CFLAGS="$xorg_testset_save_CFLAGS"
5406
5407 eval supported=\$$cacheid
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5409 printf "%s\n" "$supported" >&6; }
5410 if test "$supported" = "yes" ; then
5411 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5412 found="yes"
5413 fi
5414 fi
5415
5416 if test $found = "no" ; then
5417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5419 fi
5420
5421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5423 fi
5424
5425 CFLAGS="$CFLAGS -Wformat"
5426
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5428 printf %s "checking if $CC supports -Wformat... " >&6; }
5429 cacheid=xorg_cv_cc_flag__Wformat
5430 if eval test \${$cacheid+y}
5431 then :
5432 printf %s "(cached) " >&6
5433 else case e in #(
5434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 int i;
5437 int
5438 main (void)
5439 {
5440
5441 ;
5442 return 0;
5443 }
5444 _ACEOF
5445 if ac_fn_c_try_link "$LINENO"
5446 then :
5447 eval $cacheid=yes
5448 else case e in #(
5449 e) eval $cacheid=no ;;
5450 esac
5451 fi
5452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5453 conftest$ac_exeext conftest.$ac_ext ;;
5454 esac
5455 fi
5456
5457
5458 CFLAGS="$xorg_testset_save_CFLAGS"
5459
5460 eval supported=\$$cacheid
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5462 printf "%s\n" "$supported" >&6; }
5463 if test "$supported" = "yes" ; then
5464 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5465 found="yes"
5466 fi
5467 fi
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485 xorg_testset_save_CFLAGS="$CFLAGS"
5486
5487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5490 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5491 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5492 then :
5493 printf %s "(cached) " >&6
5494 else case e in #(
5495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5497 int i;
5498 _ACEOF
5499 if ac_fn_c_try_compile "$LINENO"
5500 then :
5501 xorg_cv_cc_flag_unknown_warning_option=yes
5502 else case e in #(
5503 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5504 esac
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5507 esac
5508 fi
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5510 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5512 CFLAGS="$xorg_testset_save_CFLAGS"
5513 fi
5514
5515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5518 fi
5519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5521 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5522 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5523 then :
5524 printf %s "(cached) " >&6
5525 else case e in #(
5526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 int i;
5529 _ACEOF
5530 if ac_fn_c_try_compile "$LINENO"
5531 then :
5532 xorg_cv_cc_flag_unused_command_line_argument=yes
5533 else case e in #(
5534 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5535 esac
5536 fi
5537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5538 esac
5539 fi
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5541 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5543 CFLAGS="$xorg_testset_save_CFLAGS"
5544 fi
5545
5546 found="no"
5547
5548 if test $found = "no" ; then
5549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5551 fi
5552
5553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5555 fi
5556
5557 CFLAGS="$CFLAGS -Wstrict-prototypes"
5558
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5560 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5561 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5562 if eval test \${$cacheid+y}
5563 then :
5564 printf %s "(cached) " >&6
5565 else case e in #(
5566 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 int i;
5569 int
5570 main (void)
5571 {
5572
5573 ;
5574 return 0;
5575 }
5576 _ACEOF
5577 if ac_fn_c_try_link "$LINENO"
5578 then :
5579 eval $cacheid=yes
5580 else case e in #(
5581 e) eval $cacheid=no ;;
5582 esac
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5585 conftest$ac_exeext conftest.$ac_ext ;;
5586 esac
5587 fi
5588
5589
5590 CFLAGS="$xorg_testset_save_CFLAGS"
5591
5592 eval supported=\$$cacheid
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5594 printf "%s\n" "$supported" >&6; }
5595 if test "$supported" = "yes" ; then
5596 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5597 found="yes"
5598 fi
5599 fi
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615 xorg_testset_save_CFLAGS="$CFLAGS"
5616
5617 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5620 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5621 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5622 then :
5623 printf %s "(cached) " >&6
5624 else case e in #(
5625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 int i;
5628 _ACEOF
5629 if ac_fn_c_try_compile "$LINENO"
5630 then :
5631 xorg_cv_cc_flag_unknown_warning_option=yes
5632 else case e in #(
5633 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5634 esac
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5637 esac
5638 fi
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5640 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5642 CFLAGS="$xorg_testset_save_CFLAGS"
5643 fi
5644
5645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5648 fi
5649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5651 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5652 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5653 then :
5654 printf %s "(cached) " >&6
5655 else case e in #(
5656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 int i;
5659 _ACEOF
5660 if ac_fn_c_try_compile "$LINENO"
5661 then :
5662 xorg_cv_cc_flag_unused_command_line_argument=yes
5663 else case e in #(
5664 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5665 esac
5666 fi
5667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5668 esac
5669 fi
5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5671 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5673 CFLAGS="$xorg_testset_save_CFLAGS"
5674 fi
5675
5676 found="no"
5677
5678 if test $found = "no" ; then
5679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681 fi
5682
5683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5685 fi
5686
5687 CFLAGS="$CFLAGS -Wmissing-prototypes"
5688
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5690 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5691 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5692 if eval test \${$cacheid+y}
5693 then :
5694 printf %s "(cached) " >&6
5695 else case e in #(
5696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 int i;
5699 int
5700 main (void)
5701 {
5702
5703 ;
5704 return 0;
5705 }
5706 _ACEOF
5707 if ac_fn_c_try_link "$LINENO"
5708 then :
5709 eval $cacheid=yes
5710 else case e in #(
5711 e) eval $cacheid=no ;;
5712 esac
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5715 conftest$ac_exeext conftest.$ac_ext ;;
5716 esac
5717 fi
5718
5719
5720 CFLAGS="$xorg_testset_save_CFLAGS"
5721
5722 eval supported=\$$cacheid
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5724 printf "%s\n" "$supported" >&6; }
5725 if test "$supported" = "yes" ; then
5726 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5727 found="yes"
5728 fi
5729 fi
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 xorg_testset_save_CFLAGS="$CFLAGS"
5746
5747 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5750 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5751 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5752 then :
5753 printf %s "(cached) " >&6
5754 else case e in #(
5755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5757 int i;
5758 _ACEOF
5759 if ac_fn_c_try_compile "$LINENO"
5760 then :
5761 xorg_cv_cc_flag_unknown_warning_option=yes
5762 else case e in #(
5763 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5764 esac
5765 fi
5766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5767 esac
5768 fi
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5770 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5772 CFLAGS="$xorg_testset_save_CFLAGS"
5773 fi
5774
5775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5778 fi
5779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5781 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5782 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5783 then :
5784 printf %s "(cached) " >&6
5785 else case e in #(
5786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 int i;
5789 _ACEOF
5790 if ac_fn_c_try_compile "$LINENO"
5791 then :
5792 xorg_cv_cc_flag_unused_command_line_argument=yes
5793 else case e in #(
5794 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5795 esac
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5798 esac
5799 fi
5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5801 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5803 CFLAGS="$xorg_testset_save_CFLAGS"
5804 fi
5805
5806 found="no"
5807
5808 if test $found = "no" ; then
5809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5811 fi
5812
5813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5815 fi
5816
5817 CFLAGS="$CFLAGS -Wnested-externs"
5818
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5820 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5821 cacheid=xorg_cv_cc_flag__Wnested_externs
5822 if eval test \${$cacheid+y}
5823 then :
5824 printf %s "(cached) " >&6
5825 else case e in #(
5826 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 /* end confdefs.h. */
5828 int i;
5829 int
5830 main (void)
5831 {
5832
5833 ;
5834 return 0;
5835 }
5836 _ACEOF
5837 if ac_fn_c_try_link "$LINENO"
5838 then :
5839 eval $cacheid=yes
5840 else case e in #(
5841 e) eval $cacheid=no ;;
5842 esac
5843 fi
5844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5845 conftest$ac_exeext conftest.$ac_ext ;;
5846 esac
5847 fi
5848
5849
5850 CFLAGS="$xorg_testset_save_CFLAGS"
5851
5852 eval supported=\$$cacheid
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5854 printf "%s\n" "$supported" >&6; }
5855 if test "$supported" = "yes" ; then
5856 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5857 found="yes"
5858 fi
5859 fi
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875 xorg_testset_save_CFLAGS="$CFLAGS"
5876
5877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5880 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5881 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5882 then :
5883 printf %s "(cached) " >&6
5884 else case e in #(
5885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5887 int i;
5888 _ACEOF
5889 if ac_fn_c_try_compile "$LINENO"
5890 then :
5891 xorg_cv_cc_flag_unknown_warning_option=yes
5892 else case e in #(
5893 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5894 esac
5895 fi
5896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5897 esac
5898 fi
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5900 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5901 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5902 CFLAGS="$xorg_testset_save_CFLAGS"
5903 fi
5904
5905 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5908 fi
5909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5911 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5912 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5913 then :
5914 printf %s "(cached) " >&6
5915 else case e in #(
5916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918 int i;
5919 _ACEOF
5920 if ac_fn_c_try_compile "$LINENO"
5921 then :
5922 xorg_cv_cc_flag_unused_command_line_argument=yes
5923 else case e in #(
5924 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5925 esac
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5928 esac
5929 fi
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5931 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5932 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5933 CFLAGS="$xorg_testset_save_CFLAGS"
5934 fi
5935
5936 found="no"
5937
5938 if test $found = "no" ; then
5939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5941 fi
5942
5943 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5945 fi
5946
5947 CFLAGS="$CFLAGS -Wbad-function-cast"
5948
5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5950 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5951 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5952 if eval test \${$cacheid+y}
5953 then :
5954 printf %s "(cached) " >&6
5955 else case e in #(
5956 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5958 int i;
5959 int
5960 main (void)
5961 {
5962
5963 ;
5964 return 0;
5965 }
5966 _ACEOF
5967 if ac_fn_c_try_link "$LINENO"
5968 then :
5969 eval $cacheid=yes
5970 else case e in #(
5971 e) eval $cacheid=no ;;
5972 esac
5973 fi
5974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5975 conftest$ac_exeext conftest.$ac_ext ;;
5976 esac
5977 fi
5978
5979
5980 CFLAGS="$xorg_testset_save_CFLAGS"
5981
5982 eval supported=\$$cacheid
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5984 printf "%s\n" "$supported" >&6; }
5985 if test "$supported" = "yes" ; then
5986 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5987 found="yes"
5988 fi
5989 fi
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005 xorg_testset_save_CFLAGS="$CFLAGS"
6006
6007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6011 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6012 then :
6013 printf %s "(cached) " >&6
6014 else case e in #(
6015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6017 int i;
6018 _ACEOF
6019 if ac_fn_c_try_compile "$LINENO"
6020 then :
6021 xorg_cv_cc_flag_unknown_warning_option=yes
6022 else case e in #(
6023 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6024 esac
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6027 esac
6028 fi
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6030 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6032 CFLAGS="$xorg_testset_save_CFLAGS"
6033 fi
6034
6035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6038 fi
6039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6041 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6042 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6043 then :
6044 printf %s "(cached) " >&6
6045 else case e in #(
6046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048 int i;
6049 _ACEOF
6050 if ac_fn_c_try_compile "$LINENO"
6051 then :
6052 xorg_cv_cc_flag_unused_command_line_argument=yes
6053 else case e in #(
6054 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6055 esac
6056 fi
6057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6058 esac
6059 fi
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6061 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6063 CFLAGS="$xorg_testset_save_CFLAGS"
6064 fi
6065
6066 found="no"
6067
6068 if test $found = "no" ; then
6069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6071 fi
6072
6073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6075 fi
6076
6077 CFLAGS="$CFLAGS -Wold-style-definition"
6078
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6080 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6081 cacheid=xorg_cv_cc_flag__Wold_style_definition
6082 if eval test \${$cacheid+y}
6083 then :
6084 printf %s "(cached) " >&6
6085 else case e in #(
6086 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 int i;
6089 int
6090 main (void)
6091 {
6092
6093 ;
6094 return 0;
6095 }
6096 _ACEOF
6097 if ac_fn_c_try_link "$LINENO"
6098 then :
6099 eval $cacheid=yes
6100 else case e in #(
6101 e) eval $cacheid=no ;;
6102 esac
6103 fi
6104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6105 conftest$ac_exeext conftest.$ac_ext ;;
6106 esac
6107 fi
6108
6109
6110 CFLAGS="$xorg_testset_save_CFLAGS"
6111
6112 eval supported=\$$cacheid
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6114 printf "%s\n" "$supported" >&6; }
6115 if test "$supported" = "yes" ; then
6116 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6117 found="yes"
6118 fi
6119 fi
6120
6121 if test $found = "no" ; then
6122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124 fi
6125
6126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6128 fi
6129
6130 CFLAGS="$CFLAGS -fd"
6131
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6133 printf %s "checking if $CC supports -fd... " >&6; }
6134 cacheid=xorg_cv_cc_flag__fd
6135 if eval test \${$cacheid+y}
6136 then :
6137 printf %s "(cached) " >&6
6138 else case e in #(
6139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h. */
6141 int i;
6142 int
6143 main (void)
6144 {
6145
6146 ;
6147 return 0;
6148 }
6149 _ACEOF
6150 if ac_fn_c_try_link "$LINENO"
6151 then :
6152 eval $cacheid=yes
6153 else case e in #(
6154 e) eval $cacheid=no ;;
6155 esac
6156 fi
6157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6158 conftest$ac_exeext conftest.$ac_ext ;;
6159 esac
6160 fi
6161
6162
6163 CFLAGS="$xorg_testset_save_CFLAGS"
6164
6165 eval supported=\$$cacheid
6166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6167 printf "%s\n" "$supported" >&6; }
6168 if test "$supported" = "yes" ; then
6169 BASE_CFLAGS="$BASE_CFLAGS -fd"
6170 found="yes"
6171 fi
6172 fi
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188 xorg_testset_save_CFLAGS="$CFLAGS"
6189
6190 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6193 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6194 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6195 then :
6196 printf %s "(cached) " >&6
6197 else case e in #(
6198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6200 int i;
6201 _ACEOF
6202 if ac_fn_c_try_compile "$LINENO"
6203 then :
6204 xorg_cv_cc_flag_unknown_warning_option=yes
6205 else case e in #(
6206 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6207 esac
6208 fi
6209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6210 esac
6211 fi
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6213 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6215 CFLAGS="$xorg_testset_save_CFLAGS"
6216 fi
6217
6218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6221 fi
6222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6224 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6225 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6226 then :
6227 printf %s "(cached) " >&6
6228 else case e in #(
6229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6231 int i;
6232 _ACEOF
6233 if ac_fn_c_try_compile "$LINENO"
6234 then :
6235 xorg_cv_cc_flag_unused_command_line_argument=yes
6236 else case e in #(
6237 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6238 esac
6239 fi
6240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6241 esac
6242 fi
6243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6244 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6246 CFLAGS="$xorg_testset_save_CFLAGS"
6247 fi
6248
6249 found="no"
6250
6251 if test $found = "no" ; then
6252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254 fi
6255
6256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6258 fi
6259
6260 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6261
6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6263 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6264 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6265 if eval test \${$cacheid+y}
6266 then :
6267 printf %s "(cached) " >&6
6268 else case e in #(
6269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 int i;
6272 int
6273 main (void)
6274 {
6275
6276 ;
6277 return 0;
6278 }
6279 _ACEOF
6280 if ac_fn_c_try_link "$LINENO"
6281 then :
6282 eval $cacheid=yes
6283 else case e in #(
6284 e) eval $cacheid=no ;;
6285 esac
6286 fi
6287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6288 conftest$ac_exeext conftest.$ac_ext ;;
6289 esac
6290 fi
6291
6292
6293 CFLAGS="$xorg_testset_save_CFLAGS"
6294
6295 eval supported=\$$cacheid
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6297 printf "%s\n" "$supported" >&6; }
6298 if test "$supported" = "yes" ; then
6299 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6300 found="yes"
6301 fi
6302 fi
6303
6304
6305
6306
6307
6308 # This chunk adds additional warnings that could catch undesired effects.
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322 xorg_testset_save_CFLAGS="$CFLAGS"
6323
6324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6327 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6328 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6329 then :
6330 printf %s "(cached) " >&6
6331 else case e in #(
6332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6334 int i;
6335 _ACEOF
6336 if ac_fn_c_try_compile "$LINENO"
6337 then :
6338 xorg_cv_cc_flag_unknown_warning_option=yes
6339 else case e in #(
6340 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6341 esac
6342 fi
6343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6344 esac
6345 fi
6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6347 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6349 CFLAGS="$xorg_testset_save_CFLAGS"
6350 fi
6351
6352 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6355 fi
6356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6358 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6359 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6360 then :
6361 printf %s "(cached) " >&6
6362 else case e in #(
6363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6365 int i;
6366 _ACEOF
6367 if ac_fn_c_try_compile "$LINENO"
6368 then :
6369 xorg_cv_cc_flag_unused_command_line_argument=yes
6370 else case e in #(
6371 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6372 esac
6373 fi
6374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6375 esac
6376 fi
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6378 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6380 CFLAGS="$xorg_testset_save_CFLAGS"
6381 fi
6382
6383 found="no"
6384
6385 if test $found = "no" ; then
6386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6388 fi
6389
6390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6392 fi
6393
6394 CFLAGS="$CFLAGS -Wunused"
6395
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6397 printf %s "checking if $CC supports -Wunused... " >&6; }
6398 cacheid=xorg_cv_cc_flag__Wunused
6399 if eval test \${$cacheid+y}
6400 then :
6401 printf %s "(cached) " >&6
6402 else case e in #(
6403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6405 int i;
6406 int
6407 main (void)
6408 {
6409
6410 ;
6411 return 0;
6412 }
6413 _ACEOF
6414 if ac_fn_c_try_link "$LINENO"
6415 then :
6416 eval $cacheid=yes
6417 else case e in #(
6418 e) eval $cacheid=no ;;
6419 esac
6420 fi
6421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6422 conftest$ac_exeext conftest.$ac_ext ;;
6423 esac
6424 fi
6425
6426
6427 CFLAGS="$xorg_testset_save_CFLAGS"
6428
6429 eval supported=\$$cacheid
6430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6431 printf "%s\n" "$supported" >&6; }
6432 if test "$supported" = "yes" ; then
6433 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6434 found="yes"
6435 fi
6436 fi
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452 xorg_testset_save_CFLAGS="$CFLAGS"
6453
6454 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6457 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6458 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6459 then :
6460 printf %s "(cached) " >&6
6461 else case e in #(
6462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 int i;
6465 _ACEOF
6466 if ac_fn_c_try_compile "$LINENO"
6467 then :
6468 xorg_cv_cc_flag_unknown_warning_option=yes
6469 else case e in #(
6470 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6471 esac
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6474 esac
6475 fi
6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6477 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6479 CFLAGS="$xorg_testset_save_CFLAGS"
6480 fi
6481
6482 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485 fi
6486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6488 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6489 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6490 then :
6491 printf %s "(cached) " >&6
6492 else case e in #(
6493 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495 int i;
6496 _ACEOF
6497 if ac_fn_c_try_compile "$LINENO"
6498 then :
6499 xorg_cv_cc_flag_unused_command_line_argument=yes
6500 else case e in #(
6501 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6502 esac
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6505 esac
6506 fi
6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6508 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6510 CFLAGS="$xorg_testset_save_CFLAGS"
6511 fi
6512
6513 found="no"
6514
6515 if test $found = "no" ; then
6516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6518 fi
6519
6520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6522 fi
6523
6524 CFLAGS="$CFLAGS -Wuninitialized"
6525
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6527 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6528 cacheid=xorg_cv_cc_flag__Wuninitialized
6529 if eval test \${$cacheid+y}
6530 then :
6531 printf %s "(cached) " >&6
6532 else case e in #(
6533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535 int i;
6536 int
6537 main (void)
6538 {
6539
6540 ;
6541 return 0;
6542 }
6543 _ACEOF
6544 if ac_fn_c_try_link "$LINENO"
6545 then :
6546 eval $cacheid=yes
6547 else case e in #(
6548 e) eval $cacheid=no ;;
6549 esac
6550 fi
6551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6552 conftest$ac_exeext conftest.$ac_ext ;;
6553 esac
6554 fi
6555
6556
6557 CFLAGS="$xorg_testset_save_CFLAGS"
6558
6559 eval supported=\$$cacheid
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6561 printf "%s\n" "$supported" >&6; }
6562 if test "$supported" = "yes" ; then
6563 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6564 found="yes"
6565 fi
6566 fi
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582 xorg_testset_save_CFLAGS="$CFLAGS"
6583
6584 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6587 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6588 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6589 then :
6590 printf %s "(cached) " >&6
6591 else case e in #(
6592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6594 int i;
6595 _ACEOF
6596 if ac_fn_c_try_compile "$LINENO"
6597 then :
6598 xorg_cv_cc_flag_unknown_warning_option=yes
6599 else case e in #(
6600 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6601 esac
6602 fi
6603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6604 esac
6605 fi
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6607 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6609 CFLAGS="$xorg_testset_save_CFLAGS"
6610 fi
6611
6612 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6615 fi
6616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6618 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6619 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6620 then :
6621 printf %s "(cached) " >&6
6622 else case e in #(
6623 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 int i;
6626 _ACEOF
6627 if ac_fn_c_try_compile "$LINENO"
6628 then :
6629 xorg_cv_cc_flag_unused_command_line_argument=yes
6630 else case e in #(
6631 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6632 esac
6633 fi
6634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6635 esac
6636 fi
6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6638 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6639 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6640 CFLAGS="$xorg_testset_save_CFLAGS"
6641 fi
6642
6643 found="no"
6644
6645 if test $found = "no" ; then
6646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6648 fi
6649
6650 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6652 fi
6653
6654 CFLAGS="$CFLAGS -Wshadow"
6655
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6657 printf %s "checking if $CC supports -Wshadow... " >&6; }
6658 cacheid=xorg_cv_cc_flag__Wshadow
6659 if eval test \${$cacheid+y}
6660 then :
6661 printf %s "(cached) " >&6
6662 else case e in #(
6663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665 int i;
6666 int
6667 main (void)
6668 {
6669
6670 ;
6671 return 0;
6672 }
6673 _ACEOF
6674 if ac_fn_c_try_link "$LINENO"
6675 then :
6676 eval $cacheid=yes
6677 else case e in #(
6678 e) eval $cacheid=no ;;
6679 esac
6680 fi
6681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6682 conftest$ac_exeext conftest.$ac_ext ;;
6683 esac
6684 fi
6685
6686
6687 CFLAGS="$xorg_testset_save_CFLAGS"
6688
6689 eval supported=\$$cacheid
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6691 printf "%s\n" "$supported" >&6; }
6692 if test "$supported" = "yes" ; then
6693 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6694 found="yes"
6695 fi
6696 fi
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712 xorg_testset_save_CFLAGS="$CFLAGS"
6713
6714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6717 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6718 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6719 then :
6720 printf %s "(cached) " >&6
6721 else case e in #(
6722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6724 int i;
6725 _ACEOF
6726 if ac_fn_c_try_compile "$LINENO"
6727 then :
6728 xorg_cv_cc_flag_unknown_warning_option=yes
6729 else case e in #(
6730 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6731 esac
6732 fi
6733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6734 esac
6735 fi
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6737 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6739 CFLAGS="$xorg_testset_save_CFLAGS"
6740 fi
6741
6742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745 fi
6746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6748 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6749 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6750 then :
6751 printf %s "(cached) " >&6
6752 else case e in #(
6753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 int i;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"
6758 then :
6759 xorg_cv_cc_flag_unused_command_line_argument=yes
6760 else case e in #(
6761 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6762 esac
6763 fi
6764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6765 esac
6766 fi
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6768 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6770 CFLAGS="$xorg_testset_save_CFLAGS"
6771 fi
6772
6773 found="no"
6774
6775 if test $found = "no" ; then
6776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6778 fi
6779
6780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782 fi
6783
6784 CFLAGS="$CFLAGS -Wmissing-noreturn"
6785
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6787 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6788 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6789 if eval test \${$cacheid+y}
6790 then :
6791 printf %s "(cached) " >&6
6792 else case e in #(
6793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795 int i;
6796 int
6797 main (void)
6798 {
6799
6800 ;
6801 return 0;
6802 }
6803 _ACEOF
6804 if ac_fn_c_try_link "$LINENO"
6805 then :
6806 eval $cacheid=yes
6807 else case e in #(
6808 e) eval $cacheid=no ;;
6809 esac
6810 fi
6811 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6812 conftest$ac_exeext conftest.$ac_ext ;;
6813 esac
6814 fi
6815
6816
6817 CFLAGS="$xorg_testset_save_CFLAGS"
6818
6819 eval supported=\$$cacheid
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6821 printf "%s\n" "$supported" >&6; }
6822 if test "$supported" = "yes" ; then
6823 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6824 found="yes"
6825 fi
6826 fi
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842 xorg_testset_save_CFLAGS="$CFLAGS"
6843
6844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6847 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6848 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6849 then :
6850 printf %s "(cached) " >&6
6851 else case e in #(
6852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 int i;
6855 _ACEOF
6856 if ac_fn_c_try_compile "$LINENO"
6857 then :
6858 xorg_cv_cc_flag_unknown_warning_option=yes
6859 else case e in #(
6860 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6861 esac
6862 fi
6863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6864 esac
6865 fi
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6867 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6869 CFLAGS="$xorg_testset_save_CFLAGS"
6870 fi
6871
6872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6875 fi
6876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6878 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6879 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6880 then :
6881 printf %s "(cached) " >&6
6882 else case e in #(
6883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885 int i;
6886 _ACEOF
6887 if ac_fn_c_try_compile "$LINENO"
6888 then :
6889 xorg_cv_cc_flag_unused_command_line_argument=yes
6890 else case e in #(
6891 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6892 esac
6893 fi
6894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6895 esac
6896 fi
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6898 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6900 CFLAGS="$xorg_testset_save_CFLAGS"
6901 fi
6902
6903 found="no"
6904
6905 if test $found = "no" ; then
6906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6908 fi
6909
6910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6912 fi
6913
6914 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6915
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6917 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6918 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6919 if eval test \${$cacheid+y}
6920 then :
6921 printf %s "(cached) " >&6
6922 else case e in #(
6923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6925 int i;
6926 int
6927 main (void)
6928 {
6929
6930 ;
6931 return 0;
6932 }
6933 _ACEOF
6934 if ac_fn_c_try_link "$LINENO"
6935 then :
6936 eval $cacheid=yes
6937 else case e in #(
6938 e) eval $cacheid=no ;;
6939 esac
6940 fi
6941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6942 conftest$ac_exeext conftest.$ac_ext ;;
6943 esac
6944 fi
6945
6946
6947 CFLAGS="$xorg_testset_save_CFLAGS"
6948
6949 eval supported=\$$cacheid
6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6951 printf "%s\n" "$supported" >&6; }
6952 if test "$supported" = "yes" ; then
6953 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6954 found="yes"
6955 fi
6956 fi
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972 xorg_testset_save_CFLAGS="$CFLAGS"
6973
6974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6977 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6978 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6979 then :
6980 printf %s "(cached) " >&6
6981 else case e in #(
6982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6984 int i;
6985 _ACEOF
6986 if ac_fn_c_try_compile "$LINENO"
6987 then :
6988 xorg_cv_cc_flag_unknown_warning_option=yes
6989 else case e in #(
6990 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6991 esac
6992 fi
6993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6994 esac
6995 fi
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6999 CFLAGS="$xorg_testset_save_CFLAGS"
7000 fi
7001
7002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7005 fi
7006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7009 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7010 then :
7011 printf %s "(cached) " >&6
7012 else case e in #(
7013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7015 int i;
7016 _ACEOF
7017 if ac_fn_c_try_compile "$LINENO"
7018 then :
7019 xorg_cv_cc_flag_unused_command_line_argument=yes
7020 else case e in #(
7021 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7022 esac
7023 fi
7024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7025 esac
7026 fi
7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7028 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7030 CFLAGS="$xorg_testset_save_CFLAGS"
7031 fi
7032
7033 found="no"
7034
7035 if test $found = "no" ; then
7036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7038 fi
7039
7040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7042 fi
7043
7044 CFLAGS="$CFLAGS -Wredundant-decls"
7045
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7047 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7048 cacheid=xorg_cv_cc_flag__Wredundant_decls
7049 if eval test \${$cacheid+y}
7050 then :
7051 printf %s "(cached) " >&6
7052 else case e in #(
7053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7055 int i;
7056 int
7057 main (void)
7058 {
7059
7060 ;
7061 return 0;
7062 }
7063 _ACEOF
7064 if ac_fn_c_try_link "$LINENO"
7065 then :
7066 eval $cacheid=yes
7067 else case e in #(
7068 e) eval $cacheid=no ;;
7069 esac
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7072 conftest$ac_exeext conftest.$ac_ext ;;
7073 esac
7074 fi
7075
7076
7077 CFLAGS="$xorg_testset_save_CFLAGS"
7078
7079 eval supported=\$$cacheid
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7081 printf "%s\n" "$supported" >&6; }
7082 if test "$supported" = "yes" ; then
7083 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7084 found="yes"
7085 fi
7086 fi
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102 xorg_testset_save_CFLAGS="$CFLAGS"
7103
7104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7107 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7108 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7109 then :
7110 printf %s "(cached) " >&6
7111 else case e in #(
7112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114 int i;
7115 _ACEOF
7116 if ac_fn_c_try_compile "$LINENO"
7117 then :
7118 xorg_cv_cc_flag_unknown_warning_option=yes
7119 else case e in #(
7120 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7121 esac
7122 fi
7123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7124 esac
7125 fi
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7127 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7129 CFLAGS="$xorg_testset_save_CFLAGS"
7130 fi
7131
7132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7135 fi
7136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7138 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7139 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7140 then :
7141 printf %s "(cached) " >&6
7142 else case e in #(
7143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145 int i;
7146 _ACEOF
7147 if ac_fn_c_try_compile "$LINENO"
7148 then :
7149 xorg_cv_cc_flag_unused_command_line_argument=yes
7150 else case e in #(
7151 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7152 esac
7153 fi
7154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7155 esac
7156 fi
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7158 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7160 CFLAGS="$xorg_testset_save_CFLAGS"
7161 fi
7162
7163 found="no"
7164
7165 if test $found = "no" ; then
7166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168 fi
7169
7170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7172 fi
7173
7174 CFLAGS="$CFLAGS -Wlogical-op"
7175
7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7177 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7178 cacheid=xorg_cv_cc_flag__Wlogical_op
7179 if eval test \${$cacheid+y}
7180 then :
7181 printf %s "(cached) " >&6
7182 else case e in #(
7183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7185 int i;
7186 int
7187 main (void)
7188 {
7189
7190 ;
7191 return 0;
7192 }
7193 _ACEOF
7194 if ac_fn_c_try_link "$LINENO"
7195 then :
7196 eval $cacheid=yes
7197 else case e in #(
7198 e) eval $cacheid=no ;;
7199 esac
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7202 conftest$ac_exeext conftest.$ac_ext ;;
7203 esac
7204 fi
7205
7206
7207 CFLAGS="$xorg_testset_save_CFLAGS"
7208
7209 eval supported=\$$cacheid
7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7211 printf "%s\n" "$supported" >&6; }
7212 if test "$supported" = "yes" ; then
7213 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7214 found="yes"
7215 fi
7216 fi
7217
7218
7219
7220 # These are currently disabled because they are noisy. They will be enabled
7221 # in the future once the codebase is sufficiently modernized to silence
7222 # them. For now, I don't want them to drown out the other warnings.
7223 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7224 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7225 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7226
7227 # Turn some warnings into errors, so we don't accidentally get successful builds
7228 # when there are problems that should be fixed.
7229
7230 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244 xorg_testset_save_CFLAGS="$CFLAGS"
7245
7246 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7249 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7250 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7251 then :
7252 printf %s "(cached) " >&6
7253 else case e in #(
7254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256 int i;
7257 _ACEOF
7258 if ac_fn_c_try_compile "$LINENO"
7259 then :
7260 xorg_cv_cc_flag_unknown_warning_option=yes
7261 else case e in #(
7262 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7263 esac
7264 fi
7265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7266 esac
7267 fi
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7269 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7271 CFLAGS="$xorg_testset_save_CFLAGS"
7272 fi
7273
7274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7277 fi
7278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7280 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7281 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7282 then :
7283 printf %s "(cached) " >&6
7284 else case e in #(
7285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7287 int i;
7288 _ACEOF
7289 if ac_fn_c_try_compile "$LINENO"
7290 then :
7291 xorg_cv_cc_flag_unused_command_line_argument=yes
7292 else case e in #(
7293 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7294 esac
7295 fi
7296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7297 esac
7298 fi
7299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7300 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7302 CFLAGS="$xorg_testset_save_CFLAGS"
7303 fi
7304
7305 found="no"
7306
7307 if test $found = "no" ; then
7308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7310 fi
7311
7312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7314 fi
7315
7316 CFLAGS="$CFLAGS -Werror=implicit"
7317
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7319 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7320 cacheid=xorg_cv_cc_flag__Werror_implicit
7321 if eval test \${$cacheid+y}
7322 then :
7323 printf %s "(cached) " >&6
7324 else case e in #(
7325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7327 int i;
7328 int
7329 main (void)
7330 {
7331
7332 ;
7333 return 0;
7334 }
7335 _ACEOF
7336 if ac_fn_c_try_link "$LINENO"
7337 then :
7338 eval $cacheid=yes
7339 else case e in #(
7340 e) eval $cacheid=no ;;
7341 esac
7342 fi
7343 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7344 conftest$ac_exeext conftest.$ac_ext ;;
7345 esac
7346 fi
7347
7348
7349 CFLAGS="$xorg_testset_save_CFLAGS"
7350
7351 eval supported=\$$cacheid
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7353 printf "%s\n" "$supported" >&6; }
7354 if test "$supported" = "yes" ; then
7355 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7356 found="yes"
7357 fi
7358 fi
7359
7360 if test $found = "no" ; then
7361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363 fi
7364
7365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7367 fi
7368
7369 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7370
7371 { 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
7372 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7373 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7374 if eval test \${$cacheid+y}
7375 then :
7376 printf %s "(cached) " >&6
7377 else case e in #(
7378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380 int i;
7381 int
7382 main (void)
7383 {
7384
7385 ;
7386 return 0;
7387 }
7388 _ACEOF
7389 if ac_fn_c_try_link "$LINENO"
7390 then :
7391 eval $cacheid=yes
7392 else case e in #(
7393 e) eval $cacheid=no ;;
7394 esac
7395 fi
7396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7397 conftest$ac_exeext conftest.$ac_ext ;;
7398 esac
7399 fi
7400
7401
7402 CFLAGS="$xorg_testset_save_CFLAGS"
7403
7404 eval supported=\$$cacheid
7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7406 printf "%s\n" "$supported" >&6; }
7407 if test "$supported" = "yes" ; then
7408 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7409 found="yes"
7410 fi
7411 fi
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427 xorg_testset_save_CFLAGS="$CFLAGS"
7428
7429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7432 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7433 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7434 then :
7435 printf %s "(cached) " >&6
7436 else case e in #(
7437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7439 int i;
7440 _ACEOF
7441 if ac_fn_c_try_compile "$LINENO"
7442 then :
7443 xorg_cv_cc_flag_unknown_warning_option=yes
7444 else case e in #(
7445 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7446 esac
7447 fi
7448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7449 esac
7450 fi
7451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7452 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7454 CFLAGS="$xorg_testset_save_CFLAGS"
7455 fi
7456
7457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7460 fi
7461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7463 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7464 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7465 then :
7466 printf %s "(cached) " >&6
7467 else case e in #(
7468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470 int i;
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"
7473 then :
7474 xorg_cv_cc_flag_unused_command_line_argument=yes
7475 else case e in #(
7476 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7477 esac
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7480 esac
7481 fi
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7483 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7485 CFLAGS="$xorg_testset_save_CFLAGS"
7486 fi
7487
7488 found="no"
7489
7490 if test $found = "no" ; then
7491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7493 fi
7494
7495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7497 fi
7498
7499 CFLAGS="$CFLAGS -Werror=nonnull"
7500
7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7502 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7503 cacheid=xorg_cv_cc_flag__Werror_nonnull
7504 if eval test \${$cacheid+y}
7505 then :
7506 printf %s "(cached) " >&6
7507 else case e in #(
7508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7510 int i;
7511 int
7512 main (void)
7513 {
7514
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 if ac_fn_c_try_link "$LINENO"
7520 then :
7521 eval $cacheid=yes
7522 else case e in #(
7523 e) eval $cacheid=no ;;
7524 esac
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7527 conftest$ac_exeext conftest.$ac_ext ;;
7528 esac
7529 fi
7530
7531
7532 CFLAGS="$xorg_testset_save_CFLAGS"
7533
7534 eval supported=\$$cacheid
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7536 printf "%s\n" "$supported" >&6; }
7537 if test "$supported" = "yes" ; then
7538 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7539 found="yes"
7540 fi
7541 fi
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557 xorg_testset_save_CFLAGS="$CFLAGS"
7558
7559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7562 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7563 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7564 then :
7565 printf %s "(cached) " >&6
7566 else case e in #(
7567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 int i;
7570 _ACEOF
7571 if ac_fn_c_try_compile "$LINENO"
7572 then :
7573 xorg_cv_cc_flag_unknown_warning_option=yes
7574 else case e in #(
7575 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7576 esac
7577 fi
7578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7579 esac
7580 fi
7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7582 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7584 CFLAGS="$xorg_testset_save_CFLAGS"
7585 fi
7586
7587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7590 fi
7591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7593 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7594 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7595 then :
7596 printf %s "(cached) " >&6
7597 else case e in #(
7598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 int i;
7601 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"
7603 then :
7604 xorg_cv_cc_flag_unused_command_line_argument=yes
7605 else case e in #(
7606 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7607 esac
7608 fi
7609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7610 esac
7611 fi
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7613 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7615 CFLAGS="$xorg_testset_save_CFLAGS"
7616 fi
7617
7618 found="no"
7619
7620 if test $found = "no" ; then
7621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7623 fi
7624
7625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7627 fi
7628
7629 CFLAGS="$CFLAGS -Werror=init-self"
7630
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7632 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7633 cacheid=xorg_cv_cc_flag__Werror_init_self
7634 if eval test \${$cacheid+y}
7635 then :
7636 printf %s "(cached) " >&6
7637 else case e in #(
7638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 int i;
7641 int
7642 main (void)
7643 {
7644
7645 ;
7646 return 0;
7647 }
7648 _ACEOF
7649 if ac_fn_c_try_link "$LINENO"
7650 then :
7651 eval $cacheid=yes
7652 else case e in #(
7653 e) eval $cacheid=no ;;
7654 esac
7655 fi
7656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7657 conftest$ac_exeext conftest.$ac_ext ;;
7658 esac
7659 fi
7660
7661
7662 CFLAGS="$xorg_testset_save_CFLAGS"
7663
7664 eval supported=\$$cacheid
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7666 printf "%s\n" "$supported" >&6; }
7667 if test "$supported" = "yes" ; then
7668 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7669 found="yes"
7670 fi
7671 fi
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687 xorg_testset_save_CFLAGS="$CFLAGS"
7688
7689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7692 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7693 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7694 then :
7695 printf %s "(cached) " >&6
7696 else case e in #(
7697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 int i;
7700 _ACEOF
7701 if ac_fn_c_try_compile "$LINENO"
7702 then :
7703 xorg_cv_cc_flag_unknown_warning_option=yes
7704 else case e in #(
7705 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7706 esac
7707 fi
7708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7709 esac
7710 fi
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7712 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7714 CFLAGS="$xorg_testset_save_CFLAGS"
7715 fi
7716
7717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7720 fi
7721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7723 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7724 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7725 then :
7726 printf %s "(cached) " >&6
7727 else case e in #(
7728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h. */
7730 int i;
7731 _ACEOF
7732 if ac_fn_c_try_compile "$LINENO"
7733 then :
7734 xorg_cv_cc_flag_unused_command_line_argument=yes
7735 else case e in #(
7736 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7737 esac
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7740 esac
7741 fi
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7743 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7745 CFLAGS="$xorg_testset_save_CFLAGS"
7746 fi
7747
7748 found="no"
7749
7750 if test $found = "no" ; then
7751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7753 fi
7754
7755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7757 fi
7758
7759 CFLAGS="$CFLAGS -Werror=main"
7760
7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7762 printf %s "checking if $CC supports -Werror=main... " >&6; }
7763 cacheid=xorg_cv_cc_flag__Werror_main
7764 if eval test \${$cacheid+y}
7765 then :
7766 printf %s "(cached) " >&6
7767 else case e in #(
7768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7770 int i;
7771 int
7772 main (void)
7773 {
7774
7775 ;
7776 return 0;
7777 }
7778 _ACEOF
7779 if ac_fn_c_try_link "$LINENO"
7780 then :
7781 eval $cacheid=yes
7782 else case e in #(
7783 e) eval $cacheid=no ;;
7784 esac
7785 fi
7786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7787 conftest$ac_exeext conftest.$ac_ext ;;
7788 esac
7789 fi
7790
7791
7792 CFLAGS="$xorg_testset_save_CFLAGS"
7793
7794 eval supported=\$$cacheid
7795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7796 printf "%s\n" "$supported" >&6; }
7797 if test "$supported" = "yes" ; then
7798 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7799 found="yes"
7800 fi
7801 fi
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817 xorg_testset_save_CFLAGS="$CFLAGS"
7818
7819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7820 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7822 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7823 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7824 then :
7825 printf %s "(cached) " >&6
7826 else case e in #(
7827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7829 int i;
7830 _ACEOF
7831 if ac_fn_c_try_compile "$LINENO"
7832 then :
7833 xorg_cv_cc_flag_unknown_warning_option=yes
7834 else case e in #(
7835 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7836 esac
7837 fi
7838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7839 esac
7840 fi
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7842 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7844 CFLAGS="$xorg_testset_save_CFLAGS"
7845 fi
7846
7847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7850 fi
7851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7853 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7854 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7855 then :
7856 printf %s "(cached) " >&6
7857 else case e in #(
7858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7860 int i;
7861 _ACEOF
7862 if ac_fn_c_try_compile "$LINENO"
7863 then :
7864 xorg_cv_cc_flag_unused_command_line_argument=yes
7865 else case e in #(
7866 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7867 esac
7868 fi
7869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7870 esac
7871 fi
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7873 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7875 CFLAGS="$xorg_testset_save_CFLAGS"
7876 fi
7877
7878 found="no"
7879
7880 if test $found = "no" ; then
7881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7883 fi
7884
7885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7887 fi
7888
7889 CFLAGS="$CFLAGS -Werror=missing-braces"
7890
7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7892 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7893 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7894 if eval test \${$cacheid+y}
7895 then :
7896 printf %s "(cached) " >&6
7897 else case e in #(
7898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 int i;
7901 int
7902 main (void)
7903 {
7904
7905 ;
7906 return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_link "$LINENO"
7910 then :
7911 eval $cacheid=yes
7912 else case e in #(
7913 e) eval $cacheid=no ;;
7914 esac
7915 fi
7916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7917 conftest$ac_exeext conftest.$ac_ext ;;
7918 esac
7919 fi
7920
7921
7922 CFLAGS="$xorg_testset_save_CFLAGS"
7923
7924 eval supported=\$$cacheid
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7926 printf "%s\n" "$supported" >&6; }
7927 if test "$supported" = "yes" ; then
7928 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7929 found="yes"
7930 fi
7931 fi
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 xorg_testset_save_CFLAGS="$CFLAGS"
7948
7949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7952 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7953 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7954 then :
7955 printf %s "(cached) " >&6
7956 else case e in #(
7957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 int i;
7960 _ACEOF
7961 if ac_fn_c_try_compile "$LINENO"
7962 then :
7963 xorg_cv_cc_flag_unknown_warning_option=yes
7964 else case e in #(
7965 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7966 esac
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7969 esac
7970 fi
7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7972 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7974 CFLAGS="$xorg_testset_save_CFLAGS"
7975 fi
7976
7977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7980 fi
7981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7983 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7984 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7985 then :
7986 printf %s "(cached) " >&6
7987 else case e in #(
7988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 int i;
7991 _ACEOF
7992 if ac_fn_c_try_compile "$LINENO"
7993 then :
7994 xorg_cv_cc_flag_unused_command_line_argument=yes
7995 else case e in #(
7996 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7997 esac
7998 fi
7999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8000 esac
8001 fi
8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8003 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8005 CFLAGS="$xorg_testset_save_CFLAGS"
8006 fi
8007
8008 found="no"
8009
8010 if test $found = "no" ; then
8011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8013 fi
8014
8015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8017 fi
8018
8019 CFLAGS="$CFLAGS -Werror=sequence-point"
8020
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8022 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8023 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8024 if eval test \${$cacheid+y}
8025 then :
8026 printf %s "(cached) " >&6
8027 else case e in #(
8028 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 int i;
8031 int
8032 main (void)
8033 {
8034
8035 ;
8036 return 0;
8037 }
8038 _ACEOF
8039 if ac_fn_c_try_link "$LINENO"
8040 then :
8041 eval $cacheid=yes
8042 else case e in #(
8043 e) eval $cacheid=no ;;
8044 esac
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8047 conftest$ac_exeext conftest.$ac_ext ;;
8048 esac
8049 fi
8050
8051
8052 CFLAGS="$xorg_testset_save_CFLAGS"
8053
8054 eval supported=\$$cacheid
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8056 printf "%s\n" "$supported" >&6; }
8057 if test "$supported" = "yes" ; then
8058 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8059 found="yes"
8060 fi
8061 fi
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077 xorg_testset_save_CFLAGS="$CFLAGS"
8078
8079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8082 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8083 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8084 then :
8085 printf %s "(cached) " >&6
8086 else case e in #(
8087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089 int i;
8090 _ACEOF
8091 if ac_fn_c_try_compile "$LINENO"
8092 then :
8093 xorg_cv_cc_flag_unknown_warning_option=yes
8094 else case e in #(
8095 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8096 esac
8097 fi
8098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8099 esac
8100 fi
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8102 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8104 CFLAGS="$xorg_testset_save_CFLAGS"
8105 fi
8106
8107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8110 fi
8111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8113 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8114 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8115 then :
8116 printf %s "(cached) " >&6
8117 else case e in #(
8118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 int i;
8121 _ACEOF
8122 if ac_fn_c_try_compile "$LINENO"
8123 then :
8124 xorg_cv_cc_flag_unused_command_line_argument=yes
8125 else case e in #(
8126 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8127 esac
8128 fi
8129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8130 esac
8131 fi
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8133 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8135 CFLAGS="$xorg_testset_save_CFLAGS"
8136 fi
8137
8138 found="no"
8139
8140 if test $found = "no" ; then
8141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8143 fi
8144
8145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8147 fi
8148
8149 CFLAGS="$CFLAGS -Werror=return-type"
8150
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8152 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8153 cacheid=xorg_cv_cc_flag__Werror_return_type
8154 if eval test \${$cacheid+y}
8155 then :
8156 printf %s "(cached) " >&6
8157 else case e in #(
8158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160 int i;
8161 int
8162 main (void)
8163 {
8164
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_link "$LINENO"
8170 then :
8171 eval $cacheid=yes
8172 else case e in #(
8173 e) eval $cacheid=no ;;
8174 esac
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8177 conftest$ac_exeext conftest.$ac_ext ;;
8178 esac
8179 fi
8180
8181
8182 CFLAGS="$xorg_testset_save_CFLAGS"
8183
8184 eval supported=\$$cacheid
8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186 printf "%s\n" "$supported" >&6; }
8187 if test "$supported" = "yes" ; then
8188 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8189 found="yes"
8190 fi
8191 fi
8192
8193 if test $found = "no" ; then
8194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196 fi
8197
8198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8200 fi
8201
8202 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8203
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8205 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8206 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8207 if eval test \${$cacheid+y}
8208 then :
8209 printf %s "(cached) " >&6
8210 else case e in #(
8211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h. */
8213 int i;
8214 int
8215 main (void)
8216 {
8217
8218 ;
8219 return 0;
8220 }
8221 _ACEOF
8222 if ac_fn_c_try_link "$LINENO"
8223 then :
8224 eval $cacheid=yes
8225 else case e in #(
8226 e) eval $cacheid=no ;;
8227 esac
8228 fi
8229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8230 conftest$ac_exeext conftest.$ac_ext ;;
8231 esac
8232 fi
8233
8234
8235 CFLAGS="$xorg_testset_save_CFLAGS"
8236
8237 eval supported=\$$cacheid
8238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8239 printf "%s\n" "$supported" >&6; }
8240 if test "$supported" = "yes" ; then
8241 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8242 found="yes"
8243 fi
8244 fi
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260 xorg_testset_save_CFLAGS="$CFLAGS"
8261
8262 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8265 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8266 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8267 then :
8268 printf %s "(cached) " >&6
8269 else case e in #(
8270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8272 int i;
8273 _ACEOF
8274 if ac_fn_c_try_compile "$LINENO"
8275 then :
8276 xorg_cv_cc_flag_unknown_warning_option=yes
8277 else case e in #(
8278 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8279 esac
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8282 esac
8283 fi
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8285 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8287 CFLAGS="$xorg_testset_save_CFLAGS"
8288 fi
8289
8290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293 fi
8294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8296 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8297 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8298 then :
8299 printf %s "(cached) " >&6
8300 else case e in #(
8301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303 int i;
8304 _ACEOF
8305 if ac_fn_c_try_compile "$LINENO"
8306 then :
8307 xorg_cv_cc_flag_unused_command_line_argument=yes
8308 else case e in #(
8309 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8310 esac
8311 fi
8312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8313 esac
8314 fi
8315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8316 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8318 CFLAGS="$xorg_testset_save_CFLAGS"
8319 fi
8320
8321 found="no"
8322
8323 if test $found = "no" ; then
8324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326 fi
8327
8328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8330 fi
8331
8332 CFLAGS="$CFLAGS -Werror=trigraphs"
8333
8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8335 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8336 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8337 if eval test \${$cacheid+y}
8338 then :
8339 printf %s "(cached) " >&6
8340 else case e in #(
8341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343 int i;
8344 int
8345 main (void)
8346 {
8347
8348 ;
8349 return 0;
8350 }
8351 _ACEOF
8352 if ac_fn_c_try_link "$LINENO"
8353 then :
8354 eval $cacheid=yes
8355 else case e in #(
8356 e) eval $cacheid=no ;;
8357 esac
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8360 conftest$ac_exeext conftest.$ac_ext ;;
8361 esac
8362 fi
8363
8364
8365 CFLAGS="$xorg_testset_save_CFLAGS"
8366
8367 eval supported=\$$cacheid
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8369 printf "%s\n" "$supported" >&6; }
8370 if test "$supported" = "yes" ; then
8371 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8372 found="yes"
8373 fi
8374 fi
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390 xorg_testset_save_CFLAGS="$CFLAGS"
8391
8392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8395 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8396 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8397 then :
8398 printf %s "(cached) " >&6
8399 else case e in #(
8400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402 int i;
8403 _ACEOF
8404 if ac_fn_c_try_compile "$LINENO"
8405 then :
8406 xorg_cv_cc_flag_unknown_warning_option=yes
8407 else case e in #(
8408 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8409 esac
8410 fi
8411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8412 esac
8413 fi
8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8415 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8417 CFLAGS="$xorg_testset_save_CFLAGS"
8418 fi
8419
8420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423 fi
8424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8426 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8427 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8428 then :
8429 printf %s "(cached) " >&6
8430 else case e in #(
8431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 int i;
8434 _ACEOF
8435 if ac_fn_c_try_compile "$LINENO"
8436 then :
8437 xorg_cv_cc_flag_unused_command_line_argument=yes
8438 else case e in #(
8439 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8440 esac
8441 fi
8442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8443 esac
8444 fi
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8446 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8448 CFLAGS="$xorg_testset_save_CFLAGS"
8449 fi
8450
8451 found="no"
8452
8453 if test $found = "no" ; then
8454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8456 fi
8457
8458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8460 fi
8461
8462 CFLAGS="$CFLAGS -Werror=array-bounds"
8463
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8465 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8466 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8467 if eval test \${$cacheid+y}
8468 then :
8469 printf %s "(cached) " >&6
8470 else case e in #(
8471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8473 int i;
8474 int
8475 main (void)
8476 {
8477
8478 ;
8479 return 0;
8480 }
8481 _ACEOF
8482 if ac_fn_c_try_link "$LINENO"
8483 then :
8484 eval $cacheid=yes
8485 else case e in #(
8486 e) eval $cacheid=no ;;
8487 esac
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8490 conftest$ac_exeext conftest.$ac_ext ;;
8491 esac
8492 fi
8493
8494
8495 CFLAGS="$xorg_testset_save_CFLAGS"
8496
8497 eval supported=\$$cacheid
8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8499 printf "%s\n" "$supported" >&6; }
8500 if test "$supported" = "yes" ; then
8501 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8502 found="yes"
8503 fi
8504 fi
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520 xorg_testset_save_CFLAGS="$CFLAGS"
8521
8522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8525 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8526 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8527 then :
8528 printf %s "(cached) " >&6
8529 else case e in #(
8530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8532 int i;
8533 _ACEOF
8534 if ac_fn_c_try_compile "$LINENO"
8535 then :
8536 xorg_cv_cc_flag_unknown_warning_option=yes
8537 else case e in #(
8538 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8539 esac
8540 fi
8541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8542 esac
8543 fi
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8545 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8547 CFLAGS="$xorg_testset_save_CFLAGS"
8548 fi
8549
8550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553 fi
8554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8556 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8557 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8558 then :
8559 printf %s "(cached) " >&6
8560 else case e in #(
8561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563 int i;
8564 _ACEOF
8565 if ac_fn_c_try_compile "$LINENO"
8566 then :
8567 xorg_cv_cc_flag_unused_command_line_argument=yes
8568 else case e in #(
8569 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8570 esac
8571 fi
8572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8573 esac
8574 fi
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8576 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8578 CFLAGS="$xorg_testset_save_CFLAGS"
8579 fi
8580
8581 found="no"
8582
8583 if test $found = "no" ; then
8584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8586 fi
8587
8588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8590 fi
8591
8592 CFLAGS="$CFLAGS -Werror=write-strings"
8593
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8595 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8596 cacheid=xorg_cv_cc_flag__Werror_write_strings
8597 if eval test \${$cacheid+y}
8598 then :
8599 printf %s "(cached) " >&6
8600 else case e in #(
8601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8603 int i;
8604 int
8605 main (void)
8606 {
8607
8608 ;
8609 return 0;
8610 }
8611 _ACEOF
8612 if ac_fn_c_try_link "$LINENO"
8613 then :
8614 eval $cacheid=yes
8615 else case e in #(
8616 e) eval $cacheid=no ;;
8617 esac
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8620 conftest$ac_exeext conftest.$ac_ext ;;
8621 esac
8622 fi
8623
8624
8625 CFLAGS="$xorg_testset_save_CFLAGS"
8626
8627 eval supported=\$$cacheid
8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8629 printf "%s\n" "$supported" >&6; }
8630 if test "$supported" = "yes" ; then
8631 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8632 found="yes"
8633 fi
8634 fi
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650 xorg_testset_save_CFLAGS="$CFLAGS"
8651
8652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8655 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8656 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8657 then :
8658 printf %s "(cached) " >&6
8659 else case e in #(
8660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 int i;
8663 _ACEOF
8664 if ac_fn_c_try_compile "$LINENO"
8665 then :
8666 xorg_cv_cc_flag_unknown_warning_option=yes
8667 else case e in #(
8668 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8669 esac
8670 fi
8671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8672 esac
8673 fi
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8675 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8677 CFLAGS="$xorg_testset_save_CFLAGS"
8678 fi
8679
8680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683 fi
8684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8686 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8687 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8688 then :
8689 printf %s "(cached) " >&6
8690 else case e in #(
8691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8693 int i;
8694 _ACEOF
8695 if ac_fn_c_try_compile "$LINENO"
8696 then :
8697 xorg_cv_cc_flag_unused_command_line_argument=yes
8698 else case e in #(
8699 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8700 esac
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8703 esac
8704 fi
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8706 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8708 CFLAGS="$xorg_testset_save_CFLAGS"
8709 fi
8710
8711 found="no"
8712
8713 if test $found = "no" ; then
8714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8716 fi
8717
8718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8720 fi
8721
8722 CFLAGS="$CFLAGS -Werror=address"
8723
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8725 printf %s "checking if $CC supports -Werror=address... " >&6; }
8726 cacheid=xorg_cv_cc_flag__Werror_address
8727 if eval test \${$cacheid+y}
8728 then :
8729 printf %s "(cached) " >&6
8730 else case e in #(
8731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8733 int i;
8734 int
8735 main (void)
8736 {
8737
8738 ;
8739 return 0;
8740 }
8741 _ACEOF
8742 if ac_fn_c_try_link "$LINENO"
8743 then :
8744 eval $cacheid=yes
8745 else case e in #(
8746 e) eval $cacheid=no ;;
8747 esac
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8750 conftest$ac_exeext conftest.$ac_ext ;;
8751 esac
8752 fi
8753
8754
8755 CFLAGS="$xorg_testset_save_CFLAGS"
8756
8757 eval supported=\$$cacheid
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8759 printf "%s\n" "$supported" >&6; }
8760 if test "$supported" = "yes" ; then
8761 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8762 found="yes"
8763 fi
8764 fi
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780 xorg_testset_save_CFLAGS="$CFLAGS"
8781
8782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8785 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8786 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8787 then :
8788 printf %s "(cached) " >&6
8789 else case e in #(
8790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8792 int i;
8793 _ACEOF
8794 if ac_fn_c_try_compile "$LINENO"
8795 then :
8796 xorg_cv_cc_flag_unknown_warning_option=yes
8797 else case e in #(
8798 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8799 esac
8800 fi
8801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8802 esac
8803 fi
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8805 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8807 CFLAGS="$xorg_testset_save_CFLAGS"
8808 fi
8809
8810 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8813 fi
8814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8816 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8817 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8818 then :
8819 printf %s "(cached) " >&6
8820 else case e in #(
8821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823 int i;
8824 _ACEOF
8825 if ac_fn_c_try_compile "$LINENO"
8826 then :
8827 xorg_cv_cc_flag_unused_command_line_argument=yes
8828 else case e in #(
8829 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8830 esac
8831 fi
8832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8833 esac
8834 fi
8835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8836 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8838 CFLAGS="$xorg_testset_save_CFLAGS"
8839 fi
8840
8841 found="no"
8842
8843 if test $found = "no" ; then
8844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8846 fi
8847
8848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8850 fi
8851
8852 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8853
8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8855 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8856 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8857 if eval test \${$cacheid+y}
8858 then :
8859 printf %s "(cached) " >&6
8860 else case e in #(
8861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863 int i;
8864 int
8865 main (void)
8866 {
8867
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"
8873 then :
8874 eval $cacheid=yes
8875 else case e in #(
8876 e) eval $cacheid=no ;;
8877 esac
8878 fi
8879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8880 conftest$ac_exeext conftest.$ac_ext ;;
8881 esac
8882 fi
8883
8884
8885 CFLAGS="$xorg_testset_save_CFLAGS"
8886
8887 eval supported=\$$cacheid
8888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8889 printf "%s\n" "$supported" >&6; }
8890 if test "$supported" = "yes" ; then
8891 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8892 found="yes"
8893 fi
8894 fi
8895
8896 if test $found = "no" ; then
8897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899 fi
8900
8901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8903 fi
8904
8905 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8906
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8908 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8909 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8910 if eval test \${$cacheid+y}
8911 then :
8912 printf %s "(cached) " >&6
8913 else case e in #(
8914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8916 int i;
8917 int
8918 main (void)
8919 {
8920
8921 ;
8922 return 0;
8923 }
8924 _ACEOF
8925 if ac_fn_c_try_link "$LINENO"
8926 then :
8927 eval $cacheid=yes
8928 else case e in #(
8929 e) eval $cacheid=no ;;
8930 esac
8931 fi
8932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8933 conftest$ac_exeext conftest.$ac_ext ;;
8934 esac
8935 fi
8936
8937
8938 CFLAGS="$xorg_testset_save_CFLAGS"
8939
8940 eval supported=\$$cacheid
8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8942 printf "%s\n" "$supported" >&6; }
8943 if test "$supported" = "yes" ; then
8944 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8945 found="yes"
8946 fi
8947 fi
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963 xorg_testset_save_CFLAGS="$CFLAGS"
8964
8965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8968 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8969 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8970 then :
8971 printf %s "(cached) " >&6
8972 else case e in #(
8973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8975 int i;
8976 _ACEOF
8977 if ac_fn_c_try_compile "$LINENO"
8978 then :
8979 xorg_cv_cc_flag_unknown_warning_option=yes
8980 else case e in #(
8981 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8982 esac
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8985 esac
8986 fi
8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8988 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8990 CFLAGS="$xorg_testset_save_CFLAGS"
8991 fi
8992
8993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996 fi
8997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8999 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9000 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9001 then :
9002 printf %s "(cached) " >&6
9003 else case e in #(
9004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9006 int i;
9007 _ACEOF
9008 if ac_fn_c_try_compile "$LINENO"
9009 then :
9010 xorg_cv_cc_flag_unused_command_line_argument=yes
9011 else case e in #(
9012 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9013 esac
9014 fi
9015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9016 esac
9017 fi
9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9019 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9021 CFLAGS="$xorg_testset_save_CFLAGS"
9022 fi
9023
9024 found="no"
9025
9026 if test $found = "no" ; then
9027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029 fi
9030
9031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9033 fi
9034
9035 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9036
9037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9038 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9039 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9040 if eval test \${$cacheid+y}
9041 then :
9042 printf %s "(cached) " >&6
9043 else case e in #(
9044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9045 /* end confdefs.h. */
9046 int i;
9047 int
9048 main (void)
9049 {
9050
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_c_try_link "$LINENO"
9056 then :
9057 eval $cacheid=yes
9058 else case e in #(
9059 e) eval $cacheid=no ;;
9060 esac
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9063 conftest$ac_exeext conftest.$ac_ext ;;
9064 esac
9065 fi
9066
9067
9068 CFLAGS="$xorg_testset_save_CFLAGS"
9069
9070 eval supported=\$$cacheid
9071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9072 printf "%s\n" "$supported" >&6; }
9073 if test "$supported" = "yes" ; then
9074 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9075 found="yes"
9076 fi
9077 fi
9078
9079 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9080 else
9081 { 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
9082 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;}
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096 xorg_testset_save_CFLAGS="$CFLAGS"
9097
9098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9101 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9102 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9103 then :
9104 printf %s "(cached) " >&6
9105 else case e in #(
9106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9108 int i;
9109 _ACEOF
9110 if ac_fn_c_try_compile "$LINENO"
9111 then :
9112 xorg_cv_cc_flag_unknown_warning_option=yes
9113 else case e in #(
9114 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9115 esac
9116 fi
9117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9118 esac
9119 fi
9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9121 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9123 CFLAGS="$xorg_testset_save_CFLAGS"
9124 fi
9125
9126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9129 fi
9130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9132 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9133 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9134 then :
9135 printf %s "(cached) " >&6
9136 else case e in #(
9137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139 int i;
9140 _ACEOF
9141 if ac_fn_c_try_compile "$LINENO"
9142 then :
9143 xorg_cv_cc_flag_unused_command_line_argument=yes
9144 else case e in #(
9145 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9146 esac
9147 fi
9148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9149 esac
9150 fi
9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9152 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9154 CFLAGS="$xorg_testset_save_CFLAGS"
9155 fi
9156
9157 found="no"
9158
9159 if test $found = "no" ; then
9160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9162 fi
9163
9164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9166 fi
9167
9168 CFLAGS="$CFLAGS -Wimplicit"
9169
9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9171 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9172 cacheid=xorg_cv_cc_flag__Wimplicit
9173 if eval test \${$cacheid+y}
9174 then :
9175 printf %s "(cached) " >&6
9176 else case e in #(
9177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179 int i;
9180 int
9181 main (void)
9182 {
9183
9184 ;
9185 return 0;
9186 }
9187 _ACEOF
9188 if ac_fn_c_try_link "$LINENO"
9189 then :
9190 eval $cacheid=yes
9191 else case e in #(
9192 e) eval $cacheid=no ;;
9193 esac
9194 fi
9195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9196 conftest$ac_exeext conftest.$ac_ext ;;
9197 esac
9198 fi
9199
9200
9201 CFLAGS="$xorg_testset_save_CFLAGS"
9202
9203 eval supported=\$$cacheid
9204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9205 printf "%s\n" "$supported" >&6; }
9206 if test "$supported" = "yes" ; then
9207 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9208 found="yes"
9209 fi
9210 fi
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226 xorg_testset_save_CFLAGS="$CFLAGS"
9227
9228 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9231 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9232 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9233 then :
9234 printf %s "(cached) " >&6
9235 else case e in #(
9236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238 int i;
9239 _ACEOF
9240 if ac_fn_c_try_compile "$LINENO"
9241 then :
9242 xorg_cv_cc_flag_unknown_warning_option=yes
9243 else case e in #(
9244 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9245 esac
9246 fi
9247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9248 esac
9249 fi
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9251 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9253 CFLAGS="$xorg_testset_save_CFLAGS"
9254 fi
9255
9256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9259 fi
9260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9262 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9263 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9264 then :
9265 printf %s "(cached) " >&6
9266 else case e in #(
9267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 int i;
9270 _ACEOF
9271 if ac_fn_c_try_compile "$LINENO"
9272 then :
9273 xorg_cv_cc_flag_unused_command_line_argument=yes
9274 else case e in #(
9275 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9276 esac
9277 fi
9278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9279 esac
9280 fi
9281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9284 CFLAGS="$xorg_testset_save_CFLAGS"
9285 fi
9286
9287 found="no"
9288
9289 if test $found = "no" ; then
9290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9292 fi
9293
9294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9296 fi
9297
9298 CFLAGS="$CFLAGS -Wnonnull"
9299
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9301 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9302 cacheid=xorg_cv_cc_flag__Wnonnull
9303 if eval test \${$cacheid+y}
9304 then :
9305 printf %s "(cached) " >&6
9306 else case e in #(
9307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 int i;
9310 int
9311 main (void)
9312 {
9313
9314 ;
9315 return 0;
9316 }
9317 _ACEOF
9318 if ac_fn_c_try_link "$LINENO"
9319 then :
9320 eval $cacheid=yes
9321 else case e in #(
9322 e) eval $cacheid=no ;;
9323 esac
9324 fi
9325 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9326 conftest$ac_exeext conftest.$ac_ext ;;
9327 esac
9328 fi
9329
9330
9331 CFLAGS="$xorg_testset_save_CFLAGS"
9332
9333 eval supported=\$$cacheid
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9335 printf "%s\n" "$supported" >&6; }
9336 if test "$supported" = "yes" ; then
9337 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9338 found="yes"
9339 fi
9340 fi
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356 xorg_testset_save_CFLAGS="$CFLAGS"
9357
9358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9361 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9362 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9363 then :
9364 printf %s "(cached) " >&6
9365 else case e in #(
9366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 int i;
9369 _ACEOF
9370 if ac_fn_c_try_compile "$LINENO"
9371 then :
9372 xorg_cv_cc_flag_unknown_warning_option=yes
9373 else case e in #(
9374 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9375 esac
9376 fi
9377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9378 esac
9379 fi
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9381 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9383 CFLAGS="$xorg_testset_save_CFLAGS"
9384 fi
9385
9386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9389 fi
9390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9392 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9393 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9394 then :
9395 printf %s "(cached) " >&6
9396 else case e in #(
9397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 int i;
9400 _ACEOF
9401 if ac_fn_c_try_compile "$LINENO"
9402 then :
9403 xorg_cv_cc_flag_unused_command_line_argument=yes
9404 else case e in #(
9405 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9406 esac
9407 fi
9408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9409 esac
9410 fi
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9412 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9414 CFLAGS="$xorg_testset_save_CFLAGS"
9415 fi
9416
9417 found="no"
9418
9419 if test $found = "no" ; then
9420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9422 fi
9423
9424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9426 fi
9427
9428 CFLAGS="$CFLAGS -Winit-self"
9429
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9431 printf %s "checking if $CC supports -Winit-self... " >&6; }
9432 cacheid=xorg_cv_cc_flag__Winit_self
9433 if eval test \${$cacheid+y}
9434 then :
9435 printf %s "(cached) " >&6
9436 else case e in #(
9437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9439 int i;
9440 int
9441 main (void)
9442 {
9443
9444 ;
9445 return 0;
9446 }
9447 _ACEOF
9448 if ac_fn_c_try_link "$LINENO"
9449 then :
9450 eval $cacheid=yes
9451 else case e in #(
9452 e) eval $cacheid=no ;;
9453 esac
9454 fi
9455 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9456 conftest$ac_exeext conftest.$ac_ext ;;
9457 esac
9458 fi
9459
9460
9461 CFLAGS="$xorg_testset_save_CFLAGS"
9462
9463 eval supported=\$$cacheid
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9465 printf "%s\n" "$supported" >&6; }
9466 if test "$supported" = "yes" ; then
9467 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9468 found="yes"
9469 fi
9470 fi
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486 xorg_testset_save_CFLAGS="$CFLAGS"
9487
9488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9491 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9492 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9493 then :
9494 printf %s "(cached) " >&6
9495 else case e in #(
9496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 int i;
9499 _ACEOF
9500 if ac_fn_c_try_compile "$LINENO"
9501 then :
9502 xorg_cv_cc_flag_unknown_warning_option=yes
9503 else case e in #(
9504 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9505 esac
9506 fi
9507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9508 esac
9509 fi
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9511 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9513 CFLAGS="$xorg_testset_save_CFLAGS"
9514 fi
9515
9516 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9519 fi
9520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9522 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9523 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9524 then :
9525 printf %s "(cached) " >&6
9526 else case e in #(
9527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9529 int i;
9530 _ACEOF
9531 if ac_fn_c_try_compile "$LINENO"
9532 then :
9533 xorg_cv_cc_flag_unused_command_line_argument=yes
9534 else case e in #(
9535 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9536 esac
9537 fi
9538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9539 esac
9540 fi
9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9542 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9544 CFLAGS="$xorg_testset_save_CFLAGS"
9545 fi
9546
9547 found="no"
9548
9549 if test $found = "no" ; then
9550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9552 fi
9553
9554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9556 fi
9557
9558 CFLAGS="$CFLAGS -Wmain"
9559
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9561 printf %s "checking if $CC supports -Wmain... " >&6; }
9562 cacheid=xorg_cv_cc_flag__Wmain
9563 if eval test \${$cacheid+y}
9564 then :
9565 printf %s "(cached) " >&6
9566 else case e in #(
9567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9569 int i;
9570 int
9571 main (void)
9572 {
9573
9574 ;
9575 return 0;
9576 }
9577 _ACEOF
9578 if ac_fn_c_try_link "$LINENO"
9579 then :
9580 eval $cacheid=yes
9581 else case e in #(
9582 e) eval $cacheid=no ;;
9583 esac
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9586 conftest$ac_exeext conftest.$ac_ext ;;
9587 esac
9588 fi
9589
9590
9591 CFLAGS="$xorg_testset_save_CFLAGS"
9592
9593 eval supported=\$$cacheid
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9595 printf "%s\n" "$supported" >&6; }
9596 if test "$supported" = "yes" ; then
9597 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9598 found="yes"
9599 fi
9600 fi
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616 xorg_testset_save_CFLAGS="$CFLAGS"
9617
9618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9621 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9622 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9623 then :
9624 printf %s "(cached) " >&6
9625 else case e in #(
9626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628 int i;
9629 _ACEOF
9630 if ac_fn_c_try_compile "$LINENO"
9631 then :
9632 xorg_cv_cc_flag_unknown_warning_option=yes
9633 else case e in #(
9634 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9635 esac
9636 fi
9637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9638 esac
9639 fi
9640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9641 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9643 CFLAGS="$xorg_testset_save_CFLAGS"
9644 fi
9645
9646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649 fi
9650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9652 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9653 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9654 then :
9655 printf %s "(cached) " >&6
9656 else case e in #(
9657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9658 /* end confdefs.h. */
9659 int i;
9660 _ACEOF
9661 if ac_fn_c_try_compile "$LINENO"
9662 then :
9663 xorg_cv_cc_flag_unused_command_line_argument=yes
9664 else case e in #(
9665 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9666 esac
9667 fi
9668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9669 esac
9670 fi
9671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9672 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9673 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9674 CFLAGS="$xorg_testset_save_CFLAGS"
9675 fi
9676
9677 found="no"
9678
9679 if test $found = "no" ; then
9680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9682 fi
9683
9684 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9686 fi
9687
9688 CFLAGS="$CFLAGS -Wmissing-braces"
9689
9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9691 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9692 cacheid=xorg_cv_cc_flag__Wmissing_braces
9693 if eval test \${$cacheid+y}
9694 then :
9695 printf %s "(cached) " >&6
9696 else case e in #(
9697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699 int i;
9700 int
9701 main (void)
9702 {
9703
9704 ;
9705 return 0;
9706 }
9707 _ACEOF
9708 if ac_fn_c_try_link "$LINENO"
9709 then :
9710 eval $cacheid=yes
9711 else case e in #(
9712 e) eval $cacheid=no ;;
9713 esac
9714 fi
9715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9716 conftest$ac_exeext conftest.$ac_ext ;;
9717 esac
9718 fi
9719
9720
9721 CFLAGS="$xorg_testset_save_CFLAGS"
9722
9723 eval supported=\$$cacheid
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9725 printf "%s\n" "$supported" >&6; }
9726 if test "$supported" = "yes" ; then
9727 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9728 found="yes"
9729 fi
9730 fi
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746 xorg_testset_save_CFLAGS="$CFLAGS"
9747
9748 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9751 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9752 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9753 then :
9754 printf %s "(cached) " >&6
9755 else case e in #(
9756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9758 int i;
9759 _ACEOF
9760 if ac_fn_c_try_compile "$LINENO"
9761 then :
9762 xorg_cv_cc_flag_unknown_warning_option=yes
9763 else case e in #(
9764 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9765 esac
9766 fi
9767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9768 esac
9769 fi
9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9771 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9773 CFLAGS="$xorg_testset_save_CFLAGS"
9774 fi
9775
9776 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9779 fi
9780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9782 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9783 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9784 then :
9785 printf %s "(cached) " >&6
9786 else case e in #(
9787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788 /* end confdefs.h. */
9789 int i;
9790 _ACEOF
9791 if ac_fn_c_try_compile "$LINENO"
9792 then :
9793 xorg_cv_cc_flag_unused_command_line_argument=yes
9794 else case e in #(
9795 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9796 esac
9797 fi
9798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9799 esac
9800 fi
9801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9802 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9803 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9804 CFLAGS="$xorg_testset_save_CFLAGS"
9805 fi
9806
9807 found="no"
9808
9809 if test $found = "no" ; then
9810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9812 fi
9813
9814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816 fi
9817
9818 CFLAGS="$CFLAGS -Wsequence-point"
9819
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9821 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9822 cacheid=xorg_cv_cc_flag__Wsequence_point
9823 if eval test \${$cacheid+y}
9824 then :
9825 printf %s "(cached) " >&6
9826 else case e in #(
9827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h. */
9829 int i;
9830 int
9831 main (void)
9832 {
9833
9834 ;
9835 return 0;
9836 }
9837 _ACEOF
9838 if ac_fn_c_try_link "$LINENO"
9839 then :
9840 eval $cacheid=yes
9841 else case e in #(
9842 e) eval $cacheid=no ;;
9843 esac
9844 fi
9845 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9846 conftest$ac_exeext conftest.$ac_ext ;;
9847 esac
9848 fi
9849
9850
9851 CFLAGS="$xorg_testset_save_CFLAGS"
9852
9853 eval supported=\$$cacheid
9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9855 printf "%s\n" "$supported" >&6; }
9856 if test "$supported" = "yes" ; then
9857 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9858 found="yes"
9859 fi
9860 fi
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876 xorg_testset_save_CFLAGS="$CFLAGS"
9877
9878 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9881 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9882 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9883 then :
9884 printf %s "(cached) " >&6
9885 else case e in #(
9886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888 int i;
9889 _ACEOF
9890 if ac_fn_c_try_compile "$LINENO"
9891 then :
9892 xorg_cv_cc_flag_unknown_warning_option=yes
9893 else case e in #(
9894 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9895 esac
9896 fi
9897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9898 esac
9899 fi
9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9901 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9903 CFLAGS="$xorg_testset_save_CFLAGS"
9904 fi
9905
9906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9909 fi
9910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9912 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9913 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9914 then :
9915 printf %s "(cached) " >&6
9916 else case e in #(
9917 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918 /* end confdefs.h. */
9919 int i;
9920 _ACEOF
9921 if ac_fn_c_try_compile "$LINENO"
9922 then :
9923 xorg_cv_cc_flag_unused_command_line_argument=yes
9924 else case e in #(
9925 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9926 esac
9927 fi
9928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9929 esac
9930 fi
9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9932 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9934 CFLAGS="$xorg_testset_save_CFLAGS"
9935 fi
9936
9937 found="no"
9938
9939 if test $found = "no" ; then
9940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942 fi
9943
9944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9946 fi
9947
9948 CFLAGS="$CFLAGS -Wreturn-type"
9949
9950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9951 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9952 cacheid=xorg_cv_cc_flag__Wreturn_type
9953 if eval test \${$cacheid+y}
9954 then :
9955 printf %s "(cached) " >&6
9956 else case e in #(
9957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958 /* end confdefs.h. */
9959 int i;
9960 int
9961 main (void)
9962 {
9963
9964 ;
9965 return 0;
9966 }
9967 _ACEOF
9968 if ac_fn_c_try_link "$LINENO"
9969 then :
9970 eval $cacheid=yes
9971 else case e in #(
9972 e) eval $cacheid=no ;;
9973 esac
9974 fi
9975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9976 conftest$ac_exeext conftest.$ac_ext ;;
9977 esac
9978 fi
9979
9980
9981 CFLAGS="$xorg_testset_save_CFLAGS"
9982
9983 eval supported=\$$cacheid
9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9985 printf "%s\n" "$supported" >&6; }
9986 if test "$supported" = "yes" ; then
9987 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9988 found="yes"
9989 fi
9990 fi
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006 xorg_testset_save_CFLAGS="$CFLAGS"
10007
10008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10011 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10012 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10013 then :
10014 printf %s "(cached) " >&6
10015 else case e in #(
10016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018 int i;
10019 _ACEOF
10020 if ac_fn_c_try_compile "$LINENO"
10021 then :
10022 xorg_cv_cc_flag_unknown_warning_option=yes
10023 else case e in #(
10024 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10025 esac
10026 fi
10027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10028 esac
10029 fi
10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10031 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10033 CFLAGS="$xorg_testset_save_CFLAGS"
10034 fi
10035
10036 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10039 fi
10040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10042 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10043 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10044 then :
10045 printf %s "(cached) " >&6
10046 else case e in #(
10047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049 int i;
10050 _ACEOF
10051 if ac_fn_c_try_compile "$LINENO"
10052 then :
10053 xorg_cv_cc_flag_unused_command_line_argument=yes
10054 else case e in #(
10055 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10056 esac
10057 fi
10058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10059 esac
10060 fi
10061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10062 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10064 CFLAGS="$xorg_testset_save_CFLAGS"
10065 fi
10066
10067 found="no"
10068
10069 if test $found = "no" ; then
10070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10072 fi
10073
10074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10076 fi
10077
10078 CFLAGS="$CFLAGS -Wtrigraphs"
10079
10080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10081 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10082 cacheid=xorg_cv_cc_flag__Wtrigraphs
10083 if eval test \${$cacheid+y}
10084 then :
10085 printf %s "(cached) " >&6
10086 else case e in #(
10087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088 /* end confdefs.h. */
10089 int i;
10090 int
10091 main (void)
10092 {
10093
10094 ;
10095 return 0;
10096 }
10097 _ACEOF
10098 if ac_fn_c_try_link "$LINENO"
10099 then :
10100 eval $cacheid=yes
10101 else case e in #(
10102 e) eval $cacheid=no ;;
10103 esac
10104 fi
10105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10106 conftest$ac_exeext conftest.$ac_ext ;;
10107 esac
10108 fi
10109
10110
10111 CFLAGS="$xorg_testset_save_CFLAGS"
10112
10113 eval supported=\$$cacheid
10114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10115 printf "%s\n" "$supported" >&6; }
10116 if test "$supported" = "yes" ; then
10117 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10118 found="yes"
10119 fi
10120 fi
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136 xorg_testset_save_CFLAGS="$CFLAGS"
10137
10138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10141 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10142 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10143 then :
10144 printf %s "(cached) " >&6
10145 else case e in #(
10146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148 int i;
10149 _ACEOF
10150 if ac_fn_c_try_compile "$LINENO"
10151 then :
10152 xorg_cv_cc_flag_unknown_warning_option=yes
10153 else case e in #(
10154 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10155 esac
10156 fi
10157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10158 esac
10159 fi
10160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10161 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10163 CFLAGS="$xorg_testset_save_CFLAGS"
10164 fi
10165
10166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10169 fi
10170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10172 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10173 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10174 then :
10175 printf %s "(cached) " >&6
10176 else case e in #(
10177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 int i;
10180 _ACEOF
10181 if ac_fn_c_try_compile "$LINENO"
10182 then :
10183 xorg_cv_cc_flag_unused_command_line_argument=yes
10184 else case e in #(
10185 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10186 esac
10187 fi
10188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10189 esac
10190 fi
10191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10192 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10194 CFLAGS="$xorg_testset_save_CFLAGS"
10195 fi
10196
10197 found="no"
10198
10199 if test $found = "no" ; then
10200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10202 fi
10203
10204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10206 fi
10207
10208 CFLAGS="$CFLAGS -Warray-bounds"
10209
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10211 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10212 cacheid=xorg_cv_cc_flag__Warray_bounds
10213 if eval test \${$cacheid+y}
10214 then :
10215 printf %s "(cached) " >&6
10216 else case e in #(
10217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10219 int i;
10220 int
10221 main (void)
10222 {
10223
10224 ;
10225 return 0;
10226 }
10227 _ACEOF
10228 if ac_fn_c_try_link "$LINENO"
10229 then :
10230 eval $cacheid=yes
10231 else case e in #(
10232 e) eval $cacheid=no ;;
10233 esac
10234 fi
10235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10236 conftest$ac_exeext conftest.$ac_ext ;;
10237 esac
10238 fi
10239
10240
10241 CFLAGS="$xorg_testset_save_CFLAGS"
10242
10243 eval supported=\$$cacheid
10244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10245 printf "%s\n" "$supported" >&6; }
10246 if test "$supported" = "yes" ; then
10247 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10248 found="yes"
10249 fi
10250 fi
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266 xorg_testset_save_CFLAGS="$CFLAGS"
10267
10268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10271 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10272 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10273 then :
10274 printf %s "(cached) " >&6
10275 else case e in #(
10276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277 /* end confdefs.h. */
10278 int i;
10279 _ACEOF
10280 if ac_fn_c_try_compile "$LINENO"
10281 then :
10282 xorg_cv_cc_flag_unknown_warning_option=yes
10283 else case e in #(
10284 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10285 esac
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10288 esac
10289 fi
10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10291 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10293 CFLAGS="$xorg_testset_save_CFLAGS"
10294 fi
10295
10296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10299 fi
10300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10302 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10303 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10304 then :
10305 printf %s "(cached) " >&6
10306 else case e in #(
10307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309 int i;
10310 _ACEOF
10311 if ac_fn_c_try_compile "$LINENO"
10312 then :
10313 xorg_cv_cc_flag_unused_command_line_argument=yes
10314 else case e in #(
10315 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10316 esac
10317 fi
10318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10319 esac
10320 fi
10321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10322 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10324 CFLAGS="$xorg_testset_save_CFLAGS"
10325 fi
10326
10327 found="no"
10328
10329 if test $found = "no" ; then
10330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10332 fi
10333
10334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10336 fi
10337
10338 CFLAGS="$CFLAGS -Wwrite-strings"
10339
10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10341 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10342 cacheid=xorg_cv_cc_flag__Wwrite_strings
10343 if eval test \${$cacheid+y}
10344 then :
10345 printf %s "(cached) " >&6
10346 else case e in #(
10347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 int i;
10350 int
10351 main (void)
10352 {
10353
10354 ;
10355 return 0;
10356 }
10357 _ACEOF
10358 if ac_fn_c_try_link "$LINENO"
10359 then :
10360 eval $cacheid=yes
10361 else case e in #(
10362 e) eval $cacheid=no ;;
10363 esac
10364 fi
10365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10366 conftest$ac_exeext conftest.$ac_ext ;;
10367 esac
10368 fi
10369
10370
10371 CFLAGS="$xorg_testset_save_CFLAGS"
10372
10373 eval supported=\$$cacheid
10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10375 printf "%s\n" "$supported" >&6; }
10376 if test "$supported" = "yes" ; then
10377 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10378 found="yes"
10379 fi
10380 fi
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396 xorg_testset_save_CFLAGS="$CFLAGS"
10397
10398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10401 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10402 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10403 then :
10404 printf %s "(cached) " >&6
10405 else case e in #(
10406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h. */
10408 int i;
10409 _ACEOF
10410 if ac_fn_c_try_compile "$LINENO"
10411 then :
10412 xorg_cv_cc_flag_unknown_warning_option=yes
10413 else case e in #(
10414 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10415 esac
10416 fi
10417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10418 esac
10419 fi
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10421 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10423 CFLAGS="$xorg_testset_save_CFLAGS"
10424 fi
10425
10426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10429 fi
10430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10432 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10433 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10434 then :
10435 printf %s "(cached) " >&6
10436 else case e in #(
10437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10439 int i;
10440 _ACEOF
10441 if ac_fn_c_try_compile "$LINENO"
10442 then :
10443 xorg_cv_cc_flag_unused_command_line_argument=yes
10444 else case e in #(
10445 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10446 esac
10447 fi
10448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10449 esac
10450 fi
10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10452 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10454 CFLAGS="$xorg_testset_save_CFLAGS"
10455 fi
10456
10457 found="no"
10458
10459 if test $found = "no" ; then
10460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10462 fi
10463
10464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10466 fi
10467
10468 CFLAGS="$CFLAGS -Waddress"
10469
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10471 printf %s "checking if $CC supports -Waddress... " >&6; }
10472 cacheid=xorg_cv_cc_flag__Waddress
10473 if eval test \${$cacheid+y}
10474 then :
10475 printf %s "(cached) " >&6
10476 else case e in #(
10477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10479 int i;
10480 int
10481 main (void)
10482 {
10483
10484 ;
10485 return 0;
10486 }
10487 _ACEOF
10488 if ac_fn_c_try_link "$LINENO"
10489 then :
10490 eval $cacheid=yes
10491 else case e in #(
10492 e) eval $cacheid=no ;;
10493 esac
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10496 conftest$ac_exeext conftest.$ac_ext ;;
10497 esac
10498 fi
10499
10500
10501 CFLAGS="$xorg_testset_save_CFLAGS"
10502
10503 eval supported=\$$cacheid
10504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10505 printf "%s\n" "$supported" >&6; }
10506 if test "$supported" = "yes" ; then
10507 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10508 found="yes"
10509 fi
10510 fi
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526 xorg_testset_save_CFLAGS="$CFLAGS"
10527
10528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10531 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10532 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10533 then :
10534 printf %s "(cached) " >&6
10535 else case e in #(
10536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538 int i;
10539 _ACEOF
10540 if ac_fn_c_try_compile "$LINENO"
10541 then :
10542 xorg_cv_cc_flag_unknown_warning_option=yes
10543 else case e in #(
10544 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10545 esac
10546 fi
10547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10548 esac
10549 fi
10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10551 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10553 CFLAGS="$xorg_testset_save_CFLAGS"
10554 fi
10555
10556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10559 fi
10560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10562 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10563 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10564 then :
10565 printf %s "(cached) " >&6
10566 else case e in #(
10567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10569 int i;
10570 _ACEOF
10571 if ac_fn_c_try_compile "$LINENO"
10572 then :
10573 xorg_cv_cc_flag_unused_command_line_argument=yes
10574 else case e in #(
10575 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10576 esac
10577 fi
10578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10579 esac
10580 fi
10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10582 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10584 CFLAGS="$xorg_testset_save_CFLAGS"
10585 fi
10586
10587 found="no"
10588
10589 if test $found = "no" ; then
10590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10592 fi
10593
10594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10596 fi
10597
10598 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10599
10600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10601 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10602 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10603 if eval test \${$cacheid+y}
10604 then :
10605 printf %s "(cached) " >&6
10606 else case e in #(
10607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10609 int i;
10610 int
10611 main (void)
10612 {
10613
10614 ;
10615 return 0;
10616 }
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"
10619 then :
10620 eval $cacheid=yes
10621 else case e in #(
10622 e) eval $cacheid=no ;;
10623 esac
10624 fi
10625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10626 conftest$ac_exeext conftest.$ac_ext ;;
10627 esac
10628 fi
10629
10630
10631 CFLAGS="$xorg_testset_save_CFLAGS"
10632
10633 eval supported=\$$cacheid
10634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10635 printf "%s\n" "$supported" >&6; }
10636 if test "$supported" = "yes" ; then
10637 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10638 found="yes"
10639 fi
10640 fi
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656 xorg_testset_save_CFLAGS="$CFLAGS"
10657
10658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10661 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10662 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10663 then :
10664 printf %s "(cached) " >&6
10665 else case e in #(
10666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10668 int i;
10669 _ACEOF
10670 if ac_fn_c_try_compile "$LINENO"
10671 then :
10672 xorg_cv_cc_flag_unknown_warning_option=yes
10673 else case e in #(
10674 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10675 esac
10676 fi
10677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10678 esac
10679 fi
10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10681 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10683 CFLAGS="$xorg_testset_save_CFLAGS"
10684 fi
10685
10686 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10689 fi
10690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10692 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10693 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10694 then :
10695 printf %s "(cached) " >&6
10696 else case e in #(
10697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10699 int i;
10700 _ACEOF
10701 if ac_fn_c_try_compile "$LINENO"
10702 then :
10703 xorg_cv_cc_flag_unused_command_line_argument=yes
10704 else case e in #(
10705 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10706 esac
10707 fi
10708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10709 esac
10710 fi
10711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10712 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10714 CFLAGS="$xorg_testset_save_CFLAGS"
10715 fi
10716
10717 found="no"
10718
10719 if test $found = "no" ; then
10720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10722 fi
10723
10724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10726 fi
10727
10728 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10729
10730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10731 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10732 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10733 if eval test \${$cacheid+y}
10734 then :
10735 printf %s "(cached) " >&6
10736 else case e in #(
10737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 int i;
10740 int
10741 main (void)
10742 {
10743
10744 ;
10745 return 0;
10746 }
10747 _ACEOF
10748 if ac_fn_c_try_link "$LINENO"
10749 then :
10750 eval $cacheid=yes
10751 else case e in #(
10752 e) eval $cacheid=no ;;
10753 esac
10754 fi
10755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10756 conftest$ac_exeext conftest.$ac_ext ;;
10757 esac
10758 fi
10759
10760
10761 CFLAGS="$xorg_testset_save_CFLAGS"
10762
10763 eval supported=\$$cacheid
10764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10765 printf "%s\n" "$supported" >&6; }
10766 if test "$supported" = "yes" ; then
10767 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10768 found="yes"
10769 fi
10770 fi
10771
10772
10773 fi
10774
10775
10776
10777
10778
10779
10780
10781 CWARNFLAGS="$BASE_CFLAGS"
10782 if test "x$GCC" = xyes ; then
10783 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10784 fi
10785
10786
10787
10788
10789
10790
10791
10792
10793 # Check whether --enable-strict-compilation was given.
10794 if test ${enable_strict_compilation+y}
10795 then :
10796 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10797 else case e in #(
10798 e) STRICT_COMPILE=no ;;
10799 esac
10800 fi
10801
10802
10803
10804
10805
10806
10807 STRICT_CFLAGS=""
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821 xorg_testset_save_CFLAGS="$CFLAGS"
10822
10823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10826 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10827 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10828 then :
10829 printf %s "(cached) " >&6
10830 else case e in #(
10831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833 int i;
10834 _ACEOF
10835 if ac_fn_c_try_compile "$LINENO"
10836 then :
10837 xorg_cv_cc_flag_unknown_warning_option=yes
10838 else case e in #(
10839 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10840 esac
10841 fi
10842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10843 esac
10844 fi
10845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10846 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10848 CFLAGS="$xorg_testset_save_CFLAGS"
10849 fi
10850
10851 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10854 fi
10855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10857 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10858 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10859 then :
10860 printf %s "(cached) " >&6
10861 else case e in #(
10862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864 int i;
10865 _ACEOF
10866 if ac_fn_c_try_compile "$LINENO"
10867 then :
10868 xorg_cv_cc_flag_unused_command_line_argument=yes
10869 else case e in #(
10870 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10871 esac
10872 fi
10873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10874 esac
10875 fi
10876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10877 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10879 CFLAGS="$xorg_testset_save_CFLAGS"
10880 fi
10881
10882 found="no"
10883
10884 if test $found = "no" ; then
10885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10887 fi
10888
10889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10891 fi
10892
10893 CFLAGS="$CFLAGS -pedantic"
10894
10895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10896 printf %s "checking if $CC supports -pedantic... " >&6; }
10897 cacheid=xorg_cv_cc_flag__pedantic
10898 if eval test \${$cacheid+y}
10899 then :
10900 printf %s "(cached) " >&6
10901 else case e in #(
10902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10904 int i;
10905 int
10906 main (void)
10907 {
10908
10909 ;
10910 return 0;
10911 }
10912 _ACEOF
10913 if ac_fn_c_try_link "$LINENO"
10914 then :
10915 eval $cacheid=yes
10916 else case e in #(
10917 e) eval $cacheid=no ;;
10918 esac
10919 fi
10920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10921 conftest$ac_exeext conftest.$ac_ext ;;
10922 esac
10923 fi
10924
10925
10926 CFLAGS="$xorg_testset_save_CFLAGS"
10927
10928 eval supported=\$$cacheid
10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10930 printf "%s\n" "$supported" >&6; }
10931 if test "$supported" = "yes" ; then
10932 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10933 found="yes"
10934 fi
10935 fi
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951 xorg_testset_save_CFLAGS="$CFLAGS"
10952
10953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10956 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10957 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10958 then :
10959 printf %s "(cached) " >&6
10960 else case e in #(
10961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10963 int i;
10964 _ACEOF
10965 if ac_fn_c_try_compile "$LINENO"
10966 then :
10967 xorg_cv_cc_flag_unknown_warning_option=yes
10968 else case e in #(
10969 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10970 esac
10971 fi
10972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10973 esac
10974 fi
10975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10976 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10978 CFLAGS="$xorg_testset_save_CFLAGS"
10979 fi
10980
10981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10984 fi
10985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10987 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10988 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10989 then :
10990 printf %s "(cached) " >&6
10991 else case e in #(
10992 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10994 int i;
10995 _ACEOF
10996 if ac_fn_c_try_compile "$LINENO"
10997 then :
10998 xorg_cv_cc_flag_unused_command_line_argument=yes
10999 else case e in #(
11000 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11001 esac
11002 fi
11003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11004 esac
11005 fi
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11007 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11009 CFLAGS="$xorg_testset_save_CFLAGS"
11010 fi
11011
11012 found="no"
11013
11014 if test $found = "no" ; then
11015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11017 fi
11018
11019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11021 fi
11022
11023 CFLAGS="$CFLAGS -Werror"
11024
11025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11026 printf %s "checking if $CC supports -Werror... " >&6; }
11027 cacheid=xorg_cv_cc_flag__Werror
11028 if eval test \${$cacheid+y}
11029 then :
11030 printf %s "(cached) " >&6
11031 else case e in #(
11032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11034 int i;
11035 int
11036 main (void)
11037 {
11038
11039 ;
11040 return 0;
11041 }
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"
11044 then :
11045 eval $cacheid=yes
11046 else case e in #(
11047 e) eval $cacheid=no ;;
11048 esac
11049 fi
11050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11051 conftest$ac_exeext conftest.$ac_ext ;;
11052 esac
11053 fi
11054
11055
11056 CFLAGS="$xorg_testset_save_CFLAGS"
11057
11058 eval supported=\$$cacheid
11059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11060 printf "%s\n" "$supported" >&6; }
11061 if test "$supported" = "yes" ; then
11062 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11063 found="yes"
11064 fi
11065 fi
11066
11067 if test $found = "no" ; then
11068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11070 fi
11071
11072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11074 fi
11075
11076 CFLAGS="$CFLAGS -errwarn"
11077
11078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11079 printf %s "checking if $CC supports -errwarn... " >&6; }
11080 cacheid=xorg_cv_cc_flag__errwarn
11081 if eval test \${$cacheid+y}
11082 then :
11083 printf %s "(cached) " >&6
11084 else case e in #(
11085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087 int i;
11088 int
11089 main (void)
11090 {
11091
11092 ;
11093 return 0;
11094 }
11095 _ACEOF
11096 if ac_fn_c_try_link "$LINENO"
11097 then :
11098 eval $cacheid=yes
11099 else case e in #(
11100 e) eval $cacheid=no ;;
11101 esac
11102 fi
11103 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11104 conftest$ac_exeext conftest.$ac_ext ;;
11105 esac
11106 fi
11107
11108
11109 CFLAGS="$xorg_testset_save_CFLAGS"
11110
11111 eval supported=\$$cacheid
11112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11113 printf "%s\n" "$supported" >&6; }
11114 if test "$supported" = "yes" ; then
11115 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11116 found="yes"
11117 fi
11118 fi
11119
11120
11121
11122 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11123 # activate it with -Werror, so we add it here explicitly.
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137 xorg_testset_save_CFLAGS="$CFLAGS"
11138
11139 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11142 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11143 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11144 then :
11145 printf %s "(cached) " >&6
11146 else case e in #(
11147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11149 int i;
11150 _ACEOF
11151 if ac_fn_c_try_compile "$LINENO"
11152 then :
11153 xorg_cv_cc_flag_unknown_warning_option=yes
11154 else case e in #(
11155 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11156 esac
11157 fi
11158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11159 esac
11160 fi
11161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11162 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11164 CFLAGS="$xorg_testset_save_CFLAGS"
11165 fi
11166
11167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11170 fi
11171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11173 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11174 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11175 then :
11176 printf %s "(cached) " >&6
11177 else case e in #(
11178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11180 int i;
11181 _ACEOF
11182 if ac_fn_c_try_compile "$LINENO"
11183 then :
11184 xorg_cv_cc_flag_unused_command_line_argument=yes
11185 else case e in #(
11186 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11187 esac
11188 fi
11189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11190 esac
11191 fi
11192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11193 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11195 CFLAGS="$xorg_testset_save_CFLAGS"
11196 fi
11197
11198 found="no"
11199
11200 if test $found = "no" ; then
11201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11203 fi
11204
11205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11207 fi
11208
11209 CFLAGS="$CFLAGS -Werror=attributes"
11210
11211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11212 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11213 cacheid=xorg_cv_cc_flag__Werror_attributes
11214 if eval test \${$cacheid+y}
11215 then :
11216 printf %s "(cached) " >&6
11217 else case e in #(
11218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11220 int i;
11221 int
11222 main (void)
11223 {
11224
11225 ;
11226 return 0;
11227 }
11228 _ACEOF
11229 if ac_fn_c_try_link "$LINENO"
11230 then :
11231 eval $cacheid=yes
11232 else case e in #(
11233 e) eval $cacheid=no ;;
11234 esac
11235 fi
11236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11237 conftest$ac_exeext conftest.$ac_ext ;;
11238 esac
11239 fi
11240
11241
11242 CFLAGS="$xorg_testset_save_CFLAGS"
11243
11244 eval supported=\$$cacheid
11245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11246 printf "%s\n" "$supported" >&6; }
11247 if test "$supported" = "yes" ; then
11248 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11249 found="yes"
11250 fi
11251 fi
11252
11253
11254
11255 if test "x$STRICT_COMPILE" = "xyes"; then
11256 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11257 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11258 fi
11259
11260
11261
11262
11263
11264
11265
11266
11267 cat >>confdefs.h <<_ACEOF
11268 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11269 _ACEOF
11270
11271 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11272 if test "x$PVM" = "x"; then
11273 PVM="0"
11274 fi
11275
11276 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11277
11278 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11279 if test "x$PVP" = "x"; then
11280 PVP="0"
11281 fi
11282
11283 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11284
11285
11286
11287 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11288 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11289 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11290 touch \$(top_srcdir)/ChangeLog; \
11291 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11292
11293
11294
11295
11296 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11297 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11298 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11299 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11300 touch \$(top_srcdir)/INSTALL; \
11301 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11302
11303
11304
11305
11306
11307
11308 case $host_os in
11309 solaris*)
11310 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11311 # check for a man page file found in later versions that use
11312 # traditional section numbers instead
11313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11314 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11315 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11316 then :
11317 printf %s "(cached) " >&6
11318 else case e in #(
11319 e) test "$cross_compiling" = yes &&
11320 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11321 if test -r "/usr/share/man/man7/attributes.7"; then
11322 ac_cv_file__usr_share_man_man7_attributes_7=yes
11323 else
11324 ac_cv_file__usr_share_man_man7_attributes_7=no
11325 fi ;;
11326 esac
11327 fi
11328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11329 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11330 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11331 then :
11332 SYSV_MAN_SECTIONS=false
11333 else case e in #(
11334 e) SYSV_MAN_SECTIONS=true ;;
11335 esac
11336 fi
11337
11338 ;;
11339 *) SYSV_MAN_SECTIONS=false ;;
11340 esac
11341
11342 if test x$APP_MAN_SUFFIX = x ; then
11343 APP_MAN_SUFFIX=1
11344 fi
11345 if test x$APP_MAN_DIR = x ; then
11346 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11347 fi
11348
11349 if test x$LIB_MAN_SUFFIX = x ; then
11350 LIB_MAN_SUFFIX=3
11351 fi
11352 if test x$LIB_MAN_DIR = x ; then
11353 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11354 fi
11355
11356 if test x$FILE_MAN_SUFFIX = x ; then
11357 case $SYSV_MAN_SECTIONS in
11358 true) FILE_MAN_SUFFIX=4 ;;
11359 *) FILE_MAN_SUFFIX=5 ;;
11360 esac
11361 fi
11362 if test x$FILE_MAN_DIR = x ; then
11363 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11364 fi
11365
11366 if test x$MISC_MAN_SUFFIX = x ; then
11367 case $SYSV_MAN_SECTIONS in
11368 true) MISC_MAN_SUFFIX=5 ;;
11369 *) MISC_MAN_SUFFIX=7 ;;
11370 esac
11371 fi
11372 if test x$MISC_MAN_DIR = x ; then
11373 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11374 fi
11375
11376 if test x$DRIVER_MAN_SUFFIX = x ; then
11377 case $SYSV_MAN_SECTIONS in
11378 true) DRIVER_MAN_SUFFIX=7 ;;
11379 *) DRIVER_MAN_SUFFIX=4 ;;
11380 esac
11381 fi
11382 if test x$DRIVER_MAN_DIR = x ; then
11383 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11384 fi
11385
11386 if test x$ADMIN_MAN_SUFFIX = x ; then
11387 case $SYSV_MAN_SECTIONS in
11388 true) ADMIN_MAN_SUFFIX=1m ;;
11389 *) ADMIN_MAN_SUFFIX=8 ;;
11390 esac
11391 fi
11392 if test x$ADMIN_MAN_DIR = x ; then
11393 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11394 fi
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410 XORG_MAN_PAGE="X Version 11"
11411
11412 MAN_SUBSTS="\
11413 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11414 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11415 -e 's|__xservername__|Xorg|g' \
11416 -e 's|__xconfigfile__|xorg.conf|g' \
11417 -e 's|__projectroot__|\$(prefix)|g' \
11418 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11419 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11420 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11421 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11422 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11423 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11424 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11425
11426
11427
11428 # Check whether --enable-silent-rules was given.
11429 if test ${enable_silent_rules+y}
11430 then :
11431 enableval=$enable_silent_rules;
11432 fi
11433
11434 case $enable_silent_rules in # (((
11435 yes) AM_DEFAULT_VERBOSITY=0;;
11436 no) AM_DEFAULT_VERBOSITY=1;;
11437 *) AM_DEFAULT_VERBOSITY=0;;
11438 esac
11439 am_make=${MAKE-make}
11440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11441 printf %s "checking whether $am_make supports nested variables... " >&6; }
11442 if test ${am_cv_make_support_nested_variables+y}
11443 then :
11444 printf %s "(cached) " >&6
11445 else case e in #(
11446 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11447 BAR0=false
11448 BAR1=true
11449 V=1
11450 am__doit:
11451 @$(TRUE)
11452 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11453 am_cv_make_support_nested_variables=yes
11454 else
11455 am_cv_make_support_nested_variables=no
11456 fi ;;
11457 esac
11458 fi
11459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11460 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11461 if test $am_cv_make_support_nested_variables = yes; then
11462 AM_V='$(V)'
11463 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11464 else
11465 AM_V=$AM_DEFAULT_VERBOSITY
11466 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11467 fi
11468 AM_BACKSLASH='\'
11469
11470
11471
11472
11473 # Optional dependencies
11474
11475 # Check whether --with-xkb was given.
11476 if test ${with_xkb+y}
11477 then :
11478 withval=$with_xkb; use_xkb="$withval"
11479 else case e in #(
11480 e) use_xkb="yes" ;;
11481 esac
11482 fi
11483
11484 if test x$use_xkb != xno ; then
11485 XKBMODULE="xkbfile"
11486
11487 printf "%s\n" "#define XKB 1" >>confdefs.h
11488
11489 fi
11490
11491 # Obtain compiler/linker options from dependencies
11492
11493 pkg_failed=no
11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EDITRES" >&5
11495 printf %s "checking for EDITRES... " >&6; }
11496
11497 if test -n "$EDITRES_CFLAGS"; then
11498 pkg_cv_EDITRES_CFLAGS="$EDITRES_CFLAGS"
11499 elif test -n "$PKG_CONFIG"; then
11500 if test -n "$PKG_CONFIG" && \
11501 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 \${XKBMODULE}\""; } >&5
11502 ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}") 2>&5
11503 ac_status=$?
11504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11505 test $ac_status = 0; }; then
11506 pkg_cv_EDITRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null`
11507 test "x$?" != "x0" && pkg_failed=yes
11508 else
11509 pkg_failed=yes
11510 fi
11511 else
11512 pkg_failed=untried
11513 fi
11514 if test -n "$EDITRES_LIBS"; then
11515 pkg_cv_EDITRES_LIBS="$EDITRES_LIBS"
11516 elif test -n "$PKG_CONFIG"; then
11517 if test -n "$PKG_CONFIG" && \
11518 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 \${XKBMODULE}\""; } >&5
11519 ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}") 2>&5
11520 ac_status=$?
11521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11522 test $ac_status = 0; }; then
11523 pkg_cv_EDITRES_LIBS=`$PKG_CONFIG --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null`
11524 test "x$?" != "x0" && pkg_failed=yes
11525 else
11526 pkg_failed=yes
11527 fi
11528 else
11529 pkg_failed=untried
11530 fi
11531
11532
11533
11534 if test $pkg_failed = yes; then
11535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 printf "%s\n" "no" >&6; }
11537
11538 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11539 _pkg_short_errors_supported=yes
11540 else
11541 _pkg_short_errors_supported=no
11542 fi
11543 if test $_pkg_short_errors_supported = yes; then
11544 EDITRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>&1`
11545 else
11546 EDITRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>&1`
11547 fi
11548 # Put the nasty error message in config.log where it belongs
11549 echo "$EDITRES_PKG_ERRORS" >&5
11550
11551 as_fn_error $? "Package requirements (xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}) were not met:
11552
11553 $EDITRES_PKG_ERRORS
11554
11555 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11556 installed software in a non-standard prefix.
11557
11558 Alternatively, you may set the environment variables EDITRES_CFLAGS
11559 and EDITRES_LIBS to avoid the need to call pkg-config.
11560 See the pkg-config man page for more details." "$LINENO" 5
11561 elif test $pkg_failed = untried; then
11562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 printf "%s\n" "no" >&6; }
11564 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11565 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11566 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11567 is in your PATH or set the PKG_CONFIG environment variable to the full
11568 path to pkg-config.
11569
11570 Alternatively, you may set the environment variables EDITRES_CFLAGS
11571 and EDITRES_LIBS to avoid the need to call pkg-config.
11572 See the pkg-config man page for more details.
11573
11574 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11575 See 'config.log' for more details" "$LINENO" 5; }
11576 else
11577 EDITRES_CFLAGS=$pkg_cv_EDITRES_CFLAGS
11578 EDITRES_LIBS=$pkg_cv_EDITRES_LIBS
11579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11580 printf "%s\n" "yes" >&6; }
11581
11582 fi
11583
11584
11585 pkg_failed=no
11586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11587 printf %s "checking for APPDEFS... " >&6; }
11588
11589 if test -n "$APPDEFS_CFLAGS"; then
11590 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11591 elif test -n "$PKG_CONFIG"; then
11592 if test -n "$PKG_CONFIG" && \
11593 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11594 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11595 ac_status=$?
11596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11597 test $ac_status = 0; }; then
11598 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11599 test "x$?" != "x0" && pkg_failed=yes
11600 else
11601 pkg_failed=yes
11602 fi
11603 else
11604 pkg_failed=untried
11605 fi
11606 if test -n "$APPDEFS_LIBS"; then
11607 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11608 elif test -n "$PKG_CONFIG"; then
11609 if test -n "$PKG_CONFIG" && \
11610 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11611 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11612 ac_status=$?
11613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614 test $ac_status = 0; }; then
11615 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11616 test "x$?" != "x0" && pkg_failed=yes
11617 else
11618 pkg_failed=yes
11619 fi
11620 else
11621 pkg_failed=untried
11622 fi
11623
11624
11625
11626 if test $pkg_failed = yes; then
11627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11628 printf "%s\n" "no" >&6; }
11629
11630 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11631 _pkg_short_errors_supported=yes
11632 else
11633 _pkg_short_errors_supported=no
11634 fi
11635 if test $_pkg_short_errors_supported = yes; then
11636 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11637 else
11638 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11639 fi
11640 # Put the nasty error message in config.log where it belongs
11641 echo "$APPDEFS_PKG_ERRORS" >&5
11642
11643 as_fn_error $? "Package requirements (xt) were not met:
11644
11645 $APPDEFS_PKG_ERRORS
11646
11647 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11648 installed software in a non-standard prefix.
11649
11650 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11651 and APPDEFS_LIBS to avoid the need to call pkg-config.
11652 See the pkg-config man page for more details." "$LINENO" 5
11653 elif test $pkg_failed = untried; then
11654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655 printf "%s\n" "no" >&6; }
11656 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11657 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11658 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11659 is in your PATH or set the PKG_CONFIG environment variable to the full
11660 path to pkg-config.
11661
11662 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11663 and APPDEFS_LIBS to avoid the need to call pkg-config.
11664 See the pkg-config man page for more details.
11665
11666 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11667 See 'config.log' for more details" "$LINENO" 5; }
11668 else
11669 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11670 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11672 printf "%s\n" "yes" >&6; }
11673
11674 fi
11675 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11676
11677 # Check whether --with-appdefaultdir was given.
11678 if test ${with_appdefaultdir+y}
11679 then :
11680 withval=$with_appdefaultdir; appdefaultdir="$withval"
11681 else case e in #(
11682 e) appdefaultdir="${xt_appdefaultdir}" ;;
11683 esac
11684 fi
11685
11686
11687
11688 ac_config_files="$ac_config_files Makefile man/Makefile"
11689
11690 cat >confcache <<\_ACEOF
11691 # This file is a shell script that caches the results of configure
11692 # tests run on this system so they can be shared between configure
11693 # scripts and configure runs, see configure's option --config-cache.
11694 # It is not useful on other systems. If it contains results you don't
11695 # want to keep, you may remove or edit it.
11696 #
11697 # config.status only pays attention to the cache file if you give it
11698 # the --recheck option to rerun configure.
11699 #
11700 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11701 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11702 # following values.
11703
11704 _ACEOF
11705
11706 # The following way of writing the cache mishandles newlines in values,
11707 # but we know of no workaround that is simple, portable, and efficient.
11708 # So, we kill variables containing newlines.
11709 # Ultrix sh set writes to stderr and can't be redirected directly,
11710 # and sets the high bit in the cache file unless we assign to the vars.
11711 (
11712 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11713 eval ac_val=\$$ac_var
11714 case $ac_val in #(
11715 *${as_nl}*)
11716 case $ac_var in #(
11717 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11718 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11719 esac
11720 case $ac_var in #(
11721 _ | IFS | as_nl) ;; #(
11722 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11723 *) { eval $ac_var=; unset $ac_var;} ;;
11724 esac ;;
11725 esac
11726 done
11727
11728 (set) 2>&1 |
11729 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11730 *${as_nl}ac_space=\ *)
11731 # 'set' does not quote correctly, so add quotes: double-quote
11732 # substitution turns \\\\ into \\, and sed turns \\ into \.
11733 sed -n \
11734 "s/'/'\\\\''/g;
11735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11736 ;; #(
11737 *)
11738 # 'set' quotes correctly as required by POSIX, so do not add quotes.
11739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11740 ;;
11741 esac |
11742 sort
11743 ) |
11744 sed '
11745 /^ac_cv_env_/b end
11746 t clear
11747 :clear
11748 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11749 t end
11750 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11751 :end' >>confcache
11752 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11753 if test -w "$cache_file"; then
11754 if test "x$cache_file" != "x/dev/null"; then
11755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11756 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11757 if test ! -f "$cache_file" || test -h "$cache_file"; then
11758 cat confcache >"$cache_file"
11759 else
11760 case $cache_file in #(
11761 */* | ?:*)
11762 mv -f confcache "$cache_file"$$ &&
11763 mv -f "$cache_file"$$ "$cache_file" ;; #(
11764 *)
11765 mv -f confcache "$cache_file" ;;
11766 esac
11767 fi
11768 fi
11769 else
11770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11771 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11772 fi
11773 fi
11774 rm -f confcache
11775
11776 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11777 # Let make expand exec_prefix.
11778 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11779
11780 DEFS=-DHAVE_CONFIG_H
11781
11782 ac_libobjs=
11783 ac_ltlibobjs=
11784 U=
11785 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11786 # 1. Remove the extension, and $U if already installed.
11787 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11788 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11789 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11790 # will be set to the directory where LIBOBJS objects are built.
11791 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11792 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11793 done
11794 LIBOBJS=$ac_libobjs
11795
11796 LTLIBOBJS=$ac_ltlibobjs
11797
11798
11799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11800 printf %s "checking that generated files are newer than configure... " >&6; }
11801 if test -n "$am_sleep_pid"; then
11802 # Hide warnings about reused PIDs.
11803 wait $am_sleep_pid 2>/dev/null
11804 fi
11805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11806 printf "%s\n" "done" >&6; }
11807 if test -n "$EXEEXT"; then
11808 am__EXEEXT_TRUE=
11809 am__EXEEXT_FALSE='#'
11810 else
11811 am__EXEEXT_TRUE='#'
11812 am__EXEEXT_FALSE=
11813 fi
11814
11815 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11816 as_fn_error $? "conditional \"AMDEP\" was never defined.
11817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11818 fi
11819 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11820 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11822 fi
11823
11824 : "${CONFIG_STATUS=./config.status}"
11825 ac_write_fail=0
11826 ac_clean_files_save=$ac_clean_files
11827 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11829 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11830 as_write_fail=0
11831 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11832 #! $SHELL
11833 # Generated by $as_me.
11834 # Run this file to recreate the current configuration.
11835 # Compiler output produced by configure, useful for debugging
11836 # configure, is in config.log if it exists.
11837
11838 debug=false
11839 ac_cs_recheck=false
11840 ac_cs_silent=false
11841
11842 SHELL=\${CONFIG_SHELL-$SHELL}
11843 export SHELL
11844 _ASEOF
11845 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11846 ## -------------------- ##
11847 ## M4sh Initialization. ##
11848 ## -------------------- ##
11849
11850 # Be more Bourne compatible
11851 DUALCASE=1; export DUALCASE # for MKS sh
11852 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11853 then :
11854 emulate sh
11855 NULLCMD=:
11856 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11857 # is contrary to our usage. Disable this feature.
11858 alias -g '${1+"$@"}'='"$@"'
11859 setopt NO_GLOB_SUBST
11860 else case e in #(
11861 e) case `(set -o) 2>/dev/null` in #(
11862 *posix*) :
11863 set -o posix ;; #(
11864 *) :
11865 ;;
11866 esac ;;
11867 esac
11868 fi
11869
11870
11871
11872 # Reset variables that may have inherited troublesome values from
11873 # the environment.
11874
11875 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11876 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11877 # side effect of setting IFS to empty, thus disabling word splitting.)
11878 # Quoting is to prevent editors from complaining about space-tab.
11879 as_nl='
11880 '
11881 export as_nl
11882 IFS=" "" $as_nl"
11883
11884 PS1='$ '
11885 PS2='> '
11886 PS4='+ '
11887
11888 # Ensure predictable behavior from utilities with locale-dependent output.
11889 LC_ALL=C
11890 export LC_ALL
11891 LANGUAGE=C
11892 export LANGUAGE
11893
11894 # We cannot yet rely on "unset" to work, but we need these variables
11895 # to be unset--not just set to an empty or harmless value--now, to
11896 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11897 # also avoids known problems related to "unset" and subshell syntax
11898 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11899 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11900 do eval test \${$as_var+y} \
11901 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11902 done
11903
11904 # Ensure that fds 0, 1, and 2 are open.
11905 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11906 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11907 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11908
11909 # The user is always right.
11910 if ${PATH_SEPARATOR+false} :; then
11911 PATH_SEPARATOR=:
11912 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11913 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11914 PATH_SEPARATOR=';'
11915 }
11916 fi
11917
11918
11919 # Find who we are. Look in the path if we contain no directory separator.
11920 as_myself=
11921 case $0 in #((
11922 *[\\/]* ) as_myself=$0 ;;
11923 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in $PATH
11925 do
11926 IFS=$as_save_IFS
11927 case $as_dir in #(((
11928 '') as_dir=./ ;;
11929 */) ;;
11930 *) as_dir=$as_dir/ ;;
11931 esac
11932 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11933 done
11934 IFS=$as_save_IFS
11935
11936 ;;
11937 esac
11938 # We did not find ourselves, most probably we were run as 'sh COMMAND'
11939 # in which case we are not to be found in the path.
11940 if test "x$as_myself" = x; then
11941 as_myself=$0
11942 fi
11943 if test ! -f "$as_myself"; then
11944 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11945 exit 1
11946 fi
11947
11948
11949
11950 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11951 # ----------------------------------------
11952 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11953 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11954 # script with STATUS, using 1 if that was 0.
11955 as_fn_error ()
11956 {
11957 as_status=$1; test $as_status -eq 0 && as_status=1
11958 if test "$4"; then
11959 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11961 fi
11962 printf "%s\n" "$as_me: error: $2" >&2
11963 as_fn_exit $as_status
11964 } # as_fn_error
11965
11966
11967 # as_fn_set_status STATUS
11968 # -----------------------
11969 # Set $? to STATUS, without forking.
11970 as_fn_set_status ()
11971 {
11972 return $1
11973 } # as_fn_set_status
11974
11975 # as_fn_exit STATUS
11976 # -----------------
11977 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11978 as_fn_exit ()
11979 {
11980 set +e
11981 as_fn_set_status $1
11982 exit $1
11983 } # as_fn_exit
11984
11985 # as_fn_unset VAR
11986 # ---------------
11987 # Portably unset VAR.
11988 as_fn_unset ()
11989 {
11990 { eval $1=; unset $1;}
11991 }
11992 as_unset=as_fn_unset
11993
11994 # as_fn_append VAR VALUE
11995 # ----------------------
11996 # Append the text in VALUE to the end of the definition contained in VAR. Take
11997 # advantage of any shell optimizations that allow amortized linear growth over
11998 # repeated appends, instead of the typical quadratic growth present in naive
11999 # implementations.
12000 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12001 then :
12002 eval 'as_fn_append ()
12003 {
12004 eval $1+=\$2
12005 }'
12006 else case e in #(
12007 e) as_fn_append ()
12008 {
12009 eval $1=\$$1\$2
12010 } ;;
12011 esac
12012 fi # as_fn_append
12013
12014 # as_fn_arith ARG...
12015 # ------------------
12016 # Perform arithmetic evaluation on the ARGs, and store the result in the
12017 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12018 # must be portable across $(()) and expr.
12019 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12020 then :
12021 eval 'as_fn_arith ()
12022 {
12023 as_val=$(( $* ))
12024 }'
12025 else case e in #(
12026 e) as_fn_arith ()
12027 {
12028 as_val=`expr "$@" || test $? -eq 1`
12029 } ;;
12030 esac
12031 fi # as_fn_arith
12032
12033
12034 if expr a : '\(a\)' >/dev/null 2>&1 &&
12035 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12036 as_expr=expr
12037 else
12038 as_expr=false
12039 fi
12040
12041 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12042 as_basename=basename
12043 else
12044 as_basename=false
12045 fi
12046
12047 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12048 as_dirname=dirname
12049 else
12050 as_dirname=false
12051 fi
12052
12053 as_me=`$as_basename -- "$0" ||
12054 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12055 X"$0" : 'X\(//\)$' \| \
12056 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12057 printf "%s\n" X/"$0" |
12058 sed '/^.*\/\([^/][^/]*\)\/*$/{
12059 s//\1/
12060 q
12061 }
12062 /^X\/\(\/\/\)$/{
12063 s//\1/
12064 q
12065 }
12066 /^X\/\(\/\).*/{
12067 s//\1/
12068 q
12069 }
12070 s/.*/./; q'`
12071
12072 # Avoid depending upon Character Ranges.
12073 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12074 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12075 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12076 as_cr_digits='0123456789'
12077 as_cr_alnum=$as_cr_Letters$as_cr_digits
12078
12079
12080 # Determine whether it's possible to make 'echo' print without a newline.
12081 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12082 # for compatibility with existing Makefiles.
12083 ECHO_C= ECHO_N= ECHO_T=
12084 case `echo -n x` in #(((((
12085 -n*)
12086 case `echo 'xy\c'` in
12087 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12088 xy) ECHO_C='\c';;
12089 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12090 ECHO_T=' ';;
12091 esac;;
12092 *)
12093 ECHO_N='-n';;
12094 esac
12095
12096 # For backward compatibility with old third-party macros, we provide
12097 # the shell variables $as_echo and $as_echo_n. New code should use
12098 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12099 as_echo='printf %s\n'
12100 as_echo_n='printf %s'
12101
12102 rm -f conf$$ conf$$.exe conf$$.file
12103 if test -d conf$$.dir; then
12104 rm -f conf$$.dir/conf$$.file
12105 else
12106 rm -f conf$$.dir
12107 mkdir conf$$.dir 2>/dev/null
12108 fi
12109 if (echo >conf$$.file) 2>/dev/null; then
12110 if ln -s conf$$.file conf$$ 2>/dev/null; then
12111 as_ln_s='ln -s'
12112 # ... but there are two gotchas:
12113 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12114 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12115 # In both cases, we have to default to 'cp -pR'.
12116 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12117 as_ln_s='cp -pR'
12118 elif ln conf$$.file conf$$ 2>/dev/null; then
12119 as_ln_s=ln
12120 else
12121 as_ln_s='cp -pR'
12122 fi
12123 else
12124 as_ln_s='cp -pR'
12125 fi
12126 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12127 rmdir conf$$.dir 2>/dev/null
12128
12129
12130 # as_fn_mkdir_p
12131 # -------------
12132 # Create "$as_dir" as a directory, including parents if necessary.
12133 as_fn_mkdir_p ()
12134 {
12135
12136 case $as_dir in #(
12137 -*) as_dir=./$as_dir;;
12138 esac
12139 test -d "$as_dir" || eval $as_mkdir_p || {
12140 as_dirs=
12141 while :; do
12142 case $as_dir in #(
12143 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12144 *) as_qdir=$as_dir;;
12145 esac
12146 as_dirs="'$as_qdir' $as_dirs"
12147 as_dir=`$as_dirname -- "$as_dir" ||
12148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12149 X"$as_dir" : 'X\(//\)[^/]' \| \
12150 X"$as_dir" : 'X\(//\)$' \| \
12151 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12152 printf "%s\n" X"$as_dir" |
12153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12154 s//\1/
12155 q
12156 }
12157 /^X\(\/\/\)[^/].*/{
12158 s//\1/
12159 q
12160 }
12161 /^X\(\/\/\)$/{
12162 s//\1/
12163 q
12164 }
12165 /^X\(\/\).*/{
12166 s//\1/
12167 q
12168 }
12169 s/.*/./; q'`
12170 test -d "$as_dir" && break
12171 done
12172 test -z "$as_dirs" || eval "mkdir $as_dirs"
12173 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12174
12175
12176 } # as_fn_mkdir_p
12177 if mkdir -p . 2>/dev/null; then
12178 as_mkdir_p='mkdir -p "$as_dir"'
12179 else
12180 test -d ./-p && rmdir ./-p
12181 as_mkdir_p=false
12182 fi
12183
12184
12185 # as_fn_executable_p FILE
12186 # -----------------------
12187 # Test if FILE is an executable regular file.
12188 as_fn_executable_p ()
12189 {
12190 test -f "$1" && test -x "$1"
12191 } # as_fn_executable_p
12192 as_test_x='test -x'
12193 as_executable_p=as_fn_executable_p
12194
12195 # Sed expression to map a string onto a valid CPP name.
12196 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12197 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12198
12199 # Sed expression to map a string onto a valid variable name.
12200 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12201 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12202
12203
12204 exec 6>&1
12205 ## ----------------------------------- ##
12206 ## Main body of $CONFIG_STATUS script. ##
12207 ## ----------------------------------- ##
12208 _ASEOF
12209 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12210
12211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12212 # Save the log message, to keep $0 and so on meaningful, and to
12213 # report actual input values of CONFIG_FILES etc. instead of their
12214 # values after options handling.
12215 ac_log="
12216 This file was extended by editres $as_me 1.0.9, which was
12217 generated by GNU Autoconf 2.72. Invocation command line was
12218
12219 CONFIG_FILES = $CONFIG_FILES
12220 CONFIG_HEADERS = $CONFIG_HEADERS
12221 CONFIG_LINKS = $CONFIG_LINKS
12222 CONFIG_COMMANDS = $CONFIG_COMMANDS
12223 $ $0 $@
12224
12225 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12226 "
12227
12228 _ACEOF
12229
12230 case $ac_config_files in *"
12231 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12232 esac
12233
12234 case $ac_config_headers in *"
12235 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12236 esac
12237
12238
12239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12240 # Files that config.status was made for.
12241 config_files="$ac_config_files"
12242 config_headers="$ac_config_headers"
12243 config_commands="$ac_config_commands"
12244
12245 _ACEOF
12246
12247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12248 ac_cs_usage="\
12249 '$as_me' instantiates files and other configuration actions
12250 from templates according to the current configuration. Unless the files
12251 and actions are specified as TAGs, all are instantiated by default.
12252
12253 Usage: $0 [OPTION]... [TAG]...
12254
12255 -h, --help print this help, then exit
12256 -V, --version print version number and configuration settings, then exit
12257 --config print configuration, then exit
12258 -q, --quiet, --silent
12259 do not print progress messages
12260 -d, --debug don't remove temporary files
12261 --recheck update $as_me by reconfiguring in the same conditions
12262 --file=FILE[:TEMPLATE]
12263 instantiate the configuration file FILE
12264 --header=FILE[:TEMPLATE]
12265 instantiate the configuration header FILE
12266
12267 Configuration files:
12268 $config_files
12269
12270 Configuration headers:
12271 $config_headers
12272
12273 Configuration commands:
12274 $config_commands
12275
12276 Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/-/issues>."
12277
12278 _ACEOF
12279 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12280 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12282 ac_cs_config='$ac_cs_config_escaped'
12283 ac_cs_version="\\
12284 editres config.status 1.0.9
12285 configured by $0, generated by GNU Autoconf 2.72,
12286 with options \\"\$ac_cs_config\\"
12287
12288 Copyright (C) 2023 Free Software Foundation, Inc.
12289 This config.status script is free software; the Free Software Foundation
12290 gives unlimited permission to copy, distribute and modify it."
12291
12292 ac_pwd='$ac_pwd'
12293 srcdir='$srcdir'
12294 INSTALL='$INSTALL'
12295 MKDIR_P='$MKDIR_P'
12296 AWK='$AWK'
12297 test -n "\$AWK" || AWK=awk
12298 _ACEOF
12299
12300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12301 # The default lists apply if the user does not specify any file.
12302 ac_need_defaults=:
12303 while test $# != 0
12304 do
12305 case $1 in
12306 --*=?*)
12307 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12308 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12309 ac_shift=:
12310 ;;
12311 --*=)
12312 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12313 ac_optarg=
12314 ac_shift=:
12315 ;;
12316 *)
12317 ac_option=$1
12318 ac_optarg=$2
12319 ac_shift=shift
12320 ;;
12321 esac
12322
12323 case $ac_option in
12324 # Handling of the options.
12325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12326 ac_cs_recheck=: ;;
12327 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12328 printf "%s\n" "$ac_cs_version"; exit ;;
12329 --config | --confi | --conf | --con | --co | --c )
12330 printf "%s\n" "$ac_cs_config"; exit ;;
12331 --debug | --debu | --deb | --de | --d | -d )
12332 debug=: ;;
12333 --file | --fil | --fi | --f )
12334 $ac_shift
12335 case $ac_optarg in
12336 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12337 '') as_fn_error $? "missing file argument" ;;
12338 esac
12339 as_fn_append CONFIG_FILES " '$ac_optarg'"
12340 ac_need_defaults=false;;
12341 --header | --heade | --head | --hea )
12342 $ac_shift
12343 case $ac_optarg in
12344 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12345 esac
12346 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12347 ac_need_defaults=false;;
12348 --he | --h)
12349 # Conflict between --help and --header
12350 as_fn_error $? "ambiguous option: '$1'
12351 Try '$0 --help' for more information.";;
12352 --help | --hel | -h )
12353 printf "%s\n" "$ac_cs_usage"; exit ;;
12354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12355 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12356 ac_cs_silent=: ;;
12357
12358 # This is an error.
12359 -*) as_fn_error $? "unrecognized option: '$1'
12360 Try '$0 --help' for more information." ;;
12361
12362 *) as_fn_append ac_config_targets " $1"
12363 ac_need_defaults=false ;;
12364
12365 esac
12366 shift
12367 done
12368
12369 ac_configure_extra_args=
12370
12371 if $ac_cs_silent; then
12372 exec 6>/dev/null
12373 ac_configure_extra_args="$ac_configure_extra_args --silent"
12374 fi
12375
12376 _ACEOF
12377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12378 if \$ac_cs_recheck; then
12379 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12380 shift
12381 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12382 CONFIG_SHELL='$SHELL'
12383 export CONFIG_SHELL
12384 exec "\$@"
12385 fi
12386
12387 _ACEOF
12388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12389 exec 5>>config.log
12390 {
12391 echo
12392 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12393 ## Running $as_me. ##
12394 _ASBOX
12395 printf "%s\n" "$ac_log"
12396 } >&5
12397
12398 _ACEOF
12399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12400 #
12401 # INIT-COMMANDS
12402 #
12403 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12404
12405 _ACEOF
12406
12407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408
12409 # Handling of arguments.
12410 for ac_config_target in $ac_config_targets
12411 do
12412 case $ac_config_target in
12413 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12414 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12415 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12416 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12417
12418 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12419 esac
12420 done
12421
12422
12423 # If the user did not use the arguments to specify the items to instantiate,
12424 # then the envvar interface is used. Set only those that are not.
12425 # We use the long form for the default assignment because of an extremely
12426 # bizarre bug on SunOS 4.1.3.
12427 if $ac_need_defaults; then
12428 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12429 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12430 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12431 fi
12432
12433 # Have a temporary directory for convenience. Make it in the build tree
12434 # simply because there is no reason against having it here, and in addition,
12435 # creating and moving files from /tmp can sometimes cause problems.
12436 # Hook for its removal unless debugging.
12437 # Note that there is a small window in which the directory will not be cleaned:
12438 # after its creation but before its name has been assigned to '$tmp'.
12439 $debug ||
12440 {
12441 tmp= ac_tmp=
12442 trap 'exit_status=$?
12443 : "${ac_tmp:=$tmp}"
12444 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12445 ' 0
12446 trap 'as_fn_exit 1' 1 2 13 15
12447 }
12448 # Create a (secure) tmp directory for tmp files.
12449
12450 {
12451 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12452 test -d "$tmp"
12453 } ||
12454 {
12455 tmp=./conf$$-$RANDOM
12456 (umask 077 && mkdir "$tmp")
12457 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12458 ac_tmp=$tmp
12459
12460 # Set up the scripts for CONFIG_FILES section.
12461 # No need to generate them if there are no CONFIG_FILES.
12462 # This happens for instance with './config.status config.h'.
12463 if test -n "$CONFIG_FILES"; then
12464
12465
12466 ac_cr=`echo X | tr X '\015'`
12467 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12468 # But we know of no other shell where ac_cr would be empty at this
12469 # point, so we can use a bashism as a fallback.
12470 if test "x$ac_cr" = x; then
12471 eval ac_cr=\$\'\\r\'
12472 fi
12473 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12474 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12475 ac_cs_awk_cr='\\r'
12476 else
12477 ac_cs_awk_cr=$ac_cr
12478 fi
12479
12480 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12481 _ACEOF
12482
12483
12484 {
12485 echo "cat >conf$$subs.awk <<_ACEOF" &&
12486 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12487 echo "_ACEOF"
12488 } >conf$$subs.sh ||
12489 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12490 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12491 ac_delim='%!_!# '
12492 for ac_last_try in false false false false false :; do
12493 . ./conf$$subs.sh ||
12494 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12495
12496 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12497 if test $ac_delim_n = $ac_delim_num; then
12498 break
12499 elif $ac_last_try; then
12500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12501 else
12502 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12503 fi
12504 done
12505 rm -f conf$$subs.sh
12506
12507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12508 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12509 _ACEOF
12510 sed -n '
12511 h
12512 s/^/S["/; s/!.*/"]=/
12513 p
12514 g
12515 s/^[^!]*!//
12516 :repl
12517 t repl
12518 s/'"$ac_delim"'$//
12519 t delim
12520 :nl
12521 h
12522 s/\(.\{148\}\)..*/\1/
12523 t more1
12524 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12525 p
12526 n
12527 b repl
12528 :more1
12529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12530 p
12531 g
12532 s/.\{148\}//
12533 t nl
12534 :delim
12535 h
12536 s/\(.\{148\}\)..*/\1/
12537 t more2
12538 s/["\\]/\\&/g; s/^/"/; s/$/"/
12539 p
12540 b
12541 :more2
12542 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12543 p
12544 g
12545 s/.\{148\}//
12546 t delim
12547 ' <conf$$subs.awk | sed '
12548 /^[^""]/{
12549 N
12550 s/\n//
12551 }
12552 ' >>$CONFIG_STATUS || ac_write_fail=1
12553 rm -f conf$$subs.awk
12554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12555 _ACAWK
12556 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12557 for (key in S) S_is_set[key] = 1
12558 FS = ""
12559
12560 }
12561 {
12562 line = $ 0
12563 nfields = split(line, field, "@")
12564 substed = 0
12565 len = length(field[1])
12566 for (i = 2; i < nfields; i++) {
12567 key = field[i]
12568 keylen = length(key)
12569 if (S_is_set[key]) {
12570 value = S[key]
12571 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12572 len += length(value) + length(field[++i])
12573 substed = 1
12574 } else
12575 len += 1 + keylen
12576 }
12577
12578 print line
12579 }
12580
12581 _ACAWK
12582 _ACEOF
12583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12584 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12585 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12586 else
12587 cat
12588 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12589 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12590 _ACEOF
12591
12592 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12593 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12594 # trailing colons and then remove the whole line if VPATH becomes empty
12595 # (actually we leave an empty line to preserve line numbers).
12596 if test "x$srcdir" = x.; then
12597 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12598 h
12599 s///
12600 s/^/:/
12601 s/[ ]*$/:/
12602 s/:\$(srcdir):/:/g
12603 s/:\${srcdir}:/:/g
12604 s/:@srcdir@:/:/g
12605 s/^:*//
12606 s/:*$//
12607 x
12608 s/\(=[ ]*\).*/\1/
12609 G
12610 s/\n//
12611 s/^[^=]*=[ ]*$//
12612 }'
12613 fi
12614
12615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12616 fi # test -n "$CONFIG_FILES"
12617
12618 # Set up the scripts for CONFIG_HEADERS section.
12619 # No need to generate them if there are no CONFIG_HEADERS.
12620 # This happens for instance with './config.status Makefile'.
12621 if test -n "$CONFIG_HEADERS"; then
12622 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12623 BEGIN {
12624 _ACEOF
12625
12626 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12627 # here-document in config.status, that substitutes the proper values into
12628 # config.h.in to produce config.h.
12629
12630 # Create a delimiter string that does not exist in confdefs.h, to ease
12631 # handling of long lines.
12632 ac_delim='%!_!# '
12633 for ac_last_try in false false :; do
12634 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12635 if test -z "$ac_tt"; then
12636 break
12637 elif $ac_last_try; then
12638 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12639 else
12640 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12641 fi
12642 done
12643
12644 # For the awk script, D is an array of macro values keyed by name,
12645 # likewise P contains macro parameters if any. Preserve backslash
12646 # newline sequences.
12647
12648 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12649 sed -n '
12650 s/.\{148\}/&'"$ac_delim"'/g
12651 t rset
12652 :rset
12653 s/^[ ]*#[ ]*define[ ][ ]*/ /
12654 t def
12655 d
12656 :def
12657 s/\\$//
12658 t bsnl
12659 s/["\\]/\\&/g
12660 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12661 D["\1"]=" \3"/p
12662 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12663 d
12664 :bsnl
12665 s/["\\]/\\&/g
12666 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12667 D["\1"]=" \3\\\\\\n"\\/p
12668 t cont
12669 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12670 t cont
12671 d
12672 :cont
12673 n
12674 s/.\{148\}/&'"$ac_delim"'/g
12675 t clear
12676 :clear
12677 s/\\$//
12678 t bsnlc
12679 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12680 d
12681 :bsnlc
12682 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12683 b cont
12684 ' <confdefs.h | sed '
12685 s/'"$ac_delim"'/"\\\
12686 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12687
12688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12689 for (key in D) D_is_set[key] = 1
12690 FS = ""
12691 }
12692 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12693 line = \$ 0
12694 split(line, arg, " ")
12695 if (arg[1] == "#") {
12696 defundef = arg[2]
12697 mac1 = arg[3]
12698 } else {
12699 defundef = substr(arg[1], 2)
12700 mac1 = arg[2]
12701 }
12702 split(mac1, mac2, "(") #)
12703 macro = mac2[1]
12704 prefix = substr(line, 1, index(line, defundef) - 1)
12705 if (D_is_set[macro]) {
12706 # Preserve the white space surrounding the "#".
12707 print prefix "define", macro P[macro] D[macro]
12708 next
12709 } else {
12710 # Replace #undef with comments. This is necessary, for example,
12711 # in the case of _POSIX_SOURCE, which is predefined and required
12712 # on some systems where configure will not decide to define it.
12713 if (defundef == "undef") {
12714 print "/*", prefix defundef, macro, "*/"
12715 next
12716 }
12717 }
12718 }
12719 { print }
12720 _ACAWK
12721 _ACEOF
12722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12723 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12724 fi # test -n "$CONFIG_HEADERS"
12725
12726
12727 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12728 shift
12729 for ac_tag
12730 do
12731 case $ac_tag in
12732 :[FHLC]) ac_mode=$ac_tag; continue;;
12733 esac
12734 case $ac_mode$ac_tag in
12735 :[FHL]*:*);;
12736 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12737 :[FH]-) ac_tag=-:-;;
12738 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12739 esac
12740 ac_save_IFS=$IFS
12741 IFS=:
12742 set x $ac_tag
12743 IFS=$ac_save_IFS
12744 shift
12745 ac_file=$1
12746 shift
12747
12748 case $ac_mode in
12749 :L) ac_source=$1;;
12750 :[FH])
12751 ac_file_inputs=
12752 for ac_f
12753 do
12754 case $ac_f in
12755 -) ac_f="$ac_tmp/stdin";;
12756 *) # Look for the file first in the build tree, then in the source tree
12757 # (if the path is not absolute). The absolute path cannot be DOS-style,
12758 # because $ac_f cannot contain ':'.
12759 test -f "$ac_f" ||
12760 case $ac_f in
12761 [\\/$]*) false;;
12762 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12763 esac ||
12764 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12765 esac
12766 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12767 as_fn_append ac_file_inputs " '$ac_f'"
12768 done
12769
12770 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12771 # use $as_me), people would be surprised to read:
12772 # /* config.h. Generated by config.status. */
12773 configure_input='Generated from '`
12774 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12775 `' by configure.'
12776 if test x"$ac_file" != x-; then
12777 configure_input="$ac_file. $configure_input"
12778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12779 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12780 fi
12781 # Neutralize special characters interpreted by sed in replacement strings.
12782 case $configure_input in #(
12783 *\&* | *\|* | *\\* )
12784 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12785 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12786 *) ac_sed_conf_input=$configure_input;;
12787 esac
12788
12789 case $ac_tag in
12790 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12792 esac
12793 ;;
12794 esac
12795
12796 ac_dir=`$as_dirname -- "$ac_file" ||
12797 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12798 X"$ac_file" : 'X\(//\)[^/]' \| \
12799 X"$ac_file" : 'X\(//\)$' \| \
12800 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12801 printf "%s\n" X"$ac_file" |
12802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12803 s//\1/
12804 q
12805 }
12806 /^X\(\/\/\)[^/].*/{
12807 s//\1/
12808 q
12809 }
12810 /^X\(\/\/\)$/{
12811 s//\1/
12812 q
12813 }
12814 /^X\(\/\).*/{
12815 s//\1/
12816 q
12817 }
12818 s/.*/./; q'`
12819 as_dir="$ac_dir"; as_fn_mkdir_p
12820 ac_builddir=.
12821
12822 case "$ac_dir" in
12823 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12824 *)
12825 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12826 # A ".." for each directory in $ac_dir_suffix.
12827 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12828 case $ac_top_builddir_sub in
12829 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12830 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12831 esac ;;
12832 esac
12833 ac_abs_top_builddir=$ac_pwd
12834 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12835 # for backward compatibility:
12836 ac_top_builddir=$ac_top_build_prefix
12837
12838 case $srcdir in
12839 .) # We are building in place.
12840 ac_srcdir=.
12841 ac_top_srcdir=$ac_top_builddir_sub
12842 ac_abs_top_srcdir=$ac_pwd ;;
12843 [\\/]* | ?:[\\/]* ) # Absolute name.
12844 ac_srcdir=$srcdir$ac_dir_suffix;
12845 ac_top_srcdir=$srcdir
12846 ac_abs_top_srcdir=$srcdir ;;
12847 *) # Relative name.
12848 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12849 ac_top_srcdir=$ac_top_build_prefix$srcdir
12850 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12851 esac
12852 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12853
12854
12855 case $ac_mode in
12856 :F)
12857 #
12858 # CONFIG_FILE
12859 #
12860
12861 case $INSTALL in
12862 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12863 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12864 esac
12865 ac_MKDIR_P=$MKDIR_P
12866 case $MKDIR_P in
12867 [\\/$]* | ?:[\\/]* ) ;;
12868 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12869 esac
12870 _ACEOF
12871
12872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12873 # If the template does not know about datarootdir, expand it.
12874 # FIXME: This hack should be removed a few years after 2.60.
12875 ac_datarootdir_hack=; ac_datarootdir_seen=
12876 ac_sed_dataroot='
12877 /datarootdir/ {
12878 p
12879 q
12880 }
12881 /@datadir@/p
12882 /@docdir@/p
12883 /@infodir@/p
12884 /@localedir@/p
12885 /@mandir@/p'
12886 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12887 *datarootdir*) ac_datarootdir_seen=yes;;
12888 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12890 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12891 _ACEOF
12892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12893 ac_datarootdir_hack='
12894 s&@datadir@&$datadir&g
12895 s&@docdir@&$docdir&g
12896 s&@infodir@&$infodir&g
12897 s&@localedir@&$localedir&g
12898 s&@mandir@&$mandir&g
12899 s&\\\${datarootdir}&$datarootdir&g' ;;
12900 esac
12901 _ACEOF
12902
12903 # Neutralize VPATH when '$srcdir' = '.'.
12904 # Shell code in configure.ac might set extrasub.
12905 # FIXME: do we really want to maintain this feature?
12906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12907 ac_sed_extra="$ac_vpsub
12908 $extrasub
12909 _ACEOF
12910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12911 :t
12912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12913 s|@configure_input@|$ac_sed_conf_input|;t t
12914 s&@top_builddir@&$ac_top_builddir_sub&;t t
12915 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12916 s&@srcdir@&$ac_srcdir&;t t
12917 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12918 s&@top_srcdir@&$ac_top_srcdir&;t t
12919 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12920 s&@builddir@&$ac_builddir&;t t
12921 s&@abs_builddir@&$ac_abs_builddir&;t t
12922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12923 s&@INSTALL@&$ac_INSTALL&;t t
12924 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12925 $ac_datarootdir_hack
12926 "
12927 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12928 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12929
12930 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12931 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12932 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12933 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12935 which seems to be undefined. Please make sure it is defined" >&5
12936 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12937 which seems to be undefined. Please make sure it is defined" >&2;}
12938
12939 rm -f "$ac_tmp/stdin"
12940 case $ac_file in
12941 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12942 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12943 esac \
12944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12945 ;;
12946 :H)
12947 #
12948 # CONFIG_HEADER
12949 #
12950 if test x"$ac_file" != x-; then
12951 {
12952 printf "%s\n" "/* $configure_input */" >&1 \
12953 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12954 } >"$ac_tmp/config.h" \
12955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12956 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12958 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12959 else
12960 rm -f "$ac_file"
12961 mv "$ac_tmp/config.h" "$ac_file" \
12962 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12963 fi
12964 else
12965 printf "%s\n" "/* $configure_input */" >&1 \
12966 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12967 || as_fn_error $? "could not create -" "$LINENO" 5
12968 fi
12969 # Compute "$ac_file"'s index in $config_headers.
12970 _am_arg="$ac_file"
12971 _am_stamp_count=1
12972 for _am_header in $config_headers :; do
12973 case $_am_header in
12974 $_am_arg | $_am_arg:* )
12975 break ;;
12976 * )
12977 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12978 esac
12979 done
12980 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12981 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12982 X"$_am_arg" : 'X\(//\)[^/]' \| \
12983 X"$_am_arg" : 'X\(//\)$' \| \
12984 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12985 printf "%s\n" X"$_am_arg" |
12986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12987 s//\1/
12988 q
12989 }
12990 /^X\(\/\/\)[^/].*/{
12991 s//\1/
12992 q
12993 }
12994 /^X\(\/\/\)$/{
12995 s//\1/
12996 q
12997 }
12998 /^X\(\/\).*/{
12999 s//\1/
13000 q
13001 }
13002 s/.*/./; q'`/stamp-h$_am_stamp_count
13003 ;;
13004
13005 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13006 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13007 ;;
13008 esac
13009
13010
13011 case $ac_file$ac_mode in
13012 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13013 # Older Autoconf quotes --file arguments for eval, but not when files
13014 # are listed without --file. Let's play safe and only enable the eval
13015 # if we detect the quoting.
13016 # TODO: see whether this extra hack can be removed once we start
13017 # requiring Autoconf 2.70 or later.
13018 case $CONFIG_FILES in #(
13019 *\'*) :
13020 eval set x "$CONFIG_FILES" ;; #(
13021 *) :
13022 set x $CONFIG_FILES ;; #(
13023 *) :
13024 ;;
13025 esac
13026 shift
13027 # Used to flag and report bootstrapping failures.
13028 am_rc=0
13029 for am_mf
13030 do
13031 # Strip MF so we end up with the name of the file.
13032 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13033 # Check whether this is an Automake generated Makefile which includes
13034 # dependency-tracking related rules and includes.
13035 # Grep'ing the whole file directly is not great: AIX grep has a line
13036 # limit of 2048, but all sed's we know have understand at least 4000.
13037 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13038 || continue
13039 am_dirpart=`$as_dirname -- "$am_mf" ||
13040 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13041 X"$am_mf" : 'X\(//\)[^/]' \| \
13042 X"$am_mf" : 'X\(//\)$' \| \
13043 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13044 printf "%s\n" X"$am_mf" |
13045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13046 s//\1/
13047 q
13048 }
13049 /^X\(\/\/\)[^/].*/{
13050 s//\1/
13051 q
13052 }
13053 /^X\(\/\/\)$/{
13054 s//\1/
13055 q
13056 }
13057 /^X\(\/\).*/{
13058 s//\1/
13059 q
13060 }
13061 s/.*/./; q'`
13062 am_filepart=`$as_basename -- "$am_mf" ||
13063 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13064 X"$am_mf" : 'X\(//\)$' \| \
13065 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13066 printf "%s\n" X/"$am_mf" |
13067 sed '/^.*\/\([^/][^/]*\)\/*$/{
13068 s//\1/
13069 q
13070 }
13071 /^X\/\(\/\/\)$/{
13072 s//\1/
13073 q
13074 }
13075 /^X\/\(\/\).*/{
13076 s//\1/
13077 q
13078 }
13079 s/.*/./; q'`
13080 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13081 && sed -e '/# am--include-marker/d' "$am_filepart" \
13082 | $MAKE -f - am--depfiles" >&5
13083 (cd "$am_dirpart" \
13084 && sed -e '/# am--include-marker/d' "$am_filepart" \
13085 | $MAKE -f - am--depfiles) >&5 2>&5
13086 ac_status=$?
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } || am_rc=$?
13089 done
13090 if test $am_rc -ne 0; then
13091 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13092 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13093 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13094 for automatic dependency tracking. If GNU make was not used, consider
13095 re-running the configure script with MAKE=\"gmake\" (or whatever is
13096 necessary). You can also try re-running configure with the
13097 '--disable-dependency-tracking' option to at least be able to build
13098 the package (albeit without support for automatic dependency tracking).
13099 See 'config.log' for more details" "$LINENO" 5; }
13100 fi
13101 { am_dirpart=; unset am_dirpart;}
13102 { am_filepart=; unset am_filepart;}
13103 { am_mf=; unset am_mf;}
13104 { am_rc=; unset am_rc;}
13105 rm -f conftest-deps.mk
13106 }
13107 ;;
13108
13109 esac
13110 done # for ac_tag
13111
13112
13113 as_fn_exit 0
13114 _ACEOF
13115 ac_clean_files=$ac_clean_files_save
13116
13117 test $ac_write_fail = 0 ||
13118 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13119
13120
13121 # configure is writing to config.log, and then calls config.status.
13122 # config.status does its own redirection, appending to config.log.
13123 # Unfortunately, on DOS this fails, as config.log is still kept open
13124 # by configure, so config.status won't be able to write to it; its
13125 # output is simply discarded. So we exec the FD to /dev/null,
13126 # effectively closing config.log, so it can be properly (re)opened and
13127 # appended to by config.status. When coming back to configure, we
13128 # need to make the FD available again.
13129 if test "$no_create" != yes; then
13130 ac_cs_success=:
13131 ac_config_status_args=
13132 test "$silent" = yes &&
13133 ac_config_status_args="$ac_config_status_args --quiet"
13134 exec 5>/dev/null
13135 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13136 exec 5>>config.log
13137 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13138 # would make configure fail if this is the last instruction.
13139 $ac_cs_success || as_fn_exit 1
13140 fi
13141 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13143 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13144 fi
13145
13146
13147