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.71 for fonttosfnt 1.2.3.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='fonttosfnt'
614 PACKAGE_TARNAME='fonttosfnt'
615 PACKAGE_VERSION='1.2.3'
616 PACKAGE_STRING='fonttosfnt 1.2.3'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 FONTTOSFNT_LIBS
658 FONTTOSFNT_CFLAGS
659 NEED_SETENV_FALSE
660 NEED_SETENV_TRUE
661 MAN_SUBSTS
662 XORG_MAN_PAGE
663 ADMIN_MAN_DIR
664 DRIVER_MAN_DIR
665 MISC_MAN_DIR
666 FILE_MAN_DIR
667 LIB_MAN_DIR
668 APP_MAN_DIR
669 ADMIN_MAN_SUFFIX
670 DRIVER_MAN_SUFFIX
671 MISC_MAN_SUFFIX
672 FILE_MAN_SUFFIX
673 LIB_MAN_SUFFIX
674 APP_MAN_SUFFIX
675 SED
676 host_os
677 host_vendor
678 host_cpu
679 host
680 build_os
681 build_vendor
682 build_cpu
683 build
684 INSTALL_CMD
685 PKG_CONFIG_LIBDIR
686 PKG_CONFIG_PATH
687 PKG_CONFIG
688 CHANGELOG_CMD
689 STRICT_CFLAGS
690 CWARNFLAGS
691 BASE_CFLAGS
692 am__fastdepCC_FALSE
693 am__fastdepCC_TRUE
694 CCDEPMODE
695 am__nodep
696 AMDEPBACKSLASH
697 AMDEP_FALSE
698 AMDEP_TRUE
699 am__include
700 DEPDIR
701 OBJEXT
702 EXEEXT
703 ac_ct_CC
704 CPPFLAGS
705 LDFLAGS
706 CFLAGS
707 CC
708 AM_BACKSLASH
709 AM_DEFAULT_VERBOSITY
710 AM_DEFAULT_V
711 AM_V
712 CSCOPE
713 ETAGS
714 CTAGS
715 am__untar
716 am__tar
717 AMTAR
718 am__leading_dot
719 SET_MAKE
720 AWK
721 mkdir_p
722 MKDIR_P
723 INSTALL_STRIP_PROGRAM
724 STRIP
725 install_sh
726 MAKEINFO
727 AUTOHEADER
728 AUTOMAKE
729 AUTOCONF
730 ACLOCAL
731 VERSION
732 PACKAGE
733 CYGPATH_W
734 am__isrc
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 runstatedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL
777 am__quote'
778 ac_subst_files=''
779 ac_user_opts='
780 enable_option_checking
781 enable_silent_rules
782 enable_dependency_tracking
783 enable_selective_werror
784 enable_strict_compilation
785 '
786 ac_precious_vars='build_alias
787 host_alias
788 target_alias
789 CC
790 CFLAGS
791 LDFLAGS
792 LIBS
793 CPPFLAGS
794 PKG_CONFIG
795 PKG_CONFIG_PATH
796 PKG_CONFIG_LIBDIR
797 FONTTOSFNT_CFLAGS
798 FONTTOSFNT_LIBS'
799
800
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 runstatedir='${localstatedir}/run'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: \`$ac_useropt'"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: \`$ac_useropt'"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -runstatedir | --runstatedir | --runstatedi | --runstated \
1089 | --runstate | --runstat | --runsta | --runst | --runs \
1090 | --run | --ru | --r)
1091 ac_prev=runstatedir ;;
1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1094 | --run=* | --ru=* | --r=*)
1095 runstatedir=$ac_optarg ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: \`$ac_useropt'"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: \`$ac_useropt'"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir runstatedir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1264 fi
1265 fi
1266
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270 test "$silent" = yes && exec 6>/dev/null
1271
1272
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 printf "%s\n" X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1311 fi
1312 else
1313 ac_srcdir_defaulted=no
1314 fi
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 fi
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1326 fi
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1339
1340 #
1341 # Report the --help message.
1342 #
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 \`configure' configures fonttosfnt 1.2.3 to adapt to many kinds of systems.
1348
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1353
1354 Defaults for the options are specified in brackets.
1355
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1372
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1377
1378 For better control, use the options below.
1379
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/fonttosfnt]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1402
1403 cat <<\_ACEOF
1404
1405 Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of fonttosfnt 1.2.3:";;
1419 esac
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-silent-rules less verbose build output (undo: "make V=1")
1427 --disable-silent-rules verbose build output (undo: "make V=0")
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --disable-selective-werror
1433 Turn off selective compiler errors. (default:
1434 enabled)
1435 --enable-strict-compilation
1436 Enable all warnings from compiler and make them
1437 errors (default: disabled)
1438
1439 Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1447 PKG_CONFIG path to pkg-config utility
1448 PKG_CONFIG_PATH
1449 directories to add to pkg-config's search path
1450 PKG_CONFIG_LIBDIR
1451 path overriding pkg-config's built-in search path
1452 FONTTOSFNT_CFLAGS
1453 C compiler flags for FONTTOSFNT, overriding pkg-config
1454 FONTTOSFNT_LIBS
1455 linker flags for FONTTOSFNT, overriding pkg-config
1456
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1459
1460 Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues>.
1461 _ACEOF
1462 ac_status=$?
1463 fi
1464
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
1471 ac_builddir=.
1472
1473 case "$ac_dir" in
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *)
1476 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483 esac
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1488
1489 case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 esac
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for configure.gnu first; this name is used for a wrapper for
1507 # Metaconfig's "Configure" on case-insensitive file systems.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1514 else
1515 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1518 done
1519 fi
1520
1521 test -n "$ac_init_help" && exit $ac_status
1522 if $ac_init_version; then
1523 cat <<\_ACEOF
1524 fonttosfnt configure 1.2.3
1525 generated by GNU Autoconf 2.71
1526
1527 Copyright (C) 2021 Free Software Foundation, Inc.
1528 This configure script is free software; the Free Software Foundation
1529 gives unlimited permission to copy, distribute and modify it.
1530 _ACEOF
1531 exit
1532 fi
1533
1534 ## ------------------------ ##
1535 ## Autoconf initialization. ##
1536 ## ------------------------ ##
1537
1538 # ac_fn_c_try_compile LINENO
1539 # --------------------------
1540 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1541 ac_fn_c_try_compile ()
1542 {
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext conftest.beam
1545 if { { ac_try="$ac_compile"
1546 case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549 esac
1550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551 printf "%s\n" "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext
1564 then :
1565 ac_retval=0
1566 else $as_nop
1567 printf "%s\n" "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1569
1570 ac_retval=1
1571 fi
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1574
1575 } # ac_fn_c_try_compile
1576
1577 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1578 # ------------------------------------------------------------------
1579 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1580 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1581 ac_fn_check_decl ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 as_decl_name=`echo $2|sed 's/ *(.*//'`
1585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1586 printf %s "checking whether $as_decl_name is declared... " >&6; }
1587 if eval test \${$3+y}
1588 then :
1589 printf %s "(cached) " >&6
1590 else $as_nop
1591 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1592 eval ac_save_FLAGS=\$$6
1593 as_fn_append $6 " $5"
1594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595 /* end confdefs.h. */
1596 $4
1597 int
1598 main (void)
1599 {
1600 #ifndef $as_decl_name
1601 #ifdef __cplusplus
1602 (void) $as_decl_use;
1603 #else
1604 (void) $as_decl_name;
1605 #endif
1606 #endif
1607
1608 ;
1609 return 0;
1610 }
1611 _ACEOF
1612 if ac_fn_c_try_compile "$LINENO"
1613 then :
1614 eval "$3=yes"
1615 else $as_nop
1616 eval "$3=no"
1617 fi
1618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1619 eval $6=\$ac_save_FLAGS
1620
1621 fi
1622 eval ac_res=\$$3
1623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 printf "%s\n" "$ac_res" >&6; }
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626
1627 } # ac_fn_check_decl
1628
1629 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1630 # -------------------------------------------------------
1631 # Tests whether HEADER exists and can be compiled using the include files in
1632 # INCLUDES, setting the cache variable VAR accordingly.
1633 ac_fn_c_check_header_compile ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 printf %s "checking for $2... " >&6; }
1638 if eval test \${$3+y}
1639 then :
1640 printf %s "(cached) " >&6
1641 else $as_nop
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1644 $4
1645 #include <$2>
1646 _ACEOF
1647 if ac_fn_c_try_compile "$LINENO"
1648 then :
1649 eval "$3=yes"
1650 else $as_nop
1651 eval "$3=no"
1652 fi
1653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1654 fi
1655 eval ac_res=\$$3
1656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657 printf "%s\n" "$ac_res" >&6; }
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659
1660 } # ac_fn_c_check_header_compile
1661
1662 # ac_fn_c_try_link LINENO
1663 # -----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded.
1665 ac_fn_c_try_link ()
1666 {
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1669 if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 printf "%s\n" "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && {
1685 test -z "$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 } && test -s conftest$ac_exeext && {
1688 test "$cross_compiling" = yes ||
1689 test -x conftest$ac_exeext
1690 }
1691 then :
1692 ac_retval=0
1693 else $as_nop
1694 printf "%s\n" "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=1
1698 fi
1699 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1700 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1701 # interfere with the next link command; also delete a directory that is
1702 # left behind by Apple's compiler. We do this before executing the actions.
1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_link
1708
1709 # ac_fn_c_check_func LINENO FUNC VAR
1710 # ----------------------------------
1711 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1712 ac_fn_c_check_func ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 printf %s "checking for $2... " >&6; }
1717 if eval test \${$3+y}
1718 then :
1719 printf %s "(cached) " >&6
1720 else $as_nop
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1725 #define $2 innocuous_$2
1726
1727 /* System header to define __stub macros and hopefully few prototypes,
1728 which can conflict with char $2 (); below. */
1729
1730 #include <limits.h>
1731 #undef $2
1732
1733 /* Override any GCC internal prototype to avoid an error.
1734 Use char because int might match the return type of a GCC
1735 builtin and then its argument prototype would still apply. */
1736 #ifdef __cplusplus
1737 extern "C"
1738 #endif
1739 char $2 ();
1740 /* The GNU C library defines this for functions which it implements
1741 to always fail with ENOSYS. Some functions are actually named
1742 something starting with __ and the normal name is an alias. */
1743 #if defined __stub_$2 || defined __stub___$2
1744 choke me
1745 #endif
1746
1747 int
1748 main (void)
1749 {
1750 return $2 ();
1751 ;
1752 return 0;
1753 }
1754 _ACEOF
1755 if ac_fn_c_try_link "$LINENO"
1756 then :
1757 eval "$3=yes"
1758 else $as_nop
1759 eval "$3=no"
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1762 conftest$ac_exeext conftest.$ac_ext
1763 fi
1764 eval ac_res=\$$3
1765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 printf "%s\n" "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769 } # ac_fn_c_check_func
1770 ac_configure_args_raw=
1771 for ac_arg
1772 do
1773 case $ac_arg in
1774 *\'*)
1775 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 esac
1777 as_fn_append ac_configure_args_raw " '$ac_arg'"
1778 done
1779
1780 case $ac_configure_args_raw in
1781 *$as_nl*)
1782 ac_safe_unquote= ;;
1783 *)
1784 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1785 ac_unsafe_a="$ac_unsafe_z#~"
1786 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1787 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1788 esac
1789
1790 cat >config.log <<_ACEOF
1791 This file contains any messages produced by compilers while
1792 running configure, to aid debugging if configure makes a mistake.
1793
1794 It was created by fonttosfnt $as_me 1.2.3, which was
1795 generated by GNU Autoconf 2.71. Invocation command line was
1796
1797 $ $0$ac_configure_args_raw
1798
1799 _ACEOF
1800 exec 5>>config.log
1801 {
1802 cat <<_ASUNAME
1803 ## --------- ##
1804 ## Platform. ##
1805 ## --------- ##
1806
1807 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1808 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1809 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1810 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1811 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1812
1813 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1814 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1815
1816 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1817 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1818 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1819 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1820 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1821 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1822 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1823
1824 _ASUNAME
1825
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829 IFS=$as_save_IFS
1830 case $as_dir in #(((
1831 '') as_dir=./ ;;
1832 */) ;;
1833 *) as_dir=$as_dir/ ;;
1834 esac
1835 printf "%s\n" "PATH: $as_dir"
1836 done
1837 IFS=$as_save_IFS
1838
1839 } >&5
1840
1841 cat >&5 <<_ACEOF
1842
1843
1844 ## ----------- ##
1845 ## Core tests. ##
1846 ## ----------- ##
1847
1848 _ACEOF
1849
1850
1851 # Keep a trace of the command line.
1852 # Strip out --no-create and --no-recursion so they do not pile up.
1853 # Strip out --silent because we don't want to record it for future runs.
1854 # Also quote any args containing shell meta-characters.
1855 # Make two passes to allow for proper duplicate-argument suppression.
1856 ac_configure_args=
1857 ac_configure_args0=
1858 ac_configure_args1=
1859 ac_must_keep_next=false
1860 for ac_pass in 1 2
1861 do
1862 for ac_arg
1863 do
1864 case $ac_arg in
1865 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1867 | -silent | --silent | --silen | --sile | --sil)
1868 continue ;;
1869 *\'*)
1870 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1871 esac
1872 case $ac_pass in
1873 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1874 2)
1875 as_fn_append ac_configure_args1 " '$ac_arg'"
1876 if test $ac_must_keep_next = true; then
1877 ac_must_keep_next=false # Got value, back to normal.
1878 else
1879 case $ac_arg in
1880 *=* | --config-cache | -C | -disable-* | --disable-* \
1881 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1882 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1883 | -with-* | --with-* | -without-* | --without-* | --x)
1884 case "$ac_configure_args0 " in
1885 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1886 esac
1887 ;;
1888 -* ) ac_must_keep_next=true ;;
1889 esac
1890 fi
1891 as_fn_append ac_configure_args " '$ac_arg'"
1892 ;;
1893 esac
1894 done
1895 done
1896 { ac_configure_args0=; unset ac_configure_args0;}
1897 { ac_configure_args1=; unset ac_configure_args1;}
1898
1899 # When interrupted or exit'd, cleanup temporary files, and complete
1900 # config.log. We remove comments because anyway the quotes in there
1901 # would cause problems or look ugly.
1902 # WARNING: Use '\'' to represent an apostrophe within the trap.
1903 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1904 trap 'exit_status=$?
1905 # Sanitize IFS.
1906 IFS=" "" $as_nl"
1907 # Save into config.log some information that might help in debugging.
1908 {
1909 echo
1910
1911 printf "%s\n" "## ---------------- ##
1912 ## Cache variables. ##
1913 ## ---------------- ##"
1914 echo
1915 # The following way of writing the cache mishandles newlines in values,
1916 (
1917 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1918 eval ac_val=\$$ac_var
1919 case $ac_val in #(
1920 *${as_nl}*)
1921 case $ac_var in #(
1922 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1923 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1924 esac
1925 case $ac_var in #(
1926 _ | IFS | as_nl) ;; #(
1927 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1928 *) { eval $ac_var=; unset $ac_var;} ;;
1929 esac ;;
1930 esac
1931 done
1932 (set) 2>&1 |
1933 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1934 *${as_nl}ac_space=\ *)
1935 sed -n \
1936 "s/'\''/'\''\\\\'\'''\''/g;
1937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1938 ;; #(
1939 *)
1940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1941 ;;
1942 esac |
1943 sort
1944 )
1945 echo
1946
1947 printf "%s\n" "## ----------------- ##
1948 ## Output variables. ##
1949 ## ----------------- ##"
1950 echo
1951 for ac_var in $ac_subst_vars
1952 do
1953 eval ac_val=\$$ac_var
1954 case $ac_val in
1955 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1956 esac
1957 printf "%s\n" "$ac_var='\''$ac_val'\''"
1958 done | sort
1959 echo
1960
1961 if test -n "$ac_subst_files"; then
1962 printf "%s\n" "## ------------------- ##
1963 ## File substitutions. ##
1964 ## ------------------- ##"
1965 echo
1966 for ac_var in $ac_subst_files
1967 do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 printf "%s\n" "$ac_var='\''$ac_val'\''"
1973 done | sort
1974 echo
1975 fi
1976
1977 if test -s confdefs.h; then
1978 printf "%s\n" "## ----------- ##
1979 ## confdefs.h. ##
1980 ## ----------- ##"
1981 echo
1982 cat confdefs.h
1983 echo
1984 fi
1985 test "$ac_signal" != 0 &&
1986 printf "%s\n" "$as_me: caught signal $ac_signal"
1987 printf "%s\n" "$as_me: exit $exit_status"
1988 } >&5
1989 rm -f core *.core core.conftest.* &&
1990 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1991 exit $exit_status
1992 ' 0
1993 for ac_signal in 1 2 13 15; do
1994 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1995 done
1996 ac_signal=0
1997
1998 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1999 rm -f -r conftest* confdefs.h
2000
2001 printf "%s\n" "/* confdefs.h */" > confdefs.h
2002
2003 # Predefined preprocessor variables.
2004
2005 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2006
2007 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2008
2009 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2010
2011 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2012
2013 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2014
2015 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2016
2017
2018 # Let the site file select an alternate cache file if it wants to.
2019 # Prefer an explicitly selected file to automatically selected ones.
2020 if test -n "$CONFIG_SITE"; then
2021 ac_site_files="$CONFIG_SITE"
2022 elif test "x$prefix" != xNONE; then
2023 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2024 else
2025 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2026 fi
2027
2028 for ac_site_file in $ac_site_files
2029 do
2030 case $ac_site_file in #(
2031 */*) :
2032 ;; #(
2033 *) :
2034 ac_site_file=./$ac_site_file ;;
2035 esac
2036 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2038 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2039 sed 's/^/| /' "$ac_site_file" >&5
2040 . "$ac_site_file" \
2041 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2042 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2043 as_fn_error $? "failed to load site script $ac_site_file
2044 See \`config.log' for more details" "$LINENO" 5; }
2045 fi
2046 done
2047
2048 if test -r "$cache_file"; then
2049 # Some versions of bash will fail to source /dev/null (special files
2050 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2051 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2053 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2054 case $cache_file in
2055 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2056 *) . "./$cache_file";;
2057 esac
2058 fi
2059 else
2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2061 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2062 >$cache_file
2063 fi
2064
2065 # Test code for whether the C compiler supports C89 (global declarations)
2066 ac_c_conftest_c89_globals='
2067 /* Does the compiler advertise C89 conformance?
2068 Do not test the value of __STDC__, because some compilers set it to 0
2069 while being otherwise adequately conformant. */
2070 #if !defined __STDC__
2071 # error "Compiler does not advertise C89 conformance"
2072 #endif
2073
2074 #include <stddef.h>
2075 #include <stdarg.h>
2076 struct stat;
2077 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2078 struct buf { int x; };
2079 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2080 static char *e (p, i)
2081 char **p;
2082 int i;
2083 {
2084 return p[i];
2085 }
2086 static char *f (char * (*g) (char **, int), char **p, ...)
2087 {
2088 char *s;
2089 va_list v;
2090 va_start (v,p);
2091 s = g (p, va_arg (v,int));
2092 va_end (v);
2093 return s;
2094 }
2095
2096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2097 function prototypes and stuff, but not \xHH hex character constants.
2098 These do not provoke an error unfortunately, instead are silently treated
2099 as an "x". The following induces an error, until -std is added to get
2100 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2101 array size at least. It is necessary to write \x00 == 0 to get something
2102 that is true only with -std. */
2103 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2104
2105 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2106 inside strings and character constants. */
2107 #define FOO(x) '\''x'\''
2108 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2109
2110 int test (int i, double x);
2111 struct s1 {int (*f) (int a);};
2112 struct s2 {int (*f) (double a);};
2113 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2114 int, int);'
2115
2116 # Test code for whether the C compiler supports C89 (body of main).
2117 ac_c_conftest_c89_main='
2118 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2119 '
2120
2121 # Test code for whether the C compiler supports C99 (global declarations)
2122 ac_c_conftest_c99_globals='
2123 // Does the compiler advertise C99 conformance?
2124 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2125 # error "Compiler does not advertise C99 conformance"
2126 #endif
2127
2128 #include <stdbool.h>
2129 extern int puts (const char *);
2130 extern int printf (const char *, ...);
2131 extern int dprintf (int, const char *, ...);
2132 extern void *malloc (size_t);
2133
2134 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2135 // dprintf is used instead of fprintf to avoid needing to declare
2136 // FILE and stderr.
2137 #define debug(...) dprintf (2, __VA_ARGS__)
2138 #define showlist(...) puts (#__VA_ARGS__)
2139 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2140 static void
2141 test_varargs_macros (void)
2142 {
2143 int x = 1234;
2144 int y = 5678;
2145 debug ("Flag");
2146 debug ("X = %d\n", x);
2147 showlist (The first, second, and third items.);
2148 report (x>y, "x is %d but y is %d", x, y);
2149 }
2150
2151 // Check long long types.
2152 #define BIG64 18446744073709551615ull
2153 #define BIG32 4294967295ul
2154 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2155 #if !BIG_OK
2156 #error "your preprocessor is broken"
2157 #endif
2158 #if BIG_OK
2159 #else
2160 #error "your preprocessor is broken"
2161 #endif
2162 static long long int bignum = -9223372036854775807LL;
2163 static unsigned long long int ubignum = BIG64;
2164
2165 struct incomplete_array
2166 {
2167 int datasize;
2168 double data[];
2169 };
2170
2171 struct named_init {
2172 int number;
2173 const wchar_t *name;
2174 double average;
2175 };
2176
2177 typedef const char *ccp;
2178
2179 static inline int
2180 test_restrict (ccp restrict text)
2181 {
2182 // See if C++-style comments work.
2183 // Iterate through items via the restricted pointer.
2184 // Also check for declarations in for loops.
2185 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2186 continue;
2187 return 0;
2188 }
2189
2190 // Check varargs and va_copy.
2191 static bool
2192 test_varargs (const char *format, ...)
2193 {
2194 va_list args;
2195 va_start (args, format);
2196 va_list args_copy;
2197 va_copy (args_copy, args);
2198
2199 const char *str = "";
2200 int number = 0;
2201 float fnumber = 0;
2202
2203 while (*format)
2204 {
2205 switch (*format++)
2206 {
2207 case '\''s'\'': // string
2208 str = va_arg (args_copy, const char *);
2209 break;
2210 case '\''d'\'': // int
2211 number = va_arg (args_copy, int);
2212 break;
2213 case '\''f'\'': // float
2214 fnumber = va_arg (args_copy, double);
2215 break;
2216 default:
2217 break;
2218 }
2219 }
2220 va_end (args_copy);
2221 va_end (args);
2222
2223 return *str && number && fnumber;
2224 }
2225 '
2226
2227 # Test code for whether the C compiler supports C99 (body of main).
2228 ac_c_conftest_c99_main='
2229 // Check bool.
2230 _Bool success = false;
2231 success |= (argc != 0);
2232
2233 // Check restrict.
2234 if (test_restrict ("String literal") == 0)
2235 success = true;
2236 char *restrict newvar = "Another string";
2237
2238 // Check varargs.
2239 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2240 test_varargs_macros ();
2241
2242 // Check flexible array members.
2243 struct incomplete_array *ia =
2244 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2245 ia->datasize = 10;
2246 for (int i = 0; i < ia->datasize; ++i)
2247 ia->data[i] = i * 1.234;
2248
2249 // Check named initializers.
2250 struct named_init ni = {
2251 .number = 34,
2252 .name = L"Test wide string",
2253 .average = 543.34343,
2254 };
2255
2256 ni.number = 58;
2257
2258 int dynamic_array[ni.number];
2259 dynamic_array[0] = argv[0][0];
2260 dynamic_array[ni.number - 1] = 543;
2261
2262 // work around unused variable warnings
2263 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2264 || dynamic_array[ni.number - 1] != 543);
2265 '
2266
2267 # Test code for whether the C compiler supports C11 (global declarations)
2268 ac_c_conftest_c11_globals='
2269 // Does the compiler advertise C11 conformance?
2270 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2271 # error "Compiler does not advertise C11 conformance"
2272 #endif
2273
2274 // Check _Alignas.
2275 char _Alignas (double) aligned_as_double;
2276 char _Alignas (0) no_special_alignment;
2277 extern char aligned_as_int;
2278 char _Alignas (0) _Alignas (int) aligned_as_int;
2279
2280 // Check _Alignof.
2281 enum
2282 {
2283 int_alignment = _Alignof (int),
2284 int_array_alignment = _Alignof (int[100]),
2285 char_alignment = _Alignof (char)
2286 };
2287 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2288
2289 // Check _Noreturn.
2290 int _Noreturn does_not_return (void) { for (;;) continue; }
2291
2292 // Check _Static_assert.
2293 struct test_static_assert
2294 {
2295 int x;
2296 _Static_assert (sizeof (int) <= sizeof (long int),
2297 "_Static_assert does not work in struct");
2298 long int y;
2299 };
2300
2301 // Check UTF-8 literals.
2302 #define u8 syntax error!
2303 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2304
2305 // Check duplicate typedefs.
2306 typedef long *long_ptr;
2307 typedef long int *long_ptr;
2308 typedef long_ptr long_ptr;
2309
2310 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2311 struct anonymous
2312 {
2313 union {
2314 struct { int i; int j; };
2315 struct { int k; long int l; } w;
2316 };
2317 int m;
2318 } v1;
2319 '
2320
2321 # Test code for whether the C compiler supports C11 (body of main).
2322 ac_c_conftest_c11_main='
2323 _Static_assert ((offsetof (struct anonymous, i)
2324 == offsetof (struct anonymous, w.k)),
2325 "Anonymous union alignment botch");
2326 v1.i = 2;
2327 v1.w.k = 5;
2328 ok |= v1.i != 5;
2329 '
2330
2331 # Test code for whether the C compiler supports C11 (complete).
2332 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2333 ${ac_c_conftest_c99_globals}
2334 ${ac_c_conftest_c11_globals}
2335
2336 int
2337 main (int argc, char **argv)
2338 {
2339 int ok = 0;
2340 ${ac_c_conftest_c89_main}
2341 ${ac_c_conftest_c99_main}
2342 ${ac_c_conftest_c11_main}
2343 return ok;
2344 }
2345 "
2346
2347 # Test code for whether the C compiler supports C99 (complete).
2348 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2349 ${ac_c_conftest_c99_globals}
2350
2351 int
2352 main (int argc, char **argv)
2353 {
2354 int ok = 0;
2355 ${ac_c_conftest_c89_main}
2356 ${ac_c_conftest_c99_main}
2357 return ok;
2358 }
2359 "
2360
2361 # Test code for whether the C compiler supports C89 (complete).
2362 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2363
2364 int
2365 main (int argc, char **argv)
2366 {
2367 int ok = 0;
2368 ${ac_c_conftest_c89_main}
2369 return ok;
2370 }
2371 "
2372
2373 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2374 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2375 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2376 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2377 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2378 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2379 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2380 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2381 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2382
2383 # Auxiliary files required by this configure script.
2384 ac_aux_files="config.guess config.sub compile missing install-sh"
2385
2386 # Locations in which to look for auxiliary files.
2387 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2388
2389 # Search for a directory containing all of the required auxiliary files,
2390 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2391 # If we don't find one directory that contains all the files we need,
2392 # we report the set of missing files from the *first* directory in
2393 # $ac_aux_dir_candidates and give up.
2394 ac_missing_aux_files=""
2395 ac_first_candidate=:
2396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 as_found=false
2399 for as_dir in $ac_aux_dir_candidates
2400 do
2401 IFS=$as_save_IFS
2402 case $as_dir in #(((
2403 '') as_dir=./ ;;
2404 */) ;;
2405 *) as_dir=$as_dir/ ;;
2406 esac
2407 as_found=:
2408
2409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2410 ac_aux_dir_found=yes
2411 ac_install_sh=
2412 for ac_aux in $ac_aux_files
2413 do
2414 # As a special case, if "install-sh" is required, that requirement
2415 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2416 # and $ac_install_sh is set appropriately for whichever one is found.
2417 if test x"$ac_aux" = x"install-sh"
2418 then
2419 if test -f "${as_dir}install-sh"; then
2420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2421 ac_install_sh="${as_dir}install-sh -c"
2422 elif test -f "${as_dir}install.sh"; then
2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2424 ac_install_sh="${as_dir}install.sh -c"
2425 elif test -f "${as_dir}shtool"; then
2426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2427 ac_install_sh="${as_dir}shtool install -c"
2428 else
2429 ac_aux_dir_found=no
2430 if $ac_first_candidate; then
2431 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2432 else
2433 break
2434 fi
2435 fi
2436 else
2437 if test -f "${as_dir}${ac_aux}"; then
2438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2439 else
2440 ac_aux_dir_found=no
2441 if $ac_first_candidate; then
2442 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2443 else
2444 break
2445 fi
2446 fi
2447 fi
2448 done
2449 if test "$ac_aux_dir_found" = yes; then
2450 ac_aux_dir="$as_dir"
2451 break
2452 fi
2453 ac_first_candidate=false
2454
2455 as_found=false
2456 done
2457 IFS=$as_save_IFS
2458 if $as_found
2459 then :
2460
2461 else $as_nop
2462 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2463 fi
2464
2465
2466 # These three variables are undocumented and unsupported,
2467 # and are intended to be withdrawn in a future Autoconf release.
2468 # They can cause serious problems if a builder's source tree is in a directory
2469 # whose full name contains unusual characters.
2470 if test -f "${ac_aux_dir}config.guess"; then
2471 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2472 fi
2473 if test -f "${ac_aux_dir}config.sub"; then
2474 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2475 fi
2476 if test -f "$ac_aux_dir/configure"; then
2477 ac_configure="$SHELL ${ac_aux_dir}configure"
2478 fi
2479
2480 # Check that the precious variables saved in the cache have kept the same
2481 # value.
2482 ac_cache_corrupted=false
2483 for ac_var in $ac_precious_vars; do
2484 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2485 eval ac_new_set=\$ac_env_${ac_var}_set
2486 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2487 eval ac_new_val=\$ac_env_${ac_var}_value
2488 case $ac_old_set,$ac_new_set in
2489 set,)
2490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2491 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2492 ac_cache_corrupted=: ;;
2493 ,set)
2494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2495 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2496 ac_cache_corrupted=: ;;
2497 ,);;
2498 *)
2499 if test "x$ac_old_val" != "x$ac_new_val"; then
2500 # differences in whitespace do not lead to failure.
2501 ac_old_val_w=`echo x $ac_old_val`
2502 ac_new_val_w=`echo x $ac_new_val`
2503 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2505 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2506 ac_cache_corrupted=:
2507 else
2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2509 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2510 eval $ac_var=\$ac_old_val
2511 fi
2512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2513 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2515 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2516 fi;;
2517 esac
2518 # Pass precious variables to config.status.
2519 if test "$ac_new_set" = set; then
2520 case $ac_new_val in
2521 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2522 *) ac_arg=$ac_var=$ac_new_val ;;
2523 esac
2524 case " $ac_configure_args " in
2525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2526 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2527 esac
2528 fi
2529 done
2530 if $ac_cache_corrupted; then
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2532 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2534 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2535 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2536 and start over" "$LINENO" 5
2537 fi
2538 ## -------------------- ##
2539 ## Main body of script. ##
2540 ## -------------------- ##
2541
2542 ac_ext=c
2543 ac_cpp='$CPP $CPPFLAGS'
2544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548
2549
2550 ac_config_headers="$ac_config_headers config.h"
2551
2552
2553 # Initialize Automake
2554 am__api_version='1.16'
2555
2556
2557
2558 # Find a good install program. We prefer a C program (faster),
2559 # so one script is as good as another. But avoid the broken or
2560 # incompatible versions:
2561 # SysV /etc/install, /usr/sbin/install
2562 # SunOS /usr/etc/install
2563 # IRIX /sbin/install
2564 # AIX /bin/install
2565 # AmigaOS /C/install, which installs bootblocks on floppy discs
2566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2569 # OS/2's system install, which has a completely different semantic
2570 # ./install, which can be erroneously created by make from ./install.sh.
2571 # Reject install programs that cannot install multiple files.
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2573 printf %s "checking for a BSD-compatible install... " >&6; }
2574 if test -z "$INSTALL"; then
2575 if test ${ac_cv_path_install+y}
2576 then :
2577 printf %s "(cached) " >&6
2578 else $as_nop
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582 IFS=$as_save_IFS
2583 case $as_dir in #(((
2584 '') as_dir=./ ;;
2585 */) ;;
2586 *) as_dir=$as_dir/ ;;
2587 esac
2588 # Account for fact that we put trailing slashes in our PATH walk.
2589 case $as_dir in #((
2590 ./ | /[cC]/* | \
2591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2593 /usr/ucb/* ) ;;
2594 *)
2595 # OSF1 and SCO ODT 3.0 have their own names for install.
2596 # Don't use installbsd from OSF since it installs stuff as root
2597 # by default.
2598 for ac_prog in ginstall scoinst install; do
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2601 if test $ac_prog = install &&
2602 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # AIX install. It has an incompatible calling convention.
2604 :
2605 elif test $ac_prog = install &&
2606 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607 # program-specific install script used by HP pwplus--don't use.
2608 :
2609 else
2610 rm -rf conftest.one conftest.two conftest.dir
2611 echo one > conftest.one
2612 echo two > conftest.two
2613 mkdir conftest.dir
2614 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2615 test -s conftest.one && test -s conftest.two &&
2616 test -s conftest.dir/conftest.one &&
2617 test -s conftest.dir/conftest.two
2618 then
2619 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2620 break 3
2621 fi
2622 fi
2623 fi
2624 done
2625 done
2626 ;;
2627 esac
2628
2629 done
2630 IFS=$as_save_IFS
2631
2632 rm -rf conftest.one conftest.two conftest.dir
2633
2634 fi
2635 if test ${ac_cv_path_install+y}; then
2636 INSTALL=$ac_cv_path_install
2637 else
2638 # As a last resort, use the slow shell script. Don't cache a
2639 # value for INSTALL within a source directory, because that will
2640 # break other packages using the cache if that directory is
2641 # removed, or if the value is a relative name.
2642 INSTALL=$ac_install_sh
2643 fi
2644 fi
2645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2646 printf "%s\n" "$INSTALL" >&6; }
2647
2648 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2649 # It thinks the first close brace ends the variable substitution.
2650 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2651
2652 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2653
2654 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2655
2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2657 printf %s "checking whether build environment is sane... " >&6; }
2658 # Reject unsafe characters in $srcdir or the absolute working directory
2659 # name. Accept space and tab only in the latter.
2660 am_lf='
2661 '
2662 case `pwd` in
2663 *[\\\"\#\$\&\'\`$am_lf]*)
2664 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2665 esac
2666 case $srcdir in
2667 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2668 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2669 esac
2670
2671 # Do 'set' in a subshell so we don't clobber the current shell's
2672 # arguments. Must try -L first in case configure is actually a
2673 # symlink; some systems play weird games with the mod time of symlinks
2674 # (eg FreeBSD returns the mod time of the symlink's containing
2675 # directory).
2676 if (
2677 am_has_slept=no
2678 for am_try in 1 2; do
2679 echo "timestamp, slept: $am_has_slept" > conftest.file
2680 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2681 if test "$*" = "X"; then
2682 # -L didn't work.
2683 set X `ls -t "$srcdir/configure" conftest.file`
2684 fi
2685 if test "$*" != "X $srcdir/configure conftest.file" \
2686 && test "$*" != "X conftest.file $srcdir/configure"; then
2687
2688 # If neither matched, then we have a broken ls. This can happen
2689 # if, for instance, CONFIG_SHELL is bash and it inherits a
2690 # broken ls alias from the environment. This has actually
2691 # happened. Such a system could not be considered "sane".
2692 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2693 alias in your environment" "$LINENO" 5
2694 fi
2695 if test "$2" = conftest.file || test $am_try -eq 2; then
2696 break
2697 fi
2698 # Just in case.
2699 sleep 1
2700 am_has_slept=yes
2701 done
2702 test "$2" = conftest.file
2703 )
2704 then
2705 # Ok.
2706 :
2707 else
2708 as_fn_error $? "newly created file is older than distributed files!
2709 Check your system clock" "$LINENO" 5
2710 fi
2711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712 printf "%s\n" "yes" >&6; }
2713 # If we didn't sleep, we still need to ensure time stamps of config.status and
2714 # generated files are strictly newer.
2715 am_sleep_pid=
2716 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2717 ( sleep 1 ) &
2718 am_sleep_pid=$!
2719 fi
2720
2721 rm -f conftest.file
2722
2723 test "$program_prefix" != NONE &&
2724 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2725 # Use a double $ so make ignores it.
2726 test "$program_suffix" != NONE &&
2727 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2728 # Double any \ or $.
2729 # By default was `s,x,x', remove it if useless.
2730 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2731 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2732
2733
2734 # Expand $ac_aux_dir to an absolute path.
2735 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2736
2737
2738 if test x"${MISSING+set}" != xset; then
2739 MISSING="\${SHELL} '$am_aux_dir/missing'"
2740 fi
2741 # Use eval to expand $SHELL
2742 if eval "$MISSING --is-lightweight"; then
2743 am_missing_run="$MISSING "
2744 else
2745 am_missing_run=
2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2747 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2748 fi
2749
2750 if test x"${install_sh+set}" != xset; then
2751 case $am_aux_dir in
2752 *\ * | *\ *)
2753 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2754 *)
2755 install_sh="\${SHELL} $am_aux_dir/install-sh"
2756 esac
2757 fi
2758
2759 # Installed binaries are usually stripped using 'strip' when the user
2760 # run "make install-strip". However 'strip' might not be the right
2761 # tool to use in cross-compilation environments, therefore Automake
2762 # will honor the 'STRIP' environment variable to overrule this program.
2763 if test "$cross_compiling" != no; then
2764 if test -n "$ac_tool_prefix"; then
2765 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2766 set dummy ${ac_tool_prefix}strip; ac_word=$2
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 printf %s "checking for $ac_word... " >&6; }
2769 if test ${ac_cv_prog_STRIP+y}
2770 then :
2771 printf %s "(cached) " >&6
2772 else $as_nop
2773 if test -n "$STRIP"; then
2774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 case $as_dir in #(((
2781 '') as_dir=./ ;;
2782 */) ;;
2783 *) as_dir=$as_dir/ ;;
2784 esac
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 STRIP=$ac_cv_prog_STRIP
2798 if test -n "$STRIP"; then
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2800 printf "%s\n" "$STRIP" >&6; }
2801 else
2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 printf "%s\n" "no" >&6; }
2804 fi
2805
2806
2807 fi
2808 if test -z "$ac_cv_prog_STRIP"; then
2809 ac_ct_STRIP=$STRIP
2810 # Extract the first word of "strip", so it can be a program name with args.
2811 set dummy strip; ac_word=$2
2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 printf %s "checking for $ac_word... " >&6; }
2814 if test ${ac_cv_prog_ac_ct_STRIP+y}
2815 then :
2816 printf %s "(cached) " >&6
2817 else $as_nop
2818 if test -n "$ac_ct_STRIP"; then
2819 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 case $as_dir in #(((
2826 '') as_dir=./ ;;
2827 */) ;;
2828 *) as_dir=$as_dir/ ;;
2829 esac
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2832 ac_cv_prog_ac_ct_STRIP="strip"
2833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2843 if test -n "$ac_ct_STRIP"; then
2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2845 printf "%s\n" "$ac_ct_STRIP" >&6; }
2846 else
2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 printf "%s\n" "no" >&6; }
2849 fi
2850
2851 if test "x$ac_ct_STRIP" = x; then
2852 STRIP=":"
2853 else
2854 case $cross_compiling:$ac_tool_warned in
2855 yes:)
2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2858 ac_tool_warned=yes ;;
2859 esac
2860 STRIP=$ac_ct_STRIP
2861 fi
2862 else
2863 STRIP="$ac_cv_prog_STRIP"
2864 fi
2865
2866 fi
2867 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2868
2869
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2871 printf %s "checking for a race-free mkdir -p... " >&6; }
2872 if test -z "$MKDIR_P"; then
2873 if test ${ac_cv_path_mkdir+y}
2874 then :
2875 printf %s "(cached) " >&6
2876 else $as_nop
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2879 do
2880 IFS=$as_save_IFS
2881 case $as_dir in #(((
2882 '') as_dir=./ ;;
2883 */) ;;
2884 *) as_dir=$as_dir/ ;;
2885 esac
2886 for ac_prog in mkdir gmkdir; do
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2889 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2890 'mkdir ('*'coreutils) '* | \
2891 'BusyBox '* | \
2892 'mkdir (fileutils) '4.1*)
2893 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2894 break 3;;
2895 esac
2896 done
2897 done
2898 done
2899 IFS=$as_save_IFS
2900
2901 fi
2902
2903 test -d ./--version && rmdir ./--version
2904 if test ${ac_cv_path_mkdir+y}; then
2905 MKDIR_P="$ac_cv_path_mkdir -p"
2906 else
2907 # As a last resort, use the slow shell script. Don't cache a
2908 # value for MKDIR_P within a source directory, because that will
2909 # break other packages using the cache if that directory is
2910 # removed, or if the value is a relative name.
2911 MKDIR_P="$ac_install_sh -d"
2912 fi
2913 fi
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2915 printf "%s\n" "$MKDIR_P" >&6; }
2916
2917 for ac_prog in gawk mawk nawk awk
2918 do
2919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 printf %s "checking for $ac_word... " >&6; }
2923 if test ${ac_cv_prog_AWK+y}
2924 then :
2925 printf %s "(cached) " >&6
2926 else $as_nop
2927 if test -n "$AWK"; then
2928 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 case $as_dir in #(((
2935 '') as_dir=./ ;;
2936 */) ;;
2937 *) as_dir=$as_dir/ ;;
2938 esac
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2941 ac_cv_prog_AWK="$ac_prog"
2942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 AWK=$ac_cv_prog_AWK
2952 if test -n "$AWK"; then
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2954 printf "%s\n" "$AWK" >&6; }
2955 else
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 printf "%s\n" "no" >&6; }
2958 fi
2959
2960
2961 test -n "$AWK" && break
2962 done
2963
2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2965 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2966 set x ${MAKE-make}
2967 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2968 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2969 then :
2970 printf %s "(cached) " >&6
2971 else $as_nop
2972 cat >conftest.make <<\_ACEOF
2973 SHELL = /bin/sh
2974 all:
2975 @echo '@@@%%%=$(MAKE)=@@@%%%'
2976 _ACEOF
2977 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2978 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2979 *@@@%%%=?*=@@@%%%*)
2980 eval ac_cv_prog_make_${ac_make}_set=yes;;
2981 *)
2982 eval ac_cv_prog_make_${ac_make}_set=no;;
2983 esac
2984 rm -f conftest.make
2985 fi
2986 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988 printf "%s\n" "yes" >&6; }
2989 SET_MAKE=
2990 else
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 printf "%s\n" "no" >&6; }
2993 SET_MAKE="MAKE=${MAKE-make}"
2994 fi
2995
2996 rm -rf .tst 2>/dev/null
2997 mkdir .tst 2>/dev/null
2998 if test -d .tst; then
2999 am__leading_dot=.
3000 else
3001 am__leading_dot=_
3002 fi
3003 rmdir .tst 2>/dev/null
3004
3005 # Check whether --enable-silent-rules was given.
3006 if test ${enable_silent_rules+y}
3007 then :
3008 enableval=$enable_silent_rules;
3009 fi
3010
3011 case $enable_silent_rules in # (((
3012 yes) AM_DEFAULT_VERBOSITY=0;;
3013 no) AM_DEFAULT_VERBOSITY=1;;
3014 *) AM_DEFAULT_VERBOSITY=1;;
3015 esac
3016 am_make=${MAKE-make}
3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3018 printf %s "checking whether $am_make supports nested variables... " >&6; }
3019 if test ${am_cv_make_support_nested_variables+y}
3020 then :
3021 printf %s "(cached) " >&6
3022 else $as_nop
3023 if printf "%s\n" 'TRUE=$(BAR$(V))
3024 BAR0=false
3025 BAR1=true
3026 V=1
3027 am__doit:
3028 @$(TRUE)
3029 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3030 am_cv_make_support_nested_variables=yes
3031 else
3032 am_cv_make_support_nested_variables=no
3033 fi
3034 fi
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3036 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3037 if test $am_cv_make_support_nested_variables = yes; then
3038 AM_V='$(V)'
3039 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3040 else
3041 AM_V=$AM_DEFAULT_VERBOSITY
3042 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3043 fi
3044 AM_BACKSLASH='\'
3045
3046 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3047 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3048 # is not polluted with repeated "-I."
3049 am__isrc=' -I$(srcdir)'
3050 # test to see if srcdir already configured
3051 if test -f $srcdir/config.status; then
3052 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3053 fi
3054 fi
3055
3056 # test whether we have cygpath
3057 if test -z "$CYGPATH_W"; then
3058 if (cygpath --version) >/dev/null 2>/dev/null; then
3059 CYGPATH_W='cygpath -w'
3060 else
3061 CYGPATH_W=echo
3062 fi
3063 fi
3064
3065
3066 # Define the identity of the package.
3067 PACKAGE='fonttosfnt'
3068 VERSION='1.2.3'
3069
3070
3071 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3072
3073
3074 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3075
3076 # Some tools Automake needs.
3077
3078 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3079
3080
3081 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3082
3083
3084 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3085
3086
3087 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3088
3089
3090 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3091
3092 # For better backward compatibility. To be removed once Automake 1.9.x
3093 # dies out for good. For more background, see:
3094 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3095 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3096 mkdir_p='$(MKDIR_P)'
3097
3098 # We need awk for the "check" target (and possibly the TAP driver). The
3099 # system "awk" is bad on some platforms.
3100 # Always define AMTAR for backward compatibility. Yes, it's still used
3101 # in the wild :-( We should find a proper way to deprecate it ...
3102 AMTAR='$${TAR-tar}'
3103
3104
3105 # We'll loop over all known methods to create a tar archive until one works.
3106 _am_tools='gnutar pax cpio none'
3107
3108 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3109
3110
3111
3112
3113
3114 # Variables for tags utilities; see am/tags.am
3115 if test -z "$CTAGS"; then
3116 CTAGS=ctags
3117 fi
3118
3119 if test -z "$ETAGS"; then
3120 ETAGS=etags
3121 fi
3122
3123 if test -z "$CSCOPE"; then
3124 CSCOPE=cscope
3125 fi
3126
3127
3128
3129 # POSIX will say in a future version that running "rm -f" with no argument
3130 # is OK; and we want to be able to make that assumption in our Makefile
3131 # recipes. So use an aggressive probe to check that the usage we want is
3132 # actually supported "in the wild" to an acceptable degree.
3133 # See automake bug#10828.
3134 # To make any issue more visible, cause the running configure to be aborted
3135 # by default if the 'rm' program in use doesn't match our expectations; the
3136 # user can still override this though.
3137 if rm -f && rm -fr && rm -rf; then : OK; else
3138 cat >&2 <<'END'
3139 Oops!
3140
3141 Your 'rm' program seems unable to run without file operands specified
3142 on the command line, even when the '-f' option is present. This is contrary
3143 to the behaviour of most rm programs out there, and not conforming with
3144 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3145
3146 Please tell bug-automake@gnu.org about your system, including the value
3147 of your $PATH and any error possibly output before this message. This
3148 can help us improve future automake versions.
3149
3150 END
3151 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3152 echo 'Configuration will proceed anyway, since you have set the' >&2
3153 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3154 echo >&2
3155 else
3156 cat >&2 <<'END'
3157 Aborting the configuration process, to ensure you take notice of the issue.
3158
3159 You can download and install GNU coreutils to get an 'rm' implementation
3160 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3161
3162 If you want to complete the configuration process using your problematic
3163 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3164 to "yes", and re-run configure.
3165
3166 END
3167 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3168 fi
3169 fi
3170
3171
3172 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193 DEPDIR="${am__leading_dot}deps"
3194
3195 ac_config_commands="$ac_config_commands depfiles"
3196
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3198 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3199 cat > confinc.mk << 'END'
3200 am__doit:
3201 @echo this is the am__doit target >confinc.out
3202 .PHONY: am__doit
3203 END
3204 am__include="#"
3205 am__quote=
3206 # BSD make does it like this.
3207 echo '.include "confinc.mk" # ignored' > confmf.BSD
3208 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3209 echo 'include confinc.mk # ignored' > confmf.GNU
3210 _am_result=no
3211 for s in GNU BSD; do
3212 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3213 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }
3217 case $?:`cat confinc.out 2>/dev/null` in #(
3218 '0:this is the am__doit target') :
3219 case $s in #(
3220 BSD) :
3221 am__include='.include' am__quote='"' ;; #(
3222 *) :
3223 am__include='include' am__quote='' ;;
3224 esac ;; #(
3225 *) :
3226 ;;
3227 esac
3228 if test "$am__include" != "#"; then
3229 _am_result="yes ($s style)"
3230 break
3231 fi
3232 done
3233 rm -f confinc.* confmf.*
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3235 printf "%s\n" "${_am_result}" >&6; }
3236
3237 # Check whether --enable-dependency-tracking was given.
3238 if test ${enable_dependency_tracking+y}
3239 then :
3240 enableval=$enable_dependency_tracking;
3241 fi
3242
3243 if test "x$enable_dependency_tracking" != xno; then
3244 am_depcomp="$ac_aux_dir/depcomp"
3245 AMDEPBACKSLASH='\'
3246 am__nodep='_no'
3247 fi
3248 if test "x$enable_dependency_tracking" != xno; then
3249 AMDEP_TRUE=
3250 AMDEP_FALSE='#'
3251 else
3252 AMDEP_TRUE='#'
3253 AMDEP_FALSE=
3254 fi
3255
3256
3257 ac_ext=c
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 printf %s "checking for $ac_word... " >&6; }
3267 if test ${ac_cv_prog_CC+y}
3268 then :
3269 printf %s "(cached) " >&6
3270 else $as_nop
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277 IFS=$as_save_IFS
3278 case $as_dir in #(((
3279 '') as_dir=./ ;;
3280 */) ;;
3281 *) as_dir=$as_dir/ ;;
3282 esac
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3287 break 2
3288 fi
3289 done
3290 done
3291 IFS=$as_save_IFS
3292
3293 fi
3294 fi
3295 CC=$ac_cv_prog_CC
3296 if test -n "$CC"; then
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3298 printf "%s\n" "$CC" >&6; }
3299 else
3300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 printf "%s\n" "no" >&6; }
3302 fi
3303
3304
3305 fi
3306 if test -z "$ac_cv_prog_CC"; then
3307 ac_ct_CC=$CC
3308 # Extract the first word of "gcc", so it can be a program name with args.
3309 set dummy gcc; ac_word=$2
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 printf %s "checking for $ac_word... " >&6; }
3312 if test ${ac_cv_prog_ac_ct_CC+y}
3313 then :
3314 printf %s "(cached) " >&6
3315 else $as_nop
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 case $as_dir in #(((
3324 '') as_dir=./ ;;
3325 */) ;;
3326 *) as_dir=$as_dir/ ;;
3327 esac
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_CC="gcc"
3331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3332 break 2
3333 fi
3334 done
3335 done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3343 printf "%s\n" "$ac_ct_CC" >&6; }
3344 else
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 printf "%s\n" "no" >&6; }
3347 fi
3348
3349 if test "x$ac_ct_CC" = x; then
3350 CC=""
3351 else
3352 case $cross_compiling:$ac_tool_warned in
3353 yes:)
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3355 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3356 ac_tool_warned=yes ;;
3357 esac
3358 CC=$ac_ct_CC
3359 fi
3360 else
3361 CC="$ac_cv_prog_CC"
3362 fi
3363
3364 if test -z "$CC"; then
3365 if test -n "$ac_tool_prefix"; then
3366 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3367 set dummy ${ac_tool_prefix}cc; ac_word=$2
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 printf %s "checking for $ac_word... " >&6; }
3370 if test ${ac_cv_prog_CC+y}
3371 then :
3372 printf %s "(cached) " >&6
3373 else $as_nop
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380 IFS=$as_save_IFS
3381 case $as_dir in #(((
3382 '') as_dir=./ ;;
3383 */) ;;
3384 *) as_dir=$as_dir/ ;;
3385 esac
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_CC="${ac_tool_prefix}cc"
3389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 fi
3397 fi
3398 CC=$ac_cv_prog_CC
3399 if test -n "$CC"; then
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3401 printf "%s\n" "$CC" >&6; }
3402 else
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 printf "%s\n" "no" >&6; }
3405 fi
3406
3407
3408 fi
3409 fi
3410 if test -z "$CC"; then
3411 # Extract the first word of "cc", so it can be a program name with args.
3412 set dummy cc; ac_word=$2
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 printf %s "checking for $ac_word... " >&6; }
3415 if test ${ac_cv_prog_CC+y}
3416 then :
3417 printf %s "(cached) " >&6
3418 else $as_nop
3419 if test -n "$CC"; then
3420 ac_cv_prog_CC="$CC" # Let the user override the test.
3421 else
3422 ac_prog_rejected=no
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426 IFS=$as_save_IFS
3427 case $as_dir in #(((
3428 '') as_dir=./ ;;
3429 */) ;;
3430 *) as_dir=$as_dir/ ;;
3431 esac
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3434 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3435 ac_prog_rejected=yes
3436 continue
3437 fi
3438 ac_cv_prog_CC="cc"
3439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3440 break 2
3441 fi
3442 done
3443 done
3444 IFS=$as_save_IFS
3445
3446 if test $ac_prog_rejected = yes; then
3447 # We found a bogon in the path, so make sure we never use it.
3448 set dummy $ac_cv_prog_CC
3449 shift
3450 if test $# != 0; then
3451 # We chose a different compiler from the bogus one.
3452 # However, it has the same basename, so the bogon will be chosen
3453 # first if we set CC to just the basename; use the full file name.
3454 shift
3455 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3456 fi
3457 fi
3458 fi
3459 fi
3460 CC=$ac_cv_prog_CC
3461 if test -n "$CC"; then
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 printf "%s\n" "$CC" >&6; }
3464 else
3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 printf "%s\n" "no" >&6; }
3467 fi
3468
3469
3470 fi
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 for ac_prog in cl.exe
3474 do
3475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 printf %s "checking for $ac_word... " >&6; }
3479 if test ${ac_cv_prog_CC+y}
3480 then :
3481 printf %s "(cached) " >&6
3482 else $as_nop
3483 if test -n "$CC"; then
3484 ac_cv_prog_CC="$CC" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3488 do
3489 IFS=$as_save_IFS
3490 case $as_dir in #(((
3491 '') as_dir=./ ;;
3492 */) ;;
3493 *) as_dir=$as_dir/ ;;
3494 esac
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3497 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3499 break 2
3500 fi
3501 done
3502 done
3503 IFS=$as_save_IFS
3504
3505 fi
3506 fi
3507 CC=$ac_cv_prog_CC
3508 if test -n "$CC"; then
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3510 printf "%s\n" "$CC" >&6; }
3511 else
3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 printf "%s\n" "no" >&6; }
3514 fi
3515
3516
3517 test -n "$CC" && break
3518 done
3519 fi
3520 if test -z "$CC"; then
3521 ac_ct_CC=$CC
3522 for ac_prog in cl.exe
3523 do
3524 # Extract the first word of "$ac_prog", so it can be a program name with args.
3525 set dummy $ac_prog; ac_word=$2
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 printf %s "checking for $ac_word... " >&6; }
3528 if test ${ac_cv_prog_ac_ct_CC+y}
3529 then :
3530 printf %s "(cached) " >&6
3531 else $as_nop
3532 if test -n "$ac_ct_CC"; then
3533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538 IFS=$as_save_IFS
3539 case $as_dir in #(((
3540 '') as_dir=./ ;;
3541 */) ;;
3542 *) as_dir=$as_dir/ ;;
3543 esac
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_ac_ct_CC="$ac_prog"
3547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550 done
3551 done
3552 IFS=$as_save_IFS
3553
3554 fi
3555 fi
3556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3557 if test -n "$ac_ct_CC"; then
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3559 printf "%s\n" "$ac_ct_CC" >&6; }
3560 else
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 printf "%s\n" "no" >&6; }
3563 fi
3564
3565
3566 test -n "$ac_ct_CC" && break
3567 done
3568
3569 if test "x$ac_ct_CC" = x; then
3570 CC=""
3571 else
3572 case $cross_compiling:$ac_tool_warned in
3573 yes:)
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3575 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3576 ac_tool_warned=yes ;;
3577 esac
3578 CC=$ac_ct_CC
3579 fi
3580 fi
3581
3582 fi
3583 if test -z "$CC"; then
3584 if test -n "$ac_tool_prefix"; then
3585 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3586 set dummy ${ac_tool_prefix}clang; ac_word=$2
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 printf %s "checking for $ac_word... " >&6; }
3589 if test ${ac_cv_prog_CC+y}
3590 then :
3591 printf %s "(cached) " >&6
3592 else $as_nop
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC="$CC" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599 IFS=$as_save_IFS
3600 case $as_dir in #(((
3601 '') as_dir=./ ;;
3602 */) ;;
3603 *) as_dir=$as_dir/ ;;
3604 esac
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3607 ac_cv_prog_CC="${ac_tool_prefix}clang"
3608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3609 break 2
3610 fi
3611 done
3612 done
3613 IFS=$as_save_IFS
3614
3615 fi
3616 fi
3617 CC=$ac_cv_prog_CC
3618 if test -n "$CC"; then
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 printf "%s\n" "$CC" >&6; }
3621 else
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 printf "%s\n" "no" >&6; }
3624 fi
3625
3626
3627 fi
3628 if test -z "$ac_cv_prog_CC"; then
3629 ac_ct_CC=$CC
3630 # Extract the first word of "clang", so it can be a program name with args.
3631 set dummy clang; ac_word=$2
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 printf %s "checking for $ac_word... " >&6; }
3634 if test ${ac_cv_prog_ac_ct_CC+y}
3635 then :
3636 printf %s "(cached) " >&6
3637 else $as_nop
3638 if test -n "$ac_ct_CC"; then
3639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 case $as_dir in #(((
3646 '') as_dir=./ ;;
3647 */) ;;
3648 *) as_dir=$as_dir/ ;;
3649 esac
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3652 ac_cv_prog_ac_ct_CC="clang"
3653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3654 break 2
3655 fi
3656 done
3657 done
3658 IFS=$as_save_IFS
3659
3660 fi
3661 fi
3662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3663 if test -n "$ac_ct_CC"; then
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3665 printf "%s\n" "$ac_ct_CC" >&6; }
3666 else
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 printf "%s\n" "no" >&6; }
3669 fi
3670
3671 if test "x$ac_ct_CC" = x; then
3672 CC=""
3673 else
3674 case $cross_compiling:$ac_tool_warned in
3675 yes:)
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3677 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3678 ac_tool_warned=yes ;;
3679 esac
3680 CC=$ac_ct_CC
3681 fi
3682 else
3683 CC="$ac_cv_prog_CC"
3684 fi
3685
3686 fi
3687
3688
3689 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "no acceptable C compiler found in \$PATH
3692 See \`config.log' for more details" "$LINENO" 5; }
3693
3694 # Provide some information about the compiler.
3695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3696 set X $ac_compile
3697 ac_compiler=$2
3698 for ac_option in --version -v -V -qversion -version; do
3699 { { ac_try="$ac_compiler $ac_option >&5"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 printf "%s\n" "$ac_try_echo"; } >&5
3706 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3707 ac_status=$?
3708 if test -s conftest.err; then
3709 sed '10a\
3710 ... rest of stderr output deleted ...
3711 10q' conftest.err >conftest.er1
3712 cat conftest.er1 >&5
3713 fi
3714 rm -f conftest.er1 conftest.err
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716 test $ac_status = 0; }
3717 done
3718
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721
3722 int
3723 main (void)
3724 {
3725
3726 ;
3727 return 0;
3728 }
3729 _ACEOF
3730 ac_clean_files_save=$ac_clean_files
3731 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3732 # Try to create an executable without -o first, disregard a.out.
3733 # It will help us diagnose broken compilers, and finding out an intuition
3734 # of exeext.
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3736 printf %s "checking whether the C compiler works... " >&6; }
3737 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3738
3739 # The possible output files:
3740 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3741
3742 ac_rmfiles=
3743 for ac_file in $ac_files
3744 do
3745 case $ac_file in
3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3747 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3748 esac
3749 done
3750 rm -f $ac_rmfiles
3751
3752 if { { ac_try="$ac_link_default"
3753 case "(($ac_try" in
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 printf "%s\n" "$ac_try_echo"; } >&5
3759 (eval "$ac_link_default") 2>&5
3760 ac_status=$?
3761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }
3763 then :
3764 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3765 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3766 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3767 # so that the user can short-circuit this test for compilers unknown to
3768 # Autoconf.
3769 for ac_file in $ac_files ''
3770 do
3771 test -f "$ac_file" || continue
3772 case $ac_file in
3773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3774 ;;
3775 [ab].out )
3776 # We found the default executable, but exeext='' is most
3777 # certainly right.
3778 break;;
3779 *.* )
3780 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3781 then :; else
3782 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3783 fi
3784 # We set ac_cv_exeext here because the later test for it is not
3785 # safe: cross compilers may not add the suffix if given an `-o'
3786 # argument, so we may need to know it at that point already.
3787 # Even if this section looks crufty: it has the advantage of
3788 # actually working.
3789 break;;
3790 * )
3791 break;;
3792 esac
3793 done
3794 test "$ac_cv_exeext" = no && ac_cv_exeext=
3795
3796 else $as_nop
3797 ac_file=''
3798 fi
3799 if test -z "$ac_file"
3800 then :
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 printf "%s\n" "no" >&6; }
3803 printf "%s\n" "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3805
3806 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error 77 "C compiler cannot create executables
3809 See \`config.log' for more details" "$LINENO" 5; }
3810 else $as_nop
3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3812 printf "%s\n" "yes" >&6; }
3813 fi
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3815 printf %s "checking for C compiler default output file name... " >&6; }
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3817 printf "%s\n" "$ac_file" >&6; }
3818 ac_exeext=$ac_cv_exeext
3819
3820 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3821 ac_clean_files=$ac_clean_files_save
3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3823 printf %s "checking for suffix of executables... " >&6; }
3824 if { { ac_try="$ac_link"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 printf "%s\n" "$ac_try_echo"; } >&5
3831 (eval "$ac_link") 2>&5
3832 ac_status=$?
3833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }
3835 then :
3836 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3837 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3838 # work properly (i.e., refer to `conftest.exe'), while it won't with
3839 # `rm'.
3840 for ac_file in conftest.exe conftest conftest.*; do
3841 test -f "$ac_file" || continue
3842 case $ac_file in
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 break;;
3846 * ) break;;
3847 esac
3848 done
3849 else $as_nop
3850 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3851 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3852 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3853 See \`config.log' for more details" "$LINENO" 5; }
3854 fi
3855 rm -f conftest conftest$ac_cv_exeext
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3857 printf "%s\n" "$ac_cv_exeext" >&6; }
3858
3859 rm -f conftest.$ac_ext
3860 EXEEXT=$ac_cv_exeext
3861 ac_exeext=$EXEEXT
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3864 #include <stdio.h>
3865 int
3866 main (void)
3867 {
3868 FILE *f = fopen ("conftest.out", "w");
3869 return ferror (f) || fclose (f) != 0;
3870
3871 ;
3872 return 0;
3873 }
3874 _ACEOF
3875 ac_clean_files="$ac_clean_files conftest.out"
3876 # Check that the compiler produces executables we can run. If not, either
3877 # the compiler is broken, or we cross compile.
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3879 printf %s "checking whether we are cross compiling... " >&6; }
3880 if test "$cross_compiling" != yes; then
3881 { { ac_try="$ac_link"
3882 case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885 esac
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 printf "%s\n" "$ac_try_echo"; } >&5
3888 (eval "$ac_link") 2>&5
3889 ac_status=$?
3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }
3892 if { ac_try='./conftest$ac_cv_exeext'
3893 { { case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3896 esac
3897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 printf "%s\n" "$ac_try_echo"; } >&5
3899 (eval "$ac_try") 2>&5
3900 ac_status=$?
3901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }; }; then
3903 cross_compiling=no
3904 else
3905 if test "$cross_compiling" = maybe; then
3906 cross_compiling=yes
3907 else
3908 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error 77 "cannot run C compiled programs.
3911 If you meant to cross compile, use \`--host'.
3912 See \`config.log' for more details" "$LINENO" 5; }
3913 fi
3914 fi
3915 fi
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3917 printf "%s\n" "$cross_compiling" >&6; }
3918
3919 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3920 ac_clean_files=$ac_clean_files_save
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3922 printf %s "checking for suffix of object files... " >&6; }
3923 if test ${ac_cv_objext+y}
3924 then :
3925 printf %s "(cached) " >&6
3926 else $as_nop
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929
3930 int
3931 main (void)
3932 {
3933
3934 ;
3935 return 0;
3936 }
3937 _ACEOF
3938 rm -f conftest.o conftest.obj
3939 if { { ac_try="$ac_compile"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 printf "%s\n" "$ac_try_echo"; } >&5
3946 (eval "$ac_compile") 2>&5
3947 ac_status=$?
3948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }
3950 then :
3951 for ac_file in conftest.o conftest.obj conftest.*; do
3952 test -f "$ac_file" || continue;
3953 case $ac_file in
3954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3956 break;;
3957 esac
3958 done
3959 else $as_nop
3960 printf "%s\n" "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3962
3963 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error $? "cannot compute suffix of object files: cannot compile
3966 See \`config.log' for more details" "$LINENO" 5; }
3967 fi
3968 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3969 fi
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3971 printf "%s\n" "$ac_cv_objext" >&6; }
3972 OBJEXT=$ac_cv_objext
3973 ac_objext=$OBJEXT
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3975 printf %s "checking whether the compiler supports GNU C... " >&6; }
3976 if test ${ac_cv_c_compiler_gnu+y}
3977 then :
3978 printf %s "(cached) " >&6
3979 else $as_nop
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3982
3983 int
3984 main (void)
3985 {
3986 #ifndef __GNUC__
3987 choke me
3988 #endif
3989
3990 ;
3991 return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_c_try_compile "$LINENO"
3995 then :
3996 ac_compiler_gnu=yes
3997 else $as_nop
3998 ac_compiler_gnu=no
3999 fi
4000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4001 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4002
4003 fi
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4005 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007
4008 if test $ac_compiler_gnu = yes; then
4009 GCC=yes
4010 else
4011 GCC=
4012 fi
4013 ac_test_CFLAGS=${CFLAGS+y}
4014 ac_save_CFLAGS=$CFLAGS
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4016 printf %s "checking whether $CC accepts -g... " >&6; }
4017 if test ${ac_cv_prog_cc_g+y}
4018 then :
4019 printf %s "(cached) " >&6
4020 else $as_nop
4021 ac_save_c_werror_flag=$ac_c_werror_flag
4022 ac_c_werror_flag=yes
4023 ac_cv_prog_cc_g=no
4024 CFLAGS="-g"
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4027
4028 int
4029 main (void)
4030 {
4031
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 if ac_fn_c_try_compile "$LINENO"
4037 then :
4038 ac_cv_prog_cc_g=yes
4039 else $as_nop
4040 CFLAGS=""
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043
4044 int
4045 main (void)
4046 {
4047
4048 ;
4049 return 0;
4050 }
4051 _ACEOF
4052 if ac_fn_c_try_compile "$LINENO"
4053 then :
4054
4055 else $as_nop
4056 ac_c_werror_flag=$ac_save_c_werror_flag
4057 CFLAGS="-g"
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060
4061 int
4062 main (void)
4063 {
4064
4065 ;
4066 return 0;
4067 }
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"
4070 then :
4071 ac_cv_prog_cc_g=yes
4072 fi
4073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4074 fi
4075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4076 fi
4077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4078 ac_c_werror_flag=$ac_save_c_werror_flag
4079 fi
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4081 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4082 if test $ac_test_CFLAGS; then
4083 CFLAGS=$ac_save_CFLAGS
4084 elif test $ac_cv_prog_cc_g = yes; then
4085 if test "$GCC" = yes; then
4086 CFLAGS="-g -O2"
4087 else
4088 CFLAGS="-g"
4089 fi
4090 else
4091 if test "$GCC" = yes; then
4092 CFLAGS="-O2"
4093 else
4094 CFLAGS=
4095 fi
4096 fi
4097 ac_prog_cc_stdc=no
4098 if test x$ac_prog_cc_stdc = xno
4099 then :
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4101 printf %s "checking for $CC option to enable C11 features... " >&6; }
4102 if test ${ac_cv_prog_cc_c11+y}
4103 then :
4104 printf %s "(cached) " >&6
4105 else $as_nop
4106 ac_cv_prog_cc_c11=no
4107 ac_save_CC=$CC
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 $ac_c_conftest_c11_program
4111 _ACEOF
4112 for ac_arg in '' -std=gnu11
4113 do
4114 CC="$ac_save_CC $ac_arg"
4115 if ac_fn_c_try_compile "$LINENO"
4116 then :
4117 ac_cv_prog_cc_c11=$ac_arg
4118 fi
4119 rm -f core conftest.err conftest.$ac_objext conftest.beam
4120 test "x$ac_cv_prog_cc_c11" != "xno" && break
4121 done
4122 rm -f conftest.$ac_ext
4123 CC=$ac_save_CC
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 $as_nop
4131 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 $as_nop
4136 { 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 fi
4140 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4141 ac_prog_cc_stdc=c11
4142 fi
4143 fi
4144 if test x$ac_prog_cc_stdc = xno
4145 then :
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4147 printf %s "checking for $CC option to enable C99 features... " >&6; }
4148 if test ${ac_cv_prog_cc_c99+y}
4149 then :
4150 printf %s "(cached) " >&6
4151 else $as_nop
4152 ac_cv_prog_cc_c99=no
4153 ac_save_CC=$CC
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156 $ac_c_conftest_c99_program
4157 _ACEOF
4158 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4159 do
4160 CC="$ac_save_CC $ac_arg"
4161 if ac_fn_c_try_compile "$LINENO"
4162 then :
4163 ac_cv_prog_cc_c99=$ac_arg
4164 fi
4165 rm -f core conftest.err conftest.$ac_objext conftest.beam
4166 test "x$ac_cv_prog_cc_c99" != "xno" && break
4167 done
4168 rm -f conftest.$ac_ext
4169 CC=$ac_save_CC
4170 fi
4171
4172 if test "x$ac_cv_prog_cc_c99" = xno
4173 then :
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4175 printf "%s\n" "unsupported" >&6; }
4176 else $as_nop
4177 if test "x$ac_cv_prog_cc_c99" = x
4178 then :
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4180 printf "%s\n" "none needed" >&6; }
4181 else $as_nop
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4183 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4184 CC="$CC $ac_cv_prog_cc_c99"
4185 fi
4186 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4187 ac_prog_cc_stdc=c99
4188 fi
4189 fi
4190 if test x$ac_prog_cc_stdc = xno
4191 then :
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4193 printf %s "checking for $CC option to enable C89 features... " >&6; }
4194 if test ${ac_cv_prog_cc_c89+y}
4195 then :
4196 printf %s "(cached) " >&6
4197 else $as_nop
4198 ac_cv_prog_cc_c89=no
4199 ac_save_CC=$CC
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 $ac_c_conftest_c89_program
4203 _ACEOF
4204 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4205 do
4206 CC="$ac_save_CC $ac_arg"
4207 if ac_fn_c_try_compile "$LINENO"
4208 then :
4209 ac_cv_prog_cc_c89=$ac_arg
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.beam
4212 test "x$ac_cv_prog_cc_c89" != "xno" && break
4213 done
4214 rm -f conftest.$ac_ext
4215 CC=$ac_save_CC
4216 fi
4217
4218 if test "x$ac_cv_prog_cc_c89" = xno
4219 then :
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4221 printf "%s\n" "unsupported" >&6; }
4222 else $as_nop
4223 if test "x$ac_cv_prog_cc_c89" = x
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4226 printf "%s\n" "none needed" >&6; }
4227 else $as_nop
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4229 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4230 CC="$CC $ac_cv_prog_cc_c89"
4231 fi
4232 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4233 ac_prog_cc_stdc=c89
4234 fi
4235 fi
4236
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242
4243
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4250 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4251 if test ${am_cv_prog_cc_c_o+y}
4252 then :
4253 printf %s "(cached) " >&6
4254 else $as_nop
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257
4258 int
4259 main (void)
4260 {
4261
4262 ;
4263 return 0;
4264 }
4265 _ACEOF
4266 # Make sure it works both with $CC and with simple cc.
4267 # Following AC_PROG_CC_C_O, we do the test twice because some
4268 # compilers refuse to overwrite an existing .o file with -o,
4269 # though they will create one.
4270 am_cv_prog_cc_c_o=yes
4271 for am_i in 1 2; do
4272 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4273 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } \
4277 && test -f conftest2.$ac_objext; then
4278 : OK
4279 else
4280 am_cv_prog_cc_c_o=no
4281 break
4282 fi
4283 done
4284 rm -f core conftest*
4285 unset am_i
4286 fi
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4288 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4289 if test "$am_cv_prog_cc_c_o" != yes; then
4290 # Losing compiler, so override with the script.
4291 # FIXME: It is wrong to rewrite CC.
4292 # But if we don't then we get into trouble of one sort or another.
4293 # A longer-term fix would be to have automake use am__CC in this case,
4294 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4295 CC="$am_aux_dir/compile $CC"
4296 fi
4297 ac_ext=c
4298 ac_cpp='$CPP $CPPFLAGS'
4299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302
4303
4304 depcc="$CC" am_compiler_list=
4305
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4307 printf %s "checking dependency style of $depcc... " >&6; }
4308 if test ${am_cv_CC_dependencies_compiler_type+y}
4309 then :
4310 printf %s "(cached) " >&6
4311 else $as_nop
4312 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4313 # We make a subdir and do the tests there. Otherwise we can end up
4314 # making bogus files that we don't know about and never remove. For
4315 # instance it was reported that on HP-UX the gcc test will end up
4316 # making a dummy file named 'D' -- because '-MD' means "put the output
4317 # in D".
4318 rm -rf conftest.dir
4319 mkdir conftest.dir
4320 # Copy depcomp to subdir because otherwise we won't find it if we're
4321 # using a relative directory.
4322 cp "$am_depcomp" conftest.dir
4323 cd conftest.dir
4324 # We will build objects and dependencies in a subdirectory because
4325 # it helps to detect inapplicable dependency modes. For instance
4326 # both Tru64's cc and ICC support -MD to output dependencies as a
4327 # side effect of compilation, but ICC will put the dependencies in
4328 # the current directory while Tru64 will put them in the object
4329 # directory.
4330 mkdir sub
4331
4332 am_cv_CC_dependencies_compiler_type=none
4333 if test "$am_compiler_list" = ""; then
4334 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4335 fi
4336 am__universal=false
4337 case " $depcc " in #(
4338 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4339 esac
4340
4341 for depmode in $am_compiler_list; do
4342 # Setup a source with many dependencies, because some compilers
4343 # like to wrap large dependency lists on column 80 (with \), and
4344 # we should not choose a depcomp mode which is confused by this.
4345 #
4346 # We need to recreate these files for each test, as the compiler may
4347 # overwrite some of them when testing with obscure command lines.
4348 # This happens at least with the AIX C compiler.
4349 : > sub/conftest.c
4350 for i in 1 2 3 4 5 6; do
4351 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4352 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4353 # Solaris 10 /bin/sh.
4354 echo '/* dummy */' > sub/conftst$i.h
4355 done
4356 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4357
4358 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4359 # mode. It turns out that the SunPro C++ compiler does not properly
4360 # handle '-M -o', and we need to detect this. Also, some Intel
4361 # versions had trouble with output in subdirs.
4362 am__obj=sub/conftest.${OBJEXT-o}
4363 am__minus_obj="-o $am__obj"
4364 case $depmode in
4365 gcc)
4366 # This depmode causes a compiler race in universal mode.
4367 test "$am__universal" = false || continue
4368 ;;
4369 nosideeffect)
4370 # After this tag, mechanisms are not by side-effect, so they'll
4371 # only be used when explicitly requested.
4372 if test "x$enable_dependency_tracking" = xyes; then
4373 continue
4374 else
4375 break
4376 fi
4377 ;;
4378 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4379 # This compiler won't grok '-c -o', but also, the minuso test has
4380 # not run yet. These depmodes are late enough in the game, and
4381 # so weak that their functioning should not be impacted.
4382 am__obj=conftest.${OBJEXT-o}
4383 am__minus_obj=
4384 ;;
4385 none) break ;;
4386 esac
4387 if depmode=$depmode \
4388 source=sub/conftest.c object=$am__obj \
4389 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4390 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4391 >/dev/null 2>conftest.err &&
4392 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4393 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4394 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4395 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4396 # icc doesn't choke on unknown options, it will just issue warnings
4397 # or remarks (even with -Werror). So we grep stderr for any message
4398 # that says an option was ignored or not supported.
4399 # When given -MP, icc 7.0 and 7.1 complain thusly:
4400 # icc: Command line warning: ignoring option '-M'; no argument required
4401 # The diagnosis changed in icc 8.0:
4402 # icc: Command line remark: option '-MP' not supported
4403 if (grep 'ignoring option' conftest.err ||
4404 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4405 am_cv_CC_dependencies_compiler_type=$depmode
4406 break
4407 fi
4408 fi
4409 done
4410
4411 cd ..
4412 rm -rf conftest.dir
4413 else
4414 am_cv_CC_dependencies_compiler_type=none
4415 fi
4416
4417 fi
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4419 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4420 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4421
4422 if
4423 test "x$enable_dependency_tracking" != xno \
4424 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4425 am__fastdepCC_TRUE=
4426 am__fastdepCC_FALSE='#'
4427 else
4428 am__fastdepCC_TRUE='#'
4429 am__fastdepCC_FALSE=
4430 fi
4431
4432
4433
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4435 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4436 if test ${ac_cv_c_undeclared_builtin_options+y}
4437 then :
4438 printf %s "(cached) " >&6
4439 else $as_nop
4440 ac_save_CFLAGS=$CFLAGS
4441 ac_cv_c_undeclared_builtin_options='cannot detect'
4442 for ac_arg in '' -fno-builtin; do
4443 CFLAGS="$ac_save_CFLAGS $ac_arg"
4444 # This test program should *not* compile successfully.
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447
4448 int
4449 main (void)
4450 {
4451 (void) strchr;
4452 ;
4453 return 0;
4454 }
4455 _ACEOF
4456 if ac_fn_c_try_compile "$LINENO"
4457 then :
4458
4459 else $as_nop
4460 # This test program should compile successfully.
4461 # No library function is consistently available on
4462 # freestanding implementations, so test against a dummy
4463 # declaration. Include always-available headers on the
4464 # off chance that they somehow elicit warnings.
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #include <float.h>
4468 #include <limits.h>
4469 #include <stdarg.h>
4470 #include <stddef.h>
4471 extern void ac_decl (int, char *);
4472
4473 int
4474 main (void)
4475 {
4476 (void) ac_decl (0, (char *) 0);
4477 (void) ac_decl;
4478
4479 ;
4480 return 0;
4481 }
4482 _ACEOF
4483 if ac_fn_c_try_compile "$LINENO"
4484 then :
4485 if test x"$ac_arg" = x
4486 then :
4487 ac_cv_c_undeclared_builtin_options='none needed'
4488 else $as_nop
4489 ac_cv_c_undeclared_builtin_options=$ac_arg
4490 fi
4491 break
4492 fi
4493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4494 fi
4495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4496 done
4497 CFLAGS=$ac_save_CFLAGS
4498
4499 fi
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4501 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4502 case $ac_cv_c_undeclared_builtin_options in #(
4503 'cannot detect') :
4504 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4505 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4506 as_fn_error $? "cannot make $CC report undeclared builtins
4507 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4508 'none needed') :
4509 ac_c_undeclared_builtin_options='' ;; #(
4510 *) :
4511 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4512 esac
4513
4514 ac_header= ac_cache=
4515 for ac_item in $ac_header_c_list
4516 do
4517 if test $ac_cache; then
4518 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4519 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4520 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4521 fi
4522 ac_header= ac_cache=
4523 elif test $ac_header; then
4524 ac_cache=$ac_item
4525 else
4526 ac_header=$ac_item
4527 fi
4528 done
4529
4530
4531
4532
4533
4534
4535
4536
4537 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4538 then :
4539
4540 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4541
4542 fi
4543
4544
4545
4546
4547 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4548 if test "x$ac_cv_have_decl___clang__" = xyes
4549 then :
4550 CLANGCC="yes"
4551 else $as_nop
4552 CLANGCC="no"
4553 fi
4554 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4555 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4556 then :
4557 INTELCC="yes"
4558 else $as_nop
4559 INTELCC="no"
4560 fi
4561 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4562 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4563 then :
4564 SUNCC="yes"
4565 else $as_nop
4566 SUNCC="no"
4567 fi
4568
4569
4570
4571
4572
4573
4574
4575
4576 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4577 if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4579 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581 printf %s "checking for $ac_word... " >&6; }
4582 if test ${ac_cv_path_PKG_CONFIG+y}
4583 then :
4584 printf %s "(cached) " >&6
4585 else $as_nop
4586 case $PKG_CONFIG in
4587 [\\/]* | ?:[\\/]*)
4588 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4589 ;;
4590 *)
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594 IFS=$as_save_IFS
4595 case $as_dir in #(((
4596 '') as_dir=./ ;;
4597 */) ;;
4598 *) as_dir=$as_dir/ ;;
4599 esac
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4602 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610 ;;
4611 esac
4612 fi
4613 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4614 if test -n "$PKG_CONFIG"; then
4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4616 printf "%s\n" "$PKG_CONFIG" >&6; }
4617 else
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 printf "%s\n" "no" >&6; }
4620 fi
4621
4622
4623 fi
4624 if test -z "$ac_cv_path_PKG_CONFIG"; then
4625 ac_pt_PKG_CONFIG=$PKG_CONFIG
4626 # Extract the first word of "pkg-config", so it can be a program name with args.
4627 set dummy pkg-config; ac_word=$2
4628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4629 printf %s "checking for $ac_word... " >&6; }
4630 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4631 then :
4632 printf %s "(cached) " >&6
4633 else $as_nop
4634 case $ac_pt_PKG_CONFIG in
4635 [\\/]* | ?:[\\/]*)
4636 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4637 ;;
4638 *)
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642 IFS=$as_save_IFS
4643 case $as_dir in #(((
4644 '') as_dir=./ ;;
4645 */) ;;
4646 *) as_dir=$as_dir/ ;;
4647 esac
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4650 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654 done
4655 done
4656 IFS=$as_save_IFS
4657
4658 ;;
4659 esac
4660 fi
4661 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4662 if test -n "$ac_pt_PKG_CONFIG"; then
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4664 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4665 else
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 printf "%s\n" "no" >&6; }
4668 fi
4669
4670 if test "x$ac_pt_PKG_CONFIG" = x; then
4671 PKG_CONFIG=""
4672 else
4673 case $cross_compiling:$ac_tool_warned in
4674 yes:)
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4676 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677 ac_tool_warned=yes ;;
4678 esac
4679 PKG_CONFIG=$ac_pt_PKG_CONFIG
4680 fi
4681 else
4682 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4683 fi
4684
4685 fi
4686 if test -n "$PKG_CONFIG"; then
4687 _pkg_min_version=0.9.0
4688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4689 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4690 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4692 printf "%s\n" "yes" >&6; }
4693 else
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 printf "%s\n" "no" >&6; }
4696 PKG_CONFIG=""
4697 fi
4698 fi
4699
4700
4701 # Make sure we can run config.sub.
4702 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4703 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4704
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4706 printf %s "checking build system type... " >&6; }
4707 if test ${ac_cv_build+y}
4708 then :
4709 printf %s "(cached) " >&6
4710 else $as_nop
4711 ac_build_alias=$build_alias
4712 test "x$ac_build_alias" = x &&
4713 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4714 test "x$ac_build_alias" = x &&
4715 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4716 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4717 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4718
4719 fi
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4721 printf "%s\n" "$ac_cv_build" >&6; }
4722 case $ac_cv_build in
4723 *-*-*) ;;
4724 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4725 esac
4726 build=$ac_cv_build
4727 ac_save_IFS=$IFS; IFS='-'
4728 set x $ac_cv_build
4729 shift
4730 build_cpu=$1
4731 build_vendor=$2
4732 shift; shift
4733 # Remember, the first character of IFS is used to create $*,
4734 # except with old shells:
4735 build_os=$*
4736 IFS=$ac_save_IFS
4737 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4738
4739
4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4741 printf %s "checking host system type... " >&6; }
4742 if test ${ac_cv_host+y}
4743 then :
4744 printf %s "(cached) " >&6
4745 else $as_nop
4746 if test "x$host_alias" = x; then
4747 ac_cv_host=$ac_cv_build
4748 else
4749 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4750 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4751 fi
4752
4753 fi
4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4755 printf "%s\n" "$ac_cv_host" >&6; }
4756 case $ac_cv_host in
4757 *-*-*) ;;
4758 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4759 esac
4760 host=$ac_cv_host
4761 ac_save_IFS=$IFS; IFS='-'
4762 set x $ac_cv_host
4763 shift
4764 host_cpu=$1
4765 host_vendor=$2
4766 shift; shift
4767 # Remember, the first character of IFS is used to create $*,
4768 # except with old shells:
4769 host_os=$*
4770 IFS=$ac_save_IFS
4771 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4772
4773
4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4775 printf %s "checking for a sed that does not truncate output... " >&6; }
4776 if test ${ac_cv_path_SED+y}
4777 then :
4778 printf %s "(cached) " >&6
4779 else $as_nop
4780 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4781 for ac_i in 1 2 3 4 5 6 7; do
4782 ac_script="$ac_script$as_nl$ac_script"
4783 done
4784 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4785 { ac_script=; unset ac_script;}
4786 if test -z "$SED"; then
4787 ac_path_SED_found=false
4788 # Loop through the user's path and test for each of PROGNAME-LIST
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792 IFS=$as_save_IFS
4793 case $as_dir in #(((
4794 '') as_dir=./ ;;
4795 */) ;;
4796 *) as_dir=$as_dir/ ;;
4797 esac
4798 for ac_prog in sed gsed
4799 do
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4802 as_fn_executable_p "$ac_path_SED" || continue
4803 # Check for GNU ac_path_SED and select it if it is found.
4804 # Check for GNU $ac_path_SED
4805 case `"$ac_path_SED" --version 2>&1` in
4806 *GNU*)
4807 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4808 *)
4809 ac_count=0
4810 printf %s 0123456789 >"conftest.in"
4811 while :
4812 do
4813 cat "conftest.in" "conftest.in" >"conftest.tmp"
4814 mv "conftest.tmp" "conftest.in"
4815 cp "conftest.in" "conftest.nl"
4816 printf "%s\n" '' >> "conftest.nl"
4817 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4819 as_fn_arith $ac_count + 1 && ac_count=$as_val
4820 if test $ac_count -gt ${ac_path_SED_max-0}; then
4821 # Best one so far, save it but keep looking for a better one
4822 ac_cv_path_SED="$ac_path_SED"
4823 ac_path_SED_max=$ac_count
4824 fi
4825 # 10*(2^10) chars as input seems more than enough
4826 test $ac_count -gt 10 && break
4827 done
4828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4829 esac
4830
4831 $ac_path_SED_found && break 3
4832 done
4833 done
4834 done
4835 IFS=$as_save_IFS
4836 if test -z "$ac_cv_path_SED"; then
4837 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4838 fi
4839 else
4840 ac_cv_path_SED=$SED
4841 fi
4842
4843 fi
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4845 printf "%s\n" "$ac_cv_path_SED" >&6; }
4846 SED="$ac_cv_path_SED"
4847 rm -f conftest.sed
4848
4849
4850
4851
4852
4853
4854 # Check whether --enable-selective-werror was given.
4855 if test ${enable_selective_werror+y}
4856 then :
4857 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4858 else $as_nop
4859 SELECTIVE_WERROR=yes
4860 fi
4861
4862
4863
4864
4865
4866 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4867 if test "x$SUNCC" = "xyes"; then
4868 BASE_CFLAGS="-v"
4869 else
4870 BASE_CFLAGS=""
4871 fi
4872
4873 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887 xorg_testset_save_CFLAGS="$CFLAGS"
4888
4889 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4892 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4893 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4894 then :
4895 printf %s "(cached) " >&6
4896 else $as_nop
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h. */
4899 int i;
4900 _ACEOF
4901 if ac_fn_c_try_compile "$LINENO"
4902 then :
4903 xorg_cv_cc_flag_unknown_warning_option=yes
4904 else $as_nop
4905 xorg_cv_cc_flag_unknown_warning_option=no
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4908 fi
4909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4910 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4912 CFLAGS="$xorg_testset_save_CFLAGS"
4913 fi
4914
4915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4918 fi
4919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4921 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4922 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4923 then :
4924 printf %s "(cached) " >&6
4925 else $as_nop
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928 int i;
4929 _ACEOF
4930 if ac_fn_c_try_compile "$LINENO"
4931 then :
4932 xorg_cv_cc_flag_unused_command_line_argument=yes
4933 else $as_nop
4934 xorg_cv_cc_flag_unused_command_line_argument=no
4935 fi
4936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4937 fi
4938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4939 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4941 CFLAGS="$xorg_testset_save_CFLAGS"
4942 fi
4943
4944 found="no"
4945
4946 if test $found = "no" ; then
4947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4949 fi
4950
4951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4953 fi
4954
4955 CFLAGS="$CFLAGS -Wall"
4956
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4958 printf %s "checking if $CC supports -Wall... " >&6; }
4959 cacheid=xorg_cv_cc_flag__Wall
4960 if eval test \${$cacheid+y}
4961 then :
4962 printf %s "(cached) " >&6
4963 else $as_nop
4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4966 int i;
4967 int
4968 main (void)
4969 {
4970
4971 ;
4972 return 0;
4973 }
4974 _ACEOF
4975 if ac_fn_c_try_link "$LINENO"
4976 then :
4977 eval $cacheid=yes
4978 else $as_nop
4979 eval $cacheid=no
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4982 conftest$ac_exeext conftest.$ac_ext
4983 fi
4984
4985
4986 CFLAGS="$xorg_testset_save_CFLAGS"
4987
4988 eval supported=\$$cacheid
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4990 printf "%s\n" "$supported" >&6; }
4991 if test "$supported" = "yes" ; then
4992 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4993 found="yes"
4994 fi
4995 fi
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011 xorg_testset_save_CFLAGS="$CFLAGS"
5012
5013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5016 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5017 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5018 then :
5019 printf %s "(cached) " >&6
5020 else $as_nop
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5023 int i;
5024 _ACEOF
5025 if ac_fn_c_try_compile "$LINENO"
5026 then :
5027 xorg_cv_cc_flag_unknown_warning_option=yes
5028 else $as_nop
5029 xorg_cv_cc_flag_unknown_warning_option=no
5030 fi
5031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5032 fi
5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5034 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5036 CFLAGS="$xorg_testset_save_CFLAGS"
5037 fi
5038
5039 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5042 fi
5043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5045 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5046 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5047 then :
5048 printf %s "(cached) " >&6
5049 else $as_nop
5050 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_unused_command_line_argument=yes
5057 else $as_nop
5058 xorg_cv_cc_flag_unused_command_line_argument=no
5059 fi
5060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5061 fi
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5063 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5065 CFLAGS="$xorg_testset_save_CFLAGS"
5066 fi
5067
5068 found="no"
5069
5070 if test $found = "no" ; then
5071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5073 fi
5074
5075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5077 fi
5078
5079 CFLAGS="$CFLAGS -Wpointer-arith"
5080
5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5082 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5083 cacheid=xorg_cv_cc_flag__Wpointer_arith
5084 if eval test \${$cacheid+y}
5085 then :
5086 printf %s "(cached) " >&6
5087 else $as_nop
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090 int i;
5091 int
5092 main (void)
5093 {
5094
5095 ;
5096 return 0;
5097 }
5098 _ACEOF
5099 if ac_fn_c_try_link "$LINENO"
5100 then :
5101 eval $cacheid=yes
5102 else $as_nop
5103 eval $cacheid=no
5104 fi
5105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5106 conftest$ac_exeext conftest.$ac_ext
5107 fi
5108
5109
5110 CFLAGS="$xorg_testset_save_CFLAGS"
5111
5112 eval supported=\$$cacheid
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5114 printf "%s\n" "$supported" >&6; }
5115 if test "$supported" = "yes" ; then
5116 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5117 found="yes"
5118 fi
5119 fi
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135 xorg_testset_save_CFLAGS="$CFLAGS"
5136
5137 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5140 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5141 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5142 then :
5143 printf %s "(cached) " >&6
5144 else $as_nop
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 int i;
5148 _ACEOF
5149 if ac_fn_c_try_compile "$LINENO"
5150 then :
5151 xorg_cv_cc_flag_unknown_warning_option=yes
5152 else $as_nop
5153 xorg_cv_cc_flag_unknown_warning_option=no
5154 fi
5155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5156 fi
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5158 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5160 CFLAGS="$xorg_testset_save_CFLAGS"
5161 fi
5162
5163 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5166 fi
5167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5169 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5170 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5171 then :
5172 printf %s "(cached) " >&6
5173 else $as_nop
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 int i;
5177 _ACEOF
5178 if ac_fn_c_try_compile "$LINENO"
5179 then :
5180 xorg_cv_cc_flag_unused_command_line_argument=yes
5181 else $as_nop
5182 xorg_cv_cc_flag_unused_command_line_argument=no
5183 fi
5184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5185 fi
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5187 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5189 CFLAGS="$xorg_testset_save_CFLAGS"
5190 fi
5191
5192 found="no"
5193
5194 if test $found = "no" ; then
5195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5197 fi
5198
5199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5201 fi
5202
5203 CFLAGS="$CFLAGS -Wmissing-declarations"
5204
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5206 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5207 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5208 if eval test \${$cacheid+y}
5209 then :
5210 printf %s "(cached) " >&6
5211 else $as_nop
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214 int i;
5215 int
5216 main (void)
5217 {
5218
5219 ;
5220 return 0;
5221 }
5222 _ACEOF
5223 if ac_fn_c_try_link "$LINENO"
5224 then :
5225 eval $cacheid=yes
5226 else $as_nop
5227 eval $cacheid=no
5228 fi
5229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5230 conftest$ac_exeext conftest.$ac_ext
5231 fi
5232
5233
5234 CFLAGS="$xorg_testset_save_CFLAGS"
5235
5236 eval supported=\$$cacheid
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5238 printf "%s\n" "$supported" >&6; }
5239 if test "$supported" = "yes" ; then
5240 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5241 found="yes"
5242 fi
5243 fi
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259 xorg_testset_save_CFLAGS="$CFLAGS"
5260
5261 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5264 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5265 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5266 then :
5267 printf %s "(cached) " >&6
5268 else $as_nop
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 int i;
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"
5274 then :
5275 xorg_cv_cc_flag_unknown_warning_option=yes
5276 else $as_nop
5277 xorg_cv_cc_flag_unknown_warning_option=no
5278 fi
5279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5280 fi
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5282 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5284 CFLAGS="$xorg_testset_save_CFLAGS"
5285 fi
5286
5287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5290 fi
5291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5293 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5294 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5295 then :
5296 printf %s "(cached) " >&6
5297 else $as_nop
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 int i;
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"
5303 then :
5304 xorg_cv_cc_flag_unused_command_line_argument=yes
5305 else $as_nop
5306 xorg_cv_cc_flag_unused_command_line_argument=no
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5309 fi
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5311 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5313 CFLAGS="$xorg_testset_save_CFLAGS"
5314 fi
5315
5316 found="no"
5317
5318 if test $found = "no" ; then
5319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5321 fi
5322
5323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5325 fi
5326
5327 CFLAGS="$CFLAGS -Wformat=2"
5328
5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5330 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5331 cacheid=xorg_cv_cc_flag__Wformat_2
5332 if eval test \${$cacheid+y}
5333 then :
5334 printf %s "(cached) " >&6
5335 else $as_nop
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338 int i;
5339 int
5340 main (void)
5341 {
5342
5343 ;
5344 return 0;
5345 }
5346 _ACEOF
5347 if ac_fn_c_try_link "$LINENO"
5348 then :
5349 eval $cacheid=yes
5350 else $as_nop
5351 eval $cacheid=no
5352 fi
5353 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5354 conftest$ac_exeext conftest.$ac_ext
5355 fi
5356
5357
5358 CFLAGS="$xorg_testset_save_CFLAGS"
5359
5360 eval supported=\$$cacheid
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5362 printf "%s\n" "$supported" >&6; }
5363 if test "$supported" = "yes" ; then
5364 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5365 found="yes"
5366 fi
5367 fi
5368
5369 if test $found = "no" ; then
5370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5372 fi
5373
5374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5376 fi
5377
5378 CFLAGS="$CFLAGS -Wformat"
5379
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5381 printf %s "checking if $CC supports -Wformat... " >&6; }
5382 cacheid=xorg_cv_cc_flag__Wformat
5383 if eval test \${$cacheid+y}
5384 then :
5385 printf %s "(cached) " >&6
5386 else $as_nop
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 int i;
5390 int
5391 main (void)
5392 {
5393
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_link "$LINENO"
5399 then :
5400 eval $cacheid=yes
5401 else $as_nop
5402 eval $cacheid=no
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5405 conftest$ac_exeext conftest.$ac_ext
5406 fi
5407
5408
5409 CFLAGS="$xorg_testset_save_CFLAGS"
5410
5411 eval supported=\$$cacheid
5412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5413 printf "%s\n" "$supported" >&6; }
5414 if test "$supported" = "yes" ; then
5415 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5416 found="yes"
5417 fi
5418 fi
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436 xorg_testset_save_CFLAGS="$CFLAGS"
5437
5438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5441 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5442 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5443 then :
5444 printf %s "(cached) " >&6
5445 else $as_nop
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 int i;
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"
5451 then :
5452 xorg_cv_cc_flag_unknown_warning_option=yes
5453 else $as_nop
5454 xorg_cv_cc_flag_unknown_warning_option=no
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5457 fi
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5459 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5461 CFLAGS="$xorg_testset_save_CFLAGS"
5462 fi
5463
5464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5467 fi
5468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5470 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5471 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5472 then :
5473 printf %s "(cached) " >&6
5474 else $as_nop
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477 int i;
5478 _ACEOF
5479 if ac_fn_c_try_compile "$LINENO"
5480 then :
5481 xorg_cv_cc_flag_unused_command_line_argument=yes
5482 else $as_nop
5483 xorg_cv_cc_flag_unused_command_line_argument=no
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5486 fi
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5488 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5490 CFLAGS="$xorg_testset_save_CFLAGS"
5491 fi
5492
5493 found="no"
5494
5495 if test $found = "no" ; then
5496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5498 fi
5499
5500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5502 fi
5503
5504 CFLAGS="$CFLAGS -Wstrict-prototypes"
5505
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5507 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5508 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5509 if eval test \${$cacheid+y}
5510 then :
5511 printf %s "(cached) " >&6
5512 else $as_nop
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 int i;
5516 int
5517 main (void)
5518 {
5519
5520 ;
5521 return 0;
5522 }
5523 _ACEOF
5524 if ac_fn_c_try_link "$LINENO"
5525 then :
5526 eval $cacheid=yes
5527 else $as_nop
5528 eval $cacheid=no
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5531 conftest$ac_exeext conftest.$ac_ext
5532 fi
5533
5534
5535 CFLAGS="$xorg_testset_save_CFLAGS"
5536
5537 eval supported=\$$cacheid
5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5539 printf "%s\n" "$supported" >&6; }
5540 if test "$supported" = "yes" ; then
5541 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5542 found="yes"
5543 fi
5544 fi
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560 xorg_testset_save_CFLAGS="$CFLAGS"
5561
5562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5565 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5566 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5567 then :
5568 printf %s "(cached) " >&6
5569 else $as_nop
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 int i;
5573 _ACEOF
5574 if ac_fn_c_try_compile "$LINENO"
5575 then :
5576 xorg_cv_cc_flag_unknown_warning_option=yes
5577 else $as_nop
5578 xorg_cv_cc_flag_unknown_warning_option=no
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5581 fi
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5583 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5585 CFLAGS="$xorg_testset_save_CFLAGS"
5586 fi
5587
5588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5591 fi
5592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5594 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5595 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5596 then :
5597 printf %s "(cached) " >&6
5598 else $as_nop
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601 int i;
5602 _ACEOF
5603 if ac_fn_c_try_compile "$LINENO"
5604 then :
5605 xorg_cv_cc_flag_unused_command_line_argument=yes
5606 else $as_nop
5607 xorg_cv_cc_flag_unused_command_line_argument=no
5608 fi
5609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5610 fi
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5612 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5614 CFLAGS="$xorg_testset_save_CFLAGS"
5615 fi
5616
5617 found="no"
5618
5619 if test $found = "no" ; then
5620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5622 fi
5623
5624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5626 fi
5627
5628 CFLAGS="$CFLAGS -Wmissing-prototypes"
5629
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5631 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5632 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5633 if eval test \${$cacheid+y}
5634 then :
5635 printf %s "(cached) " >&6
5636 else $as_nop
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 int i;
5640 int
5641 main (void)
5642 {
5643
5644 ;
5645 return 0;
5646 }
5647 _ACEOF
5648 if ac_fn_c_try_link "$LINENO"
5649 then :
5650 eval $cacheid=yes
5651 else $as_nop
5652 eval $cacheid=no
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5655 conftest$ac_exeext conftest.$ac_ext
5656 fi
5657
5658
5659 CFLAGS="$xorg_testset_save_CFLAGS"
5660
5661 eval supported=\$$cacheid
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5663 printf "%s\n" "$supported" >&6; }
5664 if test "$supported" = "yes" ; then
5665 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5666 found="yes"
5667 fi
5668 fi
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684 xorg_testset_save_CFLAGS="$CFLAGS"
5685
5686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5689 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5690 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5691 then :
5692 printf %s "(cached) " >&6
5693 else $as_nop
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 int i;
5697 _ACEOF
5698 if ac_fn_c_try_compile "$LINENO"
5699 then :
5700 xorg_cv_cc_flag_unknown_warning_option=yes
5701 else $as_nop
5702 xorg_cv_cc_flag_unknown_warning_option=no
5703 fi
5704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5705 fi
5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5707 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5709 CFLAGS="$xorg_testset_save_CFLAGS"
5710 fi
5711
5712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5715 fi
5716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5718 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5719 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5720 then :
5721 printf %s "(cached) " >&6
5722 else $as_nop
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725 int i;
5726 _ACEOF
5727 if ac_fn_c_try_compile "$LINENO"
5728 then :
5729 xorg_cv_cc_flag_unused_command_line_argument=yes
5730 else $as_nop
5731 xorg_cv_cc_flag_unused_command_line_argument=no
5732 fi
5733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5734 fi
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5736 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5738 CFLAGS="$xorg_testset_save_CFLAGS"
5739 fi
5740
5741 found="no"
5742
5743 if test $found = "no" ; then
5744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5746 fi
5747
5748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5750 fi
5751
5752 CFLAGS="$CFLAGS -Wnested-externs"
5753
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5755 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5756 cacheid=xorg_cv_cc_flag__Wnested_externs
5757 if eval test \${$cacheid+y}
5758 then :
5759 printf %s "(cached) " >&6
5760 else $as_nop
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5763 int i;
5764 int
5765 main (void)
5766 {
5767
5768 ;
5769 return 0;
5770 }
5771 _ACEOF
5772 if ac_fn_c_try_link "$LINENO"
5773 then :
5774 eval $cacheid=yes
5775 else $as_nop
5776 eval $cacheid=no
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5779 conftest$ac_exeext conftest.$ac_ext
5780 fi
5781
5782
5783 CFLAGS="$xorg_testset_save_CFLAGS"
5784
5785 eval supported=\$$cacheid
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5787 printf "%s\n" "$supported" >&6; }
5788 if test "$supported" = "yes" ; then
5789 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5790 found="yes"
5791 fi
5792 fi
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808 xorg_testset_save_CFLAGS="$CFLAGS"
5809
5810 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5813 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5814 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5815 then :
5816 printf %s "(cached) " >&6
5817 else $as_nop
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5820 int i;
5821 _ACEOF
5822 if ac_fn_c_try_compile "$LINENO"
5823 then :
5824 xorg_cv_cc_flag_unknown_warning_option=yes
5825 else $as_nop
5826 xorg_cv_cc_flag_unknown_warning_option=no
5827 fi
5828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5829 fi
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5831 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5833 CFLAGS="$xorg_testset_save_CFLAGS"
5834 fi
5835
5836 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5839 fi
5840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5842 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5843 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5844 then :
5845 printf %s "(cached) " >&6
5846 else $as_nop
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5849 int i;
5850 _ACEOF
5851 if ac_fn_c_try_compile "$LINENO"
5852 then :
5853 xorg_cv_cc_flag_unused_command_line_argument=yes
5854 else $as_nop
5855 xorg_cv_cc_flag_unused_command_line_argument=no
5856 fi
5857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5858 fi
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5860 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5862 CFLAGS="$xorg_testset_save_CFLAGS"
5863 fi
5864
5865 found="no"
5866
5867 if test $found = "no" ; then
5868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5870 fi
5871
5872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5874 fi
5875
5876 CFLAGS="$CFLAGS -Wbad-function-cast"
5877
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5879 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5880 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5881 if eval test \${$cacheid+y}
5882 then :
5883 printf %s "(cached) " >&6
5884 else $as_nop
5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5887 int i;
5888 int
5889 main (void)
5890 {
5891
5892 ;
5893 return 0;
5894 }
5895 _ACEOF
5896 if ac_fn_c_try_link "$LINENO"
5897 then :
5898 eval $cacheid=yes
5899 else $as_nop
5900 eval $cacheid=no
5901 fi
5902 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5903 conftest$ac_exeext conftest.$ac_ext
5904 fi
5905
5906
5907 CFLAGS="$xorg_testset_save_CFLAGS"
5908
5909 eval supported=\$$cacheid
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5911 printf "%s\n" "$supported" >&6; }
5912 if test "$supported" = "yes" ; then
5913 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5914 found="yes"
5915 fi
5916 fi
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932 xorg_testset_save_CFLAGS="$CFLAGS"
5933
5934 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5937 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5938 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5939 then :
5940 printf %s "(cached) " >&6
5941 else $as_nop
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 int i;
5945 _ACEOF
5946 if ac_fn_c_try_compile "$LINENO"
5947 then :
5948 xorg_cv_cc_flag_unknown_warning_option=yes
5949 else $as_nop
5950 xorg_cv_cc_flag_unknown_warning_option=no
5951 fi
5952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5953 fi
5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5955 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5957 CFLAGS="$xorg_testset_save_CFLAGS"
5958 fi
5959
5960 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5963 fi
5964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5966 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5967 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5968 then :
5969 printf %s "(cached) " >&6
5970 else $as_nop
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 int i;
5974 _ACEOF
5975 if ac_fn_c_try_compile "$LINENO"
5976 then :
5977 xorg_cv_cc_flag_unused_command_line_argument=yes
5978 else $as_nop
5979 xorg_cv_cc_flag_unused_command_line_argument=no
5980 fi
5981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5982 fi
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5984 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5986 CFLAGS="$xorg_testset_save_CFLAGS"
5987 fi
5988
5989 found="no"
5990
5991 if test $found = "no" ; then
5992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5994 fi
5995
5996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5998 fi
5999
6000 CFLAGS="$CFLAGS -Wold-style-definition"
6001
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6003 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6004 cacheid=xorg_cv_cc_flag__Wold_style_definition
6005 if eval test \${$cacheid+y}
6006 then :
6007 printf %s "(cached) " >&6
6008 else $as_nop
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 int i;
6012 int
6013 main (void)
6014 {
6015
6016 ;
6017 return 0;
6018 }
6019 _ACEOF
6020 if ac_fn_c_try_link "$LINENO"
6021 then :
6022 eval $cacheid=yes
6023 else $as_nop
6024 eval $cacheid=no
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6027 conftest$ac_exeext conftest.$ac_ext
6028 fi
6029
6030
6031 CFLAGS="$xorg_testset_save_CFLAGS"
6032
6033 eval supported=\$$cacheid
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6035 printf "%s\n" "$supported" >&6; }
6036 if test "$supported" = "yes" ; then
6037 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6038 found="yes"
6039 fi
6040 fi
6041
6042 if test $found = "no" ; then
6043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6045 fi
6046
6047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6049 fi
6050
6051 CFLAGS="$CFLAGS -fd"
6052
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6054 printf %s "checking if $CC supports -fd... " >&6; }
6055 cacheid=xorg_cv_cc_flag__fd
6056 if eval test \${$cacheid+y}
6057 then :
6058 printf %s "(cached) " >&6
6059 else $as_nop
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062 int i;
6063 int
6064 main (void)
6065 {
6066
6067 ;
6068 return 0;
6069 }
6070 _ACEOF
6071 if ac_fn_c_try_link "$LINENO"
6072 then :
6073 eval $cacheid=yes
6074 else $as_nop
6075 eval $cacheid=no
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6078 conftest$ac_exeext conftest.$ac_ext
6079 fi
6080
6081
6082 CFLAGS="$xorg_testset_save_CFLAGS"
6083
6084 eval supported=\$$cacheid
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6086 printf "%s\n" "$supported" >&6; }
6087 if test "$supported" = "yes" ; then
6088 BASE_CFLAGS="$BASE_CFLAGS -fd"
6089 found="yes"
6090 fi
6091 fi
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107 xorg_testset_save_CFLAGS="$CFLAGS"
6108
6109 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6112 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6113 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6114 then :
6115 printf %s "(cached) " >&6
6116 else $as_nop
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119 int i;
6120 _ACEOF
6121 if ac_fn_c_try_compile "$LINENO"
6122 then :
6123 xorg_cv_cc_flag_unknown_warning_option=yes
6124 else $as_nop
6125 xorg_cv_cc_flag_unknown_warning_option=no
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6128 fi
6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6130 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6132 CFLAGS="$xorg_testset_save_CFLAGS"
6133 fi
6134
6135 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138 fi
6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6141 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6142 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6143 then :
6144 printf %s "(cached) " >&6
6145 else $as_nop
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6148 int i;
6149 _ACEOF
6150 if ac_fn_c_try_compile "$LINENO"
6151 then :
6152 xorg_cv_cc_flag_unused_command_line_argument=yes
6153 else $as_nop
6154 xorg_cv_cc_flag_unused_command_line_argument=no
6155 fi
6156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6157 fi
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6159 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6161 CFLAGS="$xorg_testset_save_CFLAGS"
6162 fi
6163
6164 found="no"
6165
6166 if test $found = "no" ; then
6167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6169 fi
6170
6171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6173 fi
6174
6175 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6176
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6178 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6179 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6180 if eval test \${$cacheid+y}
6181 then :
6182 printf %s "(cached) " >&6
6183 else $as_nop
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 int i;
6187 int
6188 main (void)
6189 {
6190
6191 ;
6192 return 0;
6193 }
6194 _ACEOF
6195 if ac_fn_c_try_link "$LINENO"
6196 then :
6197 eval $cacheid=yes
6198 else $as_nop
6199 eval $cacheid=no
6200 fi
6201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6202 conftest$ac_exeext conftest.$ac_ext
6203 fi
6204
6205
6206 CFLAGS="$xorg_testset_save_CFLAGS"
6207
6208 eval supported=\$$cacheid
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6210 printf "%s\n" "$supported" >&6; }
6211 if test "$supported" = "yes" ; then
6212 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6213 found="yes"
6214 fi
6215 fi
6216
6217
6218
6219
6220
6221 # This chunk adds additional warnings that could catch undesired effects.
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235 xorg_testset_save_CFLAGS="$CFLAGS"
6236
6237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6240 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6241 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6242 then :
6243 printf %s "(cached) " >&6
6244 else $as_nop
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 int i;
6248 _ACEOF
6249 if ac_fn_c_try_compile "$LINENO"
6250 then :
6251 xorg_cv_cc_flag_unknown_warning_option=yes
6252 else $as_nop
6253 xorg_cv_cc_flag_unknown_warning_option=no
6254 fi
6255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6256 fi
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6258 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6260 CFLAGS="$xorg_testset_save_CFLAGS"
6261 fi
6262
6263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6266 fi
6267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6269 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6270 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6271 then :
6272 printf %s "(cached) " >&6
6273 else $as_nop
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 int i;
6277 _ACEOF
6278 if ac_fn_c_try_compile "$LINENO"
6279 then :
6280 xorg_cv_cc_flag_unused_command_line_argument=yes
6281 else $as_nop
6282 xorg_cv_cc_flag_unused_command_line_argument=no
6283 fi
6284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6285 fi
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6287 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6289 CFLAGS="$xorg_testset_save_CFLAGS"
6290 fi
6291
6292 found="no"
6293
6294 if test $found = "no" ; then
6295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6297 fi
6298
6299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6301 fi
6302
6303 CFLAGS="$CFLAGS -Wunused"
6304
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6306 printf %s "checking if $CC supports -Wunused... " >&6; }
6307 cacheid=xorg_cv_cc_flag__Wunused
6308 if eval test \${$cacheid+y}
6309 then :
6310 printf %s "(cached) " >&6
6311 else $as_nop
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314 int i;
6315 int
6316 main (void)
6317 {
6318
6319 ;
6320 return 0;
6321 }
6322 _ACEOF
6323 if ac_fn_c_try_link "$LINENO"
6324 then :
6325 eval $cacheid=yes
6326 else $as_nop
6327 eval $cacheid=no
6328 fi
6329 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6330 conftest$ac_exeext conftest.$ac_ext
6331 fi
6332
6333
6334 CFLAGS="$xorg_testset_save_CFLAGS"
6335
6336 eval supported=\$$cacheid
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6338 printf "%s\n" "$supported" >&6; }
6339 if test "$supported" = "yes" ; then
6340 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6341 found="yes"
6342 fi
6343 fi
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359 xorg_testset_save_CFLAGS="$CFLAGS"
6360
6361 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6364 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6365 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6366 then :
6367 printf %s "(cached) " >&6
6368 else $as_nop
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6371 int i;
6372 _ACEOF
6373 if ac_fn_c_try_compile "$LINENO"
6374 then :
6375 xorg_cv_cc_flag_unknown_warning_option=yes
6376 else $as_nop
6377 xorg_cv_cc_flag_unknown_warning_option=no
6378 fi
6379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6380 fi
6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6382 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6384 CFLAGS="$xorg_testset_save_CFLAGS"
6385 fi
6386
6387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6390 fi
6391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6393 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6394 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6395 then :
6396 printf %s "(cached) " >&6
6397 else $as_nop
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400 int i;
6401 _ACEOF
6402 if ac_fn_c_try_compile "$LINENO"
6403 then :
6404 xorg_cv_cc_flag_unused_command_line_argument=yes
6405 else $as_nop
6406 xorg_cv_cc_flag_unused_command_line_argument=no
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6409 fi
6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6411 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6413 CFLAGS="$xorg_testset_save_CFLAGS"
6414 fi
6415
6416 found="no"
6417
6418 if test $found = "no" ; then
6419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6421 fi
6422
6423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6425 fi
6426
6427 CFLAGS="$CFLAGS -Wuninitialized"
6428
6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6430 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6431 cacheid=xorg_cv_cc_flag__Wuninitialized
6432 if eval test \${$cacheid+y}
6433 then :
6434 printf %s "(cached) " >&6
6435 else $as_nop
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 int i;
6439 int
6440 main (void)
6441 {
6442
6443 ;
6444 return 0;
6445 }
6446 _ACEOF
6447 if ac_fn_c_try_link "$LINENO"
6448 then :
6449 eval $cacheid=yes
6450 else $as_nop
6451 eval $cacheid=no
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6454 conftest$ac_exeext conftest.$ac_ext
6455 fi
6456
6457
6458 CFLAGS="$xorg_testset_save_CFLAGS"
6459
6460 eval supported=\$$cacheid
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6462 printf "%s\n" "$supported" >&6; }
6463 if test "$supported" = "yes" ; then
6464 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6465 found="yes"
6466 fi
6467 fi
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483 xorg_testset_save_CFLAGS="$CFLAGS"
6484
6485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6488 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6489 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6490 then :
6491 printf %s "(cached) " >&6
6492 else $as_nop
6493 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_unknown_warning_option=yes
6500 else $as_nop
6501 xorg_cv_cc_flag_unknown_warning_option=no
6502 fi
6503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6504 fi
6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6506 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6508 CFLAGS="$xorg_testset_save_CFLAGS"
6509 fi
6510
6511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6514 fi
6515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6517 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6518 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6519 then :
6520 printf %s "(cached) " >&6
6521 else $as_nop
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524 int i;
6525 _ACEOF
6526 if ac_fn_c_try_compile "$LINENO"
6527 then :
6528 xorg_cv_cc_flag_unused_command_line_argument=yes
6529 else $as_nop
6530 xorg_cv_cc_flag_unused_command_line_argument=no
6531 fi
6532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6533 fi
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6535 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6537 CFLAGS="$xorg_testset_save_CFLAGS"
6538 fi
6539
6540 found="no"
6541
6542 if test $found = "no" ; then
6543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6545 fi
6546
6547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6549 fi
6550
6551 CFLAGS="$CFLAGS -Wshadow"
6552
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6554 printf %s "checking if $CC supports -Wshadow... " >&6; }
6555 cacheid=xorg_cv_cc_flag__Wshadow
6556 if eval test \${$cacheid+y}
6557 then :
6558 printf %s "(cached) " >&6
6559 else $as_nop
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 int i;
6563 int
6564 main (void)
6565 {
6566
6567 ;
6568 return 0;
6569 }
6570 _ACEOF
6571 if ac_fn_c_try_link "$LINENO"
6572 then :
6573 eval $cacheid=yes
6574 else $as_nop
6575 eval $cacheid=no
6576 fi
6577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6578 conftest$ac_exeext conftest.$ac_ext
6579 fi
6580
6581
6582 CFLAGS="$xorg_testset_save_CFLAGS"
6583
6584 eval supported=\$$cacheid
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6586 printf "%s\n" "$supported" >&6; }
6587 if test "$supported" = "yes" ; then
6588 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6589 found="yes"
6590 fi
6591 fi
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607 xorg_testset_save_CFLAGS="$CFLAGS"
6608
6609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6612 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6613 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6614 then :
6615 printf %s "(cached) " >&6
6616 else $as_nop
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 int i;
6620 _ACEOF
6621 if ac_fn_c_try_compile "$LINENO"
6622 then :
6623 xorg_cv_cc_flag_unknown_warning_option=yes
6624 else $as_nop
6625 xorg_cv_cc_flag_unknown_warning_option=no
6626 fi
6627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6628 fi
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6630 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6632 CFLAGS="$xorg_testset_save_CFLAGS"
6633 fi
6634
6635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6638 fi
6639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6641 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6642 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6643 then :
6644 printf %s "(cached) " >&6
6645 else $as_nop
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6648 int i;
6649 _ACEOF
6650 if ac_fn_c_try_compile "$LINENO"
6651 then :
6652 xorg_cv_cc_flag_unused_command_line_argument=yes
6653 else $as_nop
6654 xorg_cv_cc_flag_unused_command_line_argument=no
6655 fi
6656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6657 fi
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6659 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6661 CFLAGS="$xorg_testset_save_CFLAGS"
6662 fi
6663
6664 found="no"
6665
6666 if test $found = "no" ; then
6667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6669 fi
6670
6671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6673 fi
6674
6675 CFLAGS="$CFLAGS -Wmissing-noreturn"
6676
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6678 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6679 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6680 if eval test \${$cacheid+y}
6681 then :
6682 printf %s "(cached) " >&6
6683 else $as_nop
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 int i;
6687 int
6688 main (void)
6689 {
6690
6691 ;
6692 return 0;
6693 }
6694 _ACEOF
6695 if ac_fn_c_try_link "$LINENO"
6696 then :
6697 eval $cacheid=yes
6698 else $as_nop
6699 eval $cacheid=no
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6702 conftest$ac_exeext conftest.$ac_ext
6703 fi
6704
6705
6706 CFLAGS="$xorg_testset_save_CFLAGS"
6707
6708 eval supported=\$$cacheid
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6710 printf "%s\n" "$supported" >&6; }
6711 if test "$supported" = "yes" ; then
6712 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6713 found="yes"
6714 fi
6715 fi
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731 xorg_testset_save_CFLAGS="$CFLAGS"
6732
6733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6736 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6737 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6738 then :
6739 printf %s "(cached) " >&6
6740 else $as_nop
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 int i;
6744 _ACEOF
6745 if ac_fn_c_try_compile "$LINENO"
6746 then :
6747 xorg_cv_cc_flag_unknown_warning_option=yes
6748 else $as_nop
6749 xorg_cv_cc_flag_unknown_warning_option=no
6750 fi
6751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6752 fi
6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6754 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6756 CFLAGS="$xorg_testset_save_CFLAGS"
6757 fi
6758
6759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6762 fi
6763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6765 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6766 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6767 then :
6768 printf %s "(cached) " >&6
6769 else $as_nop
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6772 int i;
6773 _ACEOF
6774 if ac_fn_c_try_compile "$LINENO"
6775 then :
6776 xorg_cv_cc_flag_unused_command_line_argument=yes
6777 else $as_nop
6778 xorg_cv_cc_flag_unused_command_line_argument=no
6779 fi
6780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6781 fi
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6783 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6785 CFLAGS="$xorg_testset_save_CFLAGS"
6786 fi
6787
6788 found="no"
6789
6790 if test $found = "no" ; then
6791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6793 fi
6794
6795 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6797 fi
6798
6799 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6800
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6802 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6803 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6804 if eval test \${$cacheid+y}
6805 then :
6806 printf %s "(cached) " >&6
6807 else $as_nop
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 int i;
6811 int
6812 main (void)
6813 {
6814
6815 ;
6816 return 0;
6817 }
6818 _ACEOF
6819 if ac_fn_c_try_link "$LINENO"
6820 then :
6821 eval $cacheid=yes
6822 else $as_nop
6823 eval $cacheid=no
6824 fi
6825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6826 conftest$ac_exeext conftest.$ac_ext
6827 fi
6828
6829
6830 CFLAGS="$xorg_testset_save_CFLAGS"
6831
6832 eval supported=\$$cacheid
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6834 printf "%s\n" "$supported" >&6; }
6835 if test "$supported" = "yes" ; then
6836 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6837 found="yes"
6838 fi
6839 fi
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855 xorg_testset_save_CFLAGS="$CFLAGS"
6856
6857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6860 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6861 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6862 then :
6863 printf %s "(cached) " >&6
6864 else $as_nop
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6867 int i;
6868 _ACEOF
6869 if ac_fn_c_try_compile "$LINENO"
6870 then :
6871 xorg_cv_cc_flag_unknown_warning_option=yes
6872 else $as_nop
6873 xorg_cv_cc_flag_unknown_warning_option=no
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6876 fi
6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6878 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6879 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6880 CFLAGS="$xorg_testset_save_CFLAGS"
6881 fi
6882
6883 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6886 fi
6887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6889 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6890 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6891 then :
6892 printf %s "(cached) " >&6
6893 else $as_nop
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 int i;
6897 _ACEOF
6898 if ac_fn_c_try_compile "$LINENO"
6899 then :
6900 xorg_cv_cc_flag_unused_command_line_argument=yes
6901 else $as_nop
6902 xorg_cv_cc_flag_unused_command_line_argument=no
6903 fi
6904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6905 fi
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6907 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6909 CFLAGS="$xorg_testset_save_CFLAGS"
6910 fi
6911
6912 found="no"
6913
6914 if test $found = "no" ; then
6915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917 fi
6918
6919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6921 fi
6922
6923 CFLAGS="$CFLAGS -Wredundant-decls"
6924
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6926 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6927 cacheid=xorg_cv_cc_flag__Wredundant_decls
6928 if eval test \${$cacheid+y}
6929 then :
6930 printf %s "(cached) " >&6
6931 else $as_nop
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6934 int i;
6935 int
6936 main (void)
6937 {
6938
6939 ;
6940 return 0;
6941 }
6942 _ACEOF
6943 if ac_fn_c_try_link "$LINENO"
6944 then :
6945 eval $cacheid=yes
6946 else $as_nop
6947 eval $cacheid=no
6948 fi
6949 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6950 conftest$ac_exeext conftest.$ac_ext
6951 fi
6952
6953
6954 CFLAGS="$xorg_testset_save_CFLAGS"
6955
6956 eval supported=\$$cacheid
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6958 printf "%s\n" "$supported" >&6; }
6959 if test "$supported" = "yes" ; then
6960 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6961 found="yes"
6962 fi
6963 fi
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979 xorg_testset_save_CFLAGS="$CFLAGS"
6980
6981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6984 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6985 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6986 then :
6987 printf %s "(cached) " >&6
6988 else $as_nop
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 int i;
6992 _ACEOF
6993 if ac_fn_c_try_compile "$LINENO"
6994 then :
6995 xorg_cv_cc_flag_unknown_warning_option=yes
6996 else $as_nop
6997 xorg_cv_cc_flag_unknown_warning_option=no
6998 fi
6999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7000 fi
7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7002 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7004 CFLAGS="$xorg_testset_save_CFLAGS"
7005 fi
7006
7007 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7010 fi
7011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7013 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7014 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7015 then :
7016 printf %s "(cached) " >&6
7017 else $as_nop
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 int i;
7021 _ACEOF
7022 if ac_fn_c_try_compile "$LINENO"
7023 then :
7024 xorg_cv_cc_flag_unused_command_line_argument=yes
7025 else $as_nop
7026 xorg_cv_cc_flag_unused_command_line_argument=no
7027 fi
7028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7029 fi
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7031 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7033 CFLAGS="$xorg_testset_save_CFLAGS"
7034 fi
7035
7036 found="no"
7037
7038 if test $found = "no" ; then
7039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7041 fi
7042
7043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7045 fi
7046
7047 CFLAGS="$CFLAGS -Wlogical-op"
7048
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7050 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7051 cacheid=xorg_cv_cc_flag__Wlogical_op
7052 if eval test \${$cacheid+y}
7053 then :
7054 printf %s "(cached) " >&6
7055 else $as_nop
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 int i;
7059 int
7060 main (void)
7061 {
7062
7063 ;
7064 return 0;
7065 }
7066 _ACEOF
7067 if ac_fn_c_try_link "$LINENO"
7068 then :
7069 eval $cacheid=yes
7070 else $as_nop
7071 eval $cacheid=no
7072 fi
7073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7074 conftest$ac_exeext conftest.$ac_ext
7075 fi
7076
7077
7078 CFLAGS="$xorg_testset_save_CFLAGS"
7079
7080 eval supported=\$$cacheid
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7082 printf "%s\n" "$supported" >&6; }
7083 if test "$supported" = "yes" ; then
7084 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7085 found="yes"
7086 fi
7087 fi
7088
7089
7090
7091 # These are currently disabled because they are noisy. They will be enabled
7092 # in the future once the codebase is sufficiently modernized to silence
7093 # them. For now, I don't want them to drown out the other warnings.
7094 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7095 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7096 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7097
7098 # Turn some warnings into errors, so we don't accidentally get successful builds
7099 # when there are problems that should be fixed.
7100
7101 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115 xorg_testset_save_CFLAGS="$CFLAGS"
7116
7117 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7120 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7121 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7122 then :
7123 printf %s "(cached) " >&6
7124 else $as_nop
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 int i;
7128 _ACEOF
7129 if ac_fn_c_try_compile "$LINENO"
7130 then :
7131 xorg_cv_cc_flag_unknown_warning_option=yes
7132 else $as_nop
7133 xorg_cv_cc_flag_unknown_warning_option=no
7134 fi
7135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7136 fi
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7138 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7140 CFLAGS="$xorg_testset_save_CFLAGS"
7141 fi
7142
7143 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7146 fi
7147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7149 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7150 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7151 then :
7152 printf %s "(cached) " >&6
7153 else $as_nop
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156 int i;
7157 _ACEOF
7158 if ac_fn_c_try_compile "$LINENO"
7159 then :
7160 xorg_cv_cc_flag_unused_command_line_argument=yes
7161 else $as_nop
7162 xorg_cv_cc_flag_unused_command_line_argument=no
7163 fi
7164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7165 fi
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7167 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7169 CFLAGS="$xorg_testset_save_CFLAGS"
7170 fi
7171
7172 found="no"
7173
7174 if test $found = "no" ; then
7175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7177 fi
7178
7179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7181 fi
7182
7183 CFLAGS="$CFLAGS -Werror=implicit"
7184
7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7186 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7187 cacheid=xorg_cv_cc_flag__Werror_implicit
7188 if eval test \${$cacheid+y}
7189 then :
7190 printf %s "(cached) " >&6
7191 else $as_nop
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7194 int i;
7195 int
7196 main (void)
7197 {
7198
7199 ;
7200 return 0;
7201 }
7202 _ACEOF
7203 if ac_fn_c_try_link "$LINENO"
7204 then :
7205 eval $cacheid=yes
7206 else $as_nop
7207 eval $cacheid=no
7208 fi
7209 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7210 conftest$ac_exeext conftest.$ac_ext
7211 fi
7212
7213
7214 CFLAGS="$xorg_testset_save_CFLAGS"
7215
7216 eval supported=\$$cacheid
7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7218 printf "%s\n" "$supported" >&6; }
7219 if test "$supported" = "yes" ; then
7220 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7221 found="yes"
7222 fi
7223 fi
7224
7225 if test $found = "no" ; then
7226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7228 fi
7229
7230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7232 fi
7233
7234 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7235
7236 { 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
7237 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7238 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7239 if eval test \${$cacheid+y}
7240 then :
7241 printf %s "(cached) " >&6
7242 else $as_nop
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 int i;
7246 int
7247 main (void)
7248 {
7249
7250 ;
7251 return 0;
7252 }
7253 _ACEOF
7254 if ac_fn_c_try_link "$LINENO"
7255 then :
7256 eval $cacheid=yes
7257 else $as_nop
7258 eval $cacheid=no
7259 fi
7260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7261 conftest$ac_exeext conftest.$ac_ext
7262 fi
7263
7264
7265 CFLAGS="$xorg_testset_save_CFLAGS"
7266
7267 eval supported=\$$cacheid
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7269 printf "%s\n" "$supported" >&6; }
7270 if test "$supported" = "yes" ; then
7271 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7272 found="yes"
7273 fi
7274 fi
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290 xorg_testset_save_CFLAGS="$CFLAGS"
7291
7292 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7295 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7296 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7297 then :
7298 printf %s "(cached) " >&6
7299 else $as_nop
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7302 int i;
7303 _ACEOF
7304 if ac_fn_c_try_compile "$LINENO"
7305 then :
7306 xorg_cv_cc_flag_unknown_warning_option=yes
7307 else $as_nop
7308 xorg_cv_cc_flag_unknown_warning_option=no
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7311 fi
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7313 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7315 CFLAGS="$xorg_testset_save_CFLAGS"
7316 fi
7317
7318 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7321 fi
7322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7324 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7325 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7326 then :
7327 printf %s "(cached) " >&6
7328 else $as_nop
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 int i;
7332 _ACEOF
7333 if ac_fn_c_try_compile "$LINENO"
7334 then :
7335 xorg_cv_cc_flag_unused_command_line_argument=yes
7336 else $as_nop
7337 xorg_cv_cc_flag_unused_command_line_argument=no
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7340 fi
7341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7342 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7343 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7344 CFLAGS="$xorg_testset_save_CFLAGS"
7345 fi
7346
7347 found="no"
7348
7349 if test $found = "no" ; then
7350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352 fi
7353
7354 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7356 fi
7357
7358 CFLAGS="$CFLAGS -Werror=nonnull"
7359
7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7361 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7362 cacheid=xorg_cv_cc_flag__Werror_nonnull
7363 if eval test \${$cacheid+y}
7364 then :
7365 printf %s "(cached) " >&6
7366 else $as_nop
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7369 int i;
7370 int
7371 main (void)
7372 {
7373
7374 ;
7375 return 0;
7376 }
7377 _ACEOF
7378 if ac_fn_c_try_link "$LINENO"
7379 then :
7380 eval $cacheid=yes
7381 else $as_nop
7382 eval $cacheid=no
7383 fi
7384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7385 conftest$ac_exeext conftest.$ac_ext
7386 fi
7387
7388
7389 CFLAGS="$xorg_testset_save_CFLAGS"
7390
7391 eval supported=\$$cacheid
7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7393 printf "%s\n" "$supported" >&6; }
7394 if test "$supported" = "yes" ; then
7395 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7396 found="yes"
7397 fi
7398 fi
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414 xorg_testset_save_CFLAGS="$CFLAGS"
7415
7416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7419 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7420 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7421 then :
7422 printf %s "(cached) " >&6
7423 else $as_nop
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 int i;
7427 _ACEOF
7428 if ac_fn_c_try_compile "$LINENO"
7429 then :
7430 xorg_cv_cc_flag_unknown_warning_option=yes
7431 else $as_nop
7432 xorg_cv_cc_flag_unknown_warning_option=no
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7435 fi
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7437 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7439 CFLAGS="$xorg_testset_save_CFLAGS"
7440 fi
7441
7442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7445 fi
7446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7448 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7449 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7450 then :
7451 printf %s "(cached) " >&6
7452 else $as_nop
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7455 int i;
7456 _ACEOF
7457 if ac_fn_c_try_compile "$LINENO"
7458 then :
7459 xorg_cv_cc_flag_unused_command_line_argument=yes
7460 else $as_nop
7461 xorg_cv_cc_flag_unused_command_line_argument=no
7462 fi
7463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7464 fi
7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7466 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7468 CFLAGS="$xorg_testset_save_CFLAGS"
7469 fi
7470
7471 found="no"
7472
7473 if test $found = "no" ; then
7474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7475 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7476 fi
7477
7478 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7480 fi
7481
7482 CFLAGS="$CFLAGS -Werror=init-self"
7483
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7485 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7486 cacheid=xorg_cv_cc_flag__Werror_init_self
7487 if eval test \${$cacheid+y}
7488 then :
7489 printf %s "(cached) " >&6
7490 else $as_nop
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7493 int i;
7494 int
7495 main (void)
7496 {
7497
7498 ;
7499 return 0;
7500 }
7501 _ACEOF
7502 if ac_fn_c_try_link "$LINENO"
7503 then :
7504 eval $cacheid=yes
7505 else $as_nop
7506 eval $cacheid=no
7507 fi
7508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7509 conftest$ac_exeext conftest.$ac_ext
7510 fi
7511
7512
7513 CFLAGS="$xorg_testset_save_CFLAGS"
7514
7515 eval supported=\$$cacheid
7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7517 printf "%s\n" "$supported" >&6; }
7518 if test "$supported" = "yes" ; then
7519 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7520 found="yes"
7521 fi
7522 fi
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538 xorg_testset_save_CFLAGS="$CFLAGS"
7539
7540 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7543 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7544 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7545 then :
7546 printf %s "(cached) " >&6
7547 else $as_nop
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7550 int i;
7551 _ACEOF
7552 if ac_fn_c_try_compile "$LINENO"
7553 then :
7554 xorg_cv_cc_flag_unknown_warning_option=yes
7555 else $as_nop
7556 xorg_cv_cc_flag_unknown_warning_option=no
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7559 fi
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7561 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7563 CFLAGS="$xorg_testset_save_CFLAGS"
7564 fi
7565
7566 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7569 fi
7570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7572 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7573 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7574 then :
7575 printf %s "(cached) " >&6
7576 else $as_nop
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579 int i;
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"
7582 then :
7583 xorg_cv_cc_flag_unused_command_line_argument=yes
7584 else $as_nop
7585 xorg_cv_cc_flag_unused_command_line_argument=no
7586 fi
7587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7588 fi
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7590 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7592 CFLAGS="$xorg_testset_save_CFLAGS"
7593 fi
7594
7595 found="no"
7596
7597 if test $found = "no" ; then
7598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7600 fi
7601
7602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7604 fi
7605
7606 CFLAGS="$CFLAGS -Werror=main"
7607
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7609 printf %s "checking if $CC supports -Werror=main... " >&6; }
7610 cacheid=xorg_cv_cc_flag__Werror_main
7611 if eval test \${$cacheid+y}
7612 then :
7613 printf %s "(cached) " >&6
7614 else $as_nop
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617 int i;
7618 int
7619 main (void)
7620 {
7621
7622 ;
7623 return 0;
7624 }
7625 _ACEOF
7626 if ac_fn_c_try_link "$LINENO"
7627 then :
7628 eval $cacheid=yes
7629 else $as_nop
7630 eval $cacheid=no
7631 fi
7632 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7633 conftest$ac_exeext conftest.$ac_ext
7634 fi
7635
7636
7637 CFLAGS="$xorg_testset_save_CFLAGS"
7638
7639 eval supported=\$$cacheid
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7641 printf "%s\n" "$supported" >&6; }
7642 if test "$supported" = "yes" ; then
7643 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7644 found="yes"
7645 fi
7646 fi
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662 xorg_testset_save_CFLAGS="$CFLAGS"
7663
7664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7667 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7668 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7669 then :
7670 printf %s "(cached) " >&6
7671 else $as_nop
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674 int i;
7675 _ACEOF
7676 if ac_fn_c_try_compile "$LINENO"
7677 then :
7678 xorg_cv_cc_flag_unknown_warning_option=yes
7679 else $as_nop
7680 xorg_cv_cc_flag_unknown_warning_option=no
7681 fi
7682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7683 fi
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7685 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7687 CFLAGS="$xorg_testset_save_CFLAGS"
7688 fi
7689
7690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7693 fi
7694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7696 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7697 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7698 then :
7699 printf %s "(cached) " >&6
7700 else $as_nop
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 int i;
7704 _ACEOF
7705 if ac_fn_c_try_compile "$LINENO"
7706 then :
7707 xorg_cv_cc_flag_unused_command_line_argument=yes
7708 else $as_nop
7709 xorg_cv_cc_flag_unused_command_line_argument=no
7710 fi
7711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7712 fi
7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7714 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7716 CFLAGS="$xorg_testset_save_CFLAGS"
7717 fi
7718
7719 found="no"
7720
7721 if test $found = "no" ; then
7722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7724 fi
7725
7726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7728 fi
7729
7730 CFLAGS="$CFLAGS -Werror=missing-braces"
7731
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7733 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7734 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7735 if eval test \${$cacheid+y}
7736 then :
7737 printf %s "(cached) " >&6
7738 else $as_nop
7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7740 /* end confdefs.h. */
7741 int i;
7742 int
7743 main (void)
7744 {
7745
7746 ;
7747 return 0;
7748 }
7749 _ACEOF
7750 if ac_fn_c_try_link "$LINENO"
7751 then :
7752 eval $cacheid=yes
7753 else $as_nop
7754 eval $cacheid=no
7755 fi
7756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7757 conftest$ac_exeext conftest.$ac_ext
7758 fi
7759
7760
7761 CFLAGS="$xorg_testset_save_CFLAGS"
7762
7763 eval supported=\$$cacheid
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7765 printf "%s\n" "$supported" >&6; }
7766 if test "$supported" = "yes" ; then
7767 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7768 found="yes"
7769 fi
7770 fi
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786 xorg_testset_save_CFLAGS="$CFLAGS"
7787
7788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7791 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7792 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7793 then :
7794 printf %s "(cached) " >&6
7795 else $as_nop
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7798 int i;
7799 _ACEOF
7800 if ac_fn_c_try_compile "$LINENO"
7801 then :
7802 xorg_cv_cc_flag_unknown_warning_option=yes
7803 else $as_nop
7804 xorg_cv_cc_flag_unknown_warning_option=no
7805 fi
7806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7807 fi
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7809 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7811 CFLAGS="$xorg_testset_save_CFLAGS"
7812 fi
7813
7814 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7817 fi
7818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7820 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7821 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7822 then :
7823 printf %s "(cached) " >&6
7824 else $as_nop
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827 int i;
7828 _ACEOF
7829 if ac_fn_c_try_compile "$LINENO"
7830 then :
7831 xorg_cv_cc_flag_unused_command_line_argument=yes
7832 else $as_nop
7833 xorg_cv_cc_flag_unused_command_line_argument=no
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7836 fi
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7838 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7840 CFLAGS="$xorg_testset_save_CFLAGS"
7841 fi
7842
7843 found="no"
7844
7845 if test $found = "no" ; then
7846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7848 fi
7849
7850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7852 fi
7853
7854 CFLAGS="$CFLAGS -Werror=sequence-point"
7855
7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7857 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7858 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7859 if eval test \${$cacheid+y}
7860 then :
7861 printf %s "(cached) " >&6
7862 else $as_nop
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7865 int i;
7866 int
7867 main (void)
7868 {
7869
7870 ;
7871 return 0;
7872 }
7873 _ACEOF
7874 if ac_fn_c_try_link "$LINENO"
7875 then :
7876 eval $cacheid=yes
7877 else $as_nop
7878 eval $cacheid=no
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7881 conftest$ac_exeext conftest.$ac_ext
7882 fi
7883
7884
7885 CFLAGS="$xorg_testset_save_CFLAGS"
7886
7887 eval supported=\$$cacheid
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7889 printf "%s\n" "$supported" >&6; }
7890 if test "$supported" = "yes" ; then
7891 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7892 found="yes"
7893 fi
7894 fi
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910 xorg_testset_save_CFLAGS="$CFLAGS"
7911
7912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7915 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7916 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7917 then :
7918 printf %s "(cached) " >&6
7919 else $as_nop
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7922 int i;
7923 _ACEOF
7924 if ac_fn_c_try_compile "$LINENO"
7925 then :
7926 xorg_cv_cc_flag_unknown_warning_option=yes
7927 else $as_nop
7928 xorg_cv_cc_flag_unknown_warning_option=no
7929 fi
7930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7931 fi
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7933 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7935 CFLAGS="$xorg_testset_save_CFLAGS"
7936 fi
7937
7938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7941 fi
7942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7944 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7945 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7946 then :
7947 printf %s "(cached) " >&6
7948 else $as_nop
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7951 int i;
7952 _ACEOF
7953 if ac_fn_c_try_compile "$LINENO"
7954 then :
7955 xorg_cv_cc_flag_unused_command_line_argument=yes
7956 else $as_nop
7957 xorg_cv_cc_flag_unused_command_line_argument=no
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7960 fi
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7962 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7964 CFLAGS="$xorg_testset_save_CFLAGS"
7965 fi
7966
7967 found="no"
7968
7969 if test $found = "no" ; then
7970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7972 fi
7973
7974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7976 fi
7977
7978 CFLAGS="$CFLAGS -Werror=return-type"
7979
7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7981 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7982 cacheid=xorg_cv_cc_flag__Werror_return_type
7983 if eval test \${$cacheid+y}
7984 then :
7985 printf %s "(cached) " >&6
7986 else $as_nop
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 int i;
7990 int
7991 main (void)
7992 {
7993
7994 ;
7995 return 0;
7996 }
7997 _ACEOF
7998 if ac_fn_c_try_link "$LINENO"
7999 then :
8000 eval $cacheid=yes
8001 else $as_nop
8002 eval $cacheid=no
8003 fi
8004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8005 conftest$ac_exeext conftest.$ac_ext
8006 fi
8007
8008
8009 CFLAGS="$xorg_testset_save_CFLAGS"
8010
8011 eval supported=\$$cacheid
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8013 printf "%s\n" "$supported" >&6; }
8014 if test "$supported" = "yes" ; then
8015 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8016 found="yes"
8017 fi
8018 fi
8019
8020 if test $found = "no" ; then
8021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8023 fi
8024
8025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8027 fi
8028
8029 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8030
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8032 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8033 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8034 if eval test \${$cacheid+y}
8035 then :
8036 printf %s "(cached) " >&6
8037 else $as_nop
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 int i;
8041 int
8042 main (void)
8043 {
8044
8045 ;
8046 return 0;
8047 }
8048 _ACEOF
8049 if ac_fn_c_try_link "$LINENO"
8050 then :
8051 eval $cacheid=yes
8052 else $as_nop
8053 eval $cacheid=no
8054 fi
8055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8056 conftest$ac_exeext conftest.$ac_ext
8057 fi
8058
8059
8060 CFLAGS="$xorg_testset_save_CFLAGS"
8061
8062 eval supported=\$$cacheid
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8064 printf "%s\n" "$supported" >&6; }
8065 if test "$supported" = "yes" ; then
8066 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8067 found="yes"
8068 fi
8069 fi
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085 xorg_testset_save_CFLAGS="$CFLAGS"
8086
8087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8090 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8091 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8092 then :
8093 printf %s "(cached) " >&6
8094 else $as_nop
8095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8097 int i;
8098 _ACEOF
8099 if ac_fn_c_try_compile "$LINENO"
8100 then :
8101 xorg_cv_cc_flag_unknown_warning_option=yes
8102 else $as_nop
8103 xorg_cv_cc_flag_unknown_warning_option=no
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8106 fi
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8108 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8110 CFLAGS="$xorg_testset_save_CFLAGS"
8111 fi
8112
8113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8116 fi
8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8119 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8120 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8121 then :
8122 printf %s "(cached) " >&6
8123 else $as_nop
8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 int i;
8127 _ACEOF
8128 if ac_fn_c_try_compile "$LINENO"
8129 then :
8130 xorg_cv_cc_flag_unused_command_line_argument=yes
8131 else $as_nop
8132 xorg_cv_cc_flag_unused_command_line_argument=no
8133 fi
8134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8135 fi
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8137 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8139 CFLAGS="$xorg_testset_save_CFLAGS"
8140 fi
8141
8142 found="no"
8143
8144 if test $found = "no" ; then
8145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147 fi
8148
8149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151 fi
8152
8153 CFLAGS="$CFLAGS -Werror=trigraphs"
8154
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8156 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8157 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8158 if eval test \${$cacheid+y}
8159 then :
8160 printf %s "(cached) " >&6
8161 else $as_nop
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8164 int i;
8165 int
8166 main (void)
8167 {
8168
8169 ;
8170 return 0;
8171 }
8172 _ACEOF
8173 if ac_fn_c_try_link "$LINENO"
8174 then :
8175 eval $cacheid=yes
8176 else $as_nop
8177 eval $cacheid=no
8178 fi
8179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8180 conftest$ac_exeext conftest.$ac_ext
8181 fi
8182
8183
8184 CFLAGS="$xorg_testset_save_CFLAGS"
8185
8186 eval supported=\$$cacheid
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8188 printf "%s\n" "$supported" >&6; }
8189 if test "$supported" = "yes" ; then
8190 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8191 found="yes"
8192 fi
8193 fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209 xorg_testset_save_CFLAGS="$CFLAGS"
8210
8211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8214 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8215 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8216 then :
8217 printf %s "(cached) " >&6
8218 else $as_nop
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 int i;
8222 _ACEOF
8223 if ac_fn_c_try_compile "$LINENO"
8224 then :
8225 xorg_cv_cc_flag_unknown_warning_option=yes
8226 else $as_nop
8227 xorg_cv_cc_flag_unknown_warning_option=no
8228 fi
8229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8230 fi
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8232 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8234 CFLAGS="$xorg_testset_save_CFLAGS"
8235 fi
8236
8237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8240 fi
8241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8243 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8244 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8245 then :
8246 printf %s "(cached) " >&6
8247 else $as_nop
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8250 int i;
8251 _ACEOF
8252 if ac_fn_c_try_compile "$LINENO"
8253 then :
8254 xorg_cv_cc_flag_unused_command_line_argument=yes
8255 else $as_nop
8256 xorg_cv_cc_flag_unused_command_line_argument=no
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8259 fi
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8261 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8263 CFLAGS="$xorg_testset_save_CFLAGS"
8264 fi
8265
8266 found="no"
8267
8268 if test $found = "no" ; then
8269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8271 fi
8272
8273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8275 fi
8276
8277 CFLAGS="$CFLAGS -Werror=array-bounds"
8278
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8280 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8281 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8282 if eval test \${$cacheid+y}
8283 then :
8284 printf %s "(cached) " >&6
8285 else $as_nop
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8288 int i;
8289 int
8290 main (void)
8291 {
8292
8293 ;
8294 return 0;
8295 }
8296 _ACEOF
8297 if ac_fn_c_try_link "$LINENO"
8298 then :
8299 eval $cacheid=yes
8300 else $as_nop
8301 eval $cacheid=no
8302 fi
8303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8304 conftest$ac_exeext conftest.$ac_ext
8305 fi
8306
8307
8308 CFLAGS="$xorg_testset_save_CFLAGS"
8309
8310 eval supported=\$$cacheid
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8312 printf "%s\n" "$supported" >&6; }
8313 if test "$supported" = "yes" ; then
8314 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8315 found="yes"
8316 fi
8317 fi
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333 xorg_testset_save_CFLAGS="$CFLAGS"
8334
8335 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8338 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8339 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8340 then :
8341 printf %s "(cached) " >&6
8342 else $as_nop
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8345 int i;
8346 _ACEOF
8347 if ac_fn_c_try_compile "$LINENO"
8348 then :
8349 xorg_cv_cc_flag_unknown_warning_option=yes
8350 else $as_nop
8351 xorg_cv_cc_flag_unknown_warning_option=no
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8354 fi
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8356 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8358 CFLAGS="$xorg_testset_save_CFLAGS"
8359 fi
8360
8361 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8364 fi
8365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8367 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8368 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8369 then :
8370 printf %s "(cached) " >&6
8371 else $as_nop
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8374 int i;
8375 _ACEOF
8376 if ac_fn_c_try_compile "$LINENO"
8377 then :
8378 xorg_cv_cc_flag_unused_command_line_argument=yes
8379 else $as_nop
8380 xorg_cv_cc_flag_unused_command_line_argument=no
8381 fi
8382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8383 fi
8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8385 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8387 CFLAGS="$xorg_testset_save_CFLAGS"
8388 fi
8389
8390 found="no"
8391
8392 if test $found = "no" ; then
8393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8395 fi
8396
8397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8399 fi
8400
8401 CFLAGS="$CFLAGS -Werror=write-strings"
8402
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8404 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8405 cacheid=xorg_cv_cc_flag__Werror_write_strings
8406 if eval test \${$cacheid+y}
8407 then :
8408 printf %s "(cached) " >&6
8409 else $as_nop
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 int i;
8413 int
8414 main (void)
8415 {
8416
8417 ;
8418 return 0;
8419 }
8420 _ACEOF
8421 if ac_fn_c_try_link "$LINENO"
8422 then :
8423 eval $cacheid=yes
8424 else $as_nop
8425 eval $cacheid=no
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8428 conftest$ac_exeext conftest.$ac_ext
8429 fi
8430
8431
8432 CFLAGS="$xorg_testset_save_CFLAGS"
8433
8434 eval supported=\$$cacheid
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8436 printf "%s\n" "$supported" >&6; }
8437 if test "$supported" = "yes" ; then
8438 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8439 found="yes"
8440 fi
8441 fi
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457 xorg_testset_save_CFLAGS="$CFLAGS"
8458
8459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8462 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8463 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8464 then :
8465 printf %s "(cached) " >&6
8466 else $as_nop
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8469 int i;
8470 _ACEOF
8471 if ac_fn_c_try_compile "$LINENO"
8472 then :
8473 xorg_cv_cc_flag_unknown_warning_option=yes
8474 else $as_nop
8475 xorg_cv_cc_flag_unknown_warning_option=no
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8478 fi
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8480 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8482 CFLAGS="$xorg_testset_save_CFLAGS"
8483 fi
8484
8485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8488 fi
8489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8491 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8492 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8493 then :
8494 printf %s "(cached) " >&6
8495 else $as_nop
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8498 int i;
8499 _ACEOF
8500 if ac_fn_c_try_compile "$LINENO"
8501 then :
8502 xorg_cv_cc_flag_unused_command_line_argument=yes
8503 else $as_nop
8504 xorg_cv_cc_flag_unused_command_line_argument=no
8505 fi
8506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8507 fi
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8509 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8511 CFLAGS="$xorg_testset_save_CFLAGS"
8512 fi
8513
8514 found="no"
8515
8516 if test $found = "no" ; then
8517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8519 fi
8520
8521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8523 fi
8524
8525 CFLAGS="$CFLAGS -Werror=address"
8526
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8528 printf %s "checking if $CC supports -Werror=address... " >&6; }
8529 cacheid=xorg_cv_cc_flag__Werror_address
8530 if eval test \${$cacheid+y}
8531 then :
8532 printf %s "(cached) " >&6
8533 else $as_nop
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8536 int i;
8537 int
8538 main (void)
8539 {
8540
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 if ac_fn_c_try_link "$LINENO"
8546 then :
8547 eval $cacheid=yes
8548 else $as_nop
8549 eval $cacheid=no
8550 fi
8551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8552 conftest$ac_exeext conftest.$ac_ext
8553 fi
8554
8555
8556 CFLAGS="$xorg_testset_save_CFLAGS"
8557
8558 eval supported=\$$cacheid
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8560 printf "%s\n" "$supported" >&6; }
8561 if test "$supported" = "yes" ; then
8562 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8563 found="yes"
8564 fi
8565 fi
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581 xorg_testset_save_CFLAGS="$CFLAGS"
8582
8583 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8586 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8587 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8588 then :
8589 printf %s "(cached) " >&6
8590 else $as_nop
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593 int i;
8594 _ACEOF
8595 if ac_fn_c_try_compile "$LINENO"
8596 then :
8597 xorg_cv_cc_flag_unknown_warning_option=yes
8598 else $as_nop
8599 xorg_cv_cc_flag_unknown_warning_option=no
8600 fi
8601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8602 fi
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8604 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8606 CFLAGS="$xorg_testset_save_CFLAGS"
8607 fi
8608
8609 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8612 fi
8613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8615 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8616 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8617 then :
8618 printf %s "(cached) " >&6
8619 else $as_nop
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 int i;
8623 _ACEOF
8624 if ac_fn_c_try_compile "$LINENO"
8625 then :
8626 xorg_cv_cc_flag_unused_command_line_argument=yes
8627 else $as_nop
8628 xorg_cv_cc_flag_unused_command_line_argument=no
8629 fi
8630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8631 fi
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8633 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8635 CFLAGS="$xorg_testset_save_CFLAGS"
8636 fi
8637
8638 found="no"
8639
8640 if test $found = "no" ; then
8641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8643 fi
8644
8645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8647 fi
8648
8649 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8650
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8652 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8653 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8654 if eval test \${$cacheid+y}
8655 then :
8656 printf %s "(cached) " >&6
8657 else $as_nop
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 int i;
8661 int
8662 main (void)
8663 {
8664
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 if ac_fn_c_try_link "$LINENO"
8670 then :
8671 eval $cacheid=yes
8672 else $as_nop
8673 eval $cacheid=no
8674 fi
8675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8676 conftest$ac_exeext conftest.$ac_ext
8677 fi
8678
8679
8680 CFLAGS="$xorg_testset_save_CFLAGS"
8681
8682 eval supported=\$$cacheid
8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8684 printf "%s\n" "$supported" >&6; }
8685 if test "$supported" = "yes" ; then
8686 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8687 found="yes"
8688 fi
8689 fi
8690
8691 if test $found = "no" ; then
8692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8694 fi
8695
8696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8698 fi
8699
8700 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8701
8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8703 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8704 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8705 if eval test \${$cacheid+y}
8706 then :
8707 printf %s "(cached) " >&6
8708 else $as_nop
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711 int i;
8712 int
8713 main (void)
8714 {
8715
8716 ;
8717 return 0;
8718 }
8719 _ACEOF
8720 if ac_fn_c_try_link "$LINENO"
8721 then :
8722 eval $cacheid=yes
8723 else $as_nop
8724 eval $cacheid=no
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8727 conftest$ac_exeext conftest.$ac_ext
8728 fi
8729
8730
8731 CFLAGS="$xorg_testset_save_CFLAGS"
8732
8733 eval supported=\$$cacheid
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8735 printf "%s\n" "$supported" >&6; }
8736 if test "$supported" = "yes" ; then
8737 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8738 found="yes"
8739 fi
8740 fi
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756 xorg_testset_save_CFLAGS="$CFLAGS"
8757
8758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8761 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8762 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8763 then :
8764 printf %s "(cached) " >&6
8765 else $as_nop
8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8768 int i;
8769 _ACEOF
8770 if ac_fn_c_try_compile "$LINENO"
8771 then :
8772 xorg_cv_cc_flag_unknown_warning_option=yes
8773 else $as_nop
8774 xorg_cv_cc_flag_unknown_warning_option=no
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8777 fi
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8779 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8781 CFLAGS="$xorg_testset_save_CFLAGS"
8782 fi
8783
8784 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8787 fi
8788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8790 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8791 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8792 then :
8793 printf %s "(cached) " >&6
8794 else $as_nop
8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h. */
8797 int i;
8798 _ACEOF
8799 if ac_fn_c_try_compile "$LINENO"
8800 then :
8801 xorg_cv_cc_flag_unused_command_line_argument=yes
8802 else $as_nop
8803 xorg_cv_cc_flag_unused_command_line_argument=no
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8806 fi
8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8808 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8810 CFLAGS="$xorg_testset_save_CFLAGS"
8811 fi
8812
8813 found="no"
8814
8815 if test $found = "no" ; then
8816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8818 fi
8819
8820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8822 fi
8823
8824 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8825
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8827 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8828 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8829 if eval test \${$cacheid+y}
8830 then :
8831 printf %s "(cached) " >&6
8832 else $as_nop
8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8835 int i;
8836 int
8837 main (void)
8838 {
8839
8840 ;
8841 return 0;
8842 }
8843 _ACEOF
8844 if ac_fn_c_try_link "$LINENO"
8845 then :
8846 eval $cacheid=yes
8847 else $as_nop
8848 eval $cacheid=no
8849 fi
8850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8851 conftest$ac_exeext conftest.$ac_ext
8852 fi
8853
8854
8855 CFLAGS="$xorg_testset_save_CFLAGS"
8856
8857 eval supported=\$$cacheid
8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8859 printf "%s\n" "$supported" >&6; }
8860 if test "$supported" = "yes" ; then
8861 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8862 found="yes"
8863 fi
8864 fi
8865
8866 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8867 else
8868 { 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
8869 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;}
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883 xorg_testset_save_CFLAGS="$CFLAGS"
8884
8885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8888 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8889 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8890 then :
8891 printf %s "(cached) " >&6
8892 else $as_nop
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8895 int i;
8896 _ACEOF
8897 if ac_fn_c_try_compile "$LINENO"
8898 then :
8899 xorg_cv_cc_flag_unknown_warning_option=yes
8900 else $as_nop
8901 xorg_cv_cc_flag_unknown_warning_option=no
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8904 fi
8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8906 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8908 CFLAGS="$xorg_testset_save_CFLAGS"
8909 fi
8910
8911 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8914 fi
8915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8917 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8918 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8919 then :
8920 printf %s "(cached) " >&6
8921 else $as_nop
8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h. */
8924 int i;
8925 _ACEOF
8926 if ac_fn_c_try_compile "$LINENO"
8927 then :
8928 xorg_cv_cc_flag_unused_command_line_argument=yes
8929 else $as_nop
8930 xorg_cv_cc_flag_unused_command_line_argument=no
8931 fi
8932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8933 fi
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8935 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8937 CFLAGS="$xorg_testset_save_CFLAGS"
8938 fi
8939
8940 found="no"
8941
8942 if test $found = "no" ; then
8943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8945 fi
8946
8947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8949 fi
8950
8951 CFLAGS="$CFLAGS -Wimplicit"
8952
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8954 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8955 cacheid=xorg_cv_cc_flag__Wimplicit
8956 if eval test \${$cacheid+y}
8957 then :
8958 printf %s "(cached) " >&6
8959 else $as_nop
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8962 int i;
8963 int
8964 main (void)
8965 {
8966
8967 ;
8968 return 0;
8969 }
8970 _ACEOF
8971 if ac_fn_c_try_link "$LINENO"
8972 then :
8973 eval $cacheid=yes
8974 else $as_nop
8975 eval $cacheid=no
8976 fi
8977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8978 conftest$ac_exeext conftest.$ac_ext
8979 fi
8980
8981
8982 CFLAGS="$xorg_testset_save_CFLAGS"
8983
8984 eval supported=\$$cacheid
8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8986 printf "%s\n" "$supported" >&6; }
8987 if test "$supported" = "yes" ; then
8988 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8989 found="yes"
8990 fi
8991 fi
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007 xorg_testset_save_CFLAGS="$CFLAGS"
9008
9009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9012 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9013 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9014 then :
9015 printf %s "(cached) " >&6
9016 else $as_nop
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9019 int i;
9020 _ACEOF
9021 if ac_fn_c_try_compile "$LINENO"
9022 then :
9023 xorg_cv_cc_flag_unknown_warning_option=yes
9024 else $as_nop
9025 xorg_cv_cc_flag_unknown_warning_option=no
9026 fi
9027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9028 fi
9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9030 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9031 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9032 CFLAGS="$xorg_testset_save_CFLAGS"
9033 fi
9034
9035 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9038 fi
9039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9041 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9042 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9043 then :
9044 printf %s "(cached) " >&6
9045 else $as_nop
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9048 int i;
9049 _ACEOF
9050 if ac_fn_c_try_compile "$LINENO"
9051 then :
9052 xorg_cv_cc_flag_unused_command_line_argument=yes
9053 else $as_nop
9054 xorg_cv_cc_flag_unused_command_line_argument=no
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9057 fi
9058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9059 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9061 CFLAGS="$xorg_testset_save_CFLAGS"
9062 fi
9063
9064 found="no"
9065
9066 if test $found = "no" ; then
9067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9069 fi
9070
9071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9073 fi
9074
9075 CFLAGS="$CFLAGS -Wnonnull"
9076
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9078 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9079 cacheid=xorg_cv_cc_flag__Wnonnull
9080 if eval test \${$cacheid+y}
9081 then :
9082 printf %s "(cached) " >&6
9083 else $as_nop
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9086 int i;
9087 int
9088 main (void)
9089 {
9090
9091 ;
9092 return 0;
9093 }
9094 _ACEOF
9095 if ac_fn_c_try_link "$LINENO"
9096 then :
9097 eval $cacheid=yes
9098 else $as_nop
9099 eval $cacheid=no
9100 fi
9101 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9102 conftest$ac_exeext conftest.$ac_ext
9103 fi
9104
9105
9106 CFLAGS="$xorg_testset_save_CFLAGS"
9107
9108 eval supported=\$$cacheid
9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9110 printf "%s\n" "$supported" >&6; }
9111 if test "$supported" = "yes" ; then
9112 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9113 found="yes"
9114 fi
9115 fi
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131 xorg_testset_save_CFLAGS="$CFLAGS"
9132
9133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9136 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9137 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9138 then :
9139 printf %s "(cached) " >&6
9140 else $as_nop
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9143 int i;
9144 _ACEOF
9145 if ac_fn_c_try_compile "$LINENO"
9146 then :
9147 xorg_cv_cc_flag_unknown_warning_option=yes
9148 else $as_nop
9149 xorg_cv_cc_flag_unknown_warning_option=no
9150 fi
9151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9152 fi
9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9154 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9156 CFLAGS="$xorg_testset_save_CFLAGS"
9157 fi
9158
9159 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9162 fi
9163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9165 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9166 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9167 then :
9168 printf %s "(cached) " >&6
9169 else $as_nop
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9172 int i;
9173 _ACEOF
9174 if ac_fn_c_try_compile "$LINENO"
9175 then :
9176 xorg_cv_cc_flag_unused_command_line_argument=yes
9177 else $as_nop
9178 xorg_cv_cc_flag_unused_command_line_argument=no
9179 fi
9180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9181 fi
9182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9183 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9185 CFLAGS="$xorg_testset_save_CFLAGS"
9186 fi
9187
9188 found="no"
9189
9190 if test $found = "no" ; then
9191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9193 fi
9194
9195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9197 fi
9198
9199 CFLAGS="$CFLAGS -Winit-self"
9200
9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9202 printf %s "checking if $CC supports -Winit-self... " >&6; }
9203 cacheid=xorg_cv_cc_flag__Winit_self
9204 if eval test \${$cacheid+y}
9205 then :
9206 printf %s "(cached) " >&6
9207 else $as_nop
9208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209 /* end confdefs.h. */
9210 int i;
9211 int
9212 main (void)
9213 {
9214
9215 ;
9216 return 0;
9217 }
9218 _ACEOF
9219 if ac_fn_c_try_link "$LINENO"
9220 then :
9221 eval $cacheid=yes
9222 else $as_nop
9223 eval $cacheid=no
9224 fi
9225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9226 conftest$ac_exeext conftest.$ac_ext
9227 fi
9228
9229
9230 CFLAGS="$xorg_testset_save_CFLAGS"
9231
9232 eval supported=\$$cacheid
9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9234 printf "%s\n" "$supported" >&6; }
9235 if test "$supported" = "yes" ; then
9236 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9237 found="yes"
9238 fi
9239 fi
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255 xorg_testset_save_CFLAGS="$CFLAGS"
9256
9257 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9260 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9261 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9262 then :
9263 printf %s "(cached) " >&6
9264 else $as_nop
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9267 int i;
9268 _ACEOF
9269 if ac_fn_c_try_compile "$LINENO"
9270 then :
9271 xorg_cv_cc_flag_unknown_warning_option=yes
9272 else $as_nop
9273 xorg_cv_cc_flag_unknown_warning_option=no
9274 fi
9275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9276 fi
9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9278 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9280 CFLAGS="$xorg_testset_save_CFLAGS"
9281 fi
9282
9283 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9286 fi
9287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9289 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9290 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9291 then :
9292 printf %s "(cached) " >&6
9293 else $as_nop
9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h. */
9296 int i;
9297 _ACEOF
9298 if ac_fn_c_try_compile "$LINENO"
9299 then :
9300 xorg_cv_cc_flag_unused_command_line_argument=yes
9301 else $as_nop
9302 xorg_cv_cc_flag_unused_command_line_argument=no
9303 fi
9304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9305 fi
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9307 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9309 CFLAGS="$xorg_testset_save_CFLAGS"
9310 fi
9311
9312 found="no"
9313
9314 if test $found = "no" ; then
9315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9317 fi
9318
9319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9321 fi
9322
9323 CFLAGS="$CFLAGS -Wmain"
9324
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9326 printf %s "checking if $CC supports -Wmain... " >&6; }
9327 cacheid=xorg_cv_cc_flag__Wmain
9328 if eval test \${$cacheid+y}
9329 then :
9330 printf %s "(cached) " >&6
9331 else $as_nop
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333 /* end confdefs.h. */
9334 int i;
9335 int
9336 main (void)
9337 {
9338
9339 ;
9340 return 0;
9341 }
9342 _ACEOF
9343 if ac_fn_c_try_link "$LINENO"
9344 then :
9345 eval $cacheid=yes
9346 else $as_nop
9347 eval $cacheid=no
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9350 conftest$ac_exeext conftest.$ac_ext
9351 fi
9352
9353
9354 CFLAGS="$xorg_testset_save_CFLAGS"
9355
9356 eval supported=\$$cacheid
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9358 printf "%s\n" "$supported" >&6; }
9359 if test "$supported" = "yes" ; then
9360 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9361 found="yes"
9362 fi
9363 fi
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379 xorg_testset_save_CFLAGS="$CFLAGS"
9380
9381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9384 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9385 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9386 then :
9387 printf %s "(cached) " >&6
9388 else $as_nop
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391 int i;
9392 _ACEOF
9393 if ac_fn_c_try_compile "$LINENO"
9394 then :
9395 xorg_cv_cc_flag_unknown_warning_option=yes
9396 else $as_nop
9397 xorg_cv_cc_flag_unknown_warning_option=no
9398 fi
9399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9400 fi
9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9402 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9404 CFLAGS="$xorg_testset_save_CFLAGS"
9405 fi
9406
9407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9410 fi
9411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9413 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9414 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9415 then :
9416 printf %s "(cached) " >&6
9417 else $as_nop
9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419 /* end confdefs.h. */
9420 int i;
9421 _ACEOF
9422 if ac_fn_c_try_compile "$LINENO"
9423 then :
9424 xorg_cv_cc_flag_unused_command_line_argument=yes
9425 else $as_nop
9426 xorg_cv_cc_flag_unused_command_line_argument=no
9427 fi
9428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9429 fi
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9431 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9433 CFLAGS="$xorg_testset_save_CFLAGS"
9434 fi
9435
9436 found="no"
9437
9438 if test $found = "no" ; then
9439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9441 fi
9442
9443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9445 fi
9446
9447 CFLAGS="$CFLAGS -Wmissing-braces"
9448
9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9450 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9451 cacheid=xorg_cv_cc_flag__Wmissing_braces
9452 if eval test \${$cacheid+y}
9453 then :
9454 printf %s "(cached) " >&6
9455 else $as_nop
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458 int i;
9459 int
9460 main (void)
9461 {
9462
9463 ;
9464 return 0;
9465 }
9466 _ACEOF
9467 if ac_fn_c_try_link "$LINENO"
9468 then :
9469 eval $cacheid=yes
9470 else $as_nop
9471 eval $cacheid=no
9472 fi
9473 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9474 conftest$ac_exeext conftest.$ac_ext
9475 fi
9476
9477
9478 CFLAGS="$xorg_testset_save_CFLAGS"
9479
9480 eval supported=\$$cacheid
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9482 printf "%s\n" "$supported" >&6; }
9483 if test "$supported" = "yes" ; then
9484 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9485 found="yes"
9486 fi
9487 fi
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503 xorg_testset_save_CFLAGS="$CFLAGS"
9504
9505 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9508 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9509 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9510 then :
9511 printf %s "(cached) " >&6
9512 else $as_nop
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9515 int i;
9516 _ACEOF
9517 if ac_fn_c_try_compile "$LINENO"
9518 then :
9519 xorg_cv_cc_flag_unknown_warning_option=yes
9520 else $as_nop
9521 xorg_cv_cc_flag_unknown_warning_option=no
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9524 fi
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9526 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9528 CFLAGS="$xorg_testset_save_CFLAGS"
9529 fi
9530
9531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9534 fi
9535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9537 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9538 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9539 then :
9540 printf %s "(cached) " >&6
9541 else $as_nop
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 int i;
9545 _ACEOF
9546 if ac_fn_c_try_compile "$LINENO"
9547 then :
9548 xorg_cv_cc_flag_unused_command_line_argument=yes
9549 else $as_nop
9550 xorg_cv_cc_flag_unused_command_line_argument=no
9551 fi
9552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9553 fi
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9555 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9557 CFLAGS="$xorg_testset_save_CFLAGS"
9558 fi
9559
9560 found="no"
9561
9562 if test $found = "no" ; then
9563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9565 fi
9566
9567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9569 fi
9570
9571 CFLAGS="$CFLAGS -Wsequence-point"
9572
9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9574 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9575 cacheid=xorg_cv_cc_flag__Wsequence_point
9576 if eval test \${$cacheid+y}
9577 then :
9578 printf %s "(cached) " >&6
9579 else $as_nop
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9582 int i;
9583 int
9584 main (void)
9585 {
9586
9587 ;
9588 return 0;
9589 }
9590 _ACEOF
9591 if ac_fn_c_try_link "$LINENO"
9592 then :
9593 eval $cacheid=yes
9594 else $as_nop
9595 eval $cacheid=no
9596 fi
9597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9598 conftest$ac_exeext conftest.$ac_ext
9599 fi
9600
9601
9602 CFLAGS="$xorg_testset_save_CFLAGS"
9603
9604 eval supported=\$$cacheid
9605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9606 printf "%s\n" "$supported" >&6; }
9607 if test "$supported" = "yes" ; then
9608 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9609 found="yes"
9610 fi
9611 fi
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627 xorg_testset_save_CFLAGS="$CFLAGS"
9628
9629 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9632 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9633 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9634 then :
9635 printf %s "(cached) " >&6
9636 else $as_nop
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638 /* end confdefs.h. */
9639 int i;
9640 _ACEOF
9641 if ac_fn_c_try_compile "$LINENO"
9642 then :
9643 xorg_cv_cc_flag_unknown_warning_option=yes
9644 else $as_nop
9645 xorg_cv_cc_flag_unknown_warning_option=no
9646 fi
9647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9648 fi
9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9650 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9652 CFLAGS="$xorg_testset_save_CFLAGS"
9653 fi
9654
9655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9658 fi
9659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9661 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9662 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9663 then :
9664 printf %s "(cached) " >&6
9665 else $as_nop
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668 int i;
9669 _ACEOF
9670 if ac_fn_c_try_compile "$LINENO"
9671 then :
9672 xorg_cv_cc_flag_unused_command_line_argument=yes
9673 else $as_nop
9674 xorg_cv_cc_flag_unused_command_line_argument=no
9675 fi
9676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9677 fi
9678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9679 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9681 CFLAGS="$xorg_testset_save_CFLAGS"
9682 fi
9683
9684 found="no"
9685
9686 if test $found = "no" ; then
9687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9689 fi
9690
9691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9693 fi
9694
9695 CFLAGS="$CFLAGS -Wreturn-type"
9696
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9698 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9699 cacheid=xorg_cv_cc_flag__Wreturn_type
9700 if eval test \${$cacheid+y}
9701 then :
9702 printf %s "(cached) " >&6
9703 else $as_nop
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9706 int i;
9707 int
9708 main (void)
9709 {
9710
9711 ;
9712 return 0;
9713 }
9714 _ACEOF
9715 if ac_fn_c_try_link "$LINENO"
9716 then :
9717 eval $cacheid=yes
9718 else $as_nop
9719 eval $cacheid=no
9720 fi
9721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9722 conftest$ac_exeext conftest.$ac_ext
9723 fi
9724
9725
9726 CFLAGS="$xorg_testset_save_CFLAGS"
9727
9728 eval supported=\$$cacheid
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9730 printf "%s\n" "$supported" >&6; }
9731 if test "$supported" = "yes" ; then
9732 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9733 found="yes"
9734 fi
9735 fi
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751 xorg_testset_save_CFLAGS="$CFLAGS"
9752
9753 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9756 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9757 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9758 then :
9759 printf %s "(cached) " >&6
9760 else $as_nop
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9763 int i;
9764 _ACEOF
9765 if ac_fn_c_try_compile "$LINENO"
9766 then :
9767 xorg_cv_cc_flag_unknown_warning_option=yes
9768 else $as_nop
9769 xorg_cv_cc_flag_unknown_warning_option=no
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9772 fi
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9774 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9776 CFLAGS="$xorg_testset_save_CFLAGS"
9777 fi
9778
9779 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9782 fi
9783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9785 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9786 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9787 then :
9788 printf %s "(cached) " >&6
9789 else $as_nop
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 int i;
9793 _ACEOF
9794 if ac_fn_c_try_compile "$LINENO"
9795 then :
9796 xorg_cv_cc_flag_unused_command_line_argument=yes
9797 else $as_nop
9798 xorg_cv_cc_flag_unused_command_line_argument=no
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9801 fi
9802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9803 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9804 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9805 CFLAGS="$xorg_testset_save_CFLAGS"
9806 fi
9807
9808 found="no"
9809
9810 if test $found = "no" ; then
9811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9813 fi
9814
9815 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9817 fi
9818
9819 CFLAGS="$CFLAGS -Wtrigraphs"
9820
9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9822 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9823 cacheid=xorg_cv_cc_flag__Wtrigraphs
9824 if eval test \${$cacheid+y}
9825 then :
9826 printf %s "(cached) " >&6
9827 else $as_nop
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9830 int i;
9831 int
9832 main (void)
9833 {
9834
9835 ;
9836 return 0;
9837 }
9838 _ACEOF
9839 if ac_fn_c_try_link "$LINENO"
9840 then :
9841 eval $cacheid=yes
9842 else $as_nop
9843 eval $cacheid=no
9844 fi
9845 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9846 conftest$ac_exeext conftest.$ac_ext
9847 fi
9848
9849
9850 CFLAGS="$xorg_testset_save_CFLAGS"
9851
9852 eval supported=\$$cacheid
9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9854 printf "%s\n" "$supported" >&6; }
9855 if test "$supported" = "yes" ; then
9856 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9857 found="yes"
9858 fi
9859 fi
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875 xorg_testset_save_CFLAGS="$CFLAGS"
9876
9877 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9878 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9880 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9881 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9882 then :
9883 printf %s "(cached) " >&6
9884 else $as_nop
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9887 int i;
9888 _ACEOF
9889 if ac_fn_c_try_compile "$LINENO"
9890 then :
9891 xorg_cv_cc_flag_unknown_warning_option=yes
9892 else $as_nop
9893 xorg_cv_cc_flag_unknown_warning_option=no
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9896 fi
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9898 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9900 CFLAGS="$xorg_testset_save_CFLAGS"
9901 fi
9902
9903 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906 fi
9907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9909 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9910 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9911 then :
9912 printf %s "(cached) " >&6
9913 else $as_nop
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9916 int i;
9917 _ACEOF
9918 if ac_fn_c_try_compile "$LINENO"
9919 then :
9920 xorg_cv_cc_flag_unused_command_line_argument=yes
9921 else $as_nop
9922 xorg_cv_cc_flag_unused_command_line_argument=no
9923 fi
9924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9925 fi
9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9927 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9929 CFLAGS="$xorg_testset_save_CFLAGS"
9930 fi
9931
9932 found="no"
9933
9934 if test $found = "no" ; then
9935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9937 fi
9938
9939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9941 fi
9942
9943 CFLAGS="$CFLAGS -Warray-bounds"
9944
9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9946 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9947 cacheid=xorg_cv_cc_flag__Warray_bounds
9948 if eval test \${$cacheid+y}
9949 then :
9950 printf %s "(cached) " >&6
9951 else $as_nop
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9954 int i;
9955 int
9956 main (void)
9957 {
9958
9959 ;
9960 return 0;
9961 }
9962 _ACEOF
9963 if ac_fn_c_try_link "$LINENO"
9964 then :
9965 eval $cacheid=yes
9966 else $as_nop
9967 eval $cacheid=no
9968 fi
9969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9970 conftest$ac_exeext conftest.$ac_ext
9971 fi
9972
9973
9974 CFLAGS="$xorg_testset_save_CFLAGS"
9975
9976 eval supported=\$$cacheid
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9978 printf "%s\n" "$supported" >&6; }
9979 if test "$supported" = "yes" ; then
9980 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9981 found="yes"
9982 fi
9983 fi
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999 xorg_testset_save_CFLAGS="$CFLAGS"
10000
10001 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10004 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10005 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10006 then :
10007 printf %s "(cached) " >&6
10008 else $as_nop
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10011 int i;
10012 _ACEOF
10013 if ac_fn_c_try_compile "$LINENO"
10014 then :
10015 xorg_cv_cc_flag_unknown_warning_option=yes
10016 else $as_nop
10017 xorg_cv_cc_flag_unknown_warning_option=no
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10020 fi
10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10022 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10023 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10024 CFLAGS="$xorg_testset_save_CFLAGS"
10025 fi
10026
10027 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10030 fi
10031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10033 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10034 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10035 then :
10036 printf %s "(cached) " >&6
10037 else $as_nop
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040 int i;
10041 _ACEOF
10042 if ac_fn_c_try_compile "$LINENO"
10043 then :
10044 xorg_cv_cc_flag_unused_command_line_argument=yes
10045 else $as_nop
10046 xorg_cv_cc_flag_unused_command_line_argument=no
10047 fi
10048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10049 fi
10050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10051 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10053 CFLAGS="$xorg_testset_save_CFLAGS"
10054 fi
10055
10056 found="no"
10057
10058 if test $found = "no" ; then
10059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10061 fi
10062
10063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10065 fi
10066
10067 CFLAGS="$CFLAGS -Wwrite-strings"
10068
10069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10070 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10071 cacheid=xorg_cv_cc_flag__Wwrite_strings
10072 if eval test \${$cacheid+y}
10073 then :
10074 printf %s "(cached) " >&6
10075 else $as_nop
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10078 int i;
10079 int
10080 main (void)
10081 {
10082
10083 ;
10084 return 0;
10085 }
10086 _ACEOF
10087 if ac_fn_c_try_link "$LINENO"
10088 then :
10089 eval $cacheid=yes
10090 else $as_nop
10091 eval $cacheid=no
10092 fi
10093 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10094 conftest$ac_exeext conftest.$ac_ext
10095 fi
10096
10097
10098 CFLAGS="$xorg_testset_save_CFLAGS"
10099
10100 eval supported=\$$cacheid
10101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10102 printf "%s\n" "$supported" >&6; }
10103 if test "$supported" = "yes" ; then
10104 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10105 found="yes"
10106 fi
10107 fi
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123 xorg_testset_save_CFLAGS="$CFLAGS"
10124
10125 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10128 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10129 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10130 then :
10131 printf %s "(cached) " >&6
10132 else $as_nop
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10135 int i;
10136 _ACEOF
10137 if ac_fn_c_try_compile "$LINENO"
10138 then :
10139 xorg_cv_cc_flag_unknown_warning_option=yes
10140 else $as_nop
10141 xorg_cv_cc_flag_unknown_warning_option=no
10142 fi
10143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10144 fi
10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10146 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10148 CFLAGS="$xorg_testset_save_CFLAGS"
10149 fi
10150
10151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10154 fi
10155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10157 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10158 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10159 then :
10160 printf %s "(cached) " >&6
10161 else $as_nop
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 int i;
10165 _ACEOF
10166 if ac_fn_c_try_compile "$LINENO"
10167 then :
10168 xorg_cv_cc_flag_unused_command_line_argument=yes
10169 else $as_nop
10170 xorg_cv_cc_flag_unused_command_line_argument=no
10171 fi
10172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10173 fi
10174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10175 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10177 CFLAGS="$xorg_testset_save_CFLAGS"
10178 fi
10179
10180 found="no"
10181
10182 if test $found = "no" ; then
10183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10185 fi
10186
10187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10189 fi
10190
10191 CFLAGS="$CFLAGS -Waddress"
10192
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10194 printf %s "checking if $CC supports -Waddress... " >&6; }
10195 cacheid=xorg_cv_cc_flag__Waddress
10196 if eval test \${$cacheid+y}
10197 then :
10198 printf %s "(cached) " >&6
10199 else $as_nop
10200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h. */
10202 int i;
10203 int
10204 main (void)
10205 {
10206
10207 ;
10208 return 0;
10209 }
10210 _ACEOF
10211 if ac_fn_c_try_link "$LINENO"
10212 then :
10213 eval $cacheid=yes
10214 else $as_nop
10215 eval $cacheid=no
10216 fi
10217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10218 conftest$ac_exeext conftest.$ac_ext
10219 fi
10220
10221
10222 CFLAGS="$xorg_testset_save_CFLAGS"
10223
10224 eval supported=\$$cacheid
10225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10226 printf "%s\n" "$supported" >&6; }
10227 if test "$supported" = "yes" ; then
10228 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10229 found="yes"
10230 fi
10231 fi
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247 xorg_testset_save_CFLAGS="$CFLAGS"
10248
10249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10252 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10253 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10254 then :
10255 printf %s "(cached) " >&6
10256 else $as_nop
10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10259 int i;
10260 _ACEOF
10261 if ac_fn_c_try_compile "$LINENO"
10262 then :
10263 xorg_cv_cc_flag_unknown_warning_option=yes
10264 else $as_nop
10265 xorg_cv_cc_flag_unknown_warning_option=no
10266 fi
10267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10268 fi
10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10270 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10272 CFLAGS="$xorg_testset_save_CFLAGS"
10273 fi
10274
10275 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10278 fi
10279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10281 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10282 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10283 then :
10284 printf %s "(cached) " >&6
10285 else $as_nop
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288 int i;
10289 _ACEOF
10290 if ac_fn_c_try_compile "$LINENO"
10291 then :
10292 xorg_cv_cc_flag_unused_command_line_argument=yes
10293 else $as_nop
10294 xorg_cv_cc_flag_unused_command_line_argument=no
10295 fi
10296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10297 fi
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10299 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10301 CFLAGS="$xorg_testset_save_CFLAGS"
10302 fi
10303
10304 found="no"
10305
10306 if test $found = "no" ; then
10307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10309 fi
10310
10311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10313 fi
10314
10315 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10316
10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10318 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10319 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10320 if eval test \${$cacheid+y}
10321 then :
10322 printf %s "(cached) " >&6
10323 else $as_nop
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326 int i;
10327 int
10328 main (void)
10329 {
10330
10331 ;
10332 return 0;
10333 }
10334 _ACEOF
10335 if ac_fn_c_try_link "$LINENO"
10336 then :
10337 eval $cacheid=yes
10338 else $as_nop
10339 eval $cacheid=no
10340 fi
10341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10342 conftest$ac_exeext conftest.$ac_ext
10343 fi
10344
10345
10346 CFLAGS="$xorg_testset_save_CFLAGS"
10347
10348 eval supported=\$$cacheid
10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10350 printf "%s\n" "$supported" >&6; }
10351 if test "$supported" = "yes" ; then
10352 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10353 found="yes"
10354 fi
10355 fi
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371 xorg_testset_save_CFLAGS="$CFLAGS"
10372
10373 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10376 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10377 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10378 then :
10379 printf %s "(cached) " >&6
10380 else $as_nop
10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h. */
10383 int i;
10384 _ACEOF
10385 if ac_fn_c_try_compile "$LINENO"
10386 then :
10387 xorg_cv_cc_flag_unknown_warning_option=yes
10388 else $as_nop
10389 xorg_cv_cc_flag_unknown_warning_option=no
10390 fi
10391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10392 fi
10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10394 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10396 CFLAGS="$xorg_testset_save_CFLAGS"
10397 fi
10398
10399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10402 fi
10403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10405 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10406 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10407 then :
10408 printf %s "(cached) " >&6
10409 else $as_nop
10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10412 int i;
10413 _ACEOF
10414 if ac_fn_c_try_compile "$LINENO"
10415 then :
10416 xorg_cv_cc_flag_unused_command_line_argument=yes
10417 else $as_nop
10418 xorg_cv_cc_flag_unused_command_line_argument=no
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10421 fi
10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10423 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10425 CFLAGS="$xorg_testset_save_CFLAGS"
10426 fi
10427
10428 found="no"
10429
10430 if test $found = "no" ; then
10431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10433 fi
10434
10435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10437 fi
10438
10439 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10440
10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10442 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10443 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10444 if eval test \${$cacheid+y}
10445 then :
10446 printf %s "(cached) " >&6
10447 else $as_nop
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10450 int i;
10451 int
10452 main (void)
10453 {
10454
10455 ;
10456 return 0;
10457 }
10458 _ACEOF
10459 if ac_fn_c_try_link "$LINENO"
10460 then :
10461 eval $cacheid=yes
10462 else $as_nop
10463 eval $cacheid=no
10464 fi
10465 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10466 conftest$ac_exeext conftest.$ac_ext
10467 fi
10468
10469
10470 CFLAGS="$xorg_testset_save_CFLAGS"
10471
10472 eval supported=\$$cacheid
10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10474 printf "%s\n" "$supported" >&6; }
10475 if test "$supported" = "yes" ; then
10476 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10477 found="yes"
10478 fi
10479 fi
10480
10481
10482 fi
10483
10484
10485
10486
10487
10488
10489
10490 CWARNFLAGS="$BASE_CFLAGS"
10491 if test "x$GCC" = xyes ; then
10492 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10493 fi
10494
10495
10496
10497
10498
10499
10500
10501
10502 # Check whether --enable-strict-compilation was given.
10503 if test ${enable_strict_compilation+y}
10504 then :
10505 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10506 else $as_nop
10507 STRICT_COMPILE=no
10508 fi
10509
10510
10511
10512
10513
10514
10515 STRICT_CFLAGS=""
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529 xorg_testset_save_CFLAGS="$CFLAGS"
10530
10531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10534 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10535 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10536 then :
10537 printf %s "(cached) " >&6
10538 else $as_nop
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10541 int i;
10542 _ACEOF
10543 if ac_fn_c_try_compile "$LINENO"
10544 then :
10545 xorg_cv_cc_flag_unknown_warning_option=yes
10546 else $as_nop
10547 xorg_cv_cc_flag_unknown_warning_option=no
10548 fi
10549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10550 fi
10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10552 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10553 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10554 CFLAGS="$xorg_testset_save_CFLAGS"
10555 fi
10556
10557 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10560 fi
10561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10563 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10564 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10565 then :
10566 printf %s "(cached) " >&6
10567 else $as_nop
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h. */
10570 int i;
10571 _ACEOF
10572 if ac_fn_c_try_compile "$LINENO"
10573 then :
10574 xorg_cv_cc_flag_unused_command_line_argument=yes
10575 else $as_nop
10576 xorg_cv_cc_flag_unused_command_line_argument=no
10577 fi
10578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10579 fi
10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10581 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10582 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10583 CFLAGS="$xorg_testset_save_CFLAGS"
10584 fi
10585
10586 found="no"
10587
10588 if test $found = "no" ; then
10589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10591 fi
10592
10593 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10595 fi
10596
10597 CFLAGS="$CFLAGS -pedantic"
10598
10599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10600 printf %s "checking if $CC supports -pedantic... " >&6; }
10601 cacheid=xorg_cv_cc_flag__pedantic
10602 if eval test \${$cacheid+y}
10603 then :
10604 printf %s "(cached) " >&6
10605 else $as_nop
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608 int i;
10609 int
10610 main (void)
10611 {
10612
10613 ;
10614 return 0;
10615 }
10616 _ACEOF
10617 if ac_fn_c_try_link "$LINENO"
10618 then :
10619 eval $cacheid=yes
10620 else $as_nop
10621 eval $cacheid=no
10622 fi
10623 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10624 conftest$ac_exeext conftest.$ac_ext
10625 fi
10626
10627
10628 CFLAGS="$xorg_testset_save_CFLAGS"
10629
10630 eval supported=\$$cacheid
10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10632 printf "%s\n" "$supported" >&6; }
10633 if test "$supported" = "yes" ; then
10634 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10635 found="yes"
10636 fi
10637 fi
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653 xorg_testset_save_CFLAGS="$CFLAGS"
10654
10655 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10658 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10659 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10660 then :
10661 printf %s "(cached) " >&6
10662 else $as_nop
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10665 int i;
10666 _ACEOF
10667 if ac_fn_c_try_compile "$LINENO"
10668 then :
10669 xorg_cv_cc_flag_unknown_warning_option=yes
10670 else $as_nop
10671 xorg_cv_cc_flag_unknown_warning_option=no
10672 fi
10673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10674 fi
10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10676 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10678 CFLAGS="$xorg_testset_save_CFLAGS"
10679 fi
10680
10681 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10684 fi
10685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10687 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10688 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10689 then :
10690 printf %s "(cached) " >&6
10691 else $as_nop
10692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693 /* end confdefs.h. */
10694 int i;
10695 _ACEOF
10696 if ac_fn_c_try_compile "$LINENO"
10697 then :
10698 xorg_cv_cc_flag_unused_command_line_argument=yes
10699 else $as_nop
10700 xorg_cv_cc_flag_unused_command_line_argument=no
10701 fi
10702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10703 fi
10704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10705 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10707 CFLAGS="$xorg_testset_save_CFLAGS"
10708 fi
10709
10710 found="no"
10711
10712 if test $found = "no" ; then
10713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10715 fi
10716
10717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10719 fi
10720
10721 CFLAGS="$CFLAGS -Werror"
10722
10723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10724 printf %s "checking if $CC supports -Werror... " >&6; }
10725 cacheid=xorg_cv_cc_flag__Werror
10726 if eval test \${$cacheid+y}
10727 then :
10728 printf %s "(cached) " >&6
10729 else $as_nop
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732 int i;
10733 int
10734 main (void)
10735 {
10736
10737 ;
10738 return 0;
10739 }
10740 _ACEOF
10741 if ac_fn_c_try_link "$LINENO"
10742 then :
10743 eval $cacheid=yes
10744 else $as_nop
10745 eval $cacheid=no
10746 fi
10747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10748 conftest$ac_exeext conftest.$ac_ext
10749 fi
10750
10751
10752 CFLAGS="$xorg_testset_save_CFLAGS"
10753
10754 eval supported=\$$cacheid
10755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10756 printf "%s\n" "$supported" >&6; }
10757 if test "$supported" = "yes" ; then
10758 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10759 found="yes"
10760 fi
10761 fi
10762
10763 if test $found = "no" ; then
10764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10766 fi
10767
10768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10770 fi
10771
10772 CFLAGS="$CFLAGS -errwarn"
10773
10774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10775 printf %s "checking if $CC supports -errwarn... " >&6; }
10776 cacheid=xorg_cv_cc_flag__errwarn
10777 if eval test \${$cacheid+y}
10778 then :
10779 printf %s "(cached) " >&6
10780 else $as_nop
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 int i;
10784 int
10785 main (void)
10786 {
10787
10788 ;
10789 return 0;
10790 }
10791 _ACEOF
10792 if ac_fn_c_try_link "$LINENO"
10793 then :
10794 eval $cacheid=yes
10795 else $as_nop
10796 eval $cacheid=no
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10799 conftest$ac_exeext conftest.$ac_ext
10800 fi
10801
10802
10803 CFLAGS="$xorg_testset_save_CFLAGS"
10804
10805 eval supported=\$$cacheid
10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10807 printf "%s\n" "$supported" >&6; }
10808 if test "$supported" = "yes" ; then
10809 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10810 found="yes"
10811 fi
10812 fi
10813
10814
10815
10816 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10817 # activate it with -Werror, so we add it here explicitly.
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831 xorg_testset_save_CFLAGS="$CFLAGS"
10832
10833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10836 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10837 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10838 then :
10839 printf %s "(cached) " >&6
10840 else $as_nop
10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10843 int i;
10844 _ACEOF
10845 if ac_fn_c_try_compile "$LINENO"
10846 then :
10847 xorg_cv_cc_flag_unknown_warning_option=yes
10848 else $as_nop
10849 xorg_cv_cc_flag_unknown_warning_option=no
10850 fi
10851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10852 fi
10853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10854 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10856 CFLAGS="$xorg_testset_save_CFLAGS"
10857 fi
10858
10859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10862 fi
10863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10865 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10866 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10867 then :
10868 printf %s "(cached) " >&6
10869 else $as_nop
10870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10871 /* end confdefs.h. */
10872 int i;
10873 _ACEOF
10874 if ac_fn_c_try_compile "$LINENO"
10875 then :
10876 xorg_cv_cc_flag_unused_command_line_argument=yes
10877 else $as_nop
10878 xorg_cv_cc_flag_unused_command_line_argument=no
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10881 fi
10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10883 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10885 CFLAGS="$xorg_testset_save_CFLAGS"
10886 fi
10887
10888 found="no"
10889
10890 if test $found = "no" ; then
10891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10893 fi
10894
10895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10897 fi
10898
10899 CFLAGS="$CFLAGS -Werror=attributes"
10900
10901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10902 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10903 cacheid=xorg_cv_cc_flag__Werror_attributes
10904 if eval test \${$cacheid+y}
10905 then :
10906 printf %s "(cached) " >&6
10907 else $as_nop
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10910 int i;
10911 int
10912 main (void)
10913 {
10914
10915 ;
10916 return 0;
10917 }
10918 _ACEOF
10919 if ac_fn_c_try_link "$LINENO"
10920 then :
10921 eval $cacheid=yes
10922 else $as_nop
10923 eval $cacheid=no
10924 fi
10925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10926 conftest$ac_exeext conftest.$ac_ext
10927 fi
10928
10929
10930 CFLAGS="$xorg_testset_save_CFLAGS"
10931
10932 eval supported=\$$cacheid
10933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10934 printf "%s\n" "$supported" >&6; }
10935 if test "$supported" = "yes" ; then
10936 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10937 found="yes"
10938 fi
10939 fi
10940
10941
10942
10943 if test "x$STRICT_COMPILE" = "xyes"; then
10944 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10945 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10946 fi
10947
10948
10949
10950
10951
10952
10953
10954
10955 cat >>confdefs.h <<_ACEOF
10956 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10957 _ACEOF
10958
10959 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10960 if test "x$PVM" = "x"; then
10961 PVM="0"
10962 fi
10963
10964 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10965
10966 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10967 if test "x$PVP" = "x"; then
10968 PVP="0"
10969 fi
10970
10971 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10972
10973
10974
10975 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10976 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10977 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10978 touch \$(top_srcdir)/ChangeLog; \
10979 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10980
10981
10982
10983
10984 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10985 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10986 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10987 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10988 touch \$(top_srcdir)/INSTALL; \
10989 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10990
10991
10992
10993
10994
10995
10996 case $host_os in
10997 solaris*)
10998 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10999 # check for a man page file found in later versions that use
11000 # traditional section numbers instead
11001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11002 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11003 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11004 then :
11005 printf %s "(cached) " >&6
11006 else $as_nop
11007 test "$cross_compiling" = yes &&
11008 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11009 if test -r "/usr/share/man/man7/attributes.7"; then
11010 ac_cv_file__usr_share_man_man7_attributes_7=yes
11011 else
11012 ac_cv_file__usr_share_man_man7_attributes_7=no
11013 fi
11014 fi
11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11016 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11017 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11018 then :
11019 SYSV_MAN_SECTIONS=false
11020 else $as_nop
11021 SYSV_MAN_SECTIONS=true
11022 fi
11023
11024 ;;
11025 *) SYSV_MAN_SECTIONS=false ;;
11026 esac
11027
11028 if test x$APP_MAN_SUFFIX = x ; then
11029 APP_MAN_SUFFIX=1
11030 fi
11031 if test x$APP_MAN_DIR = x ; then
11032 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11033 fi
11034
11035 if test x$LIB_MAN_SUFFIX = x ; then
11036 LIB_MAN_SUFFIX=3
11037 fi
11038 if test x$LIB_MAN_DIR = x ; then
11039 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11040 fi
11041
11042 if test x$FILE_MAN_SUFFIX = x ; then
11043 case $SYSV_MAN_SECTIONS in
11044 true) FILE_MAN_SUFFIX=4 ;;
11045 *) FILE_MAN_SUFFIX=5 ;;
11046 esac
11047 fi
11048 if test x$FILE_MAN_DIR = x ; then
11049 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11050 fi
11051
11052 if test x$MISC_MAN_SUFFIX = x ; then
11053 case $SYSV_MAN_SECTIONS in
11054 true) MISC_MAN_SUFFIX=5 ;;
11055 *) MISC_MAN_SUFFIX=7 ;;
11056 esac
11057 fi
11058 if test x$MISC_MAN_DIR = x ; then
11059 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11060 fi
11061
11062 if test x$DRIVER_MAN_SUFFIX = x ; then
11063 case $SYSV_MAN_SECTIONS in
11064 true) DRIVER_MAN_SUFFIX=7 ;;
11065 *) DRIVER_MAN_SUFFIX=4 ;;
11066 esac
11067 fi
11068 if test x$DRIVER_MAN_DIR = x ; then
11069 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11070 fi
11071
11072 if test x$ADMIN_MAN_SUFFIX = x ; then
11073 case $SYSV_MAN_SECTIONS in
11074 true) ADMIN_MAN_SUFFIX=1m ;;
11075 *) ADMIN_MAN_SUFFIX=8 ;;
11076 esac
11077 fi
11078 if test x$ADMIN_MAN_DIR = x ; then
11079 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11080 fi
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096 XORG_MAN_PAGE="X Version 11"
11097
11098 MAN_SUBSTS="\
11099 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11100 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11101 -e 's|__xservername__|Xorg|g' \
11102 -e 's|__xconfigfile__|xorg.conf|g' \
11103 -e 's|__projectroot__|\$(prefix)|g' \
11104 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11105 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11106 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11107 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11108 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11109 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11110 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11111
11112
11113
11114 # Check whether --enable-silent-rules was given.
11115 if test ${enable_silent_rules+y}
11116 then :
11117 enableval=$enable_silent_rules;
11118 fi
11119
11120 case $enable_silent_rules in # (((
11121 yes) AM_DEFAULT_VERBOSITY=0;;
11122 no) AM_DEFAULT_VERBOSITY=1;;
11123 *) AM_DEFAULT_VERBOSITY=0;;
11124 esac
11125 am_make=${MAKE-make}
11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11127 printf %s "checking whether $am_make supports nested variables... " >&6; }
11128 if test ${am_cv_make_support_nested_variables+y}
11129 then :
11130 printf %s "(cached) " >&6
11131 else $as_nop
11132 if printf "%s\n" 'TRUE=$(BAR$(V))
11133 BAR0=false
11134 BAR1=true
11135 V=1
11136 am__doit:
11137 @$(TRUE)
11138 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11139 am_cv_make_support_nested_variables=yes
11140 else
11141 am_cv_make_support_nested_variables=no
11142 fi
11143 fi
11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11145 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11146 if test $am_cv_make_support_nested_variables = yes; then
11147 AM_V='$(V)'
11148 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11149 else
11150 AM_V=$AM_DEFAULT_VERBOSITY
11151 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11152 fi
11153 AM_BACKSLASH='\'
11154
11155
11156
11157
11158 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
11159 if test "x$ac_cv_func_setenv" = xyes
11160 then :
11161 have_setenv=yes
11162 else $as_nop
11163 have_setenv=no
11164 fi
11165
11166 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
11167 if test "x$ac_cv_func_vasprintf" = xyes
11168 then :
11169 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
11170
11171 fi
11172
11173 ac_fn_check_decl "$LINENO" "va_copy" "ac_cv_have_decl_va_copy" "
11174 $ac_includes_default
11175 #include <stdarg.h>
11176
11177 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11178 if test "x$ac_cv_have_decl_va_copy" = xyes
11179 then :
11180 ac_have_decl=1
11181 else $as_nop
11182 ac_have_decl=0
11183 fi
11184 printf "%s\n" "#define HAVE_DECL_VA_COPY $ac_have_decl" >>confdefs.h
11185
11186
11187 if test x$have_setenv = xno; then
11188 NEED_SETENV_TRUE=
11189 NEED_SETENV_FALSE='#'
11190 else
11191 NEED_SETENV_TRUE='#'
11192 NEED_SETENV_FALSE=
11193 fi
11194
11195
11196 # Checks for pkg-config packages
11197
11198 pkg_failed=no
11199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FONTTOSFNT" >&5
11200 printf %s "checking for FONTTOSFNT... " >&6; }
11201
11202 if test -n "$FONTTOSFNT_CFLAGS"; then
11203 pkg_cv_FONTTOSFNT_CFLAGS="$FONTTOSFNT_CFLAGS"
11204 elif test -n "$PKG_CONFIG"; then
11205 if test -n "$PKG_CONFIG" && \
11206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto freetype2 fontenc\""; } >&5
11207 ($PKG_CONFIG --exists --print-errors "xproto freetype2 fontenc") 2>&5
11208 ac_status=$?
11209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11210 test $ac_status = 0; }; then
11211 pkg_cv_FONTTOSFNT_CFLAGS=`$PKG_CONFIG --cflags "xproto freetype2 fontenc" 2>/dev/null`
11212 test "x$?" != "x0" && pkg_failed=yes
11213 else
11214 pkg_failed=yes
11215 fi
11216 else
11217 pkg_failed=untried
11218 fi
11219 if test -n "$FONTTOSFNT_LIBS"; then
11220 pkg_cv_FONTTOSFNT_LIBS="$FONTTOSFNT_LIBS"
11221 elif test -n "$PKG_CONFIG"; then
11222 if test -n "$PKG_CONFIG" && \
11223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto freetype2 fontenc\""; } >&5
11224 ($PKG_CONFIG --exists --print-errors "xproto freetype2 fontenc") 2>&5
11225 ac_status=$?
11226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11227 test $ac_status = 0; }; then
11228 pkg_cv_FONTTOSFNT_LIBS=`$PKG_CONFIG --libs "xproto freetype2 fontenc" 2>/dev/null`
11229 test "x$?" != "x0" && pkg_failed=yes
11230 else
11231 pkg_failed=yes
11232 fi
11233 else
11234 pkg_failed=untried
11235 fi
11236
11237
11238
11239 if test $pkg_failed = yes; then
11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11241 printf "%s\n" "no" >&6; }
11242
11243 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11244 _pkg_short_errors_supported=yes
11245 else
11246 _pkg_short_errors_supported=no
11247 fi
11248 if test $_pkg_short_errors_supported = yes; then
11249 FONTTOSFNT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto freetype2 fontenc" 2>&1`
11250 else
11251 FONTTOSFNT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto freetype2 fontenc" 2>&1`
11252 fi
11253 # Put the nasty error message in config.log where it belongs
11254 echo "$FONTTOSFNT_PKG_ERRORS" >&5
11255
11256 as_fn_error $? "Package requirements (xproto freetype2 fontenc) were not met:
11257
11258 $FONTTOSFNT_PKG_ERRORS
11259
11260 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11261 installed software in a non-standard prefix.
11262
11263 Alternatively, you may set the environment variables FONTTOSFNT_CFLAGS
11264 and FONTTOSFNT_LIBS to avoid the need to call pkg-config.
11265 See the pkg-config man page for more details." "$LINENO" 5
11266 elif test $pkg_failed = untried; then
11267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 printf "%s\n" "no" >&6; }
11269 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11270 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11271 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11272 is in your PATH or set the PKG_CONFIG environment variable to the full
11273 path to pkg-config.
11274
11275 Alternatively, you may set the environment variables FONTTOSFNT_CFLAGS
11276 and FONTTOSFNT_LIBS to avoid the need to call pkg-config.
11277 See the pkg-config man page for more details.
11278
11279 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11280 See \`config.log' for more details" "$LINENO" 5; }
11281 else
11282 FONTTOSFNT_CFLAGS=$pkg_cv_FONTTOSFNT_CFLAGS
11283 FONTTOSFNT_LIBS=$pkg_cv_FONTTOSFNT_LIBS
11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11285 printf "%s\n" "yes" >&6; }
11286
11287 fi
11288
11289
11290 ac_config_files="$ac_config_files Makefile man/Makefile"
11291
11292 cat >confcache <<\_ACEOF
11293 # This file is a shell script that caches the results of configure
11294 # tests run on this system so they can be shared between configure
11295 # scripts and configure runs, see configure's option --config-cache.
11296 # It is not useful on other systems. If it contains results you don't
11297 # want to keep, you may remove or edit it.
11298 #
11299 # config.status only pays attention to the cache file if you give it
11300 # the --recheck option to rerun configure.
11301 #
11302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11304 # following values.
11305
11306 _ACEOF
11307
11308 # The following way of writing the cache mishandles newlines in values,
11309 # but we know of no workaround that is simple, portable, and efficient.
11310 # So, we kill variables containing newlines.
11311 # Ultrix sh set writes to stderr and can't be redirected directly,
11312 # and sets the high bit in the cache file unless we assign to the vars.
11313 (
11314 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11315 eval ac_val=\$$ac_var
11316 case $ac_val in #(
11317 *${as_nl}*)
11318 case $ac_var in #(
11319 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11320 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11321 esac
11322 case $ac_var in #(
11323 _ | IFS | as_nl) ;; #(
11324 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11325 *) { eval $ac_var=; unset $ac_var;} ;;
11326 esac ;;
11327 esac
11328 done
11329
11330 (set) 2>&1 |
11331 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11332 *${as_nl}ac_space=\ *)
11333 # `set' does not quote correctly, so add quotes: double-quote
11334 # substitution turns \\\\ into \\, and sed turns \\ into \.
11335 sed -n \
11336 "s/'/'\\\\''/g;
11337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11338 ;; #(
11339 *)
11340 # `set' quotes correctly as required by POSIX, so do not add quotes.
11341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11342 ;;
11343 esac |
11344 sort
11345 ) |
11346 sed '
11347 /^ac_cv_env_/b end
11348 t clear
11349 :clear
11350 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11351 t end
11352 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11353 :end' >>confcache
11354 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11355 if test -w "$cache_file"; then
11356 if test "x$cache_file" != "x/dev/null"; then
11357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11358 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11359 if test ! -f "$cache_file" || test -h "$cache_file"; then
11360 cat confcache >"$cache_file"
11361 else
11362 case $cache_file in #(
11363 */* | ?:*)
11364 mv -f confcache "$cache_file"$$ &&
11365 mv -f "$cache_file"$$ "$cache_file" ;; #(
11366 *)
11367 mv -f confcache "$cache_file" ;;
11368 esac
11369 fi
11370 fi
11371 else
11372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11373 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11374 fi
11375 fi
11376 rm -f confcache
11377
11378 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11379 # Let make expand exec_prefix.
11380 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11381
11382 DEFS=-DHAVE_CONFIG_H
11383
11384 ac_libobjs=
11385 ac_ltlibobjs=
11386 U=
11387 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11388 # 1. Remove the extension, and $U if already installed.
11389 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11390 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11391 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11392 # will be set to the directory where LIBOBJS objects are built.
11393 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11394 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11395 done
11396 LIBOBJS=$ac_libobjs
11397
11398 LTLIBOBJS=$ac_ltlibobjs
11399
11400
11401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11402 printf %s "checking that generated files are newer than configure... " >&6; }
11403 if test -n "$am_sleep_pid"; then
11404 # Hide warnings about reused PIDs.
11405 wait $am_sleep_pid 2>/dev/null
11406 fi
11407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11408 printf "%s\n" "done" >&6; }
11409 if test -n "$EXEEXT"; then
11410 am__EXEEXT_TRUE=
11411 am__EXEEXT_FALSE='#'
11412 else
11413 am__EXEEXT_TRUE='#'
11414 am__EXEEXT_FALSE=
11415 fi
11416
11417 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11418 as_fn_error $? "conditional \"AMDEP\" was never defined.
11419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11420 fi
11421 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11422 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11424 fi
11425 if test -z "${NEED_SETENV_TRUE}" && test -z "${NEED_SETENV_FALSE}"; then
11426 as_fn_error $? "conditional \"NEED_SETENV\" was never defined.
11427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11428 fi
11429
11430 : "${CONFIG_STATUS=./config.status}"
11431 ac_write_fail=0
11432 ac_clean_files_save=$ac_clean_files
11433 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11435 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11436 as_write_fail=0
11437 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11438 #! $SHELL
11439 # Generated by $as_me.
11440 # Run this file to recreate the current configuration.
11441 # Compiler output produced by configure, useful for debugging
11442 # configure, is in config.log if it exists.
11443
11444 debug=false
11445 ac_cs_recheck=false
11446 ac_cs_silent=false
11447
11448 SHELL=\${CONFIG_SHELL-$SHELL}
11449 export SHELL
11450 _ASEOF
11451 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11452 ## -------------------- ##
11453 ## M4sh Initialization. ##
11454 ## -------------------- ##
11455
11456 # Be more Bourne compatible
11457 DUALCASE=1; export DUALCASE # for MKS sh
11458 as_nop=:
11459 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11460 then :
11461 emulate sh
11462 NULLCMD=:
11463 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11464 # is contrary to our usage. Disable this feature.
11465 alias -g '${1+"$@"}'='"$@"'
11466 setopt NO_GLOB_SUBST
11467 else $as_nop
11468 case `(set -o) 2>/dev/null` in #(
11469 *posix*) :
11470 set -o posix ;; #(
11471 *) :
11472 ;;
11473 esac
11474 fi
11475
11476
11477
11478 # Reset variables that may have inherited troublesome values from
11479 # the environment.
11480
11481 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11482 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11483 # side effect of setting IFS to empty, thus disabling word splitting.)
11484 # Quoting is to prevent editors from complaining about space-tab.
11485 as_nl='
11486 '
11487 export as_nl
11488 IFS=" "" $as_nl"
11489
11490 PS1='$ '
11491 PS2='> '
11492 PS4='+ '
11493
11494 # Ensure predictable behavior from utilities with locale-dependent output.
11495 LC_ALL=C
11496 export LC_ALL
11497 LANGUAGE=C
11498 export LANGUAGE
11499
11500 # We cannot yet rely on "unset" to work, but we need these variables
11501 # to be unset--not just set to an empty or harmless value--now, to
11502 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11503 # also avoids known problems related to "unset" and subshell syntax
11504 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11505 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11506 do eval test \${$as_var+y} \
11507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11508 done
11509
11510 # Ensure that fds 0, 1, and 2 are open.
11511 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11512 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11513 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11514
11515 # The user is always right.
11516 if ${PATH_SEPARATOR+false} :; then
11517 PATH_SEPARATOR=:
11518 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11519 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11520 PATH_SEPARATOR=';'
11521 }
11522 fi
11523
11524
11525 # Find who we are. Look in the path if we contain no directory separator.
11526 as_myself=
11527 case $0 in #((
11528 *[\\/]* ) as_myself=$0 ;;
11529 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11530 for as_dir in $PATH
11531 do
11532 IFS=$as_save_IFS
11533 case $as_dir in #(((
11534 '') as_dir=./ ;;
11535 */) ;;
11536 *) as_dir=$as_dir/ ;;
11537 esac
11538 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11539 done
11540 IFS=$as_save_IFS
11541
11542 ;;
11543 esac
11544 # We did not find ourselves, most probably we were run as `sh COMMAND'
11545 # in which case we are not to be found in the path.
11546 if test "x$as_myself" = x; then
11547 as_myself=$0
11548 fi
11549 if test ! -f "$as_myself"; then
11550 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11551 exit 1
11552 fi
11553
11554
11555
11556 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11557 # ----------------------------------------
11558 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11559 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11560 # script with STATUS, using 1 if that was 0.
11561 as_fn_error ()
11562 {
11563 as_status=$1; test $as_status -eq 0 && as_status=1
11564 if test "$4"; then
11565 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11567 fi
11568 printf "%s\n" "$as_me: error: $2" >&2
11569 as_fn_exit $as_status
11570 } # as_fn_error
11571
11572
11573
11574 # as_fn_set_status STATUS
11575 # -----------------------
11576 # Set $? to STATUS, without forking.
11577 as_fn_set_status ()
11578 {
11579 return $1
11580 } # as_fn_set_status
11581
11582 # as_fn_exit STATUS
11583 # -----------------
11584 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11585 as_fn_exit ()
11586 {
11587 set +e
11588 as_fn_set_status $1
11589 exit $1
11590 } # as_fn_exit
11591
11592 # as_fn_unset VAR
11593 # ---------------
11594 # Portably unset VAR.
11595 as_fn_unset ()
11596 {
11597 { eval $1=; unset $1;}
11598 }
11599 as_unset=as_fn_unset
11600
11601 # as_fn_append VAR VALUE
11602 # ----------------------
11603 # Append the text in VALUE to the end of the definition contained in VAR. Take
11604 # advantage of any shell optimizations that allow amortized linear growth over
11605 # repeated appends, instead of the typical quadratic growth present in naive
11606 # implementations.
11607 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11608 then :
11609 eval 'as_fn_append ()
11610 {
11611 eval $1+=\$2
11612 }'
11613 else $as_nop
11614 as_fn_append ()
11615 {
11616 eval $1=\$$1\$2
11617 }
11618 fi # as_fn_append
11619
11620 # as_fn_arith ARG...
11621 # ------------------
11622 # Perform arithmetic evaluation on the ARGs, and store the result in the
11623 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11624 # must be portable across $(()) and expr.
11625 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11626 then :
11627 eval 'as_fn_arith ()
11628 {
11629 as_val=$(( $* ))
11630 }'
11631 else $as_nop
11632 as_fn_arith ()
11633 {
11634 as_val=`expr "$@" || test $? -eq 1`
11635 }
11636 fi # as_fn_arith
11637
11638
11639 if expr a : '\(a\)' >/dev/null 2>&1 &&
11640 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11641 as_expr=expr
11642 else
11643 as_expr=false
11644 fi
11645
11646 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11647 as_basename=basename
11648 else
11649 as_basename=false
11650 fi
11651
11652 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11653 as_dirname=dirname
11654 else
11655 as_dirname=false
11656 fi
11657
11658 as_me=`$as_basename -- "$0" ||
11659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11660 X"$0" : 'X\(//\)$' \| \
11661 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11662 printf "%s\n" X/"$0" |
11663 sed '/^.*\/\([^/][^/]*\)\/*$/{
11664 s//\1/
11665 q
11666 }
11667 /^X\/\(\/\/\)$/{
11668 s//\1/
11669 q
11670 }
11671 /^X\/\(\/\).*/{
11672 s//\1/
11673 q
11674 }
11675 s/.*/./; q'`
11676
11677 # Avoid depending upon Character Ranges.
11678 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11679 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11680 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11681 as_cr_digits='0123456789'
11682 as_cr_alnum=$as_cr_Letters$as_cr_digits
11683
11684
11685 # Determine whether it's possible to make 'echo' print without a newline.
11686 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11687 # for compatibility with existing Makefiles.
11688 ECHO_C= ECHO_N= ECHO_T=
11689 case `echo -n x` in #(((((
11690 -n*)
11691 case `echo 'xy\c'` in
11692 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11693 xy) ECHO_C='\c';;
11694 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11695 ECHO_T=' ';;
11696 esac;;
11697 *)
11698 ECHO_N='-n';;
11699 esac
11700
11701 # For backward compatibility with old third-party macros, we provide
11702 # the shell variables $as_echo and $as_echo_n. New code should use
11703 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11704 as_echo='printf %s\n'
11705 as_echo_n='printf %s'
11706
11707 rm -f conf$$ conf$$.exe conf$$.file
11708 if test -d conf$$.dir; then
11709 rm -f conf$$.dir/conf$$.file
11710 else
11711 rm -f conf$$.dir
11712 mkdir conf$$.dir 2>/dev/null
11713 fi
11714 if (echo >conf$$.file) 2>/dev/null; then
11715 if ln -s conf$$.file conf$$ 2>/dev/null; then
11716 as_ln_s='ln -s'
11717 # ... but there are two gotchas:
11718 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11719 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11720 # In both cases, we have to default to `cp -pR'.
11721 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11722 as_ln_s='cp -pR'
11723 elif ln conf$$.file conf$$ 2>/dev/null; then
11724 as_ln_s=ln
11725 else
11726 as_ln_s='cp -pR'
11727 fi
11728 else
11729 as_ln_s='cp -pR'
11730 fi
11731 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11732 rmdir conf$$.dir 2>/dev/null
11733
11734
11735 # as_fn_mkdir_p
11736 # -------------
11737 # Create "$as_dir" as a directory, including parents if necessary.
11738 as_fn_mkdir_p ()
11739 {
11740
11741 case $as_dir in #(
11742 -*) as_dir=./$as_dir;;
11743 esac
11744 test -d "$as_dir" || eval $as_mkdir_p || {
11745 as_dirs=
11746 while :; do
11747 case $as_dir in #(
11748 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11749 *) as_qdir=$as_dir;;
11750 esac
11751 as_dirs="'$as_qdir' $as_dirs"
11752 as_dir=`$as_dirname -- "$as_dir" ||
11753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11754 X"$as_dir" : 'X\(//\)[^/]' \| \
11755 X"$as_dir" : 'X\(//\)$' \| \
11756 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11757 printf "%s\n" X"$as_dir" |
11758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11759 s//\1/
11760 q
11761 }
11762 /^X\(\/\/\)[^/].*/{
11763 s//\1/
11764 q
11765 }
11766 /^X\(\/\/\)$/{
11767 s//\1/
11768 q
11769 }
11770 /^X\(\/\).*/{
11771 s//\1/
11772 q
11773 }
11774 s/.*/./; q'`
11775 test -d "$as_dir" && break
11776 done
11777 test -z "$as_dirs" || eval "mkdir $as_dirs"
11778 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11779
11780
11781 } # as_fn_mkdir_p
11782 if mkdir -p . 2>/dev/null; then
11783 as_mkdir_p='mkdir -p "$as_dir"'
11784 else
11785 test -d ./-p && rmdir ./-p
11786 as_mkdir_p=false
11787 fi
11788
11789
11790 # as_fn_executable_p FILE
11791 # -----------------------
11792 # Test if FILE is an executable regular file.
11793 as_fn_executable_p ()
11794 {
11795 test -f "$1" && test -x "$1"
11796 } # as_fn_executable_p
11797 as_test_x='test -x'
11798 as_executable_p=as_fn_executable_p
11799
11800 # Sed expression to map a string onto a valid CPP name.
11801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11802
11803 # Sed expression to map a string onto a valid variable name.
11804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11805
11806
11807 exec 6>&1
11808 ## ----------------------------------- ##
11809 ## Main body of $CONFIG_STATUS script. ##
11810 ## ----------------------------------- ##
11811 _ASEOF
11812 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11813
11814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11815 # Save the log message, to keep $0 and so on meaningful, and to
11816 # report actual input values of CONFIG_FILES etc. instead of their
11817 # values after options handling.
11818 ac_log="
11819 This file was extended by fonttosfnt $as_me 1.2.3, which was
11820 generated by GNU Autoconf 2.71. Invocation command line was
11821
11822 CONFIG_FILES = $CONFIG_FILES
11823 CONFIG_HEADERS = $CONFIG_HEADERS
11824 CONFIG_LINKS = $CONFIG_LINKS
11825 CONFIG_COMMANDS = $CONFIG_COMMANDS
11826 $ $0 $@
11827
11828 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11829 "
11830
11831 _ACEOF
11832
11833 case $ac_config_files in *"
11834 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11835 esac
11836
11837 case $ac_config_headers in *"
11838 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11839 esac
11840
11841
11842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11843 # Files that config.status was made for.
11844 config_files="$ac_config_files"
11845 config_headers="$ac_config_headers"
11846 config_commands="$ac_config_commands"
11847
11848 _ACEOF
11849
11850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11851 ac_cs_usage="\
11852 \`$as_me' instantiates files and other configuration actions
11853 from templates according to the current configuration. Unless the files
11854 and actions are specified as TAGs, all are instantiated by default.
11855
11856 Usage: $0 [OPTION]... [TAG]...
11857
11858 -h, --help print this help, then exit
11859 -V, --version print version number and configuration settings, then exit
11860 --config print configuration, then exit
11861 -q, --quiet, --silent
11862 do not print progress messages
11863 -d, --debug don't remove temporary files
11864 --recheck update $as_me by reconfiguring in the same conditions
11865 --file=FILE[:TEMPLATE]
11866 instantiate the configuration file FILE
11867 --header=FILE[:TEMPLATE]
11868 instantiate the configuration header FILE
11869
11870 Configuration files:
11871 $config_files
11872
11873 Configuration headers:
11874 $config_headers
11875
11876 Configuration commands:
11877 $config_commands
11878
11879 Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues>."
11880
11881 _ACEOF
11882 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11883 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11885 ac_cs_config='$ac_cs_config_escaped'
11886 ac_cs_version="\\
11887 fonttosfnt config.status 1.2.3
11888 configured by $0, generated by GNU Autoconf 2.71,
11889 with options \\"\$ac_cs_config\\"
11890
11891 Copyright (C) 2021 Free Software Foundation, Inc.
11892 This config.status script is free software; the Free Software Foundation
11893 gives unlimited permission to copy, distribute and modify it."
11894
11895 ac_pwd='$ac_pwd'
11896 srcdir='$srcdir'
11897 INSTALL='$INSTALL'
11898 MKDIR_P='$MKDIR_P'
11899 AWK='$AWK'
11900 test -n "\$AWK" || AWK=awk
11901 _ACEOF
11902
11903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11904 # The default lists apply if the user does not specify any file.
11905 ac_need_defaults=:
11906 while test $# != 0
11907 do
11908 case $1 in
11909 --*=?*)
11910 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11911 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11912 ac_shift=:
11913 ;;
11914 --*=)
11915 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11916 ac_optarg=
11917 ac_shift=:
11918 ;;
11919 *)
11920 ac_option=$1
11921 ac_optarg=$2
11922 ac_shift=shift
11923 ;;
11924 esac
11925
11926 case $ac_option in
11927 # Handling of the options.
11928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11929 ac_cs_recheck=: ;;
11930 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11931 printf "%s\n" "$ac_cs_version"; exit ;;
11932 --config | --confi | --conf | --con | --co | --c )
11933 printf "%s\n" "$ac_cs_config"; exit ;;
11934 --debug | --debu | --deb | --de | --d | -d )
11935 debug=: ;;
11936 --file | --fil | --fi | --f )
11937 $ac_shift
11938 case $ac_optarg in
11939 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11940 '') as_fn_error $? "missing file argument" ;;
11941 esac
11942 as_fn_append CONFIG_FILES " '$ac_optarg'"
11943 ac_need_defaults=false;;
11944 --header | --heade | --head | --hea )
11945 $ac_shift
11946 case $ac_optarg in
11947 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11948 esac
11949 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11950 ac_need_defaults=false;;
11951 --he | --h)
11952 # Conflict between --help and --header
11953 as_fn_error $? "ambiguous option: \`$1'
11954 Try \`$0 --help' for more information.";;
11955 --help | --hel | -h )
11956 printf "%s\n" "$ac_cs_usage"; exit ;;
11957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11958 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11959 ac_cs_silent=: ;;
11960
11961 # This is an error.
11962 -*) as_fn_error $? "unrecognized option: \`$1'
11963 Try \`$0 --help' for more information." ;;
11964
11965 *) as_fn_append ac_config_targets " $1"
11966 ac_need_defaults=false ;;
11967
11968 esac
11969 shift
11970 done
11971
11972 ac_configure_extra_args=
11973
11974 if $ac_cs_silent; then
11975 exec 6>/dev/null
11976 ac_configure_extra_args="$ac_configure_extra_args --silent"
11977 fi
11978
11979 _ACEOF
11980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11981 if \$ac_cs_recheck; then
11982 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11983 shift
11984 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11985 CONFIG_SHELL='$SHELL'
11986 export CONFIG_SHELL
11987 exec "\$@"
11988 fi
11989
11990 _ACEOF
11991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11992 exec 5>>config.log
11993 {
11994 echo
11995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11996 ## Running $as_me. ##
11997 _ASBOX
11998 printf "%s\n" "$ac_log"
11999 } >&5
12000
12001 _ACEOF
12002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12003 #
12004 # INIT-COMMANDS
12005 #
12006 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12007
12008 _ACEOF
12009
12010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12011
12012 # Handling of arguments.
12013 for ac_config_target in $ac_config_targets
12014 do
12015 case $ac_config_target in
12016 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12017 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12018 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12019 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12020
12021 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12022 esac
12023 done
12024
12025
12026 # If the user did not use the arguments to specify the items to instantiate,
12027 # then the envvar interface is used. Set only those that are not.
12028 # We use the long form for the default assignment because of an extremely
12029 # bizarre bug on SunOS 4.1.3.
12030 if $ac_need_defaults; then
12031 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12032 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12033 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12034 fi
12035
12036 # Have a temporary directory for convenience. Make it in the build tree
12037 # simply because there is no reason against having it here, and in addition,
12038 # creating and moving files from /tmp can sometimes cause problems.
12039 # Hook for its removal unless debugging.
12040 # Note that there is a small window in which the directory will not be cleaned:
12041 # after its creation but before its name has been assigned to `$tmp'.
12042 $debug ||
12043 {
12044 tmp= ac_tmp=
12045 trap 'exit_status=$?
12046 : "${ac_tmp:=$tmp}"
12047 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12048 ' 0
12049 trap 'as_fn_exit 1' 1 2 13 15
12050 }
12051 # Create a (secure) tmp directory for tmp files.
12052
12053 {
12054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12055 test -d "$tmp"
12056 } ||
12057 {
12058 tmp=./conf$$-$RANDOM
12059 (umask 077 && mkdir "$tmp")
12060 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12061 ac_tmp=$tmp
12062
12063 # Set up the scripts for CONFIG_FILES section.
12064 # No need to generate them if there are no CONFIG_FILES.
12065 # This happens for instance with `./config.status config.h'.
12066 if test -n "$CONFIG_FILES"; then
12067
12068
12069 ac_cr=`echo X | tr X '\015'`
12070 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12071 # But we know of no other shell where ac_cr would be empty at this
12072 # point, so we can use a bashism as a fallback.
12073 if test "x$ac_cr" = x; then
12074 eval ac_cr=\$\'\\r\'
12075 fi
12076 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12077 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12078 ac_cs_awk_cr='\\r'
12079 else
12080 ac_cs_awk_cr=$ac_cr
12081 fi
12082
12083 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12084 _ACEOF
12085
12086
12087 {
12088 echo "cat >conf$$subs.awk <<_ACEOF" &&
12089 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12090 echo "_ACEOF"
12091 } >conf$$subs.sh ||
12092 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12093 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12094 ac_delim='%!_!# '
12095 for ac_last_try in false false false false false :; do
12096 . ./conf$$subs.sh ||
12097 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12098
12099 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12100 if test $ac_delim_n = $ac_delim_num; then
12101 break
12102 elif $ac_last_try; then
12103 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12104 else
12105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12106 fi
12107 done
12108 rm -f conf$$subs.sh
12109
12110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12111 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12112 _ACEOF
12113 sed -n '
12114 h
12115 s/^/S["/; s/!.*/"]=/
12116 p
12117 g
12118 s/^[^!]*!//
12119 :repl
12120 t repl
12121 s/'"$ac_delim"'$//
12122 t delim
12123 :nl
12124 h
12125 s/\(.\{148\}\)..*/\1/
12126 t more1
12127 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12128 p
12129 n
12130 b repl
12131 :more1
12132 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12133 p
12134 g
12135 s/.\{148\}//
12136 t nl
12137 :delim
12138 h
12139 s/\(.\{148\}\)..*/\1/
12140 t more2
12141 s/["\\]/\\&/g; s/^/"/; s/$/"/
12142 p
12143 b
12144 :more2
12145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12146 p
12147 g
12148 s/.\{148\}//
12149 t delim
12150 ' <conf$$subs.awk | sed '
12151 /^[^""]/{
12152 N
12153 s/\n//
12154 }
12155 ' >>$CONFIG_STATUS || ac_write_fail=1
12156 rm -f conf$$subs.awk
12157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12158 _ACAWK
12159 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12160 for (key in S) S_is_set[key] = 1
12161 FS = ""
12162
12163 }
12164 {
12165 line = $ 0
12166 nfields = split(line, field, "@")
12167 substed = 0
12168 len = length(field[1])
12169 for (i = 2; i < nfields; i++) {
12170 key = field[i]
12171 keylen = length(key)
12172 if (S_is_set[key]) {
12173 value = S[key]
12174 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12175 len += length(value) + length(field[++i])
12176 substed = 1
12177 } else
12178 len += 1 + keylen
12179 }
12180
12181 print line
12182 }
12183
12184 _ACAWK
12185 _ACEOF
12186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12187 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12188 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12189 else
12190 cat
12191 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12192 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12193 _ACEOF
12194
12195 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12196 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12197 # trailing colons and then remove the whole line if VPATH becomes empty
12198 # (actually we leave an empty line to preserve line numbers).
12199 if test "x$srcdir" = x.; then
12200 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12201 h
12202 s///
12203 s/^/:/
12204 s/[ ]*$/:/
12205 s/:\$(srcdir):/:/g
12206 s/:\${srcdir}:/:/g
12207 s/:@srcdir@:/:/g
12208 s/^:*//
12209 s/:*$//
12210 x
12211 s/\(=[ ]*\).*/\1/
12212 G
12213 s/\n//
12214 s/^[^=]*=[ ]*$//
12215 }'
12216 fi
12217
12218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12219 fi # test -n "$CONFIG_FILES"
12220
12221 # Set up the scripts for CONFIG_HEADERS section.
12222 # No need to generate them if there are no CONFIG_HEADERS.
12223 # This happens for instance with `./config.status Makefile'.
12224 if test -n "$CONFIG_HEADERS"; then
12225 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12226 BEGIN {
12227 _ACEOF
12228
12229 # Transform confdefs.h into an awk script `defines.awk', embedded as
12230 # here-document in config.status, that substitutes the proper values into
12231 # config.h.in to produce config.h.
12232
12233 # Create a delimiter string that does not exist in confdefs.h, to ease
12234 # handling of long lines.
12235 ac_delim='%!_!# '
12236 for ac_last_try in false false :; do
12237 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12238 if test -z "$ac_tt"; then
12239 break
12240 elif $ac_last_try; then
12241 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12242 else
12243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12244 fi
12245 done
12246
12247 # For the awk script, D is an array of macro values keyed by name,
12248 # likewise P contains macro parameters if any. Preserve backslash
12249 # newline sequences.
12250
12251 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12252 sed -n '
12253 s/.\{148\}/&'"$ac_delim"'/g
12254 t rset
12255 :rset
12256 s/^[ ]*#[ ]*define[ ][ ]*/ /
12257 t def
12258 d
12259 :def
12260 s/\\$//
12261 t bsnl
12262 s/["\\]/\\&/g
12263 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12264 D["\1"]=" \3"/p
12265 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12266 d
12267 :bsnl
12268 s/["\\]/\\&/g
12269 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12270 D["\1"]=" \3\\\\\\n"\\/p
12271 t cont
12272 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12273 t cont
12274 d
12275 :cont
12276 n
12277 s/.\{148\}/&'"$ac_delim"'/g
12278 t clear
12279 :clear
12280 s/\\$//
12281 t bsnlc
12282 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12283 d
12284 :bsnlc
12285 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12286 b cont
12287 ' <confdefs.h | sed '
12288 s/'"$ac_delim"'/"\\\
12289 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12290
12291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12292 for (key in D) D_is_set[key] = 1
12293 FS = ""
12294 }
12295 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12296 line = \$ 0
12297 split(line, arg, " ")
12298 if (arg[1] == "#") {
12299 defundef = arg[2]
12300 mac1 = arg[3]
12301 } else {
12302 defundef = substr(arg[1], 2)
12303 mac1 = arg[2]
12304 }
12305 split(mac1, mac2, "(") #)
12306 macro = mac2[1]
12307 prefix = substr(line, 1, index(line, defundef) - 1)
12308 if (D_is_set[macro]) {
12309 # Preserve the white space surrounding the "#".
12310 print prefix "define", macro P[macro] D[macro]
12311 next
12312 } else {
12313 # Replace #undef with comments. This is necessary, for example,
12314 # in the case of _POSIX_SOURCE, which is predefined and required
12315 # on some systems where configure will not decide to define it.
12316 if (defundef == "undef") {
12317 print "/*", prefix defundef, macro, "*/"
12318 next
12319 }
12320 }
12321 }
12322 { print }
12323 _ACAWK
12324 _ACEOF
12325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12326 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12327 fi # test -n "$CONFIG_HEADERS"
12328
12329
12330 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12331 shift
12332 for ac_tag
12333 do
12334 case $ac_tag in
12335 :[FHLC]) ac_mode=$ac_tag; continue;;
12336 esac
12337 case $ac_mode$ac_tag in
12338 :[FHL]*:*);;
12339 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12340 :[FH]-) ac_tag=-:-;;
12341 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12342 esac
12343 ac_save_IFS=$IFS
12344 IFS=:
12345 set x $ac_tag
12346 IFS=$ac_save_IFS
12347 shift
12348 ac_file=$1
12349 shift
12350
12351 case $ac_mode in
12352 :L) ac_source=$1;;
12353 :[FH])
12354 ac_file_inputs=
12355 for ac_f
12356 do
12357 case $ac_f in
12358 -) ac_f="$ac_tmp/stdin";;
12359 *) # Look for the file first in the build tree, then in the source tree
12360 # (if the path is not absolute). The absolute path cannot be DOS-style,
12361 # because $ac_f cannot contain `:'.
12362 test -f "$ac_f" ||
12363 case $ac_f in
12364 [\\/$]*) false;;
12365 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12366 esac ||
12367 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12368 esac
12369 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12370 as_fn_append ac_file_inputs " '$ac_f'"
12371 done
12372
12373 # Let's still pretend it is `configure' which instantiates (i.e., don't
12374 # use $as_me), people would be surprised to read:
12375 # /* config.h. Generated by config.status. */
12376 configure_input='Generated from '`
12377 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12378 `' by configure.'
12379 if test x"$ac_file" != x-; then
12380 configure_input="$ac_file. $configure_input"
12381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12382 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12383 fi
12384 # Neutralize special characters interpreted by sed in replacement strings.
12385 case $configure_input in #(
12386 *\&* | *\|* | *\\* )
12387 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12388 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12389 *) ac_sed_conf_input=$configure_input;;
12390 esac
12391
12392 case $ac_tag in
12393 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12395 esac
12396 ;;
12397 esac
12398
12399 ac_dir=`$as_dirname -- "$ac_file" ||
12400 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12401 X"$ac_file" : 'X\(//\)[^/]' \| \
12402 X"$ac_file" : 'X\(//\)$' \| \
12403 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12404 printf "%s\n" X"$ac_file" |
12405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12406 s//\1/
12407 q
12408 }
12409 /^X\(\/\/\)[^/].*/{
12410 s//\1/
12411 q
12412 }
12413 /^X\(\/\/\)$/{
12414 s//\1/
12415 q
12416 }
12417 /^X\(\/\).*/{
12418 s//\1/
12419 q
12420 }
12421 s/.*/./; q'`
12422 as_dir="$ac_dir"; as_fn_mkdir_p
12423 ac_builddir=.
12424
12425 case "$ac_dir" in
12426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12427 *)
12428 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12429 # A ".." for each directory in $ac_dir_suffix.
12430 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12431 case $ac_top_builddir_sub in
12432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12434 esac ;;
12435 esac
12436 ac_abs_top_builddir=$ac_pwd
12437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12438 # for backward compatibility:
12439 ac_top_builddir=$ac_top_build_prefix
12440
12441 case $srcdir in
12442 .) # We are building in place.
12443 ac_srcdir=.
12444 ac_top_srcdir=$ac_top_builddir_sub
12445 ac_abs_top_srcdir=$ac_pwd ;;
12446 [\\/]* | ?:[\\/]* ) # Absolute name.
12447 ac_srcdir=$srcdir$ac_dir_suffix;
12448 ac_top_srcdir=$srcdir
12449 ac_abs_top_srcdir=$srcdir ;;
12450 *) # Relative name.
12451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12452 ac_top_srcdir=$ac_top_build_prefix$srcdir
12453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12454 esac
12455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12456
12457
12458 case $ac_mode in
12459 :F)
12460 #
12461 # CONFIG_FILE
12462 #
12463
12464 case $INSTALL in
12465 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12466 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12467 esac
12468 ac_MKDIR_P=$MKDIR_P
12469 case $MKDIR_P in
12470 [\\/$]* | ?:[\\/]* ) ;;
12471 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12472 esac
12473 _ACEOF
12474
12475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12476 # If the template does not know about datarootdir, expand it.
12477 # FIXME: This hack should be removed a few years after 2.60.
12478 ac_datarootdir_hack=; ac_datarootdir_seen=
12479 ac_sed_dataroot='
12480 /datarootdir/ {
12481 p
12482 q
12483 }
12484 /@datadir@/p
12485 /@docdir@/p
12486 /@infodir@/p
12487 /@localedir@/p
12488 /@mandir@/p'
12489 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12490 *datarootdir*) ac_datarootdir_seen=yes;;
12491 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12493 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12494 _ACEOF
12495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12496 ac_datarootdir_hack='
12497 s&@datadir@&$datadir&g
12498 s&@docdir@&$docdir&g
12499 s&@infodir@&$infodir&g
12500 s&@localedir@&$localedir&g
12501 s&@mandir@&$mandir&g
12502 s&\\\${datarootdir}&$datarootdir&g' ;;
12503 esac
12504 _ACEOF
12505
12506 # Neutralize VPATH when `$srcdir' = `.'.
12507 # Shell code in configure.ac might set extrasub.
12508 # FIXME: do we really want to maintain this feature?
12509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12510 ac_sed_extra="$ac_vpsub
12511 $extrasub
12512 _ACEOF
12513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12514 :t
12515 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12516 s|@configure_input@|$ac_sed_conf_input|;t t
12517 s&@top_builddir@&$ac_top_builddir_sub&;t t
12518 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12519 s&@srcdir@&$ac_srcdir&;t t
12520 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12521 s&@top_srcdir@&$ac_top_srcdir&;t t
12522 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12523 s&@builddir@&$ac_builddir&;t t
12524 s&@abs_builddir@&$ac_abs_builddir&;t t
12525 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12526 s&@INSTALL@&$ac_INSTALL&;t t
12527 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12528 $ac_datarootdir_hack
12529 "
12530 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12531 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12532
12533 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12534 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12535 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12536 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12538 which seems to be undefined. Please make sure it is defined" >&5
12539 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12540 which seems to be undefined. Please make sure it is defined" >&2;}
12541
12542 rm -f "$ac_tmp/stdin"
12543 case $ac_file in
12544 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12545 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12546 esac \
12547 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12548 ;;
12549 :H)
12550 #
12551 # CONFIG_HEADER
12552 #
12553 if test x"$ac_file" != x-; then
12554 {
12555 printf "%s\n" "/* $configure_input */" >&1 \
12556 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12557 } >"$ac_tmp/config.h" \
12558 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12559 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12561 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12562 else
12563 rm -f "$ac_file"
12564 mv "$ac_tmp/config.h" "$ac_file" \
12565 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12566 fi
12567 else
12568 printf "%s\n" "/* $configure_input */" >&1 \
12569 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12570 || as_fn_error $? "could not create -" "$LINENO" 5
12571 fi
12572 # Compute "$ac_file"'s index in $config_headers.
12573 _am_arg="$ac_file"
12574 _am_stamp_count=1
12575 for _am_header in $config_headers :; do
12576 case $_am_header in
12577 $_am_arg | $_am_arg:* )
12578 break ;;
12579 * )
12580 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12581 esac
12582 done
12583 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12584 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12585 X"$_am_arg" : 'X\(//\)[^/]' \| \
12586 X"$_am_arg" : 'X\(//\)$' \| \
12587 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12588 printf "%s\n" X"$_am_arg" |
12589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12590 s//\1/
12591 q
12592 }
12593 /^X\(\/\/\)[^/].*/{
12594 s//\1/
12595 q
12596 }
12597 /^X\(\/\/\)$/{
12598 s//\1/
12599 q
12600 }
12601 /^X\(\/\).*/{
12602 s//\1/
12603 q
12604 }
12605 s/.*/./; q'`/stamp-h$_am_stamp_count
12606 ;;
12607
12608 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12609 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12610 ;;
12611 esac
12612
12613
12614 case $ac_file$ac_mode in
12615 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12616 # Older Autoconf quotes --file arguments for eval, but not when files
12617 # are listed without --file. Let's play safe and only enable the eval
12618 # if we detect the quoting.
12619 # TODO: see whether this extra hack can be removed once we start
12620 # requiring Autoconf 2.70 or later.
12621 case $CONFIG_FILES in #(
12622 *\'*) :
12623 eval set x "$CONFIG_FILES" ;; #(
12624 *) :
12625 set x $CONFIG_FILES ;; #(
12626 *) :
12627 ;;
12628 esac
12629 shift
12630 # Used to flag and report bootstrapping failures.
12631 am_rc=0
12632 for am_mf
12633 do
12634 # Strip MF so we end up with the name of the file.
12635 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12636 # Check whether this is an Automake generated Makefile which includes
12637 # dependency-tracking related rules and includes.
12638 # Grep'ing the whole file directly is not great: AIX grep has a line
12639 # limit of 2048, but all sed's we know have understand at least 4000.
12640 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12641 || continue
12642 am_dirpart=`$as_dirname -- "$am_mf" ||
12643 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12644 X"$am_mf" : 'X\(//\)[^/]' \| \
12645 X"$am_mf" : 'X\(//\)$' \| \
12646 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12647 printf "%s\n" X"$am_mf" |
12648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12649 s//\1/
12650 q
12651 }
12652 /^X\(\/\/\)[^/].*/{
12653 s//\1/
12654 q
12655 }
12656 /^X\(\/\/\)$/{
12657 s//\1/
12658 q
12659 }
12660 /^X\(\/\).*/{
12661 s//\1/
12662 q
12663 }
12664 s/.*/./; q'`
12665 am_filepart=`$as_basename -- "$am_mf" ||
12666 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12667 X"$am_mf" : 'X\(//\)$' \| \
12668 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12669 printf "%s\n" X/"$am_mf" |
12670 sed '/^.*\/\([^/][^/]*\)\/*$/{
12671 s//\1/
12672 q
12673 }
12674 /^X\/\(\/\/\)$/{
12675 s//\1/
12676 q
12677 }
12678 /^X\/\(\/\).*/{
12679 s//\1/
12680 q
12681 }
12682 s/.*/./; q'`
12683 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12684 && sed -e '/# am--include-marker/d' "$am_filepart" \
12685 | $MAKE -f - am--depfiles" >&5
12686 (cd "$am_dirpart" \
12687 && sed -e '/# am--include-marker/d' "$am_filepart" \
12688 | $MAKE -f - am--depfiles) >&5 2>&5
12689 ac_status=$?
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } || am_rc=$?
12692 done
12693 if test $am_rc -ne 0; then
12694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12695 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12696 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12697 for automatic dependency tracking. If GNU make was not used, consider
12698 re-running the configure script with MAKE=\"gmake\" (or whatever is
12699 necessary). You can also try re-running configure with the
12700 '--disable-dependency-tracking' option to at least be able to build
12701 the package (albeit without support for automatic dependency tracking).
12702 See \`config.log' for more details" "$LINENO" 5; }
12703 fi
12704 { am_dirpart=; unset am_dirpart;}
12705 { am_filepart=; unset am_filepart;}
12706 { am_mf=; unset am_mf;}
12707 { am_rc=; unset am_rc;}
12708 rm -f conftest-deps.mk
12709 }
12710 ;;
12711
12712 esac
12713 done # for ac_tag
12714
12715
12716 as_fn_exit 0
12717 _ACEOF
12718 ac_clean_files=$ac_clean_files_save
12719
12720 test $ac_write_fail = 0 ||
12721 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12722
12723
12724 # configure is writing to config.log, and then calls config.status.
12725 # config.status does its own redirection, appending to config.log.
12726 # Unfortunately, on DOS this fails, as config.log is still kept open
12727 # by configure, so config.status won't be able to write to it; its
12728 # output is simply discarded. So we exec the FD to /dev/null,
12729 # effectively closing config.log, so it can be properly (re)opened and
12730 # appended to by config.status. When coming back to configure, we
12731 # need to make the FD available again.
12732 if test "$no_create" != yes; then
12733 ac_cs_success=:
12734 ac_config_status_args=
12735 test "$silent" = yes &&
12736 ac_config_status_args="$ac_config_status_args --quiet"
12737 exec 5>/dev/null
12738 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12739 exec 5>>config.log
12740 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12741 # would make configure fail if this is the last instruction.
12742 $ac_cs_success || as_fn_exit 1
12743 fi
12744 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12746 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12747 fi
12748
12749
12750