configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for fonttosfnt 1.2.4.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 $0: https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/issues
275 $0: about your system, including any error possibly output
276 $0: before this message. Then install a modern shell, or
277 $0: manually run the script under such a shell if you do
278 $0: have one."
279 fi
280 exit 1
281 fi ;;
282 esac
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else case e in #(
390 e) as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 } ;;
394 esac
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else case e in #(
409 e) as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 } ;;
413 esac
414 fi # as_fn_arith
415
416
417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
418 # ----------------------------------------
419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421 # script with STATUS, using 1 if that was 0.
422 as_fn_error ()
423 {
424 as_status=$1; test $as_status -eq 0 && as_status=1
425 if test "$4"; then
426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 fi
429 printf "%s\n" "$as_me: error: $2" >&2
430 as_fn_exit $as_status
431 } # as_fn_error
432
433 if expr a : '\(a\)' >/dev/null 2>&1 &&
434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
435 as_expr=expr
436 else
437 as_expr=false
438 fi
439
440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441 as_basename=basename
442 else
443 as_basename=false
444 fi
445
446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447 as_dirname=dirname
448 else
449 as_dirname=false
450 fi
451
452 as_me=`$as_basename -- "$0" ||
453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454 X"$0" : 'X\(//\)$' \| \
455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 printf "%s\n" X/"$0" |
457 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\/\)$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\).*/{
466 s//\1/
467 q
468 }
469 s/.*/./; q'`
470
471 # Avoid depending upon Character Ranges.
472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475 as_cr_digits='0123456789'
476 as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479 as_lineno_1=$LINENO as_lineno_1a=$LINENO
480 as_lineno_2=$LINENO as_lineno_2a=$LINENO
481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 sed -n '
485 p
486 /[$]LINENO/=
487 ' <$as_myself |
488 sed '
489 t clear
490 :clear
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516
517 # Determine whether it's possible to make 'echo' print without a newline.
518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519 # for compatibility with existing Makefiles.
520 ECHO_C= ECHO_N= ECHO_T=
521 case `echo -n x` in #(((((
522 -n*)
523 case `echo 'xy\c'` in
524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
525 xy) ECHO_C='\c';;
526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
527 ECHO_T=' ';;
528 esac;;
529 *)
530 ECHO_N='-n';;
531 esac
532
533 # For backward compatibility with old third-party macros, we provide
534 # the shell variables $as_echo and $as_echo_n. New code should use
535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536 as_echo='printf %s\n'
537 as_echo_n='printf %s'
538
539 rm -f conf$$ conf$$.exe conf$$.file
540 if test -d conf$$.dir; then
541 rm -f conf$$.dir/conf$$.file
542 else
543 rm -f conf$$.dir
544 mkdir conf$$.dir 2>/dev/null
545 fi
546 if (echo >conf$$.file) 2>/dev/null; then
547 if ln -s conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s='ln -s'
549 # ... but there are two gotchas:
550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552 # In both cases, we have to default to 'cp -pR'.
553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554 as_ln_s='cp -pR'
555 elif ln conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s=ln
557 else
558 as_ln_s='cp -pR'
559 fi
560 else
561 as_ln_s='cp -pR'
562 fi
563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564 rmdir conf$$.dir 2>/dev/null
565
566 if mkdir -p . 2>/dev/null; then
567 as_mkdir_p='mkdir -p "$as_dir"'
568 else
569 test -d ./-p && rmdir ./-p
570 as_mkdir_p=false
571 fi
572
573 as_test_x='test -x'
574 as_executable_p=as_fn_executable_p
575
576 # Sed expression to map a string onto a valid CPP name.
577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580 # Sed expression to map a string onto a valid variable name.
581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585 test -n "$DJDIR" || exec 7<&0 </dev/null
586 exec 6>&1
587
588 # Name of the host.
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593 #
594 # Initializations.
595 #
596 ac_default_prefix=/usr/local
597 ac_clean_files=
598 ac_config_libobj_dir=.
599 LIBOBJS=
600 cross_compiling=no
601 subdirs=
602 MFLAGS=
603 MAKEFLAGS=
604
605 # Identity of this package.
606 PACKAGE_NAME='fonttosfnt'
607 PACKAGE_TARNAME='fonttosfnt'
608 PACKAGE_VERSION='1.2.4'
609 PACKAGE_STRING='fonttosfnt 1.2.4'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 ac_subst_vars='am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 LIBOBJS
650 FONTTOSFNT_LIBS
651 FONTTOSFNT_CFLAGS
652 NEED_SETENV_FALSE
653 NEED_SETENV_TRUE
654 MAN_SUBSTS
655 XORG_MAN_PAGE
656 ADMIN_MAN_DIR
657 DRIVER_MAN_DIR
658 MISC_MAN_DIR
659 FILE_MAN_DIR
660 LIB_MAN_DIR
661 APP_MAN_DIR
662 ADMIN_MAN_SUFFIX
663 DRIVER_MAN_SUFFIX
664 MISC_MAN_SUFFIX
665 FILE_MAN_SUFFIX
666 LIB_MAN_SUFFIX
667 APP_MAN_SUFFIX
668 SED
669 host_os
670 host_vendor
671 host_cpu
672 host
673 build_os
674 build_vendor
675 build_cpu
676 build
677 INSTALL_CMD
678 PKG_CONFIG_LIBDIR
679 PKG_CONFIG_PATH
680 PKG_CONFIG
681 CHANGELOG_CMD
682 STRICT_CFLAGS
683 CWARNFLAGS
684 BASE_CFLAGS
685 am__fastdepCC_FALSE
686 am__fastdepCC_TRUE
687 CCDEPMODE
688 am__nodep
689 AMDEPBACKSLASH
690 AMDEP_FALSE
691 AMDEP_TRUE
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 am__xargs_n
702 am__rm_f_notfound
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 CSCOPE
708 ETAGS
709 CTAGS
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 runstatedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL
772 am__quote'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_silent_rules
777 enable_dependency_tracking
778 enable_selective_werror
779 enable_strict_compilation
780 '
781 ac_precious_vars='build_alias
782 host_alias
783 target_alias
784 CC
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 PKG_CONFIG
790 PKG_CONFIG_PATH
791 PKG_CONFIG_LIBDIR
792 FONTTOSFNT_CFLAGS
793 FONTTOSFNT_LIBS'
794
795
796 # Initialize some variables set by options.
797 ac_init_help=
798 ac_init_version=false
799 ac_unrecognized_opts=
800 ac_unrecognized_sep=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
803 cache_file=/dev/null
804 exec_prefix=NONE
805 no_create=
806 no_recursion=
807 prefix=NONE
808 program_prefix=NONE
809 program_suffix=NONE
810 program_transform_name=s,x,x,
811 silent=
812 site=
813 srcdir=
814 verbose=
815 x_includes=NONE
816 x_libraries=NONE
817
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 runstatedir='${localstatedir}/run'
833 includedir='${prefix}/include'
834 oldincludedir='/usr/include'
835 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836 infodir='${datarootdir}/info'
837 htmldir='${docdir}'
838 dvidir='${docdir}'
839 pdfdir='${docdir}'
840 psdir='${docdir}'
841 libdir='${exec_prefix}/lib'
842 localedir='${datarootdir}/locale'
843 mandir='${datarootdir}/man'
844
845 ac_prev=
846 ac_dashdash=
847 for ac_option
848 do
849 # If the previous option needs an argument, assign it.
850 if test -n "$ac_prev"; then
851 eval $ac_prev=\$ac_option
852 ac_prev=
853 continue
854 fi
855
856 case $ac_option in
857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 *=) ac_optarg= ;;
859 *) ac_optarg=yes ;;
860 esac
861
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
870
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
885
886 -datadir | --datadir | --datadi | --datad)
887 ac_prev=datadir ;;
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
890
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: '$ac_useropt'"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
923
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: '$ac_useropt'"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=\$ac_optarg ;;
939
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
948
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
952
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
959
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
964
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
970
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
977
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
982
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
987
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
994
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
999
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1006
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1011
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1015
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1019
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1023
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1032
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1037
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1044
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1051
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1068
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1073
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1078
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1082
1083 -runstatedir | --runstatedir | --runstatedi | --runstated \
1084 | --runstate | --runstat | --runsta | --runst | --runs \
1085 | --run | --ru | --r)
1086 ac_prev=runstatedir ;;
1087 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1088 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1089 | --run=* | --ru=* | --r=*)
1090 runstatedir=$ac_optarg ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: '$ac_useropt'"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=\$ac_optarg ;;
1152
1153 -without-* | --without-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: '$ac_useropt'"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=no ;;
1168
1169 --x)
1170 # Obsolete; use --with-x.
1171 with_x=yes ;;
1172
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1179
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1186
1187 -*) as_fn_error $? "unrecognized option: '$ac_option'
1188 Try '$0 --help' for more information"
1189 ;;
1190
1191 *=*)
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
1196 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1197 esac
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1200
1201 *)
1202 # FIXME: should be removed in autoconf 3.0.
1203 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 ;;
1208
1209 esac
1210 done
1211
1212 if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error $? "missing argument to $ac_option"
1215 fi
1216
1217 if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1219 no) ;;
1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 esac
1223 fi
1224
1225 # Check all directory arguments for consistency.
1226 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir runstatedir
1230 do
1231 eval ac_val=\$$ac_var
1232 # Remove trailing slashes.
1233 case $ac_val in
1234 */ )
1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\$ac_val;;
1237 esac
1238 # Be sure to have absolute directory names.
1239 case $ac_val in
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242 esac
1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244 done
1245
1246 # There might be people who depend on the old broken behavior: '$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1249 build=$build_alias
1250 host=$host_alias
1251 target=$target_alias
1252
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
1257 elif test "x$build_alias" != "x$host_alias"; then
1258 cross_compiling=yes
1259 fi
1260 fi
1261
1262 ac_tool_prefix=
1263 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265 test "$silent" = yes && exec 6>/dev/null
1266
1267
1268 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269 ac_ls_di=`ls -di .` &&
1270 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271 as_fn_error $? "working directory cannot be determined"
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278 ac_srcdir_defaulted=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir=`$as_dirname -- "$as_myself" ||
1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$as_myself" : 'X\(//\)[^/]' \| \
1283 X"$as_myself" : 'X\(//\)$' \| \
1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285 printf "%s\n" X"$as_myself" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)[^/].*/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\).*/{
1299 s//\1/
1300 q
1301 }
1302 s/.*/./; q'`
1303 srcdir=$ac_confdir
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 srcdir=..
1306 fi
1307 else
1308 ac_srcdir_defaulted=no
1309 fi
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313 fi
1314 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1315 ac_abs_confdir=`(
1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317 pwd)`
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 srcdir=.
1321 fi
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1325 case $srcdir in
1326 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 esac
1328 for ac_var in $ac_precious_vars; do
1329 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_env_${ac_var}_value=\$${ac_var}
1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 done
1334
1335 #
1336 # Report the --help message.
1337 #
1338 if test "$ac_init_help" = "long"; then
1339 # Omit some internal or obsolete options to make the list less imposing.
1340 # This message is too long to be a string in the A/UX 3.1 sh.
1341 cat <<_ACEOF
1342 'configure' configures fonttosfnt 1.2.4 to adapt to many kinds of systems.
1343
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE. See below for descriptions of some of the useful variables.
1348
1349 Defaults for the options are specified in brackets.
1350
1351 Configuration:
1352 -h, --help display this help and exit
1353 --help=short display options specific to this package
1354 --help=recursive display the short help of all the included packages
1355 -V, --version display version information and exit
1356 -q, --quiet, --silent do not print 'checking ...' messages
1357 --cache-file=FILE cache test results in FILE [disabled]
1358 -C, --config-cache alias for '--cache-file=config.cache'
1359 -n, --no-create do not create output files
1360 --srcdir=DIR find the sources in DIR [configure dir or '..']
1361
1362 Installation directories:
1363 --prefix=PREFIX install architecture-independent files in PREFIX
1364 [$ac_default_prefix]
1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 [PREFIX]
1367
1368 By default, 'make install' will install all the files in
1369 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1370 an installation prefix other than '$ac_default_prefix' using '--prefix',
1371 for instance '--prefix=\$HOME'.
1372
1373 For better control, use the options below.
1374
1375 Fine tuning of the installation directories:
1376 --bindir=DIR user executables [EPREFIX/bin]
1377 --sbindir=DIR system admin executables [EPREFIX/sbin]
1378 --libexecdir=DIR program executables [EPREFIX/libexec]
1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1382 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/fonttosfnt]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396 _ACEOF
1397
1398 cat <<\_ACEOF
1399
1400 Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404
1405 System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 _ACEOF
1409 fi
1410
1411 if test -n "$ac_init_help"; then
1412 case $ac_init_help in
1413 short | recursive ) echo "Configuration of fonttosfnt 1.2.4:";;
1414 esac
1415 cat <<\_ACEOF
1416
1417 Optional Features:
1418 --disable-option-checking ignore unrecognized --enable/--with options
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421 --enable-silent-rules less verbose build output (undo: "make V=1")
1422 --disable-silent-rules verbose build output (undo: "make V=0")
1423 --enable-dependency-tracking
1424 do not reject slow dependency extractors
1425 --disable-dependency-tracking
1426 speeds up one-time build
1427 --disable-selective-werror
1428 Turn off selective compiler errors. (default:
1429 enabled)
1430 --enable-strict-compilation
1431 Enable all warnings from compiler and make them
1432 errors (default: disabled)
1433
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 PKG_CONFIG path to pkg-config utility
1443 PKG_CONFIG_PATH
1444 directories to add to pkg-config's search path
1445 PKG_CONFIG_LIBDIR
1446 path overriding pkg-config's built-in search path
1447 FONTTOSFNT_CFLAGS
1448 C compiler flags for FONTTOSFNT, overriding pkg-config
1449 FONTTOSFNT_LIBS
1450 linker flags for FONTTOSFNT, overriding pkg-config
1451
1452 Use these variables to override the choices made by 'configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1454
1455 Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/issues>.
1456 _ACEOF
1457 ac_status=$?
1458 fi
1459
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1467
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *)
1471 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1483
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for configure.gnu first; this name is used for a wrapper for
1502 # Metaconfig's "Configure" on case-insensitive file systems.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
1510 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1514 fi
1515
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1518 cat <<\_ACEOF
1519 fonttosfnt configure 1.2.4
1520 generated by GNU Autoconf 2.72
1521
1522 Copyright (C) 2023 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525 _ACEOF
1526 exit
1527 fi
1528
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1532
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1537 {
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext conftest.beam
1540 if { { ac_try="$ac_compile"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 printf "%s\n" "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext
1559 then :
1560 ac_retval=0
1561 else case e in #(
1562 e) printf "%s\n" "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1 ;;
1566 esac
1567 fi
1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569 as_fn_set_status $ac_retval
1570
1571 } # ac_fn_c_try_compile
1572
1573 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1574 # ------------------------------------------------------------------
1575 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1576 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1577 ac_fn_check_decl ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 as_decl_name=`echo $2|sed 's/ *(.*//'`
1581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1582 printf %s "checking whether $as_decl_name is declared... " >&6; }
1583 if eval test \${$3+y}
1584 then :
1585 printf %s "(cached) " >&6
1586 else case e in #(
1587 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1588 eval ac_save_FLAGS=\$$6
1589 as_fn_append $6 " $5"
1590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591 /* end confdefs.h. */
1592 $4
1593 int
1594 main (void)
1595 {
1596 #ifndef $as_decl_name
1597 #ifdef __cplusplus
1598 (void) $as_decl_use;
1599 #else
1600 (void) $as_decl_name;
1601 #endif
1602 #endif
1603
1604 ;
1605 return 0;
1606 }
1607 _ACEOF
1608 if ac_fn_c_try_compile "$LINENO"
1609 then :
1610 eval "$3=yes"
1611 else case e in #(
1612 e) eval "$3=no" ;;
1613 esac
1614 fi
1615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1616 eval $6=\$ac_save_FLAGS
1617 ;;
1618 esac
1619 fi
1620 eval ac_res=\$$3
1621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 printf "%s\n" "$ac_res" >&6; }
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625 } # ac_fn_check_decl
1626
1627 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists and can be compiled using the include files in
1630 # INCLUDES, setting the cache variable VAR accordingly.
1631 ac_fn_c_check_header_compile ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 printf %s "checking for $2... " >&6; }
1636 if eval test \${$3+y}
1637 then :
1638 printf %s "(cached) " >&6
1639 else case e in #(
1640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1642 $4
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"
1646 then :
1647 eval "$3=yes"
1648 else case e in #(
1649 e) eval "$3=no" ;;
1650 esac
1651 fi
1652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1653 esac
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 case e in #(
1694 e) printf "%s\n" "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1696
1697 ac_retval=1 ;;
1698 esac
1699 fi
1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1702 # interfere with the next link command; also delete a directory that is
1703 # left behind by Apple's compiler. We do this before executing the actions.
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708 } # ac_fn_c_try_link
1709
1710 # ac_fn_c_check_func LINENO FUNC VAR
1711 # ----------------------------------
1712 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1713 ac_fn_c_check_func ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 printf %s "checking for $2... " >&6; }
1718 if eval test \${$3+y}
1719 then :
1720 printf %s "(cached) " >&6
1721 else case e in #(
1722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1726 #define $2 innocuous_$2
1727
1728 /* System header to define __stub macros and hopefully few prototypes,
1729 which can conflict with char $2 (void); below. */
1730
1731 #include <limits.h>
1732 #undef $2
1733
1734 /* Override any GCC internal prototype to avoid an error.
1735 Use char because int might match the return type of a GCC
1736 builtin and then its argument prototype would still apply. */
1737 #ifdef __cplusplus
1738 extern "C"
1739 #endif
1740 char $2 (void);
1741 /* The GNU C library defines this for functions which it implements
1742 to always fail with ENOSYS. Some functions are actually named
1743 something starting with __ and the normal name is an alias. */
1744 #if defined __stub_$2 || defined __stub___$2
1745 choke me
1746 #endif
1747
1748 int
1749 main (void)
1750 {
1751 return $2 ();
1752 ;
1753 return 0;
1754 }
1755 _ACEOF
1756 if ac_fn_c_try_link "$LINENO"
1757 then :
1758 eval "$3=yes"
1759 else case e in #(
1760 e) eval "$3=no" ;;
1761 esac
1762 fi
1763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1764 conftest$ac_exeext conftest.$ac_ext ;;
1765 esac
1766 fi
1767 eval ac_res=\$$3
1768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 printf "%s\n" "$ac_res" >&6; }
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772 } # ac_fn_c_check_func
1773 ac_configure_args_raw=
1774 for ac_arg
1775 do
1776 case $ac_arg in
1777 *\'*)
1778 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 esac
1780 as_fn_append ac_configure_args_raw " '$ac_arg'"
1781 done
1782
1783 case $ac_configure_args_raw in
1784 *$as_nl*)
1785 ac_safe_unquote= ;;
1786 *)
1787 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1788 ac_unsafe_a="$ac_unsafe_z#~"
1789 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1790 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1791 esac
1792
1793 cat >config.log <<_ACEOF
1794 This file contains any messages produced by compilers while
1795 running configure, to aid debugging if configure makes a mistake.
1796
1797 It was created by fonttosfnt $as_me 1.2.4, which was
1798 generated by GNU Autoconf 2.72. Invocation command line was
1799
1800 $ $0$ac_configure_args_raw
1801
1802 _ACEOF
1803 exec 5>>config.log
1804 {
1805 cat <<_ASUNAME
1806 ## --------- ##
1807 ## Platform. ##
1808 ## --------- ##
1809
1810 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1811 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1812 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1813 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1814 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1815
1816 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1817 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1818
1819 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1820 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1821 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1822 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1823 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1824 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1825 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1826
1827 _ASUNAME
1828
1829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 for as_dir in $PATH
1831 do
1832 IFS=$as_save_IFS
1833 case $as_dir in #(((
1834 '') as_dir=./ ;;
1835 */) ;;
1836 *) as_dir=$as_dir/ ;;
1837 esac
1838 printf "%s\n" "PATH: $as_dir"
1839 done
1840 IFS=$as_save_IFS
1841
1842 } >&5
1843
1844 cat >&5 <<_ACEOF
1845
1846
1847 ## ----------- ##
1848 ## Core tests. ##
1849 ## ----------- ##
1850
1851 _ACEOF
1852
1853
1854 # Keep a trace of the command line.
1855 # Strip out --no-create and --no-recursion so they do not pile up.
1856 # Strip out --silent because we don't want to record it for future runs.
1857 # Also quote any args containing shell meta-characters.
1858 # Make two passes to allow for proper duplicate-argument suppression.
1859 ac_configure_args=
1860 ac_configure_args0=
1861 ac_configure_args1=
1862 ac_must_keep_next=false
1863 for ac_pass in 1 2
1864 do
1865 for ac_arg
1866 do
1867 case $ac_arg in
1868 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1870 | -silent | --silent | --silen | --sile | --sil)
1871 continue ;;
1872 *\'*)
1873 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1874 esac
1875 case $ac_pass in
1876 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1877 2)
1878 as_fn_append ac_configure_args1 " '$ac_arg'"
1879 if test $ac_must_keep_next = true; then
1880 ac_must_keep_next=false # Got value, back to normal.
1881 else
1882 case $ac_arg in
1883 *=* | --config-cache | -C | -disable-* | --disable-* \
1884 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1885 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1886 | -with-* | --with-* | -without-* | --without-* | --x)
1887 case "$ac_configure_args0 " in
1888 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1889 esac
1890 ;;
1891 -* ) ac_must_keep_next=true ;;
1892 esac
1893 fi
1894 as_fn_append ac_configure_args " '$ac_arg'"
1895 ;;
1896 esac
1897 done
1898 done
1899 { ac_configure_args0=; unset ac_configure_args0;}
1900 { ac_configure_args1=; unset ac_configure_args1;}
1901
1902 # When interrupted or exit'd, cleanup temporary files, and complete
1903 # config.log. We remove comments because anyway the quotes in there
1904 # would cause problems or look ugly.
1905 # WARNING: Use '\'' to represent an apostrophe within the trap.
1906 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1907 trap 'exit_status=$?
1908 # Sanitize IFS.
1909 IFS=" "" $as_nl"
1910 # Save into config.log some information that might help in debugging.
1911 {
1912 echo
1913
1914 printf "%s\n" "## ---------------- ##
1915 ## Cache variables. ##
1916 ## ---------------- ##"
1917 echo
1918 # The following way of writing the cache mishandles newlines in values,
1919 (
1920 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1921 eval ac_val=\$$ac_var
1922 case $ac_val in #(
1923 *${as_nl}*)
1924 case $ac_var in #(
1925 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1926 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1927 esac
1928 case $ac_var in #(
1929 _ | IFS | as_nl) ;; #(
1930 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1931 *) { eval $ac_var=; unset $ac_var;} ;;
1932 esac ;;
1933 esac
1934 done
1935 (set) 2>&1 |
1936 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1937 *${as_nl}ac_space=\ *)
1938 sed -n \
1939 "s/'\''/'\''\\\\'\'''\''/g;
1940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1941 ;; #(
1942 *)
1943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1944 ;;
1945 esac |
1946 sort
1947 )
1948 echo
1949
1950 printf "%s\n" "## ----------------- ##
1951 ## Output variables. ##
1952 ## ----------------- ##"
1953 echo
1954 for ac_var in $ac_subst_vars
1955 do
1956 eval ac_val=\$$ac_var
1957 case $ac_val in
1958 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1959 esac
1960 printf "%s\n" "$ac_var='\''$ac_val'\''"
1961 done | sort
1962 echo
1963
1964 if test -n "$ac_subst_files"; then
1965 printf "%s\n" "## ------------------- ##
1966 ## File substitutions. ##
1967 ## ------------------- ##"
1968 echo
1969 for ac_var in $ac_subst_files
1970 do
1971 eval ac_val=\$$ac_var
1972 case $ac_val in
1973 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1974 esac
1975 printf "%s\n" "$ac_var='\''$ac_val'\''"
1976 done | sort
1977 echo
1978 fi
1979
1980 if test -s confdefs.h; then
1981 printf "%s\n" "## ----------- ##
1982 ## confdefs.h. ##
1983 ## ----------- ##"
1984 echo
1985 cat confdefs.h
1986 echo
1987 fi
1988 test "$ac_signal" != 0 &&
1989 printf "%s\n" "$as_me: caught signal $ac_signal"
1990 printf "%s\n" "$as_me: exit $exit_status"
1991 } >&5
1992 rm -f core *.core core.conftest.* &&
1993 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1994 exit $exit_status
1995 ' 0
1996 for ac_signal in 1 2 13 15; do
1997 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1998 done
1999 ac_signal=0
2000
2001 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2002 rm -f -r conftest* confdefs.h
2003
2004 printf "%s\n" "/* confdefs.h */" > confdefs.h
2005
2006 # Predefined preprocessor variables.
2007
2008 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2009
2010 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2011
2012 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2013
2014 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2015
2016 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2017
2018 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2019
2020
2021 # Let the site file select an alternate cache file if it wants to.
2022 # Prefer an explicitly selected file to automatically selected ones.
2023 if test -n "$CONFIG_SITE"; then
2024 ac_site_files="$CONFIG_SITE"
2025 elif test "x$prefix" != xNONE; then
2026 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2027 else
2028 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2029 fi
2030
2031 for ac_site_file in $ac_site_files
2032 do
2033 case $ac_site_file in #(
2034 */*) :
2035 ;; #(
2036 *) :
2037 ac_site_file=./$ac_site_file ;;
2038 esac
2039 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2041 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2042 sed 's/^/| /' "$ac_site_file" >&5
2043 . "$ac_site_file" \
2044 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2045 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2046 as_fn_error $? "failed to load site script $ac_site_file
2047 See 'config.log' for more details" "$LINENO" 5; }
2048 fi
2049 done
2050
2051 if test -r "$cache_file"; then
2052 # Some versions of bash will fail to source /dev/null (special files
2053 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2054 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2056 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2057 case $cache_file in
2058 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2059 *) . "./$cache_file";;
2060 esac
2061 fi
2062 else
2063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2064 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2065 >$cache_file
2066 fi
2067
2068 # Test code for whether the C compiler supports C89 (global declarations)
2069 ac_c_conftest_c89_globals='
2070 /* Does the compiler advertise C89 conformance?
2071 Do not test the value of __STDC__, because some compilers set it to 0
2072 while being otherwise adequately conformant. */
2073 #if !defined __STDC__
2074 # error "Compiler does not advertise C89 conformance"
2075 #endif
2076
2077 #include <stddef.h>
2078 #include <stdarg.h>
2079 struct stat;
2080 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2081 struct buf { int x; };
2082 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2083 static char *e (char **p, int i)
2084 {
2085 return p[i];
2086 }
2087 static char *f (char * (*g) (char **, int), char **p, ...)
2088 {
2089 char *s;
2090 va_list v;
2091 va_start (v,p);
2092 s = g (p, va_arg (v,int));
2093 va_end (v);
2094 return s;
2095 }
2096
2097 /* C89 style stringification. */
2098 #define noexpand_stringify(a) #a
2099 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2100
2101 /* C89 style token pasting. Exercises some of the corner cases that
2102 e.g. old MSVC gets wrong, but not very hard. */
2103 #define noexpand_concat(a,b) a##b
2104 #define expand_concat(a,b) noexpand_concat(a,b)
2105 extern int vA;
2106 extern int vbee;
2107 #define aye A
2108 #define bee B
2109 int *pvA = &expand_concat(v,aye);
2110 int *pvbee = &noexpand_concat(v,bee);
2111
2112 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2113 function prototypes and stuff, but not \xHH hex character constants.
2114 These do not provoke an error unfortunately, instead are silently treated
2115 as an "x". The following induces an error, until -std is added to get
2116 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2117 array size at least. It is necessary to write \x00 == 0 to get something
2118 that is true only with -std. */
2119 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2120
2121 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2122 inside strings and character constants. */
2123 #define FOO(x) '\''x'\''
2124 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2125
2126 int test (int i, double x);
2127 struct s1 {int (*f) (int a);};
2128 struct s2 {int (*f) (double a);};
2129 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2130 int, int);'
2131
2132 # Test code for whether the C compiler supports C89 (body of main).
2133 ac_c_conftest_c89_main='
2134 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2135 '
2136
2137 # Test code for whether the C compiler supports C99 (global declarations)
2138 ac_c_conftest_c99_globals='
2139 /* Does the compiler advertise C99 conformance? */
2140 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2141 # error "Compiler does not advertise C99 conformance"
2142 #endif
2143
2144 // See if C++-style comments work.
2145
2146 #include <stdbool.h>
2147 extern int puts (const char *);
2148 extern int printf (const char *, ...);
2149 extern int dprintf (int, const char *, ...);
2150 extern void *malloc (size_t);
2151 extern void free (void *);
2152
2153 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2154 // dprintf is used instead of fprintf to avoid needing to declare
2155 // FILE and stderr.
2156 #define debug(...) dprintf (2, __VA_ARGS__)
2157 #define showlist(...) puts (#__VA_ARGS__)
2158 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2159 static void
2160 test_varargs_macros (void)
2161 {
2162 int x = 1234;
2163 int y = 5678;
2164 debug ("Flag");
2165 debug ("X = %d\n", x);
2166 showlist (The first, second, and third items.);
2167 report (x>y, "x is %d but y is %d", x, y);
2168 }
2169
2170 // Check long long types.
2171 #define BIG64 18446744073709551615ull
2172 #define BIG32 4294967295ul
2173 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2174 #if !BIG_OK
2175 #error "your preprocessor is broken"
2176 #endif
2177 #if BIG_OK
2178 #else
2179 #error "your preprocessor is broken"
2180 #endif
2181 static long long int bignum = -9223372036854775807LL;
2182 static unsigned long long int ubignum = BIG64;
2183
2184 struct incomplete_array
2185 {
2186 int datasize;
2187 double data[];
2188 };
2189
2190 struct named_init {
2191 int number;
2192 const wchar_t *name;
2193 double average;
2194 };
2195
2196 typedef const char *ccp;
2197
2198 static inline int
2199 test_restrict (ccp restrict text)
2200 {
2201 // Iterate through items via the restricted pointer.
2202 // Also check for declarations in for loops.
2203 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2204 continue;
2205 return 0;
2206 }
2207
2208 // Check varargs and va_copy.
2209 static bool
2210 test_varargs (const char *format, ...)
2211 {
2212 va_list args;
2213 va_start (args, format);
2214 va_list args_copy;
2215 va_copy (args_copy, args);
2216
2217 const char *str = "";
2218 int number = 0;
2219 float fnumber = 0;
2220
2221 while (*format)
2222 {
2223 switch (*format++)
2224 {
2225 case '\''s'\'': // string
2226 str = va_arg (args_copy, const char *);
2227 break;
2228 case '\''d'\'': // int
2229 number = va_arg (args_copy, int);
2230 break;
2231 case '\''f'\'': // float
2232 fnumber = va_arg (args_copy, double);
2233 break;
2234 default:
2235 break;
2236 }
2237 }
2238 va_end (args_copy);
2239 va_end (args);
2240
2241 return *str && number && fnumber;
2242 }
2243 '
2244
2245 # Test code for whether the C compiler supports C99 (body of main).
2246 ac_c_conftest_c99_main='
2247 // Check bool.
2248 _Bool success = false;
2249 success |= (argc != 0);
2250
2251 // Check restrict.
2252 if (test_restrict ("String literal") == 0)
2253 success = true;
2254 char *restrict newvar = "Another string";
2255
2256 // Check varargs.
2257 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2258 test_varargs_macros ();
2259
2260 // Check flexible array members.
2261 struct incomplete_array *ia =
2262 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2263 ia->datasize = 10;
2264 for (int i = 0; i < ia->datasize; ++i)
2265 ia->data[i] = i * 1.234;
2266 // Work around memory leak warnings.
2267 free (ia);
2268
2269 // Check named initializers.
2270 struct named_init ni = {
2271 .number = 34,
2272 .name = L"Test wide string",
2273 .average = 543.34343,
2274 };
2275
2276 ni.number = 58;
2277
2278 int dynamic_array[ni.number];
2279 dynamic_array[0] = argv[0][0];
2280 dynamic_array[ni.number - 1] = 543;
2281
2282 // work around unused variable warnings
2283 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2284 || dynamic_array[ni.number - 1] != 543);
2285 '
2286
2287 # Test code for whether the C compiler supports C11 (global declarations)
2288 ac_c_conftest_c11_globals='
2289 /* Does the compiler advertise C11 conformance? */
2290 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2291 # error "Compiler does not advertise C11 conformance"
2292 #endif
2293
2294 // Check _Alignas.
2295 char _Alignas (double) aligned_as_double;
2296 char _Alignas (0) no_special_alignment;
2297 extern char aligned_as_int;
2298 char _Alignas (0) _Alignas (int) aligned_as_int;
2299
2300 // Check _Alignof.
2301 enum
2302 {
2303 int_alignment = _Alignof (int),
2304 int_array_alignment = _Alignof (int[100]),
2305 char_alignment = _Alignof (char)
2306 };
2307 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2308
2309 // Check _Noreturn.
2310 int _Noreturn does_not_return (void) { for (;;) continue; }
2311
2312 // Check _Static_assert.
2313 struct test_static_assert
2314 {
2315 int x;
2316 _Static_assert (sizeof (int) <= sizeof (long int),
2317 "_Static_assert does not work in struct");
2318 long int y;
2319 };
2320
2321 // Check UTF-8 literals.
2322 #define u8 syntax error!
2323 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2324
2325 // Check duplicate typedefs.
2326 typedef long *long_ptr;
2327 typedef long int *long_ptr;
2328 typedef long_ptr long_ptr;
2329
2330 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2331 struct anonymous
2332 {
2333 union {
2334 struct { int i; int j; };
2335 struct { int k; long int l; } w;
2336 };
2337 int m;
2338 } v1;
2339 '
2340
2341 # Test code for whether the C compiler supports C11 (body of main).
2342 ac_c_conftest_c11_main='
2343 _Static_assert ((offsetof (struct anonymous, i)
2344 == offsetof (struct anonymous, w.k)),
2345 "Anonymous union alignment botch");
2346 v1.i = 2;
2347 v1.w.k = 5;
2348 ok |= v1.i != 5;
2349 '
2350
2351 # Test code for whether the C compiler supports C11 (complete).
2352 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2353 ${ac_c_conftest_c99_globals}
2354 ${ac_c_conftest_c11_globals}
2355
2356 int
2357 main (int argc, char **argv)
2358 {
2359 int ok = 0;
2360 ${ac_c_conftest_c89_main}
2361 ${ac_c_conftest_c99_main}
2362 ${ac_c_conftest_c11_main}
2363 return ok;
2364 }
2365 "
2366
2367 # Test code for whether the C compiler supports C99 (complete).
2368 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2369 ${ac_c_conftest_c99_globals}
2370
2371 int
2372 main (int argc, char **argv)
2373 {
2374 int ok = 0;
2375 ${ac_c_conftest_c89_main}
2376 ${ac_c_conftest_c99_main}
2377 return ok;
2378 }
2379 "
2380
2381 # Test code for whether the C compiler supports C89 (complete).
2382 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2383
2384 int
2385 main (int argc, char **argv)
2386 {
2387 int ok = 0;
2388 ${ac_c_conftest_c89_main}
2389 return ok;
2390 }
2391 "
2392
2393 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2394 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2395 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2396 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2397 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2398 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2399 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2400 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2401 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2402
2403 # Auxiliary files required by this configure script.
2404 ac_aux_files="config.guess config.sub compile missing install-sh"
2405
2406 # Locations in which to look for auxiliary files.
2407 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2408
2409 # Search for a directory containing all of the required auxiliary files,
2410 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2411 # If we don't find one directory that contains all the files we need,
2412 # we report the set of missing files from the *first* directory in
2413 # $ac_aux_dir_candidates and give up.
2414 ac_missing_aux_files=""
2415 ac_first_candidate=:
2416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 as_found=false
2419 for as_dir in $ac_aux_dir_candidates
2420 do
2421 IFS=$as_save_IFS
2422 case $as_dir in #(((
2423 '') as_dir=./ ;;
2424 */) ;;
2425 *) as_dir=$as_dir/ ;;
2426 esac
2427 as_found=:
2428
2429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2430 ac_aux_dir_found=yes
2431 ac_install_sh=
2432 for ac_aux in $ac_aux_files
2433 do
2434 # As a special case, if "install-sh" is required, that requirement
2435 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2436 # and $ac_install_sh is set appropriately for whichever one is found.
2437 if test x"$ac_aux" = x"install-sh"
2438 then
2439 if test -f "${as_dir}install-sh"; then
2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2441 ac_install_sh="${as_dir}install-sh -c"
2442 elif test -f "${as_dir}install.sh"; then
2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2444 ac_install_sh="${as_dir}install.sh -c"
2445 elif test -f "${as_dir}shtool"; then
2446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2447 ac_install_sh="${as_dir}shtool install -c"
2448 else
2449 ac_aux_dir_found=no
2450 if $ac_first_candidate; then
2451 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2452 else
2453 break
2454 fi
2455 fi
2456 else
2457 if test -f "${as_dir}${ac_aux}"; then
2458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2459 else
2460 ac_aux_dir_found=no
2461 if $ac_first_candidate; then
2462 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2463 else
2464 break
2465 fi
2466 fi
2467 fi
2468 done
2469 if test "$ac_aux_dir_found" = yes; then
2470 ac_aux_dir="$as_dir"
2471 break
2472 fi
2473 ac_first_candidate=false
2474
2475 as_found=false
2476 done
2477 IFS=$as_save_IFS
2478 if $as_found
2479 then :
2480
2481 else case e in #(
2482 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2483 esac
2484 fi
2485
2486
2487 # These three variables are undocumented and unsupported,
2488 # and are intended to be withdrawn in a future Autoconf release.
2489 # They can cause serious problems if a builder's source tree is in a directory
2490 # whose full name contains unusual characters.
2491 if test -f "${ac_aux_dir}config.guess"; then
2492 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2493 fi
2494 if test -f "${ac_aux_dir}config.sub"; then
2495 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2496 fi
2497 if test -f "$ac_aux_dir/configure"; then
2498 ac_configure="$SHELL ${ac_aux_dir}configure"
2499 fi
2500
2501 # Check that the precious variables saved in the cache have kept the same
2502 # value.
2503 ac_cache_corrupted=false
2504 for ac_var in $ac_precious_vars; do
2505 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2506 eval ac_new_set=\$ac_env_${ac_var}_set
2507 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2508 eval ac_new_val=\$ac_env_${ac_var}_value
2509 case $ac_old_set,$ac_new_set in
2510 set,)
2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2512 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2513 ac_cache_corrupted=: ;;
2514 ,set)
2515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2516 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2518 ,);;
2519 *)
2520 if test "x$ac_old_val" != "x$ac_new_val"; then
2521 # differences in whitespace do not lead to failure.
2522 ac_old_val_w=`echo x $ac_old_val`
2523 ac_new_val_w=`echo x $ac_new_val`
2524 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2526 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2527 ac_cache_corrupted=:
2528 else
2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2530 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2531 eval $ac_var=\$ac_old_val
2532 fi
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2534 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2536 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2537 fi;;
2538 esac
2539 # Pass precious variables to config.status.
2540 if test "$ac_new_set" = set; then
2541 case $ac_new_val in
2542 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2543 *) ac_arg=$ac_var=$ac_new_val ;;
2544 esac
2545 case " $ac_configure_args " in
2546 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2547 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2548 esac
2549 fi
2550 done
2551 if $ac_cache_corrupted; then
2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2553 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2555 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2556 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2557 and start over" "$LINENO" 5
2558 fi
2559 ## -------------------- ##
2560 ## Main body of script. ##
2561 ## -------------------- ##
2562
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569
2570
2571 ac_config_headers="$ac_config_headers config.h"
2572
2573
2574 # Initialize Automake
2575 am__api_version='1.17'
2576
2577
2578
2579 # Find a good install program. We prefer a C program (faster),
2580 # so one script is as good as another. But avoid the broken or
2581 # incompatible versions:
2582 # SysV /etc/install, /usr/sbin/install
2583 # SunOS /usr/etc/install
2584 # IRIX /sbin/install
2585 # AIX /bin/install
2586 # AmigaOS /C/install, which installs bootblocks on floppy discs
2587 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2590 # OS/2's system install, which has a completely different semantic
2591 # ./install, which can be erroneously created by make from ./install.sh.
2592 # Reject install programs that cannot install multiple files.
2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2594 printf %s "checking for a BSD-compatible install... " >&6; }
2595 if test -z "$INSTALL"; then
2596 if test ${ac_cv_path_install+y}
2597 then :
2598 printf %s "(cached) " >&6
2599 else case e in #(
2600 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 for as_dir in $PATH
2602 do
2603 IFS=$as_save_IFS
2604 case $as_dir in #(((
2605 '') as_dir=./ ;;
2606 */) ;;
2607 *) as_dir=$as_dir/ ;;
2608 esac
2609 # Account for fact that we put trailing slashes in our PATH walk.
2610 case $as_dir in #((
2611 ./ | /[cC]/* | \
2612 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2613 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2614 /usr/ucb/* ) ;;
2615 *)
2616 # OSF1 and SCO ODT 3.0 have their own names for install.
2617 # Don't use installbsd from OSF since it installs stuff as root
2618 # by default.
2619 for ac_prog in ginstall scoinst install; do
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2622 if test $ac_prog = install &&
2623 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2624 # AIX install. It has an incompatible calling convention.
2625 :
2626 elif test $ac_prog = install &&
2627 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2628 # program-specific install script used by HP pwplus--don't use.
2629 :
2630 else
2631 rm -rf conftest.one conftest.two conftest.dir
2632 echo one > conftest.one
2633 echo two > conftest.two
2634 mkdir conftest.dir
2635 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2636 test -s conftest.one && test -s conftest.two &&
2637 test -s conftest.dir/conftest.one &&
2638 test -s conftest.dir/conftest.two
2639 then
2640 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2641 break 3
2642 fi
2643 fi
2644 fi
2645 done
2646 done
2647 ;;
2648 esac
2649
2650 done
2651 IFS=$as_save_IFS
2652
2653 rm -rf conftest.one conftest.two conftest.dir
2654 ;;
2655 esac
2656 fi
2657 if test ${ac_cv_path_install+y}; then
2658 INSTALL=$ac_cv_path_install
2659 else
2660 # As a last resort, use the slow shell script. Don't cache a
2661 # value for INSTALL within a source directory, because that will
2662 # break other packages using the cache if that directory is
2663 # removed, or if the value is a relative name.
2664 INSTALL=$ac_install_sh
2665 fi
2666 fi
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2668 printf "%s\n" "$INSTALL" >&6; }
2669
2670 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2671 # It thinks the first close brace ends the variable substitution.
2672 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2673
2674 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2675
2676 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2677
2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2679 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2680 if test ${am_cv_sleep_fractional_seconds+y}
2681 then :
2682 printf %s "(cached) " >&6
2683 else case e in #(
2684 e) if sleep 0.001 2>/dev/null
2685 then :
2686 am_cv_sleep_fractional_seconds=yes
2687 else case e in #(
2688 e) am_cv_sleep_fractional_seconds=no ;;
2689 esac
2690 fi
2691 ;;
2692 esac
2693 fi
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2695 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2696
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2698 printf %s "checking filesystem timestamp resolution... " >&6; }
2699 if test ${am_cv_filesystem_timestamp_resolution+y}
2700 then :
2701 printf %s "(cached) " >&6
2702 else case e in #(
2703 e) # Default to the worst case.
2704 am_cv_filesystem_timestamp_resolution=2
2705
2706 # Only try to go finer than 1 sec if sleep can do it.
2707 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2708 # - 1 sec is not much of a win compared to 2 sec, and
2709 # - it takes 2 seconds to perform the test whether 1 sec works.
2710 #
2711 # Instead, just use the default 2s on platforms that have 1s resolution,
2712 # accept the extra 1s delay when using $sleep in the Automake tests, in
2713 # exchange for not incurring the 2s delay for running the test for all
2714 # packages.
2715 #
2716 am_try_resolutions=
2717 if test "$am_cv_sleep_fractional_seconds" = yes; then
2718 # Even a millisecond often causes a bunch of false positives,
2719 # so just try a hundredth of a second. The time saved between .001 and
2720 # .01 is not terribly consequential.
2721 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2722 fi
2723
2724 # In order to catch current-generation FAT out, we must *modify* files
2725 # that already exist; the *creation* timestamp is finer. Use names
2726 # that make ls -t sort them differently when they have equal
2727 # timestamps than when they have distinct timestamps, keeping
2728 # in mind that ls -t prints the *newest* file first.
2729 rm -f conftest.ts?
2730 : > conftest.ts1
2731 : > conftest.ts2
2732 : > conftest.ts3
2733
2734 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2735 # clobber the current shell's arguments. (Outer-level square brackets
2736 # are removed by m4; they're present so that m4 does not expand
2737 # <dollar><star>; be careful, easy to get confused.)
2738 if (
2739 set X `ls -t conftest.ts[12]` &&
2740 {
2741 test "$*" != "X conftest.ts1 conftest.ts2" ||
2742 test "$*" != "X conftest.ts2 conftest.ts1";
2743 }
2744 ); then :; else
2745 # If neither matched, then we have a broken ls. This can happen
2746 # if, for instance, CONFIG_SHELL is bash and it inherits a
2747 # broken ls alias from the environment. This has actually
2748 # happened. Such a system could not be considered "sane".
2749 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2751 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2752 as_fn_error $? "ls -t produces unexpected output.
2753 Make sure there is not a broken ls alias in your environment.
2754 See 'config.log' for more details" "$LINENO" 5; }
2755 fi
2756
2757 for am_try_res in $am_try_resolutions; do
2758 # Any one fine-grained sleep might happen to cross the boundary
2759 # between two values of a coarser actual resolution, but if we do
2760 # two fine-grained sleeps in a row, at least one of them will fall
2761 # entirely within a coarse interval.
2762 echo alpha > conftest.ts1
2763 sleep $am_try_res
2764 echo beta > conftest.ts2
2765 sleep $am_try_res
2766 echo gamma > conftest.ts3
2767
2768 # We assume that 'ls -t' will make use of high-resolution
2769 # timestamps if the operating system supports them at all.
2770 if (set X `ls -t conftest.ts?` &&
2771 test "$2" = conftest.ts3 &&
2772 test "$3" = conftest.ts2 &&
2773 test "$4" = conftest.ts1); then
2774 #
2775 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2776 # because we don't need to test make.
2777 make_ok=true
2778 if test $am_try_res != 1; then
2779 # But if we've succeeded so far with a subsecond resolution, we
2780 # have one more thing to check: make. It can happen that
2781 # everything else supports the subsecond mtimes, but make doesn't;
2782 # notably on macOS, which ships make 3.81 from 2006 (the last one
2783 # released under GPLv2). https://bugs.gnu.org/68808
2784 #
2785 # We test $MAKE if it is defined in the environment, else "make".
2786 # It might get overridden later, but our hope is that in practice
2787 # it does not matter: it is the system "make" which is (by far)
2788 # the most likely to be broken, whereas if the user overrides it,
2789 # probably they did so with a better, or at least not worse, make.
2790 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2791 #
2792 # Create a Makefile (real tab character here):
2793 rm -f conftest.mk
2794 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2795 echo ' touch conftest.ts2' >>conftest.mk
2796 #
2797 # Now, running
2798 # touch conftest.ts1; touch conftest.ts2; make
2799 # should touch ts1 because ts2 is newer. This could happen by luck,
2800 # but most often, it will fail if make's support is insufficient. So
2801 # test for several consecutive successes.
2802 #
2803 # (We reuse conftest.ts[12] because we still want to modify existing
2804 # files, not create new ones, per above.)
2805 n=0
2806 make=${MAKE-make}
2807 until test $n -eq 3; do
2808 echo one > conftest.ts1
2809 sleep $am_try_res
2810 echo two > conftest.ts2 # ts2 should now be newer than ts1
2811 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2812 make_ok=false
2813 break # out of $n loop
2814 fi
2815 n=`expr $n + 1`
2816 done
2817 fi
2818 #
2819 if $make_ok; then
2820 # Everything we know to check worked out, so call this resolution good.
2821 am_cv_filesystem_timestamp_resolution=$am_try_res
2822 break # out of $am_try_res loop
2823 fi
2824 # Otherwise, we'll go on to check the next resolution.
2825 fi
2826 done
2827 rm -f conftest.ts?
2828 # (end _am_filesystem_timestamp_resolution)
2829 ;;
2830 esac
2831 fi
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2833 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2834
2835 # This check should not be cached, as it may vary across builds of
2836 # different projects.
2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2838 printf %s "checking whether build environment is sane... " >&6; }
2839 # Reject unsafe characters in $srcdir or the absolute working directory
2840 # name. Accept space and tab only in the latter.
2841 am_lf='
2842 '
2843 case `pwd` in
2844 *[\\\"\#\$\&\'\`$am_lf]*)
2845 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2846 esac
2847 case $srcdir in
2848 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2849 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2850 esac
2851
2852 # Do 'set' in a subshell so we don't clobber the current shell's
2853 # arguments. Must try -L first in case configure is actually a
2854 # symlink; some systems play weird games with the mod time of symlinks
2855 # (eg FreeBSD returns the mod time of the symlink's containing
2856 # directory).
2857 am_build_env_is_sane=no
2858 am_has_slept=no
2859 rm -f conftest.file
2860 for am_try in 1 2; do
2861 echo "timestamp, slept: $am_has_slept" > conftest.file
2862 if (
2863 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2864 if test "$*" = "X"; then
2865 # -L didn't work.
2866 set X `ls -t "$srcdir/configure" conftest.file`
2867 fi
2868 test "$2" = conftest.file
2869 ); then
2870 am_build_env_is_sane=yes
2871 break
2872 fi
2873 # Just in case.
2874 sleep "$am_cv_filesystem_timestamp_resolution"
2875 am_has_slept=yes
2876 done
2877
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2879 printf "%s\n" "$am_build_env_is_sane" >&6; }
2880 if test "$am_build_env_is_sane" = no; then
2881 as_fn_error $? "newly created file is older than distributed files!
2882 Check your system clock" "$LINENO" 5
2883 fi
2884
2885 # If we didn't sleep, we still need to ensure time stamps of config.status and
2886 # generated files are strictly newer.
2887 am_sleep_pid=
2888 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2889 then :
2890
2891 else case e in #(
2892 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2893 am_sleep_pid=$!
2894 ;;
2895 esac
2896 fi
2897
2898 rm -f conftest.file
2899
2900 test "$program_prefix" != NONE &&
2901 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2902 # Use a double $ so make ignores it.
2903 test "$program_suffix" != NONE &&
2904 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2905 # Double any \ or $.
2906 # By default was 's,x,x', remove it if useless.
2907 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2908 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2909
2910
2911 # Expand $ac_aux_dir to an absolute path.
2912 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2913
2914
2915 if test x"${MISSING+set}" != xset; then
2916 MISSING="\${SHELL} '$am_aux_dir/missing'"
2917 fi
2918 # Use eval to expand $SHELL
2919 if eval "$MISSING --is-lightweight"; then
2920 am_missing_run="$MISSING "
2921 else
2922 am_missing_run=
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2924 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2925 fi
2926
2927 if test x"${install_sh+set}" != xset; then
2928 case $am_aux_dir in
2929 *\ * | *\ *)
2930 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2931 *)
2932 install_sh="\${SHELL} $am_aux_dir/install-sh"
2933 esac
2934 fi
2935
2936 # Installed binaries are usually stripped using 'strip' when the user
2937 # run "make install-strip". However 'strip' might not be the right
2938 # tool to use in cross-compilation environments, therefore Automake
2939 # will honor the 'STRIP' environment variable to overrule this program.
2940 if test "$cross_compiling" != no; then
2941 if test -n "$ac_tool_prefix"; then
2942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2943 set dummy ${ac_tool_prefix}strip; ac_word=$2
2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 printf %s "checking for $ac_word... " >&6; }
2946 if test ${ac_cv_prog_STRIP+y}
2947 then :
2948 printf %s "(cached) " >&6
2949 else case e in #(
2950 e) if test -n "$STRIP"; then
2951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 case $as_dir in #(((
2958 '') as_dir=./ ;;
2959 */) ;;
2960 *) as_dir=$as_dir/ ;;
2961 esac
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2964 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968 done
2969 done
2970 IFS=$as_save_IFS
2971
2972 fi ;;
2973 esac
2974 fi
2975 STRIP=$ac_cv_prog_STRIP
2976 if test -n "$STRIP"; then
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2978 printf "%s\n" "$STRIP" >&6; }
2979 else
2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 printf "%s\n" "no" >&6; }
2982 fi
2983
2984
2985 fi
2986 if test -z "$ac_cv_prog_STRIP"; then
2987 ac_ct_STRIP=$STRIP
2988 # Extract the first word of "strip", so it can be a program name with args.
2989 set dummy strip; ac_word=$2
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 printf %s "checking for $ac_word... " >&6; }
2992 if test ${ac_cv_prog_ac_ct_STRIP+y}
2993 then :
2994 printf %s "(cached) " >&6
2995 else case e in #(
2996 e) if test -n "$ac_ct_STRIP"; then
2997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 case $as_dir in #(((
3004 '') as_dir=./ ;;
3005 */) ;;
3006 *) as_dir=$as_dir/ ;;
3007 esac
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_ac_ct_STRIP="strip"
3011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 fi ;;
3019 esac
3020 fi
3021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3022 if test -n "$ac_ct_STRIP"; then
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3024 printf "%s\n" "$ac_ct_STRIP" >&6; }
3025 else
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 printf "%s\n" "no" >&6; }
3028 fi
3029
3030 if test "x$ac_ct_STRIP" = x; then
3031 STRIP=":"
3032 else
3033 case $cross_compiling:$ac_tool_warned in
3034 yes:)
3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3036 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3037 ac_tool_warned=yes ;;
3038 esac
3039 STRIP=$ac_ct_STRIP
3040 fi
3041 else
3042 STRIP="$ac_cv_prog_STRIP"
3043 fi
3044
3045 fi
3046 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3047
3048
3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3050 printf %s "checking for a race-free mkdir -p... " >&6; }
3051 if test -z "$MKDIR_P"; then
3052 if test ${ac_cv_path_mkdir+y}
3053 then :
3054 printf %s "(cached) " >&6
3055 else case e in #(
3056 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3058 do
3059 IFS=$as_save_IFS
3060 case $as_dir in #(((
3061 '') as_dir=./ ;;
3062 */) ;;
3063 *) as_dir=$as_dir/ ;;
3064 esac
3065 for ac_prog in mkdir gmkdir; do
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3068 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3069 'mkdir ('*'coreutils) '* | \
3070 *'BusyBox '* | \
3071 'mkdir (fileutils) '4.1*)
3072 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3073 break 3;;
3074 esac
3075 done
3076 done
3077 done
3078 IFS=$as_save_IFS
3079 ;;
3080 esac
3081 fi
3082
3083 test -d ./--version && rmdir ./--version
3084 if test ${ac_cv_path_mkdir+y}; then
3085 MKDIR_P="$ac_cv_path_mkdir -p"
3086 else
3087 # As a last resort, use plain mkdir -p,
3088 # in the hope it doesn't have the bugs of ancient mkdir.
3089 MKDIR_P='mkdir -p'
3090 fi
3091 fi
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3093 printf "%s\n" "$MKDIR_P" >&6; }
3094
3095 for ac_prog in gawk mawk nawk awk
3096 do
3097 # Extract the first word of "$ac_prog", so it can be a program name with args.
3098 set dummy $ac_prog; ac_word=$2
3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 printf %s "checking for $ac_word... " >&6; }
3101 if test ${ac_cv_prog_AWK+y}
3102 then :
3103 printf %s "(cached) " >&6
3104 else case e in #(
3105 e) if test -n "$AWK"; then
3106 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 case $as_dir in #(((
3113 '') as_dir=./ ;;
3114 */) ;;
3115 *) as_dir=$as_dir/ ;;
3116 esac
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_AWK="$ac_prog"
3120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3121 break 2
3122 fi
3123 done
3124 done
3125 IFS=$as_save_IFS
3126
3127 fi ;;
3128 esac
3129 fi
3130 AWK=$ac_cv_prog_AWK
3131 if test -n "$AWK"; then
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133 printf "%s\n" "$AWK" >&6; }
3134 else
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 printf "%s\n" "no" >&6; }
3137 fi
3138
3139
3140 test -n "$AWK" && break
3141 done
3142
3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145 set x ${MAKE-make}
3146 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3148 then :
3149 printf %s "(cached) " >&6
3150 else case e in #(
3151 e) cat >conftest.make <<\_ACEOF
3152 SHELL = /bin/sh
3153 all:
3154 @echo '@@@%%%=$(MAKE)=@@@%%%'
3155 _ACEOF
3156 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3158 *@@@%%%=?*=@@@%%%*)
3159 eval ac_cv_prog_make_${ac_make}_set=yes;;
3160 *)
3161 eval ac_cv_prog_make_${ac_make}_set=no;;
3162 esac
3163 rm -f conftest.make ;;
3164 esac
3165 fi
3166 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3168 printf "%s\n" "yes" >&6; }
3169 SET_MAKE=
3170 else
3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 printf "%s\n" "no" >&6; }
3173 SET_MAKE="MAKE=${MAKE-make}"
3174 fi
3175
3176 rm -rf .tst 2>/dev/null
3177 mkdir .tst 2>/dev/null
3178 if test -d .tst; then
3179 am__leading_dot=.
3180 else
3181 am__leading_dot=_
3182 fi
3183 rmdir .tst 2>/dev/null
3184
3185 AM_DEFAULT_VERBOSITY=1
3186 # Check whether --enable-silent-rules was given.
3187 if test ${enable_silent_rules+y}
3188 then :
3189 enableval=$enable_silent_rules;
3190 fi
3191
3192 am_make=${MAKE-make}
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3194 printf %s "checking whether $am_make supports nested variables... " >&6; }
3195 if test ${am_cv_make_support_nested_variables+y}
3196 then :
3197 printf %s "(cached) " >&6
3198 else case e in #(
3199 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3200 BAR0=false
3201 BAR1=true
3202 V=1
3203 am__doit:
3204 @$(TRUE)
3205 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3206 am_cv_make_support_nested_variables=yes
3207 else
3208 am_cv_make_support_nested_variables=no
3209 fi ;;
3210 esac
3211 fi
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3213 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3214 AM_BACKSLASH='\'
3215
3216 am__rm_f_notfound=
3217 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3218 then :
3219
3220 else case e in #(
3221 e) am__rm_f_notfound='""' ;;
3222 esac
3223 fi
3224
3225
3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3227 printf %s "checking xargs -n works... " >&6; }
3228 if test ${am_cv_xargs_n_works+y}
3229 then :
3230 printf %s "(cached) " >&6
3231 else case e in #(
3232 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3233 3"
3234 then :
3235 am_cv_xargs_n_works=yes
3236 else case e in #(
3237 e) am_cv_xargs_n_works=no ;;
3238 esac
3239 fi ;;
3240 esac
3241 fi
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3243 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3244 if test "$am_cv_xargs_n_works" = yes
3245 then :
3246 am__xargs_n='xargs -n'
3247 else case e in #(
3248 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3249 ;;
3250 esac
3251 fi
3252
3253 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3254 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3255 # is not polluted with repeated "-I."
3256 am__isrc=' -I$(srcdir)'
3257 # test to see if srcdir already configured
3258 if test -f $srcdir/config.status; then
3259 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3260 fi
3261 fi
3262
3263 # test whether we have cygpath
3264 if test -z "$CYGPATH_W"; then
3265 if (cygpath --version) >/dev/null 2>/dev/null; then
3266 CYGPATH_W='cygpath -w'
3267 else
3268 CYGPATH_W=echo
3269 fi
3270 fi
3271
3272
3273 # Define the identity of the package.
3274 PACKAGE='fonttosfnt'
3275 VERSION='1.2.4'
3276
3277
3278 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3279
3280
3281 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3282
3283 # Some tools Automake needs.
3284
3285 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3286
3287
3288 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3289
3290
3291 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3292
3293
3294 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3295
3296
3297 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3298
3299 # For better backward compatibility. To be removed once Automake 1.9.x
3300 # dies out for good. For more background, see:
3301 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3302 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3303 mkdir_p='$(MKDIR_P)'
3304
3305 # We need awk for the "check" target (and possibly the TAP driver). The
3306 # system "awk" is bad on some platforms.
3307 # Always define AMTAR for backward compatibility. Yes, it's still used
3308 # in the wild :-( We should find a proper way to deprecate it ...
3309 AMTAR='$${TAR-tar}'
3310
3311
3312 # We'll loop over all known methods to create a tar archive until one works.
3313 _am_tools='gnutar pax cpio none'
3314
3315 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3316
3317
3318
3319
3320
3321 # Variables for tags utilities; see am/tags.am
3322 if test -z "$CTAGS"; then
3323 CTAGS=ctags
3324 fi
3325
3326 if test -z "$ETAGS"; then
3327 ETAGS=etags
3328 fi
3329
3330 if test -z "$CSCOPE"; then
3331 CSCOPE=cscope
3332 fi
3333
3334
3335
3336
3337
3338
3339
3340
3341 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362 DEPDIR="${am__leading_dot}deps"
3363
3364 ac_config_commands="$ac_config_commands depfiles"
3365
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3367 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3368 cat > confinc.mk << 'END'
3369 am__doit:
3370 @echo this is the am__doit target >confinc.out
3371 .PHONY: am__doit
3372 END
3373 am__include="#"
3374 am__quote=
3375 # BSD make does it like this.
3376 echo '.include "confinc.mk" # ignored' > confmf.BSD
3377 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3378 echo 'include confinc.mk # ignored' > confmf.GNU
3379 _am_result=no
3380 for s in GNU BSD; do
3381 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3382 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }
3386 case $?:`cat confinc.out 2>/dev/null` in #(
3387 '0:this is the am__doit target') :
3388 case $s in #(
3389 BSD) :
3390 am__include='.include' am__quote='"' ;; #(
3391 *) :
3392 am__include='include' am__quote='' ;;
3393 esac ;; #(
3394 *) :
3395 ;;
3396 esac
3397 if test "$am__include" != "#"; then
3398 _am_result="yes ($s style)"
3399 break
3400 fi
3401 done
3402 rm -f confinc.* confmf.*
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3404 printf "%s\n" "${_am_result}" >&6; }
3405
3406 # Check whether --enable-dependency-tracking was given.
3407 if test ${enable_dependency_tracking+y}
3408 then :
3409 enableval=$enable_dependency_tracking;
3410 fi
3411
3412 if test "x$enable_dependency_tracking" != xno; then
3413 am_depcomp="$ac_aux_dir/depcomp"
3414 AMDEPBACKSLASH='\'
3415 am__nodep='_no'
3416 fi
3417 if test "x$enable_dependency_tracking" != xno; then
3418 AMDEP_TRUE=
3419 AMDEP_FALSE='#'
3420 else
3421 AMDEP_TRUE='#'
3422 AMDEP_FALSE=
3423 fi
3424
3425
3426 ac_ext=c
3427 ac_cpp='$CPP $CPPFLAGS'
3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3431 if test -n "$ac_tool_prefix"; then
3432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 printf %s "checking for $ac_word... " >&6; }
3436 if test ${ac_cv_prog_CC+y}
3437 then :
3438 printf %s "(cached) " >&6
3439 else case e in #(
3440 e) if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446 IFS=$as_save_IFS
3447 case $as_dir in #(((
3448 '') as_dir=./ ;;
3449 */) ;;
3450 *) as_dir=$as_dir/ ;;
3451 esac
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461
3462 fi ;;
3463 esac
3464 fi
3465 CC=$ac_cv_prog_CC
3466 if test -n "$CC"; then
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 printf "%s\n" "$CC" >&6; }
3469 else
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 printf "%s\n" "no" >&6; }
3472 fi
3473
3474
3475 fi
3476 if test -z "$ac_cv_prog_CC"; then
3477 ac_ct_CC=$CC
3478 # Extract the first word of "gcc", so it can be a program name with args.
3479 set dummy gcc; ac_word=$2
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 printf %s "checking for $ac_word... " >&6; }
3482 if test ${ac_cv_prog_ac_ct_CC+y}
3483 then :
3484 printf %s "(cached) " >&6
3485 else case e in #(
3486 e) if test -n "$ac_ct_CC"; then
3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492 IFS=$as_save_IFS
3493 case $as_dir in #(((
3494 '') as_dir=./ ;;
3495 */) ;;
3496 *) as_dir=$as_dir/ ;;
3497 esac
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3500 ac_cv_prog_ac_ct_CC="gcc"
3501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3502 break 2
3503 fi
3504 done
3505 done
3506 IFS=$as_save_IFS
3507
3508 fi ;;
3509 esac
3510 fi
3511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3514 printf "%s\n" "$ac_ct_CC" >&6; }
3515 else
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 printf "%s\n" "no" >&6; }
3518 fi
3519
3520 if test "x$ac_ct_CC" = x; then
3521 CC=""
3522 else
3523 case $cross_compiling:$ac_tool_warned in
3524 yes:)
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3526 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3527 ac_tool_warned=yes ;;
3528 esac
3529 CC=$ac_ct_CC
3530 fi
3531 else
3532 CC="$ac_cv_prog_CC"
3533 fi
3534
3535 if test -z "$CC"; then
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}cc; ac_word=$2
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 printf %s "checking for $ac_word... " >&6; }
3541 if test ${ac_cv_prog_CC+y}
3542 then :
3543 printf %s "(cached) " >&6
3544 else case e in #(
3545 e) if test -n "$CC"; then
3546 ac_cv_prog_CC="$CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551 IFS=$as_save_IFS
3552 case $as_dir in #(((
3553 '') as_dir=./ ;;
3554 */) ;;
3555 *) as_dir=$as_dir/ ;;
3556 esac
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_CC="${ac_tool_prefix}cc"
3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3561 break 2
3562 fi
3563 done
3564 done
3565 IFS=$as_save_IFS
3566
3567 fi ;;
3568 esac
3569 fi
3570 CC=$ac_cv_prog_CC
3571 if test -n "$CC"; then
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 printf "%s\n" "$CC" >&6; }
3574 else
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 printf "%s\n" "no" >&6; }
3577 fi
3578
3579
3580 fi
3581 fi
3582 if test -z "$CC"; then
3583 # Extract the first word of "cc", so it can be a program name with args.
3584 set dummy cc; ac_word=$2
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586 printf %s "checking for $ac_word... " >&6; }
3587 if test ${ac_cv_prog_CC+y}
3588 then :
3589 printf %s "(cached) " >&6
3590 else case e in #(
3591 e) if test -n "$CC"; then
3592 ac_cv_prog_CC="$CC" # Let the user override the test.
3593 else
3594 ac_prog_rejected=no
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598 IFS=$as_save_IFS
3599 case $as_dir in #(((
3600 '') as_dir=./ ;;
3601 */) ;;
3602 *) as_dir=$as_dir/ ;;
3603 esac
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3606 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3607 ac_prog_rejected=yes
3608 continue
3609 fi
3610 ac_cv_prog_CC="cc"
3611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3612 break 2
3613 fi
3614 done
3615 done
3616 IFS=$as_save_IFS
3617
3618 if test $ac_prog_rejected = yes; then
3619 # We found a bogon in the path, so make sure we never use it.
3620 set dummy $ac_cv_prog_CC
3621 shift
3622 if test $# != 0; then
3623 # We chose a different compiler from the bogus one.
3624 # However, it has the same basename, so the bogon will be chosen
3625 # first if we set CC to just the basename; use the full file name.
3626 shift
3627 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3628 fi
3629 fi
3630 fi ;;
3631 esac
3632 fi
3633 CC=$ac_cv_prog_CC
3634 if test -n "$CC"; then
3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 printf "%s\n" "$CC" >&6; }
3637 else
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 printf "%s\n" "no" >&6; }
3640 fi
3641
3642
3643 fi
3644 if test -z "$CC"; then
3645 if test -n "$ac_tool_prefix"; then
3646 for ac_prog in cl.exe
3647 do
3648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 printf %s "checking for $ac_word... " >&6; }
3652 if test ${ac_cv_prog_CC+y}
3653 then :
3654 printf %s "(cached) " >&6
3655 else case e in #(
3656 e) if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 case $as_dir in #(((
3664 '') as_dir=./ ;;
3665 */) ;;
3666 *) as_dir=$as_dir/ ;;
3667 esac
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676 IFS=$as_save_IFS
3677
3678 fi ;;
3679 esac
3680 fi
3681 CC=$ac_cv_prog_CC
3682 if test -n "$CC"; then
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684 printf "%s\n" "$CC" >&6; }
3685 else
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 printf "%s\n" "no" >&6; }
3688 fi
3689
3690
3691 test -n "$CC" && break
3692 done
3693 fi
3694 if test -z "$CC"; then
3695 ac_ct_CC=$CC
3696 for ac_prog in cl.exe
3697 do
3698 # Extract the first word of "$ac_prog", so it can be a program name with args.
3699 set dummy $ac_prog; ac_word=$2
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 printf %s "checking for $ac_word... " >&6; }
3702 if test ${ac_cv_prog_ac_ct_CC+y}
3703 then :
3704 printf %s "(cached) " >&6
3705 else case e in #(
3706 e) if test -n "$ac_ct_CC"; then
3707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3711 do
3712 IFS=$as_save_IFS
3713 case $as_dir in #(((
3714 '') as_dir=./ ;;
3715 */) ;;
3716 *) as_dir=$as_dir/ ;;
3717 esac
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3720 ac_cv_prog_ac_ct_CC="$ac_prog"
3721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3722 break 2
3723 fi
3724 done
3725 done
3726 IFS=$as_save_IFS
3727
3728 fi ;;
3729 esac
3730 fi
3731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3732 if test -n "$ac_ct_CC"; then
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3734 printf "%s\n" "$ac_ct_CC" >&6; }
3735 else
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 printf "%s\n" "no" >&6; }
3738 fi
3739
3740
3741 test -n "$ac_ct_CC" && break
3742 done
3743
3744 if test "x$ac_ct_CC" = x; then
3745 CC=""
3746 else
3747 case $cross_compiling:$ac_tool_warned in
3748 yes:)
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3752 esac
3753 CC=$ac_ct_CC
3754 fi
3755 fi
3756
3757 fi
3758 if test -z "$CC"; then
3759 if test -n "$ac_tool_prefix"; then
3760 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3761 set dummy ${ac_tool_prefix}clang; ac_word=$2
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 printf %s "checking for $ac_word... " >&6; }
3764 if test ${ac_cv_prog_CC+y}
3765 then :
3766 printf %s "(cached) " >&6
3767 else case e in #(
3768 e) if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774 IFS=$as_save_IFS
3775 case $as_dir in #(((
3776 '') as_dir=./ ;;
3777 */) ;;
3778 *) as_dir=$as_dir/ ;;
3779 esac
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3782 ac_cv_prog_CC="${ac_tool_prefix}clang"
3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3784 break 2
3785 fi
3786 done
3787 done
3788 IFS=$as_save_IFS
3789
3790 fi ;;
3791 esac
3792 fi
3793 CC=$ac_cv_prog_CC
3794 if test -n "$CC"; then
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 printf "%s\n" "$CC" >&6; }
3797 else
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 printf "%s\n" "no" >&6; }
3800 fi
3801
3802
3803 fi
3804 if test -z "$ac_cv_prog_CC"; then
3805 ac_ct_CC=$CC
3806 # Extract the first word of "clang", so it can be a program name with args.
3807 set dummy clang; ac_word=$2
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809 printf %s "checking for $ac_word... " >&6; }
3810 if test ${ac_cv_prog_ac_ct_CC+y}
3811 then :
3812 printf %s "(cached) " >&6
3813 else case e in #(
3814 e) if test -n "$ac_ct_CC"; then
3815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3819 do
3820 IFS=$as_save_IFS
3821 case $as_dir in #(((
3822 '') as_dir=./ ;;
3823 */) ;;
3824 *) as_dir=$as_dir/ ;;
3825 esac
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_ac_ct_CC="clang"
3829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832 done
3833 done
3834 IFS=$as_save_IFS
3835
3836 fi ;;
3837 esac
3838 fi
3839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3840 if test -n "$ac_ct_CC"; then
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3842 printf "%s\n" "$ac_ct_CC" >&6; }
3843 else
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 printf "%s\n" "no" >&6; }
3846 fi
3847
3848 if test "x$ac_ct_CC" = x; then
3849 CC=""
3850 else
3851 case $cross_compiling:$ac_tool_warned in
3852 yes:)
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3856 esac
3857 CC=$ac_ct_CC
3858 fi
3859 else
3860 CC="$ac_cv_prog_CC"
3861 fi
3862
3863 fi
3864
3865
3866 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3867 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3868 as_fn_error $? "no acceptable C compiler found in \$PATH
3869 See 'config.log' for more details" "$LINENO" 5; }
3870
3871 # Provide some information about the compiler.
3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3873 set X $ac_compile
3874 ac_compiler=$2
3875 for ac_option in --version -v -V -qversion -version; do
3876 { { ac_try="$ac_compiler $ac_option >&5"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 printf "%s\n" "$ac_try_echo"; } >&5
3883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3884 ac_status=$?
3885 if test -s conftest.err; then
3886 sed '10a\
3887 ... rest of stderr output deleted ...
3888 10q' conftest.err >conftest.er1
3889 cat conftest.er1 >&5
3890 fi
3891 rm -f conftest.er1 conftest.err
3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }
3894 done
3895
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898
3899 int
3900 main (void)
3901 {
3902
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 ac_clean_files_save=$ac_clean_files
3908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3909 # Try to create an executable without -o first, disregard a.out.
3910 # It will help us diagnose broken compilers, and finding out an intuition
3911 # of exeext.
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 printf %s "checking whether the C compiler works... " >&6; }
3914 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3915
3916 # The possible output files:
3917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3918
3919 ac_rmfiles=
3920 for ac_file in $ac_files
3921 do
3922 case $ac_file in
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3925 esac
3926 done
3927 rm -f $ac_rmfiles
3928
3929 if { { ac_try="$ac_link_default"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 printf "%s\n" "$ac_try_echo"; } >&5
3936 (eval "$ac_link_default") 2>&5
3937 ac_status=$?
3938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }
3940 then :
3941 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3942 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3943 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3944 # so that the user can short-circuit this test for compilers unknown to
3945 # Autoconf.
3946 for ac_file in $ac_files ''
3947 do
3948 test -f "$ac_file" || continue
3949 case $ac_file in
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951 ;;
3952 [ab].out )
3953 # We found the default executable, but exeext='' is most
3954 # certainly right.
3955 break;;
3956 *.* )
3957 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3958 then :; else
3959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 fi
3961 # We set ac_cv_exeext here because the later test for it is not
3962 # safe: cross compilers may not add the suffix if given an '-o'
3963 # argument, so we may need to know it at that point already.
3964 # Even if this section looks crufty: it has the advantage of
3965 # actually working.
3966 break;;
3967 * )
3968 break;;
3969 esac
3970 done
3971 test "$ac_cv_exeext" = no && ac_cv_exeext=
3972
3973 else case e in #(
3974 e) ac_file='' ;;
3975 esac
3976 fi
3977 if test -z "$ac_file"
3978 then :
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 printf "%s\n" "no" >&6; }
3981 printf "%s\n" "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3983
3984 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3985 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3986 as_fn_error 77 "C compiler cannot create executables
3987 See 'config.log' for more details" "$LINENO" 5; }
3988 else case e in #(
3989 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3990 printf "%s\n" "yes" >&6; } ;;
3991 esac
3992 fi
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3994 printf %s "checking for C compiler default output file name... " >&6; }
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3996 printf "%s\n" "$ac_file" >&6; }
3997 ac_exeext=$ac_cv_exeext
3998
3999 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4000 ac_clean_files=$ac_clean_files_save
4001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4002 printf %s "checking for suffix of executables... " >&6; }
4003 if { { ac_try="$ac_link"
4004 case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007 esac
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 printf "%s\n" "$ac_try_echo"; } >&5
4010 (eval "$ac_link") 2>&5
4011 ac_status=$?
4012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }
4014 then :
4015 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4016 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4017 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4018 # 'rm'.
4019 for ac_file in conftest.exe conftest conftest.*; do
4020 test -f "$ac_file" || continue
4021 case $ac_file in
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4023 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4024 break;;
4025 * ) break;;
4026 esac
4027 done
4028 else case e in #(
4029 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4030 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4031 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4032 See 'config.log' for more details" "$LINENO" 5; } ;;
4033 esac
4034 fi
4035 rm -f conftest conftest$ac_cv_exeext
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4037 printf "%s\n" "$ac_cv_exeext" >&6; }
4038
4039 rm -f conftest.$ac_ext
4040 EXEEXT=$ac_cv_exeext
4041 ac_exeext=$EXEEXT
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044 #include <stdio.h>
4045 int
4046 main (void)
4047 {
4048 FILE *f = fopen ("conftest.out", "w");
4049 if (!f)
4050 return 1;
4051 return ferror (f) || fclose (f) != 0;
4052
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 ac_clean_files="$ac_clean_files conftest.out"
4058 # Check that the compiler produces executables we can run. If not, either
4059 # the compiler is broken, or we cross compile.
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4061 printf %s "checking whether we are cross compiling... " >&6; }
4062 if test "$cross_compiling" != yes; then
4063 { { ac_try="$ac_link"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 printf "%s\n" "$ac_try_echo"; } >&5
4070 (eval "$ac_link") 2>&5
4071 ac_status=$?
4072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }
4074 if { ac_try='./conftest$ac_cv_exeext'
4075 { { case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 printf "%s\n" "$ac_try_echo"; } >&5
4081 (eval "$ac_try") 2>&5
4082 ac_status=$?
4083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084 test $ac_status = 0; }; }; then
4085 cross_compiling=no
4086 else
4087 if test "$cross_compiling" = maybe; then
4088 cross_compiling=yes
4089 else
4090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4091 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4092 as_fn_error 77 "cannot run C compiled programs.
4093 If you meant to cross compile, use '--host'.
4094 See 'config.log' for more details" "$LINENO" 5; }
4095 fi
4096 fi
4097 fi
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4099 printf "%s\n" "$cross_compiling" >&6; }
4100
4101 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4102 conftest.o conftest.obj conftest.out
4103 ac_clean_files=$ac_clean_files_save
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4105 printf %s "checking for suffix of object files... " >&6; }
4106 if test ${ac_cv_objext+y}
4107 then :
4108 printf %s "(cached) " >&6
4109 else case e in #(
4110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112
4113 int
4114 main (void)
4115 {
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 rm -f conftest.o conftest.obj
4122 if { { ac_try="$ac_compile"
4123 case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 printf "%s\n" "$ac_try_echo"; } >&5
4129 (eval "$ac_compile") 2>&5
4130 ac_status=$?
4131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132 test $ac_status = 0; }
4133 then :
4134 for ac_file in conftest.o conftest.obj conftest.*; do
4135 test -f "$ac_file" || continue;
4136 case $ac_file in
4137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4138 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4139 break;;
4140 esac
4141 done
4142 else case e in #(
4143 e) printf "%s\n" "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4145
4146 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4147 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4148 as_fn_error $? "cannot compute suffix of object files: cannot compile
4149 See 'config.log' for more details" "$LINENO" 5; } ;;
4150 esac
4151 fi
4152 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4153 esac
4154 fi
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4156 printf "%s\n" "$ac_cv_objext" >&6; }
4157 OBJEXT=$ac_cv_objext
4158 ac_objext=$OBJEXT
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4160 printf %s "checking whether the compiler supports GNU C... " >&6; }
4161 if test ${ac_cv_c_compiler_gnu+y}
4162 then :
4163 printf %s "(cached) " >&6
4164 else case e in #(
4165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4167
4168 int
4169 main (void)
4170 {
4171 #ifndef __GNUC__
4172 choke me
4173 #endif
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"
4180 then :
4181 ac_compiler_gnu=yes
4182 else case e in #(
4183 e) ac_compiler_gnu=no ;;
4184 esac
4185 fi
4186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4187 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4188 ;;
4189 esac
4190 fi
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4192 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194
4195 if test $ac_compiler_gnu = yes; then
4196 GCC=yes
4197 else
4198 GCC=
4199 fi
4200 ac_test_CFLAGS=${CFLAGS+y}
4201 ac_save_CFLAGS=$CFLAGS
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4203 printf %s "checking whether $CC accepts -g... " >&6; }
4204 if test ${ac_cv_prog_cc_g+y}
4205 then :
4206 printf %s "(cached) " >&6
4207 else case e in #(
4208 e) ac_save_c_werror_flag=$ac_c_werror_flag
4209 ac_c_werror_flag=yes
4210 ac_cv_prog_cc_g=no
4211 CFLAGS="-g"
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214
4215 int
4216 main (void)
4217 {
4218
4219 ;
4220 return 0;
4221 }
4222 _ACEOF
4223 if ac_fn_c_try_compile "$LINENO"
4224 then :
4225 ac_cv_prog_cc_g=yes
4226 else case e in #(
4227 e) CFLAGS=""
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230
4231 int
4232 main (void)
4233 {
4234
4235 ;
4236 return 0;
4237 }
4238 _ACEOF
4239 if ac_fn_c_try_compile "$LINENO"
4240 then :
4241
4242 else case e in #(
4243 e) ac_c_werror_flag=$ac_save_c_werror_flag
4244 CFLAGS="-g"
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247
4248 int
4249 main (void)
4250 {
4251
4252 ;
4253 return 0;
4254 }
4255 _ACEOF
4256 if ac_fn_c_try_compile "$LINENO"
4257 then :
4258 ac_cv_prog_cc_g=yes
4259 fi
4260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4261 esac
4262 fi
4263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4264 esac
4265 fi
4266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4267 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4268 esac
4269 fi
4270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4271 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4272 if test $ac_test_CFLAGS; then
4273 CFLAGS=$ac_save_CFLAGS
4274 elif test $ac_cv_prog_cc_g = yes; then
4275 if test "$GCC" = yes; then
4276 CFLAGS="-g -O2"
4277 else
4278 CFLAGS="-g"
4279 fi
4280 else
4281 if test "$GCC" = yes; then
4282 CFLAGS="-O2"
4283 else
4284 CFLAGS=
4285 fi
4286 fi
4287 ac_prog_cc_stdc=no
4288 if test x$ac_prog_cc_stdc = xno
4289 then :
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4291 printf %s "checking for $CC option to enable C11 features... " >&6; }
4292 if test ${ac_cv_prog_cc_c11+y}
4293 then :
4294 printf %s "(cached) " >&6
4295 else case e in #(
4296 e) ac_cv_prog_cc_c11=no
4297 ac_save_CC=$CC
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 $ac_c_conftest_c11_program
4301 _ACEOF
4302 for ac_arg in '' -std=gnu11
4303 do
4304 CC="$ac_save_CC $ac_arg"
4305 if ac_fn_c_try_compile "$LINENO"
4306 then :
4307 ac_cv_prog_cc_c11=$ac_arg
4308 fi
4309 rm -f core conftest.err conftest.$ac_objext conftest.beam
4310 test "x$ac_cv_prog_cc_c11" != "xno" && break
4311 done
4312 rm -f conftest.$ac_ext
4313 CC=$ac_save_CC ;;
4314 esac
4315 fi
4316
4317 if test "x$ac_cv_prog_cc_c11" = xno
4318 then :
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4320 printf "%s\n" "unsupported" >&6; }
4321 else case e in #(
4322 e) if test "x$ac_cv_prog_cc_c11" = x
4323 then :
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4325 printf "%s\n" "none needed" >&6; }
4326 else case e in #(
4327 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4328 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4329 CC="$CC $ac_cv_prog_cc_c11" ;;
4330 esac
4331 fi
4332 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4333 ac_prog_cc_stdc=c11 ;;
4334 esac
4335 fi
4336 fi
4337 if test x$ac_prog_cc_stdc = xno
4338 then :
4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4340 printf %s "checking for $CC option to enable C99 features... " >&6; }
4341 if test ${ac_cv_prog_cc_c99+y}
4342 then :
4343 printf %s "(cached) " >&6
4344 else case e in #(
4345 e) ac_cv_prog_cc_c99=no
4346 ac_save_CC=$CC
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349 $ac_c_conftest_c99_program
4350 _ACEOF
4351 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4352 do
4353 CC="$ac_save_CC $ac_arg"
4354 if ac_fn_c_try_compile "$LINENO"
4355 then :
4356 ac_cv_prog_cc_c99=$ac_arg
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext conftest.beam
4359 test "x$ac_cv_prog_cc_c99" != "xno" && break
4360 done
4361 rm -f conftest.$ac_ext
4362 CC=$ac_save_CC ;;
4363 esac
4364 fi
4365
4366 if test "x$ac_cv_prog_cc_c99" = xno
4367 then :
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4369 printf "%s\n" "unsupported" >&6; }
4370 else case e in #(
4371 e) if test "x$ac_cv_prog_cc_c99" = x
4372 then :
4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4374 printf "%s\n" "none needed" >&6; }
4375 else case e in #(
4376 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4377 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4378 CC="$CC $ac_cv_prog_cc_c99" ;;
4379 esac
4380 fi
4381 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4382 ac_prog_cc_stdc=c99 ;;
4383 esac
4384 fi
4385 fi
4386 if test x$ac_prog_cc_stdc = xno
4387 then :
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4389 printf %s "checking for $CC option to enable C89 features... " >&6; }
4390 if test ${ac_cv_prog_cc_c89+y}
4391 then :
4392 printf %s "(cached) " >&6
4393 else case e in #(
4394 e) ac_cv_prog_cc_c89=no
4395 ac_save_CC=$CC
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 $ac_c_conftest_c89_program
4399 _ACEOF
4400 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4401 do
4402 CC="$ac_save_CC $ac_arg"
4403 if ac_fn_c_try_compile "$LINENO"
4404 then :
4405 ac_cv_prog_cc_c89=$ac_arg
4406 fi
4407 rm -f core conftest.err conftest.$ac_objext conftest.beam
4408 test "x$ac_cv_prog_cc_c89" != "xno" && break
4409 done
4410 rm -f conftest.$ac_ext
4411 CC=$ac_save_CC ;;
4412 esac
4413 fi
4414
4415 if test "x$ac_cv_prog_cc_c89" = xno
4416 then :
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4418 printf "%s\n" "unsupported" >&6; }
4419 else case e in #(
4420 e) if test "x$ac_cv_prog_cc_c89" = x
4421 then :
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4423 printf "%s\n" "none needed" >&6; }
4424 else case e in #(
4425 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4426 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4427 CC="$CC $ac_cv_prog_cc_c89" ;;
4428 esac
4429 fi
4430 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4431 ac_prog_cc_stdc=c89 ;;
4432 esac
4433 fi
4434 fi
4435
4436 ac_ext=c
4437 ac_cpp='$CPP $CPPFLAGS'
4438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441
4442
4443 ac_ext=c
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4449 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4450 if test ${am_cv_prog_cc_c_o+y}
4451 then :
4452 printf %s "(cached) " >&6
4453 else case e in #(
4454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456
4457 int
4458 main (void)
4459 {
4460
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 # Make sure it works both with $CC and with simple cc.
4466 # Following AC_PROG_CC_C_O, we do the test twice because some
4467 # compilers refuse to overwrite an existing .o file with -o,
4468 # though they will create one.
4469 am_cv_prog_cc_c_o=yes
4470 for am_i in 1 2; do
4471 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4472 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } \
4476 && test -f conftest2.$ac_objext; then
4477 : OK
4478 else
4479 am_cv_prog_cc_c_o=no
4480 break
4481 fi
4482 done
4483 rm -f core conftest*
4484 unset am_i ;;
4485 esac
4486 fi
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4488 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4489 if test "$am_cv_prog_cc_c_o" != yes; then
4490 # Losing compiler, so override with the script.
4491 # FIXME: It is wrong to rewrite CC.
4492 # But if we don't then we get into trouble of one sort or another.
4493 # A longer-term fix would be to have automake use am__CC in this case,
4494 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4495 CC="$am_aux_dir/compile $CC"
4496 fi
4497 ac_ext=c
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502
4503
4504 depcc="$CC" am_compiler_list=
4505
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4507 printf %s "checking dependency style of $depcc... " >&6; }
4508 if test ${am_cv_CC_dependencies_compiler_type+y}
4509 then :
4510 printf %s "(cached) " >&6
4511 else case e in #(
4512 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4513 # We make a subdir and do the tests there. Otherwise we can end up
4514 # making bogus files that we don't know about and never remove. For
4515 # instance it was reported that on HP-UX the gcc test will end up
4516 # making a dummy file named 'D' -- because '-MD' means "put the output
4517 # in D".
4518 rm -rf conftest.dir
4519 mkdir conftest.dir
4520 # Copy depcomp to subdir because otherwise we won't find it if we're
4521 # using a relative directory.
4522 cp "$am_depcomp" conftest.dir
4523 cd conftest.dir
4524 # We will build objects and dependencies in a subdirectory because
4525 # it helps to detect inapplicable dependency modes. For instance
4526 # both Tru64's cc and ICC support -MD to output dependencies as a
4527 # side effect of compilation, but ICC will put the dependencies in
4528 # the current directory while Tru64 will put them in the object
4529 # directory.
4530 mkdir sub
4531
4532 am_cv_CC_dependencies_compiler_type=none
4533 if test "$am_compiler_list" = ""; then
4534 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4535 fi
4536 am__universal=false
4537 case " $depcc " in #(
4538 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4539 esac
4540
4541 for depmode in $am_compiler_list; do
4542 # Setup a source with many dependencies, because some compilers
4543 # like to wrap large dependency lists on column 80 (with \), and
4544 # we should not choose a depcomp mode which is confused by this.
4545 #
4546 # We need to recreate these files for each test, as the compiler may
4547 # overwrite some of them when testing with obscure command lines.
4548 # This happens at least with the AIX C compiler.
4549 : > sub/conftest.c
4550 for i in 1 2 3 4 5 6; do
4551 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4552 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4553 # Solaris 10 /bin/sh.
4554 echo '/* dummy */' > sub/conftst$i.h
4555 done
4556 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4557
4558 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4559 # mode. It turns out that the SunPro C++ compiler does not properly
4560 # handle '-M -o', and we need to detect this. Also, some Intel
4561 # versions had trouble with output in subdirs.
4562 am__obj=sub/conftest.${OBJEXT-o}
4563 am__minus_obj="-o $am__obj"
4564 case $depmode in
4565 gcc)
4566 # This depmode causes a compiler race in universal mode.
4567 test "$am__universal" = false || continue
4568 ;;
4569 nosideeffect)
4570 # After this tag, mechanisms are not by side-effect, so they'll
4571 # only be used when explicitly requested.
4572 if test "x$enable_dependency_tracking" = xyes; then
4573 continue
4574 else
4575 break
4576 fi
4577 ;;
4578 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4579 # This compiler won't grok '-c -o', but also, the minuso test has
4580 # not run yet. These depmodes are late enough in the game, and
4581 # so weak that their functioning should not be impacted.
4582 am__obj=conftest.${OBJEXT-o}
4583 am__minus_obj=
4584 ;;
4585 none) break ;;
4586 esac
4587 if depmode=$depmode \
4588 source=sub/conftest.c object=$am__obj \
4589 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4590 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4591 >/dev/null 2>conftest.err &&
4592 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4593 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4594 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4595 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4596 # icc doesn't choke on unknown options, it will just issue warnings
4597 # or remarks (even with -Werror). So we grep stderr for any message
4598 # that says an option was ignored or not supported.
4599 # When given -MP, icc 7.0 and 7.1 complain thus:
4600 # icc: Command line warning: ignoring option '-M'; no argument required
4601 # The diagnosis changed in icc 8.0:
4602 # icc: Command line remark: option '-MP' not supported
4603 if (grep 'ignoring option' conftest.err ||
4604 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4605 am_cv_CC_dependencies_compiler_type=$depmode
4606 break
4607 fi
4608 fi
4609 done
4610
4611 cd ..
4612 rm -rf conftest.dir
4613 else
4614 am_cv_CC_dependencies_compiler_type=none
4615 fi
4616 ;;
4617 esac
4618 fi
4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4620 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4621 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4622
4623 if
4624 test "x$enable_dependency_tracking" != xno \
4625 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4626 am__fastdepCC_TRUE=
4627 am__fastdepCC_FALSE='#'
4628 else
4629 am__fastdepCC_TRUE='#'
4630 am__fastdepCC_FALSE=
4631 fi
4632
4633
4634
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4636 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4637 if test ${ac_cv_c_undeclared_builtin_options+y}
4638 then :
4639 printf %s "(cached) " >&6
4640 else case e in #(
4641 e) ac_save_CFLAGS=$CFLAGS
4642 ac_cv_c_undeclared_builtin_options='cannot detect'
4643 for ac_arg in '' -fno-builtin; do
4644 CFLAGS="$ac_save_CFLAGS $ac_arg"
4645 # This test program should *not* compile successfully.
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648
4649 int
4650 main (void)
4651 {
4652 (void) strchr;
4653 ;
4654 return 0;
4655 }
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"
4658 then :
4659
4660 else case e in #(
4661 e) # This test program should compile successfully.
4662 # No library function is consistently available on
4663 # freestanding implementations, so test against a dummy
4664 # declaration. Include always-available headers on the
4665 # off chance that they somehow elicit warnings.
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4668 #include <float.h>
4669 #include <limits.h>
4670 #include <stdarg.h>
4671 #include <stddef.h>
4672 extern void ac_decl (int, char *);
4673
4674 int
4675 main (void)
4676 {
4677 (void) ac_decl (0, (char *) 0);
4678 (void) ac_decl;
4679
4680 ;
4681 return 0;
4682 }
4683 _ACEOF
4684 if ac_fn_c_try_compile "$LINENO"
4685 then :
4686 if test x"$ac_arg" = x
4687 then :
4688 ac_cv_c_undeclared_builtin_options='none needed'
4689 else case e in #(
4690 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4691 esac
4692 fi
4693 break
4694 fi
4695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4696 esac
4697 fi
4698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4699 done
4700 CFLAGS=$ac_save_CFLAGS
4701 ;;
4702 esac
4703 fi
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4705 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4706 case $ac_cv_c_undeclared_builtin_options in #(
4707 'cannot detect') :
4708 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4709 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4710 as_fn_error $? "cannot make $CC report undeclared builtins
4711 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4712 'none needed') :
4713 ac_c_undeclared_builtin_options='' ;; #(
4714 *) :
4715 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4716 esac
4717
4718 ac_header= ac_cache=
4719 for ac_item in $ac_header_c_list
4720 do
4721 if test $ac_cache; then
4722 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4723 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4724 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4725 fi
4726 ac_header= ac_cache=
4727 elif test $ac_header; then
4728 ac_cache=$ac_item
4729 else
4730 ac_header=$ac_item
4731 fi
4732 done
4733
4734
4735
4736
4737
4738
4739
4740
4741 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4742 then :
4743
4744 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4745
4746 fi
4747
4748
4749
4750
4751 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4752 if test "x$ac_cv_have_decl___clang__" = xyes
4753 then :
4754 CLANGCC="yes"
4755 else case e in #(
4756 e) CLANGCC="no" ;;
4757 esac
4758 fi
4759 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4760 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4761 then :
4762 INTELCC="yes"
4763 else case e in #(
4764 e) INTELCC="no" ;;
4765 esac
4766 fi
4767 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4768 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4769 then :
4770 SUNCC="yes"
4771 else case e in #(
4772 e) SUNCC="no" ;;
4773 esac
4774 fi
4775
4776
4777
4778
4779
4780
4781
4782
4783 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4784 if test -n "$ac_tool_prefix"; then
4785 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4786 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 printf %s "checking for $ac_word... " >&6; }
4789 if test ${ac_cv_path_PKG_CONFIG+y}
4790 then :
4791 printf %s "(cached) " >&6
4792 else case e in #(
4793 e) case $PKG_CONFIG in
4794 [\\/]* | ?:[\\/]*)
4795 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4796 ;;
4797 *)
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801 IFS=$as_save_IFS
4802 case $as_dir in #(((
4803 '') as_dir=./ ;;
4804 */) ;;
4805 *) as_dir=$as_dir/ ;;
4806 esac
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4809 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813 done
4814 done
4815 IFS=$as_save_IFS
4816
4817 ;;
4818 esac ;;
4819 esac
4820 fi
4821 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4822 if test -n "$PKG_CONFIG"; then
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4824 printf "%s\n" "$PKG_CONFIG" >&6; }
4825 else
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 printf "%s\n" "no" >&6; }
4828 fi
4829
4830
4831 fi
4832 if test -z "$ac_cv_path_PKG_CONFIG"; then
4833 ac_pt_PKG_CONFIG=$PKG_CONFIG
4834 # Extract the first word of "pkg-config", so it can be a program name with args.
4835 set dummy pkg-config; ac_word=$2
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 printf %s "checking for $ac_word... " >&6; }
4838 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4839 then :
4840 printf %s "(cached) " >&6
4841 else case e in #(
4842 e) case $ac_pt_PKG_CONFIG in
4843 [\\/]* | ?:[\\/]*)
4844 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4845 ;;
4846 *)
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850 IFS=$as_save_IFS
4851 case $as_dir in #(((
4852 '') as_dir=./ ;;
4853 */) ;;
4854 *) as_dir=$as_dir/ ;;
4855 esac
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4858 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4860 break 2
4861 fi
4862 done
4863 done
4864 IFS=$as_save_IFS
4865
4866 ;;
4867 esac ;;
4868 esac
4869 fi
4870 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4871 if test -n "$ac_pt_PKG_CONFIG"; then
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4873 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4874 else
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 printf "%s\n" "no" >&6; }
4877 fi
4878
4879 if test "x$ac_pt_PKG_CONFIG" = x; then
4880 PKG_CONFIG=""
4881 else
4882 case $cross_compiling:$ac_tool_warned in
4883 yes:)
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4885 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4886 ac_tool_warned=yes ;;
4887 esac
4888 PKG_CONFIG=$ac_pt_PKG_CONFIG
4889 fi
4890 else
4891 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4892 fi
4893
4894 fi
4895 if test -n "$PKG_CONFIG"; then
4896 _pkg_min_version=0.9.0
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4898 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4899 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4901 printf "%s\n" "yes" >&6; }
4902 else
4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 printf "%s\n" "no" >&6; }
4905 PKG_CONFIG=""
4906 fi
4907 fi
4908
4909
4910 # Make sure we can run config.sub.
4911 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4912 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4913
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4915 printf %s "checking build system type... " >&6; }
4916 if test ${ac_cv_build+y}
4917 then :
4918 printf %s "(cached) " >&6
4919 else case e in #(
4920 e) ac_build_alias=$build_alias
4921 test "x$ac_build_alias" = x &&
4922 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4923 test "x$ac_build_alias" = x &&
4924 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4925 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4926 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4927 ;;
4928 esac
4929 fi
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4931 printf "%s\n" "$ac_cv_build" >&6; }
4932 case $ac_cv_build in
4933 *-*-*) ;;
4934 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4935 esac
4936 build=$ac_cv_build
4937 ac_save_IFS=$IFS; IFS='-'
4938 set x $ac_cv_build
4939 shift
4940 build_cpu=$1
4941 build_vendor=$2
4942 shift; shift
4943 # Remember, the first character of IFS is used to create $*,
4944 # except with old shells:
4945 build_os=$*
4946 IFS=$ac_save_IFS
4947 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4948
4949
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4951 printf %s "checking host system type... " >&6; }
4952 if test ${ac_cv_host+y}
4953 then :
4954 printf %s "(cached) " >&6
4955 else case e in #(
4956 e) if test "x$host_alias" = x; then
4957 ac_cv_host=$ac_cv_build
4958 else
4959 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4960 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4961 fi
4962 ;;
4963 esac
4964 fi
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4966 printf "%s\n" "$ac_cv_host" >&6; }
4967 case $ac_cv_host in
4968 *-*-*) ;;
4969 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4970 esac
4971 host=$ac_cv_host
4972 ac_save_IFS=$IFS; IFS='-'
4973 set x $ac_cv_host
4974 shift
4975 host_cpu=$1
4976 host_vendor=$2
4977 shift; shift
4978 # Remember, the first character of IFS is used to create $*,
4979 # except with old shells:
4980 host_os=$*
4981 IFS=$ac_save_IFS
4982 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4983
4984
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4986 printf %s "checking for a sed that does not truncate output... " >&6; }
4987 if test ${ac_cv_path_SED+y}
4988 then :
4989 printf %s "(cached) " >&6
4990 else case e in #(
4991 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4992 for ac_i in 1 2 3 4 5 6 7; do
4993 ac_script="$ac_script$as_nl$ac_script"
4994 done
4995 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4996 { ac_script=; unset ac_script;}
4997 if test -z "$SED"; then
4998 ac_path_SED_found=false
4999 # Loop through the user's path and test for each of PROGNAME-LIST
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003 IFS=$as_save_IFS
5004 case $as_dir in #(((
5005 '') as_dir=./ ;;
5006 */) ;;
5007 *) as_dir=$as_dir/ ;;
5008 esac
5009 for ac_prog in sed gsed
5010 do
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5013 as_fn_executable_p "$ac_path_SED" || continue
5014 # Check for GNU ac_path_SED and select it if it is found.
5015 # Check for GNU $ac_path_SED
5016 case `"$ac_path_SED" --version 2>&1` in #(
5017 *GNU*)
5018 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5019 #(
5020 *)
5021 ac_count=0
5022 printf %s 0123456789 >"conftest.in"
5023 while :
5024 do
5025 cat "conftest.in" "conftest.in" >"conftest.tmp"
5026 mv "conftest.tmp" "conftest.in"
5027 cp "conftest.in" "conftest.nl"
5028 printf "%s\n" '' >> "conftest.nl"
5029 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031 as_fn_arith $ac_count + 1 && ac_count=$as_val
5032 if test $ac_count -gt ${ac_path_SED_max-0}; then
5033 # Best one so far, save it but keep looking for a better one
5034 ac_cv_path_SED="$ac_path_SED"
5035 ac_path_SED_max=$ac_count
5036 fi
5037 # 10*(2^10) chars as input seems more than enough
5038 test $ac_count -gt 10 && break
5039 done
5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041 esac
5042
5043 $ac_path_SED_found && break 3
5044 done
5045 done
5046 done
5047 IFS=$as_save_IFS
5048 if test -z "$ac_cv_path_SED"; then
5049 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5050 fi
5051 else
5052 ac_cv_path_SED=$SED
5053 fi
5054 ;;
5055 esac
5056 fi
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5058 printf "%s\n" "$ac_cv_path_SED" >&6; }
5059 SED="$ac_cv_path_SED"
5060 rm -f conftest.sed
5061
5062
5063
5064
5065
5066
5067 # Check whether --enable-selective-werror was given.
5068 if test ${enable_selective_werror+y}
5069 then :
5070 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5071 else case e in #(
5072 e) SELECTIVE_WERROR=yes ;;
5073 esac
5074 fi
5075
5076
5077
5078
5079
5080 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5081 if test "x$SUNCC" = "xyes"; then
5082 BASE_CFLAGS="-v"
5083 else
5084 BASE_CFLAGS=""
5085 fi
5086
5087 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101 xorg_testset_save_CFLAGS="$CFLAGS"
5102
5103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5106 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5107 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5108 then :
5109 printf %s "(cached) " >&6
5110 else case e in #(
5111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 int i;
5114 _ACEOF
5115 if ac_fn_c_try_compile "$LINENO"
5116 then :
5117 xorg_cv_cc_flag_unknown_warning_option=yes
5118 else case e in #(
5119 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5120 esac
5121 fi
5122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5123 esac
5124 fi
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5126 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5128 CFLAGS="$xorg_testset_save_CFLAGS"
5129 fi
5130
5131 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5134 fi
5135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5137 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5138 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5139 then :
5140 printf %s "(cached) " >&6
5141 else case e in #(
5142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 int i;
5145 _ACEOF
5146 if ac_fn_c_try_compile "$LINENO"
5147 then :
5148 xorg_cv_cc_flag_unused_command_line_argument=yes
5149 else case e in #(
5150 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5151 esac
5152 fi
5153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5154 esac
5155 fi
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5157 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5159 CFLAGS="$xorg_testset_save_CFLAGS"
5160 fi
5161
5162 found="no"
5163
5164 if test $found = "no" ; then
5165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5167 fi
5168
5169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5171 fi
5172
5173 CFLAGS="$CFLAGS -Wall"
5174
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5176 printf %s "checking if $CC supports -Wall... " >&6; }
5177 cacheid=xorg_cv_cc_flag__Wall
5178 if eval test \${$cacheid+y}
5179 then :
5180 printf %s "(cached) " >&6
5181 else case e in #(
5182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184 int i;
5185 int
5186 main (void)
5187 {
5188
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 if ac_fn_c_try_link "$LINENO"
5194 then :
5195 eval $cacheid=yes
5196 else case e in #(
5197 e) eval $cacheid=no ;;
5198 esac
5199 fi
5200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5201 conftest$ac_exeext conftest.$ac_ext ;;
5202 esac
5203 fi
5204
5205
5206 CFLAGS="$xorg_testset_save_CFLAGS"
5207
5208 eval supported=\$$cacheid
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5210 printf "%s\n" "$supported" >&6; }
5211 if test "$supported" = "yes" ; then
5212 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5213 found="yes"
5214 fi
5215 fi
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231 xorg_testset_save_CFLAGS="$CFLAGS"
5232
5233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5236 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5237 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5238 then :
5239 printf %s "(cached) " >&6
5240 else case e in #(
5241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243 int i;
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"
5246 then :
5247 xorg_cv_cc_flag_unknown_warning_option=yes
5248 else case e in #(
5249 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5250 esac
5251 fi
5252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5253 esac
5254 fi
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5256 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5258 CFLAGS="$xorg_testset_save_CFLAGS"
5259 fi
5260
5261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5264 fi
5265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5269 then :
5270 printf %s "(cached) " >&6
5271 else case e in #(
5272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 int i;
5275 _ACEOF
5276 if ac_fn_c_try_compile "$LINENO"
5277 then :
5278 xorg_cv_cc_flag_unused_command_line_argument=yes
5279 else case e in #(
5280 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5281 esac
5282 fi
5283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5284 esac
5285 fi
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5287 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5289 CFLAGS="$xorg_testset_save_CFLAGS"
5290 fi
5291
5292 found="no"
5293
5294 if test $found = "no" ; then
5295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5297 fi
5298
5299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5301 fi
5302
5303 CFLAGS="$CFLAGS -Wpointer-arith"
5304
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5306 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5307 cacheid=xorg_cv_cc_flag__Wpointer_arith
5308 if eval test \${$cacheid+y}
5309 then :
5310 printf %s "(cached) " >&6
5311 else case e in #(
5312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313 /* end confdefs.h. */
5314 int i;
5315 int
5316 main (void)
5317 {
5318
5319 ;
5320 return 0;
5321 }
5322 _ACEOF
5323 if ac_fn_c_try_link "$LINENO"
5324 then :
5325 eval $cacheid=yes
5326 else case e in #(
5327 e) eval $cacheid=no ;;
5328 esac
5329 fi
5330 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5331 conftest$ac_exeext conftest.$ac_ext ;;
5332 esac
5333 fi
5334
5335
5336 CFLAGS="$xorg_testset_save_CFLAGS"
5337
5338 eval supported=\$$cacheid
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5340 printf "%s\n" "$supported" >&6; }
5341 if test "$supported" = "yes" ; then
5342 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5343 found="yes"
5344 fi
5345 fi
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361 xorg_testset_save_CFLAGS="$CFLAGS"
5362
5363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5366 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5367 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5368 then :
5369 printf %s "(cached) " >&6
5370 else case e in #(
5371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 int i;
5374 _ACEOF
5375 if ac_fn_c_try_compile "$LINENO"
5376 then :
5377 xorg_cv_cc_flag_unknown_warning_option=yes
5378 else case e in #(
5379 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5380 esac
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5383 esac
5384 fi
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5386 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5388 CFLAGS="$xorg_testset_save_CFLAGS"
5389 fi
5390
5391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5394 fi
5395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5397 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5398 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5399 then :
5400 printf %s "(cached) " >&6
5401 else case e in #(
5402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 int i;
5405 _ACEOF
5406 if ac_fn_c_try_compile "$LINENO"
5407 then :
5408 xorg_cv_cc_flag_unused_command_line_argument=yes
5409 else case e in #(
5410 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5411 esac
5412 fi
5413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5414 esac
5415 fi
5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5417 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5419 CFLAGS="$xorg_testset_save_CFLAGS"
5420 fi
5421
5422 found="no"
5423
5424 if test $found = "no" ; then
5425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5427 fi
5428
5429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5431 fi
5432
5433 CFLAGS="$CFLAGS -Wmissing-declarations"
5434
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5436 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5437 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5438 if eval test \${$cacheid+y}
5439 then :
5440 printf %s "(cached) " >&6
5441 else case e in #(
5442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 int i;
5445 int
5446 main (void)
5447 {
5448
5449 ;
5450 return 0;
5451 }
5452 _ACEOF
5453 if ac_fn_c_try_link "$LINENO"
5454 then :
5455 eval $cacheid=yes
5456 else case e in #(
5457 e) eval $cacheid=no ;;
5458 esac
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5461 conftest$ac_exeext conftest.$ac_ext ;;
5462 esac
5463 fi
5464
5465
5466 CFLAGS="$xorg_testset_save_CFLAGS"
5467
5468 eval supported=\$$cacheid
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5470 printf "%s\n" "$supported" >&6; }
5471 if test "$supported" = "yes" ; then
5472 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5473 found="yes"
5474 fi
5475 fi
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491 xorg_testset_save_CFLAGS="$CFLAGS"
5492
5493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5496 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5497 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5498 then :
5499 printf %s "(cached) " >&6
5500 else case e in #(
5501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 int i;
5504 _ACEOF
5505 if ac_fn_c_try_compile "$LINENO"
5506 then :
5507 xorg_cv_cc_flag_unknown_warning_option=yes
5508 else case e in #(
5509 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5510 esac
5511 fi
5512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5513 esac
5514 fi
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5516 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5518 CFLAGS="$xorg_testset_save_CFLAGS"
5519 fi
5520
5521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5524 fi
5525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5527 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5528 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5529 then :
5530 printf %s "(cached) " >&6
5531 else case e in #(
5532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 int i;
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"
5537 then :
5538 xorg_cv_cc_flag_unused_command_line_argument=yes
5539 else case e in #(
5540 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5541 esac
5542 fi
5543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5544 esac
5545 fi
5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5547 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5549 CFLAGS="$xorg_testset_save_CFLAGS"
5550 fi
5551
5552 found="no"
5553
5554 if test $found = "no" ; then
5555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5557 fi
5558
5559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5561 fi
5562
5563 CFLAGS="$CFLAGS -Wformat=2"
5564
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5566 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5567 cacheid=xorg_cv_cc_flag__Wformat_2
5568 if eval test \${$cacheid+y}
5569 then :
5570 printf %s "(cached) " >&6
5571 else case e in #(
5572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 int i;
5575 int
5576 main (void)
5577 {
5578
5579 ;
5580 return 0;
5581 }
5582 _ACEOF
5583 if ac_fn_c_try_link "$LINENO"
5584 then :
5585 eval $cacheid=yes
5586 else case e in #(
5587 e) eval $cacheid=no ;;
5588 esac
5589 fi
5590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5591 conftest$ac_exeext conftest.$ac_ext ;;
5592 esac
5593 fi
5594
5595
5596 CFLAGS="$xorg_testset_save_CFLAGS"
5597
5598 eval supported=\$$cacheid
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5600 printf "%s\n" "$supported" >&6; }
5601 if test "$supported" = "yes" ; then
5602 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5603 found="yes"
5604 fi
5605 fi
5606
5607 if test $found = "no" ; then
5608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5610 fi
5611
5612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5614 fi
5615
5616 CFLAGS="$CFLAGS -Wformat"
5617
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5619 printf %s "checking if $CC supports -Wformat... " >&6; }
5620 cacheid=xorg_cv_cc_flag__Wformat
5621 if eval test \${$cacheid+y}
5622 then :
5623 printf %s "(cached) " >&6
5624 else case e in #(
5625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627 int i;
5628 int
5629 main (void)
5630 {
5631
5632 ;
5633 return 0;
5634 }
5635 _ACEOF
5636 if ac_fn_c_try_link "$LINENO"
5637 then :
5638 eval $cacheid=yes
5639 else case e in #(
5640 e) eval $cacheid=no ;;
5641 esac
5642 fi
5643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5644 conftest$ac_exeext conftest.$ac_ext ;;
5645 esac
5646 fi
5647
5648
5649 CFLAGS="$xorg_testset_save_CFLAGS"
5650
5651 eval supported=\$$cacheid
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5653 printf "%s\n" "$supported" >&6; }
5654 if test "$supported" = "yes" ; then
5655 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5656 found="yes"
5657 fi
5658 fi
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676 xorg_testset_save_CFLAGS="$CFLAGS"
5677
5678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5681 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5682 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5683 then :
5684 printf %s "(cached) " >&6
5685 else case e in #(
5686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 int i;
5689 _ACEOF
5690 if ac_fn_c_try_compile "$LINENO"
5691 then :
5692 xorg_cv_cc_flag_unknown_warning_option=yes
5693 else case e in #(
5694 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5695 esac
5696 fi
5697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5698 esac
5699 fi
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5701 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5703 CFLAGS="$xorg_testset_save_CFLAGS"
5704 fi
5705
5706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5709 fi
5710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5712 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5713 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5714 then :
5715 printf %s "(cached) " >&6
5716 else case e in #(
5717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719 int i;
5720 _ACEOF
5721 if ac_fn_c_try_compile "$LINENO"
5722 then :
5723 xorg_cv_cc_flag_unused_command_line_argument=yes
5724 else case e in #(
5725 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5726 esac
5727 fi
5728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5729 esac
5730 fi
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5732 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5734 CFLAGS="$xorg_testset_save_CFLAGS"
5735 fi
5736
5737 found="no"
5738
5739 if test $found = "no" ; then
5740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5742 fi
5743
5744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5746 fi
5747
5748 CFLAGS="$CFLAGS -Wstrict-prototypes"
5749
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5751 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5752 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5753 if eval test \${$cacheid+y}
5754 then :
5755 printf %s "(cached) " >&6
5756 else case e in #(
5757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 int i;
5760 int
5761 main (void)
5762 {
5763
5764 ;
5765 return 0;
5766 }
5767 _ACEOF
5768 if ac_fn_c_try_link "$LINENO"
5769 then :
5770 eval $cacheid=yes
5771 else case e in #(
5772 e) eval $cacheid=no ;;
5773 esac
5774 fi
5775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5776 conftest$ac_exeext conftest.$ac_ext ;;
5777 esac
5778 fi
5779
5780
5781 CFLAGS="$xorg_testset_save_CFLAGS"
5782
5783 eval supported=\$$cacheid
5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5785 printf "%s\n" "$supported" >&6; }
5786 if test "$supported" = "yes" ; then
5787 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5788 found="yes"
5789 fi
5790 fi
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806 xorg_testset_save_CFLAGS="$CFLAGS"
5807
5808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5811 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5812 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5813 then :
5814 printf %s "(cached) " >&6
5815 else case e in #(
5816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 int i;
5819 _ACEOF
5820 if ac_fn_c_try_compile "$LINENO"
5821 then :
5822 xorg_cv_cc_flag_unknown_warning_option=yes
5823 else case e in #(
5824 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5825 esac
5826 fi
5827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5828 esac
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 case e in #(
5847 e) 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 case e in #(
5855 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5856 esac
5857 fi
5858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5859 esac
5860 fi
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5862 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5864 CFLAGS="$xorg_testset_save_CFLAGS"
5865 fi
5866
5867 found="no"
5868
5869 if test $found = "no" ; then
5870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872 fi
5873
5874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5876 fi
5877
5878 CFLAGS="$CFLAGS -Wmissing-prototypes"
5879
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5881 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5882 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5883 if eval test \${$cacheid+y}
5884 then :
5885 printf %s "(cached) " >&6
5886 else case e in #(
5887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889 int i;
5890 int
5891 main (void)
5892 {
5893
5894 ;
5895 return 0;
5896 }
5897 _ACEOF
5898 if ac_fn_c_try_link "$LINENO"
5899 then :
5900 eval $cacheid=yes
5901 else case e in #(
5902 e) eval $cacheid=no ;;
5903 esac
5904 fi
5905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5906 conftest$ac_exeext conftest.$ac_ext ;;
5907 esac
5908 fi
5909
5910
5911 CFLAGS="$xorg_testset_save_CFLAGS"
5912
5913 eval supported=\$$cacheid
5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5915 printf "%s\n" "$supported" >&6; }
5916 if test "$supported" = "yes" ; then
5917 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5918 found="yes"
5919 fi
5920 fi
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936 xorg_testset_save_CFLAGS="$CFLAGS"
5937
5938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5941 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5942 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5943 then :
5944 printf %s "(cached) " >&6
5945 else case e in #(
5946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5948 int i;
5949 _ACEOF
5950 if ac_fn_c_try_compile "$LINENO"
5951 then :
5952 xorg_cv_cc_flag_unknown_warning_option=yes
5953 else case e in #(
5954 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5955 esac
5956 fi
5957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5958 esac
5959 fi
5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5961 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5963 CFLAGS="$xorg_testset_save_CFLAGS"
5964 fi
5965
5966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5969 fi
5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5972 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5973 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5974 then :
5975 printf %s "(cached) " >&6
5976 else case e in #(
5977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 int i;
5980 _ACEOF
5981 if ac_fn_c_try_compile "$LINENO"
5982 then :
5983 xorg_cv_cc_flag_unused_command_line_argument=yes
5984 else case e in #(
5985 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5986 esac
5987 fi
5988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5989 esac
5990 fi
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5992 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5994 CFLAGS="$xorg_testset_save_CFLAGS"
5995 fi
5996
5997 found="no"
5998
5999 if test $found = "no" ; then
6000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6002 fi
6003
6004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6006 fi
6007
6008 CFLAGS="$CFLAGS -Wnested-externs"
6009
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6011 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6012 cacheid=xorg_cv_cc_flag__Wnested_externs
6013 if eval test \${$cacheid+y}
6014 then :
6015 printf %s "(cached) " >&6
6016 else case e in #(
6017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 int i;
6020 int
6021 main (void)
6022 {
6023
6024 ;
6025 return 0;
6026 }
6027 _ACEOF
6028 if ac_fn_c_try_link "$LINENO"
6029 then :
6030 eval $cacheid=yes
6031 else case e in #(
6032 e) eval $cacheid=no ;;
6033 esac
6034 fi
6035 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6036 conftest$ac_exeext conftest.$ac_ext ;;
6037 esac
6038 fi
6039
6040
6041 CFLAGS="$xorg_testset_save_CFLAGS"
6042
6043 eval supported=\$$cacheid
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6045 printf "%s\n" "$supported" >&6; }
6046 if test "$supported" = "yes" ; then
6047 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6048 found="yes"
6049 fi
6050 fi
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066 xorg_testset_save_CFLAGS="$CFLAGS"
6067
6068 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6071 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6072 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6073 then :
6074 printf %s "(cached) " >&6
6075 else case e in #(
6076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6078 int i;
6079 _ACEOF
6080 if ac_fn_c_try_compile "$LINENO"
6081 then :
6082 xorg_cv_cc_flag_unknown_warning_option=yes
6083 else case e in #(
6084 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6085 esac
6086 fi
6087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6088 esac
6089 fi
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6091 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6093 CFLAGS="$xorg_testset_save_CFLAGS"
6094 fi
6095
6096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6099 fi
6100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6102 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6103 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6104 then :
6105 printf %s "(cached) " >&6
6106 else case e in #(
6107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 int i;
6110 _ACEOF
6111 if ac_fn_c_try_compile "$LINENO"
6112 then :
6113 xorg_cv_cc_flag_unused_command_line_argument=yes
6114 else case e in #(
6115 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6116 esac
6117 fi
6118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6119 esac
6120 fi
6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6122 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6124 CFLAGS="$xorg_testset_save_CFLAGS"
6125 fi
6126
6127 found="no"
6128
6129 if test $found = "no" ; then
6130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6132 fi
6133
6134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6136 fi
6137
6138 CFLAGS="$CFLAGS -Wbad-function-cast"
6139
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6141 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6142 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6143 if eval test \${$cacheid+y}
6144 then :
6145 printf %s "(cached) " >&6
6146 else case e in #(
6147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6149 int i;
6150 int
6151 main (void)
6152 {
6153
6154 ;
6155 return 0;
6156 }
6157 _ACEOF
6158 if ac_fn_c_try_link "$LINENO"
6159 then :
6160 eval $cacheid=yes
6161 else case e in #(
6162 e) eval $cacheid=no ;;
6163 esac
6164 fi
6165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6166 conftest$ac_exeext conftest.$ac_ext ;;
6167 esac
6168 fi
6169
6170
6171 CFLAGS="$xorg_testset_save_CFLAGS"
6172
6173 eval supported=\$$cacheid
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6175 printf "%s\n" "$supported" >&6; }
6176 if test "$supported" = "yes" ; then
6177 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6178 found="yes"
6179 fi
6180 fi
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196 xorg_testset_save_CFLAGS="$CFLAGS"
6197
6198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6201 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6202 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6203 then :
6204 printf %s "(cached) " >&6
6205 else case e in #(
6206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6208 int i;
6209 _ACEOF
6210 if ac_fn_c_try_compile "$LINENO"
6211 then :
6212 xorg_cv_cc_flag_unknown_warning_option=yes
6213 else case e in #(
6214 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6215 esac
6216 fi
6217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6218 esac
6219 fi
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6221 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6223 CFLAGS="$xorg_testset_save_CFLAGS"
6224 fi
6225
6226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229 fi
6230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6232 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6233 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6234 then :
6235 printf %s "(cached) " >&6
6236 else case e in #(
6237 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6239 int i;
6240 _ACEOF
6241 if ac_fn_c_try_compile "$LINENO"
6242 then :
6243 xorg_cv_cc_flag_unused_command_line_argument=yes
6244 else case e in #(
6245 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6246 esac
6247 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6249 esac
6250 fi
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6252 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6254 CFLAGS="$xorg_testset_save_CFLAGS"
6255 fi
6256
6257 found="no"
6258
6259 if test $found = "no" ; then
6260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6262 fi
6263
6264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6266 fi
6267
6268 CFLAGS="$CFLAGS -Wold-style-definition"
6269
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6271 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6272 cacheid=xorg_cv_cc_flag__Wold_style_definition
6273 if eval test \${$cacheid+y}
6274 then :
6275 printf %s "(cached) " >&6
6276 else case e in #(
6277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6279 int i;
6280 int
6281 main (void)
6282 {
6283
6284 ;
6285 return 0;
6286 }
6287 _ACEOF
6288 if ac_fn_c_try_link "$LINENO"
6289 then :
6290 eval $cacheid=yes
6291 else case e in #(
6292 e) eval $cacheid=no ;;
6293 esac
6294 fi
6295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6296 conftest$ac_exeext conftest.$ac_ext ;;
6297 esac
6298 fi
6299
6300
6301 CFLAGS="$xorg_testset_save_CFLAGS"
6302
6303 eval supported=\$$cacheid
6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6305 printf "%s\n" "$supported" >&6; }
6306 if test "$supported" = "yes" ; then
6307 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6308 found="yes"
6309 fi
6310 fi
6311
6312 if test $found = "no" ; then
6313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6315 fi
6316
6317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6319 fi
6320
6321 CFLAGS="$CFLAGS -fd"
6322
6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6324 printf %s "checking if $CC supports -fd... " >&6; }
6325 cacheid=xorg_cv_cc_flag__fd
6326 if eval test \${$cacheid+y}
6327 then :
6328 printf %s "(cached) " >&6
6329 else case e in #(
6330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6332 int i;
6333 int
6334 main (void)
6335 {
6336
6337 ;
6338 return 0;
6339 }
6340 _ACEOF
6341 if ac_fn_c_try_link "$LINENO"
6342 then :
6343 eval $cacheid=yes
6344 else case e in #(
6345 e) eval $cacheid=no ;;
6346 esac
6347 fi
6348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6349 conftest$ac_exeext conftest.$ac_ext ;;
6350 esac
6351 fi
6352
6353
6354 CFLAGS="$xorg_testset_save_CFLAGS"
6355
6356 eval supported=\$$cacheid
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6358 printf "%s\n" "$supported" >&6; }
6359 if test "$supported" = "yes" ; then
6360 BASE_CFLAGS="$BASE_CFLAGS -fd"
6361 found="yes"
6362 fi
6363 fi
6364
6365
6366
6367
6368
6369 # This chunk adds additional warnings that could catch undesired effects.
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 xorg_testset_save_CFLAGS="$CFLAGS"
6384
6385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6388 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6389 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6390 then :
6391 printf %s "(cached) " >&6
6392 else case e in #(
6393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394 /* end confdefs.h. */
6395 int i;
6396 _ACEOF
6397 if ac_fn_c_try_compile "$LINENO"
6398 then :
6399 xorg_cv_cc_flag_unknown_warning_option=yes
6400 else case e in #(
6401 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6402 esac
6403 fi
6404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6405 esac
6406 fi
6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6408 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6410 CFLAGS="$xorg_testset_save_CFLAGS"
6411 fi
6412
6413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6416 fi
6417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6419 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6420 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6421 then :
6422 printf %s "(cached) " >&6
6423 else case e in #(
6424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6426 int i;
6427 _ACEOF
6428 if ac_fn_c_try_compile "$LINENO"
6429 then :
6430 xorg_cv_cc_flag_unused_command_line_argument=yes
6431 else case e in #(
6432 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6433 esac
6434 fi
6435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6436 esac
6437 fi
6438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6439 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6441 CFLAGS="$xorg_testset_save_CFLAGS"
6442 fi
6443
6444 found="no"
6445
6446 if test $found = "no" ; then
6447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6449 fi
6450
6451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6453 fi
6454
6455 CFLAGS="$CFLAGS -Wunused"
6456
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6458 printf %s "checking if $CC supports -Wunused... " >&6; }
6459 cacheid=xorg_cv_cc_flag__Wunused
6460 if eval test \${$cacheid+y}
6461 then :
6462 printf %s "(cached) " >&6
6463 else case e in #(
6464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 int i;
6467 int
6468 main (void)
6469 {
6470
6471 ;
6472 return 0;
6473 }
6474 _ACEOF
6475 if ac_fn_c_try_link "$LINENO"
6476 then :
6477 eval $cacheid=yes
6478 else case e in #(
6479 e) eval $cacheid=no ;;
6480 esac
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6483 conftest$ac_exeext conftest.$ac_ext ;;
6484 esac
6485 fi
6486
6487
6488 CFLAGS="$xorg_testset_save_CFLAGS"
6489
6490 eval supported=\$$cacheid
6491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6492 printf "%s\n" "$supported" >&6; }
6493 if test "$supported" = "yes" ; then
6494 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6495 found="yes"
6496 fi
6497 fi
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513 xorg_testset_save_CFLAGS="$CFLAGS"
6514
6515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6518 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6519 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6520 then :
6521 printf %s "(cached) " >&6
6522 else case e in #(
6523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 int i;
6526 _ACEOF
6527 if ac_fn_c_try_compile "$LINENO"
6528 then :
6529 xorg_cv_cc_flag_unknown_warning_option=yes
6530 else case e in #(
6531 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6532 esac
6533 fi
6534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6535 esac
6536 fi
6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6538 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6540 CFLAGS="$xorg_testset_save_CFLAGS"
6541 fi
6542
6543 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6546 fi
6547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6549 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6550 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6551 then :
6552 printf %s "(cached) " >&6
6553 else case e in #(
6554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 int i;
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"
6559 then :
6560 xorg_cv_cc_flag_unused_command_line_argument=yes
6561 else case e in #(
6562 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6563 esac
6564 fi
6565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6566 esac
6567 fi
6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6569 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6571 CFLAGS="$xorg_testset_save_CFLAGS"
6572 fi
6573
6574 found="no"
6575
6576 if test $found = "no" ; then
6577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6579 fi
6580
6581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6583 fi
6584
6585 CFLAGS="$CFLAGS -Wuninitialized"
6586
6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6588 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6589 cacheid=xorg_cv_cc_flag__Wuninitialized
6590 if eval test \${$cacheid+y}
6591 then :
6592 printf %s "(cached) " >&6
6593 else case e in #(
6594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596 int i;
6597 int
6598 main (void)
6599 {
6600
6601 ;
6602 return 0;
6603 }
6604 _ACEOF
6605 if ac_fn_c_try_link "$LINENO"
6606 then :
6607 eval $cacheid=yes
6608 else case e in #(
6609 e) eval $cacheid=no ;;
6610 esac
6611 fi
6612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6613 conftest$ac_exeext conftest.$ac_ext ;;
6614 esac
6615 fi
6616
6617
6618 CFLAGS="$xorg_testset_save_CFLAGS"
6619
6620 eval supported=\$$cacheid
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6622 printf "%s\n" "$supported" >&6; }
6623 if test "$supported" = "yes" ; then
6624 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6625 found="yes"
6626 fi
6627 fi
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643 xorg_testset_save_CFLAGS="$CFLAGS"
6644
6645 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6648 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6649 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6650 then :
6651 printf %s "(cached) " >&6
6652 else case e in #(
6653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6654 /* end confdefs.h. */
6655 int i;
6656 _ACEOF
6657 if ac_fn_c_try_compile "$LINENO"
6658 then :
6659 xorg_cv_cc_flag_unknown_warning_option=yes
6660 else case e in #(
6661 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6662 esac
6663 fi
6664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6665 esac
6666 fi
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6668 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6670 CFLAGS="$xorg_testset_save_CFLAGS"
6671 fi
6672
6673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676 fi
6677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6679 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6680 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6681 then :
6682 printf %s "(cached) " >&6
6683 else case e in #(
6684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 int i;
6687 _ACEOF
6688 if ac_fn_c_try_compile "$LINENO"
6689 then :
6690 xorg_cv_cc_flag_unused_command_line_argument=yes
6691 else case e in #(
6692 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6693 esac
6694 fi
6695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6696 esac
6697 fi
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6699 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6701 CFLAGS="$xorg_testset_save_CFLAGS"
6702 fi
6703
6704 found="no"
6705
6706 if test $found = "no" ; then
6707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6709 fi
6710
6711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6713 fi
6714
6715 CFLAGS="$CFLAGS -Wshadow"
6716
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6718 printf %s "checking if $CC supports -Wshadow... " >&6; }
6719 cacheid=xorg_cv_cc_flag__Wshadow
6720 if eval test \${$cacheid+y}
6721 then :
6722 printf %s "(cached) " >&6
6723 else case e in #(
6724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726 int i;
6727 int
6728 main (void)
6729 {
6730
6731 ;
6732 return 0;
6733 }
6734 _ACEOF
6735 if ac_fn_c_try_link "$LINENO"
6736 then :
6737 eval $cacheid=yes
6738 else case e in #(
6739 e) eval $cacheid=no ;;
6740 esac
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6743 conftest$ac_exeext conftest.$ac_ext ;;
6744 esac
6745 fi
6746
6747
6748 CFLAGS="$xorg_testset_save_CFLAGS"
6749
6750 eval supported=\$$cacheid
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6752 printf "%s\n" "$supported" >&6; }
6753 if test "$supported" = "yes" ; then
6754 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6755 found="yes"
6756 fi
6757 fi
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773 xorg_testset_save_CFLAGS="$CFLAGS"
6774
6775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6778 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6779 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6780 then :
6781 printf %s "(cached) " >&6
6782 else case e in #(
6783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785 int i;
6786 _ACEOF
6787 if ac_fn_c_try_compile "$LINENO"
6788 then :
6789 xorg_cv_cc_flag_unknown_warning_option=yes
6790 else case e in #(
6791 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6792 esac
6793 fi
6794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6795 esac
6796 fi
6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6798 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6800 CFLAGS="$xorg_testset_save_CFLAGS"
6801 fi
6802
6803 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806 fi
6807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6809 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6810 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6811 then :
6812 printf %s "(cached) " >&6
6813 else case e in #(
6814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 int i;
6817 _ACEOF
6818 if ac_fn_c_try_compile "$LINENO"
6819 then :
6820 xorg_cv_cc_flag_unused_command_line_argument=yes
6821 else case e in #(
6822 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6823 esac
6824 fi
6825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6826 esac
6827 fi
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6829 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6831 CFLAGS="$xorg_testset_save_CFLAGS"
6832 fi
6833
6834 found="no"
6835
6836 if test $found = "no" ; then
6837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6839 fi
6840
6841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6843 fi
6844
6845 CFLAGS="$CFLAGS -Wmissing-noreturn"
6846
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6848 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6849 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6850 if eval test \${$cacheid+y}
6851 then :
6852 printf %s "(cached) " >&6
6853 else case e in #(
6854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856 int i;
6857 int
6858 main (void)
6859 {
6860
6861 ;
6862 return 0;
6863 }
6864 _ACEOF
6865 if ac_fn_c_try_link "$LINENO"
6866 then :
6867 eval $cacheid=yes
6868 else case e in #(
6869 e) eval $cacheid=no ;;
6870 esac
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6873 conftest$ac_exeext conftest.$ac_ext ;;
6874 esac
6875 fi
6876
6877
6878 CFLAGS="$xorg_testset_save_CFLAGS"
6879
6880 eval supported=\$$cacheid
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6882 printf "%s\n" "$supported" >&6; }
6883 if test "$supported" = "yes" ; then
6884 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6885 found="yes"
6886 fi
6887 fi
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903 xorg_testset_save_CFLAGS="$CFLAGS"
6904
6905 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6908 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6909 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6910 then :
6911 printf %s "(cached) " >&6
6912 else case e in #(
6913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6915 int i;
6916 _ACEOF
6917 if ac_fn_c_try_compile "$LINENO"
6918 then :
6919 xorg_cv_cc_flag_unknown_warning_option=yes
6920 else case e in #(
6921 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6922 esac
6923 fi
6924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6925 esac
6926 fi
6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6928 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6930 CFLAGS="$xorg_testset_save_CFLAGS"
6931 fi
6932
6933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6936 fi
6937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6939 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6940 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6941 then :
6942 printf %s "(cached) " >&6
6943 else case e in #(
6944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6946 int i;
6947 _ACEOF
6948 if ac_fn_c_try_compile "$LINENO"
6949 then :
6950 xorg_cv_cc_flag_unused_command_line_argument=yes
6951 else case e in #(
6952 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6953 esac
6954 fi
6955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6956 esac
6957 fi
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6959 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6961 CFLAGS="$xorg_testset_save_CFLAGS"
6962 fi
6963
6964 found="no"
6965
6966 if test $found = "no" ; then
6967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969 fi
6970
6971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6973 fi
6974
6975 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6976
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6978 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6979 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6980 if eval test \${$cacheid+y}
6981 then :
6982 printf %s "(cached) " >&6
6983 else case e in #(
6984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h. */
6986 int i;
6987 int
6988 main (void)
6989 {
6990
6991 ;
6992 return 0;
6993 }
6994 _ACEOF
6995 if ac_fn_c_try_link "$LINENO"
6996 then :
6997 eval $cacheid=yes
6998 else case e in #(
6999 e) eval $cacheid=no ;;
7000 esac
7001 fi
7002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7003 conftest$ac_exeext conftest.$ac_ext ;;
7004 esac
7005 fi
7006
7007
7008 CFLAGS="$xorg_testset_save_CFLAGS"
7009
7010 eval supported=\$$cacheid
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7012 printf "%s\n" "$supported" >&6; }
7013 if test "$supported" = "yes" ; then
7014 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7015 found="yes"
7016 fi
7017 fi
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033 xorg_testset_save_CFLAGS="$CFLAGS"
7034
7035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7038 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7039 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7040 then :
7041 printf %s "(cached) " >&6
7042 else case e in #(
7043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h. */
7045 int i;
7046 _ACEOF
7047 if ac_fn_c_try_compile "$LINENO"
7048 then :
7049 xorg_cv_cc_flag_unknown_warning_option=yes
7050 else case e in #(
7051 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7052 esac
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7055 esac
7056 fi
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7058 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7060 CFLAGS="$xorg_testset_save_CFLAGS"
7061 fi
7062
7063 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7066 fi
7067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7069 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7070 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7071 then :
7072 printf %s "(cached) " >&6
7073 else case e in #(
7074 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 int i;
7077 _ACEOF
7078 if ac_fn_c_try_compile "$LINENO"
7079 then :
7080 xorg_cv_cc_flag_unused_command_line_argument=yes
7081 else case e in #(
7082 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7083 esac
7084 fi
7085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7086 esac
7087 fi
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7089 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7091 CFLAGS="$xorg_testset_save_CFLAGS"
7092 fi
7093
7094 found="no"
7095
7096 if test $found = "no" ; then
7097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7099 fi
7100
7101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7103 fi
7104
7105 CFLAGS="$CFLAGS -Wredundant-decls"
7106
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7108 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7109 cacheid=xorg_cv_cc_flag__Wredundant_decls
7110 if eval test \${$cacheid+y}
7111 then :
7112 printf %s "(cached) " >&6
7113 else case e in #(
7114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7116 int i;
7117 int
7118 main (void)
7119 {
7120
7121 ;
7122 return 0;
7123 }
7124 _ACEOF
7125 if ac_fn_c_try_link "$LINENO"
7126 then :
7127 eval $cacheid=yes
7128 else case e in #(
7129 e) eval $cacheid=no ;;
7130 esac
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7133 conftest$ac_exeext conftest.$ac_ext ;;
7134 esac
7135 fi
7136
7137
7138 CFLAGS="$xorg_testset_save_CFLAGS"
7139
7140 eval supported=\$$cacheid
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7142 printf "%s\n" "$supported" >&6; }
7143 if test "$supported" = "yes" ; then
7144 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7145 found="yes"
7146 fi
7147 fi
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163 xorg_testset_save_CFLAGS="$CFLAGS"
7164
7165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7168 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7169 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7170 then :
7171 printf %s "(cached) " >&6
7172 else case e in #(
7173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 int i;
7176 _ACEOF
7177 if ac_fn_c_try_compile "$LINENO"
7178 then :
7179 xorg_cv_cc_flag_unknown_warning_option=yes
7180 else case e in #(
7181 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7182 esac
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7185 esac
7186 fi
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7188 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7190 CFLAGS="$xorg_testset_save_CFLAGS"
7191 fi
7192
7193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7196 fi
7197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7199 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7200 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7201 then :
7202 printf %s "(cached) " >&6
7203 else case e in #(
7204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 int i;
7207 _ACEOF
7208 if ac_fn_c_try_compile "$LINENO"
7209 then :
7210 xorg_cv_cc_flag_unused_command_line_argument=yes
7211 else case e in #(
7212 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7213 esac
7214 fi
7215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7216 esac
7217 fi
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7219 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7221 CFLAGS="$xorg_testset_save_CFLAGS"
7222 fi
7223
7224 found="no"
7225
7226 if test $found = "no" ; then
7227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7229 fi
7230
7231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7233 fi
7234
7235 CFLAGS="$CFLAGS -Wlogical-op"
7236
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7238 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7239 cacheid=xorg_cv_cc_flag__Wlogical_op
7240 if eval test \${$cacheid+y}
7241 then :
7242 printf %s "(cached) " >&6
7243 else case e in #(
7244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 int i;
7247 int
7248 main (void)
7249 {
7250
7251 ;
7252 return 0;
7253 }
7254 _ACEOF
7255 if ac_fn_c_try_link "$LINENO"
7256 then :
7257 eval $cacheid=yes
7258 else case e in #(
7259 e) eval $cacheid=no ;;
7260 esac
7261 fi
7262 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7263 conftest$ac_exeext conftest.$ac_ext ;;
7264 esac
7265 fi
7266
7267
7268 CFLAGS="$xorg_testset_save_CFLAGS"
7269
7270 eval supported=\$$cacheid
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7272 printf "%s\n" "$supported" >&6; }
7273 if test "$supported" = "yes" ; then
7274 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7275 found="yes"
7276 fi
7277 fi
7278
7279
7280
7281 # These are currently disabled because they are noisy. They will be enabled
7282 # in the future once the codebase is sufficiently modernized to silence
7283 # them. For now, I don't want them to drown out the other warnings.
7284 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7285 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7286 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7287
7288 # Turn some warnings into errors, so we don't accidentally get successful builds
7289 # when there are problems that should be fixed.
7290
7291 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305 xorg_testset_save_CFLAGS="$CFLAGS"
7306
7307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7310 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7311 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7312 then :
7313 printf %s "(cached) " >&6
7314 else case e in #(
7315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 int i;
7318 _ACEOF
7319 if ac_fn_c_try_compile "$LINENO"
7320 then :
7321 xorg_cv_cc_flag_unknown_warning_option=yes
7322 else case e in #(
7323 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7324 esac
7325 fi
7326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7327 esac
7328 fi
7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7330 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7332 CFLAGS="$xorg_testset_save_CFLAGS"
7333 fi
7334
7335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338 fi
7339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7341 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7342 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7343 then :
7344 printf %s "(cached) " >&6
7345 else case e in #(
7346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7348 int i;
7349 _ACEOF
7350 if ac_fn_c_try_compile "$LINENO"
7351 then :
7352 xorg_cv_cc_flag_unused_command_line_argument=yes
7353 else case e in #(
7354 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7355 esac
7356 fi
7357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7358 esac
7359 fi
7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7361 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7363 CFLAGS="$xorg_testset_save_CFLAGS"
7364 fi
7365
7366 found="no"
7367
7368 if test $found = "no" ; then
7369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7371 fi
7372
7373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7375 fi
7376
7377 CFLAGS="$CFLAGS -Werror=implicit"
7378
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7380 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7381 cacheid=xorg_cv_cc_flag__Werror_implicit
7382 if eval test \${$cacheid+y}
7383 then :
7384 printf %s "(cached) " >&6
7385 else case e in #(
7386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 int i;
7389 int
7390 main (void)
7391 {
7392
7393 ;
7394 return 0;
7395 }
7396 _ACEOF
7397 if ac_fn_c_try_link "$LINENO"
7398 then :
7399 eval $cacheid=yes
7400 else case e in #(
7401 e) eval $cacheid=no ;;
7402 esac
7403 fi
7404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7405 conftest$ac_exeext conftest.$ac_ext ;;
7406 esac
7407 fi
7408
7409
7410 CFLAGS="$xorg_testset_save_CFLAGS"
7411
7412 eval supported=\$$cacheid
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7414 printf "%s\n" "$supported" >&6; }
7415 if test "$supported" = "yes" ; then
7416 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7417 found="yes"
7418 fi
7419 fi
7420
7421 if test $found = "no" ; then
7422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424 fi
7425
7426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7428 fi
7429
7430 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7431
7432 { 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
7433 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7434 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7435 if eval test \${$cacheid+y}
7436 then :
7437 printf %s "(cached) " >&6
7438 else case e in #(
7439 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 int i;
7442 int
7443 main (void)
7444 {
7445
7446 ;
7447 return 0;
7448 }
7449 _ACEOF
7450 if ac_fn_c_try_link "$LINENO"
7451 then :
7452 eval $cacheid=yes
7453 else case e in #(
7454 e) eval $cacheid=no ;;
7455 esac
7456 fi
7457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7458 conftest$ac_exeext conftest.$ac_ext ;;
7459 esac
7460 fi
7461
7462
7463 CFLAGS="$xorg_testset_save_CFLAGS"
7464
7465 eval supported=\$$cacheid
7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7467 printf "%s\n" "$supported" >&6; }
7468 if test "$supported" = "yes" ; then
7469 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7470 found="yes"
7471 fi
7472 fi
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488 xorg_testset_save_CFLAGS="$CFLAGS"
7489
7490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7493 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7494 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7495 then :
7496 printf %s "(cached) " >&6
7497 else case e in #(
7498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7500 int i;
7501 _ACEOF
7502 if ac_fn_c_try_compile "$LINENO"
7503 then :
7504 xorg_cv_cc_flag_unknown_warning_option=yes
7505 else case e in #(
7506 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7507 esac
7508 fi
7509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7510 esac
7511 fi
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7515 CFLAGS="$xorg_testset_save_CFLAGS"
7516 fi
7517
7518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521 fi
7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7526 then :
7527 printf %s "(cached) " >&6
7528 else case e in #(
7529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 int i;
7532 _ACEOF
7533 if ac_fn_c_try_compile "$LINENO"
7534 then :
7535 xorg_cv_cc_flag_unused_command_line_argument=yes
7536 else case e in #(
7537 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7538 esac
7539 fi
7540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7541 esac
7542 fi
7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7546 CFLAGS="$xorg_testset_save_CFLAGS"
7547 fi
7548
7549 found="no"
7550
7551 if test $found = "no" ; then
7552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7554 fi
7555
7556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7558 fi
7559
7560 CFLAGS="$CFLAGS -Werror=nonnull"
7561
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7563 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7564 cacheid=xorg_cv_cc_flag__Werror_nonnull
7565 if eval test \${$cacheid+y}
7566 then :
7567 printf %s "(cached) " >&6
7568 else case e in #(
7569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571 int i;
7572 int
7573 main (void)
7574 {
7575
7576 ;
7577 return 0;
7578 }
7579 _ACEOF
7580 if ac_fn_c_try_link "$LINENO"
7581 then :
7582 eval $cacheid=yes
7583 else case e in #(
7584 e) eval $cacheid=no ;;
7585 esac
7586 fi
7587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7588 conftest$ac_exeext conftest.$ac_ext ;;
7589 esac
7590 fi
7591
7592
7593 CFLAGS="$xorg_testset_save_CFLAGS"
7594
7595 eval supported=\$$cacheid
7596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7597 printf "%s\n" "$supported" >&6; }
7598 if test "$supported" = "yes" ; then
7599 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7600 found="yes"
7601 fi
7602 fi
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618 xorg_testset_save_CFLAGS="$CFLAGS"
7619
7620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7623 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7624 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7625 then :
7626 printf %s "(cached) " >&6
7627 else case e in #(
7628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 int i;
7631 _ACEOF
7632 if ac_fn_c_try_compile "$LINENO"
7633 then :
7634 xorg_cv_cc_flag_unknown_warning_option=yes
7635 else case e in #(
7636 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7637 esac
7638 fi
7639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7640 esac
7641 fi
7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7643 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7645 CFLAGS="$xorg_testset_save_CFLAGS"
7646 fi
7647
7648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7651 fi
7652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7654 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7655 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7656 then :
7657 printf %s "(cached) " >&6
7658 else case e in #(
7659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7660 /* end confdefs.h. */
7661 int i;
7662 _ACEOF
7663 if ac_fn_c_try_compile "$LINENO"
7664 then :
7665 xorg_cv_cc_flag_unused_command_line_argument=yes
7666 else case e in #(
7667 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7668 esac
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7671 esac
7672 fi
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7674 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7676 CFLAGS="$xorg_testset_save_CFLAGS"
7677 fi
7678
7679 found="no"
7680
7681 if test $found = "no" ; then
7682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7684 fi
7685
7686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7688 fi
7689
7690 CFLAGS="$CFLAGS -Werror=init-self"
7691
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7693 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7694 cacheid=xorg_cv_cc_flag__Werror_init_self
7695 if eval test \${$cacheid+y}
7696 then :
7697 printf %s "(cached) " >&6
7698 else case e in #(
7699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 int i;
7702 int
7703 main (void)
7704 {
7705
7706 ;
7707 return 0;
7708 }
7709 _ACEOF
7710 if ac_fn_c_try_link "$LINENO"
7711 then :
7712 eval $cacheid=yes
7713 else case e in #(
7714 e) eval $cacheid=no ;;
7715 esac
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7718 conftest$ac_exeext conftest.$ac_ext ;;
7719 esac
7720 fi
7721
7722
7723 CFLAGS="$xorg_testset_save_CFLAGS"
7724
7725 eval supported=\$$cacheid
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7727 printf "%s\n" "$supported" >&6; }
7728 if test "$supported" = "yes" ; then
7729 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7730 found="yes"
7731 fi
7732 fi
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748 xorg_testset_save_CFLAGS="$CFLAGS"
7749
7750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7754 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7755 then :
7756 printf %s "(cached) " >&6
7757 else case e in #(
7758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7760 int i;
7761 _ACEOF
7762 if ac_fn_c_try_compile "$LINENO"
7763 then :
7764 xorg_cv_cc_flag_unknown_warning_option=yes
7765 else case e in #(
7766 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7767 esac
7768 fi
7769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7770 esac
7771 fi
7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7773 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7775 CFLAGS="$xorg_testset_save_CFLAGS"
7776 fi
7777
7778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7781 fi
7782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7784 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7785 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7786 then :
7787 printf %s "(cached) " >&6
7788 else case e in #(
7789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 int i;
7792 _ACEOF
7793 if ac_fn_c_try_compile "$LINENO"
7794 then :
7795 xorg_cv_cc_flag_unused_command_line_argument=yes
7796 else case e in #(
7797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7798 esac
7799 fi
7800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7801 esac
7802 fi
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7804 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7806 CFLAGS="$xorg_testset_save_CFLAGS"
7807 fi
7808
7809 found="no"
7810
7811 if test $found = "no" ; then
7812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7814 fi
7815
7816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7818 fi
7819
7820 CFLAGS="$CFLAGS -Werror=main"
7821
7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7823 printf %s "checking if $CC supports -Werror=main... " >&6; }
7824 cacheid=xorg_cv_cc_flag__Werror_main
7825 if eval test \${$cacheid+y}
7826 then :
7827 printf %s "(cached) " >&6
7828 else case e in #(
7829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 int i;
7832 int
7833 main (void)
7834 {
7835
7836 ;
7837 return 0;
7838 }
7839 _ACEOF
7840 if ac_fn_c_try_link "$LINENO"
7841 then :
7842 eval $cacheid=yes
7843 else case e in #(
7844 e) eval $cacheid=no ;;
7845 esac
7846 fi
7847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7848 conftest$ac_exeext conftest.$ac_ext ;;
7849 esac
7850 fi
7851
7852
7853 CFLAGS="$xorg_testset_save_CFLAGS"
7854
7855 eval supported=\$$cacheid
7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7857 printf "%s\n" "$supported" >&6; }
7858 if test "$supported" = "yes" ; then
7859 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7860 found="yes"
7861 fi
7862 fi
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878 xorg_testset_save_CFLAGS="$CFLAGS"
7879
7880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7884 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7885 then :
7886 printf %s "(cached) " >&6
7887 else case e in #(
7888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 int i;
7891 _ACEOF
7892 if ac_fn_c_try_compile "$LINENO"
7893 then :
7894 xorg_cv_cc_flag_unknown_warning_option=yes
7895 else case e in #(
7896 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7897 esac
7898 fi
7899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7900 esac
7901 fi
7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7903 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7905 CFLAGS="$xorg_testset_save_CFLAGS"
7906 fi
7907
7908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911 fi
7912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7916 then :
7917 printf %s "(cached) " >&6
7918 else case e in #(
7919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 int i;
7922 _ACEOF
7923 if ac_fn_c_try_compile "$LINENO"
7924 then :
7925 xorg_cv_cc_flag_unused_command_line_argument=yes
7926 else case e in #(
7927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7928 esac
7929 fi
7930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7931 esac
7932 fi
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7936 CFLAGS="$xorg_testset_save_CFLAGS"
7937 fi
7938
7939 found="no"
7940
7941 if test $found = "no" ; then
7942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7944 fi
7945
7946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7948 fi
7949
7950 CFLAGS="$CFLAGS -Werror=missing-braces"
7951
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7953 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7954 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7955 if eval test \${$cacheid+y}
7956 then :
7957 printf %s "(cached) " >&6
7958 else case e in #(
7959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 int i;
7962 int
7963 main (void)
7964 {
7965
7966 ;
7967 return 0;
7968 }
7969 _ACEOF
7970 if ac_fn_c_try_link "$LINENO"
7971 then :
7972 eval $cacheid=yes
7973 else case e in #(
7974 e) eval $cacheid=no ;;
7975 esac
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7978 conftest$ac_exeext conftest.$ac_ext ;;
7979 esac
7980 fi
7981
7982
7983 CFLAGS="$xorg_testset_save_CFLAGS"
7984
7985 eval supported=\$$cacheid
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7987 printf "%s\n" "$supported" >&6; }
7988 if test "$supported" = "yes" ; then
7989 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7990 found="yes"
7991 fi
7992 fi
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008 xorg_testset_save_CFLAGS="$CFLAGS"
8009
8010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8014 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8015 then :
8016 printf %s "(cached) " >&6
8017 else case e in #(
8018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h. */
8020 int i;
8021 _ACEOF
8022 if ac_fn_c_try_compile "$LINENO"
8023 then :
8024 xorg_cv_cc_flag_unknown_warning_option=yes
8025 else case e in #(
8026 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8027 esac
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8030 esac
8031 fi
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8033 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8035 CFLAGS="$xorg_testset_save_CFLAGS"
8036 fi
8037
8038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8041 fi
8042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8045 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8046 then :
8047 printf %s "(cached) " >&6
8048 else case e in #(
8049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051 int i;
8052 _ACEOF
8053 if ac_fn_c_try_compile "$LINENO"
8054 then :
8055 xorg_cv_cc_flag_unused_command_line_argument=yes
8056 else case e in #(
8057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8058 esac
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8061 esac
8062 fi
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8064 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8066 CFLAGS="$xorg_testset_save_CFLAGS"
8067 fi
8068
8069 found="no"
8070
8071 if test $found = "no" ; then
8072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8074 fi
8075
8076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8078 fi
8079
8080 CFLAGS="$CFLAGS -Werror=sequence-point"
8081
8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8083 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8084 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8085 if eval test \${$cacheid+y}
8086 then :
8087 printf %s "(cached) " >&6
8088 else case e in #(
8089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 int i;
8092 int
8093 main (void)
8094 {
8095
8096 ;
8097 return 0;
8098 }
8099 _ACEOF
8100 if ac_fn_c_try_link "$LINENO"
8101 then :
8102 eval $cacheid=yes
8103 else case e in #(
8104 e) eval $cacheid=no ;;
8105 esac
8106 fi
8107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8108 conftest$ac_exeext conftest.$ac_ext ;;
8109 esac
8110 fi
8111
8112
8113 CFLAGS="$xorg_testset_save_CFLAGS"
8114
8115 eval supported=\$$cacheid
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8117 printf "%s\n" "$supported" >&6; }
8118 if test "$supported" = "yes" ; then
8119 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8120 found="yes"
8121 fi
8122 fi
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138 xorg_testset_save_CFLAGS="$CFLAGS"
8139
8140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8144 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8145 then :
8146 printf %s "(cached) " >&6
8147 else case e in #(
8148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 int i;
8151 _ACEOF
8152 if ac_fn_c_try_compile "$LINENO"
8153 then :
8154 xorg_cv_cc_flag_unknown_warning_option=yes
8155 else case e in #(
8156 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8157 esac
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8160 esac
8161 fi
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8163 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8165 CFLAGS="$xorg_testset_save_CFLAGS"
8166 fi
8167
8168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8171 fi
8172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8174 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8175 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8176 then :
8177 printf %s "(cached) " >&6
8178 else case e in #(
8179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8181 int i;
8182 _ACEOF
8183 if ac_fn_c_try_compile "$LINENO"
8184 then :
8185 xorg_cv_cc_flag_unused_command_line_argument=yes
8186 else case e in #(
8187 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8188 esac
8189 fi
8190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8191 esac
8192 fi
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8194 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8196 CFLAGS="$xorg_testset_save_CFLAGS"
8197 fi
8198
8199 found="no"
8200
8201 if test $found = "no" ; then
8202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8204 fi
8205
8206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8208 fi
8209
8210 CFLAGS="$CFLAGS -Werror=return-type"
8211
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8213 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8214 cacheid=xorg_cv_cc_flag__Werror_return_type
8215 if eval test \${$cacheid+y}
8216 then :
8217 printf %s "(cached) " >&6
8218 else case e in #(
8219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 int i;
8222 int
8223 main (void)
8224 {
8225
8226 ;
8227 return 0;
8228 }
8229 _ACEOF
8230 if ac_fn_c_try_link "$LINENO"
8231 then :
8232 eval $cacheid=yes
8233 else case e in #(
8234 e) eval $cacheid=no ;;
8235 esac
8236 fi
8237 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8238 conftest$ac_exeext conftest.$ac_ext ;;
8239 esac
8240 fi
8241
8242
8243 CFLAGS="$xorg_testset_save_CFLAGS"
8244
8245 eval supported=\$$cacheid
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8247 printf "%s\n" "$supported" >&6; }
8248 if test "$supported" = "yes" ; then
8249 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8250 found="yes"
8251 fi
8252 fi
8253
8254 if test $found = "no" ; then
8255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257 fi
8258
8259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261 fi
8262
8263 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8264
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8266 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8267 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8268 if eval test \${$cacheid+y}
8269 then :
8270 printf %s "(cached) " >&6
8271 else case e in #(
8272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8274 int i;
8275 int
8276 main (void)
8277 {
8278
8279 ;
8280 return 0;
8281 }
8282 _ACEOF
8283 if ac_fn_c_try_link "$LINENO"
8284 then :
8285 eval $cacheid=yes
8286 else case e in #(
8287 e) eval $cacheid=no ;;
8288 esac
8289 fi
8290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8291 conftest$ac_exeext conftest.$ac_ext ;;
8292 esac
8293 fi
8294
8295
8296 CFLAGS="$xorg_testset_save_CFLAGS"
8297
8298 eval supported=\$$cacheid
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8300 printf "%s\n" "$supported" >&6; }
8301 if test "$supported" = "yes" ; then
8302 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8303 found="yes"
8304 fi
8305 fi
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321 xorg_testset_save_CFLAGS="$CFLAGS"
8322
8323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8326 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8327 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8328 then :
8329 printf %s "(cached) " >&6
8330 else case e in #(
8331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332 /* end confdefs.h. */
8333 int i;
8334 _ACEOF
8335 if ac_fn_c_try_compile "$LINENO"
8336 then :
8337 xorg_cv_cc_flag_unknown_warning_option=yes
8338 else case e in #(
8339 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8340 esac
8341 fi
8342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8343 esac
8344 fi
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8346 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8348 CFLAGS="$xorg_testset_save_CFLAGS"
8349 fi
8350
8351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8354 fi
8355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8357 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8358 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8359 then :
8360 printf %s "(cached) " >&6
8361 else case e in #(
8362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 int i;
8365 _ACEOF
8366 if ac_fn_c_try_compile "$LINENO"
8367 then :
8368 xorg_cv_cc_flag_unused_command_line_argument=yes
8369 else case e in #(
8370 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8371 esac
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8374 esac
8375 fi
8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8377 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8379 CFLAGS="$xorg_testset_save_CFLAGS"
8380 fi
8381
8382 found="no"
8383
8384 if test $found = "no" ; then
8385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8387 fi
8388
8389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8391 fi
8392
8393 CFLAGS="$CFLAGS -Werror=trigraphs"
8394
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8396 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8397 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8398 if eval test \${$cacheid+y}
8399 then :
8400 printf %s "(cached) " >&6
8401 else case e in #(
8402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8404 int i;
8405 int
8406 main (void)
8407 {
8408
8409 ;
8410 return 0;
8411 }
8412 _ACEOF
8413 if ac_fn_c_try_link "$LINENO"
8414 then :
8415 eval $cacheid=yes
8416 else case e in #(
8417 e) eval $cacheid=no ;;
8418 esac
8419 fi
8420 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8421 conftest$ac_exeext conftest.$ac_ext ;;
8422 esac
8423 fi
8424
8425
8426 CFLAGS="$xorg_testset_save_CFLAGS"
8427
8428 eval supported=\$$cacheid
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8430 printf "%s\n" "$supported" >&6; }
8431 if test "$supported" = "yes" ; then
8432 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8433 found="yes"
8434 fi
8435 fi
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451 xorg_testset_save_CFLAGS="$CFLAGS"
8452
8453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8456 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8457 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8458 then :
8459 printf %s "(cached) " >&6
8460 else case e in #(
8461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8463 int i;
8464 _ACEOF
8465 if ac_fn_c_try_compile "$LINENO"
8466 then :
8467 xorg_cv_cc_flag_unknown_warning_option=yes
8468 else case e in #(
8469 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8470 esac
8471 fi
8472 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8473 esac
8474 fi
8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8476 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8478 CFLAGS="$xorg_testset_save_CFLAGS"
8479 fi
8480
8481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8484 fi
8485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8487 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8488 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8489 then :
8490 printf %s "(cached) " >&6
8491 else case e in #(
8492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8494 int i;
8495 _ACEOF
8496 if ac_fn_c_try_compile "$LINENO"
8497 then :
8498 xorg_cv_cc_flag_unused_command_line_argument=yes
8499 else case e in #(
8500 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8501 esac
8502 fi
8503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8504 esac
8505 fi
8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8507 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8509 CFLAGS="$xorg_testset_save_CFLAGS"
8510 fi
8511
8512 found="no"
8513
8514 if test $found = "no" ; then
8515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8517 fi
8518
8519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8521 fi
8522
8523 CFLAGS="$CFLAGS -Werror=array-bounds"
8524
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8526 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8527 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8528 if eval test \${$cacheid+y}
8529 then :
8530 printf %s "(cached) " >&6
8531 else case e in #(
8532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8534 int i;
8535 int
8536 main (void)
8537 {
8538
8539 ;
8540 return 0;
8541 }
8542 _ACEOF
8543 if ac_fn_c_try_link "$LINENO"
8544 then :
8545 eval $cacheid=yes
8546 else case e in #(
8547 e) eval $cacheid=no ;;
8548 esac
8549 fi
8550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8551 conftest$ac_exeext conftest.$ac_ext ;;
8552 esac
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=array-bounds"
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 case e in #(
8591 e) 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 case e in #(
8599 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8600 esac
8601 fi
8602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8603 esac
8604 fi
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8606 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8608 CFLAGS="$xorg_testset_save_CFLAGS"
8609 fi
8610
8611 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8614 fi
8615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8617 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8618 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8619 then :
8620 printf %s "(cached) " >&6
8621 else case e in #(
8622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 int i;
8625 _ACEOF
8626 if ac_fn_c_try_compile "$LINENO"
8627 then :
8628 xorg_cv_cc_flag_unused_command_line_argument=yes
8629 else case e in #(
8630 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8631 esac
8632 fi
8633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8634 esac
8635 fi
8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8637 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8639 CFLAGS="$xorg_testset_save_CFLAGS"
8640 fi
8641
8642 found="no"
8643
8644 if test $found = "no" ; then
8645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8647 fi
8648
8649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8651 fi
8652
8653 CFLAGS="$CFLAGS -Werror=write-strings"
8654
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8656 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8657 cacheid=xorg_cv_cc_flag__Werror_write_strings
8658 if eval test \${$cacheid+y}
8659 then :
8660 printf %s "(cached) " >&6
8661 else case e in #(
8662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8664 int i;
8665 int
8666 main (void)
8667 {
8668
8669 ;
8670 return 0;
8671 }
8672 _ACEOF
8673 if ac_fn_c_try_link "$LINENO"
8674 then :
8675 eval $cacheid=yes
8676 else case e in #(
8677 e) eval $cacheid=no ;;
8678 esac
8679 fi
8680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8681 conftest$ac_exeext conftest.$ac_ext ;;
8682 esac
8683 fi
8684
8685
8686 CFLAGS="$xorg_testset_save_CFLAGS"
8687
8688 eval supported=\$$cacheid
8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8690 printf "%s\n" "$supported" >&6; }
8691 if test "$supported" = "yes" ; then
8692 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8693 found="yes"
8694 fi
8695 fi
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711 xorg_testset_save_CFLAGS="$CFLAGS"
8712
8713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8716 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8717 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8718 then :
8719 printf %s "(cached) " >&6
8720 else case e in #(
8721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 int i;
8724 _ACEOF
8725 if ac_fn_c_try_compile "$LINENO"
8726 then :
8727 xorg_cv_cc_flag_unknown_warning_option=yes
8728 else case e in #(
8729 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8730 esac
8731 fi
8732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8733 esac
8734 fi
8735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8736 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8738 CFLAGS="$xorg_testset_save_CFLAGS"
8739 fi
8740
8741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8744 fi
8745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8747 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8748 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8749 then :
8750 printf %s "(cached) " >&6
8751 else case e in #(
8752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 int i;
8755 _ACEOF
8756 if ac_fn_c_try_compile "$LINENO"
8757 then :
8758 xorg_cv_cc_flag_unused_command_line_argument=yes
8759 else case e in #(
8760 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8761 esac
8762 fi
8763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8764 esac
8765 fi
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8767 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8769 CFLAGS="$xorg_testset_save_CFLAGS"
8770 fi
8771
8772 found="no"
8773
8774 if test $found = "no" ; then
8775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777 fi
8778
8779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8781 fi
8782
8783 CFLAGS="$CFLAGS -Werror=address"
8784
8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8786 printf %s "checking if $CC supports -Werror=address... " >&6; }
8787 cacheid=xorg_cv_cc_flag__Werror_address
8788 if eval test \${$cacheid+y}
8789 then :
8790 printf %s "(cached) " >&6
8791 else case e in #(
8792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 int i;
8795 int
8796 main (void)
8797 {
8798
8799 ;
8800 return 0;
8801 }
8802 _ACEOF
8803 if ac_fn_c_try_link "$LINENO"
8804 then :
8805 eval $cacheid=yes
8806 else case e in #(
8807 e) eval $cacheid=no ;;
8808 esac
8809 fi
8810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8811 conftest$ac_exeext conftest.$ac_ext ;;
8812 esac
8813 fi
8814
8815
8816 CFLAGS="$xorg_testset_save_CFLAGS"
8817
8818 eval supported=\$$cacheid
8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8820 printf "%s\n" "$supported" >&6; }
8821 if test "$supported" = "yes" ; then
8822 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8823 found="yes"
8824 fi
8825 fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841 xorg_testset_save_CFLAGS="$CFLAGS"
8842
8843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8846 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8847 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8848 then :
8849 printf %s "(cached) " >&6
8850 else case e in #(
8851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 int i;
8854 _ACEOF
8855 if ac_fn_c_try_compile "$LINENO"
8856 then :
8857 xorg_cv_cc_flag_unknown_warning_option=yes
8858 else case e in #(
8859 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8860 esac
8861 fi
8862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8863 esac
8864 fi
8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8866 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8868 CFLAGS="$xorg_testset_save_CFLAGS"
8869 fi
8870
8871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874 fi
8875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8877 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8878 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8879 then :
8880 printf %s "(cached) " >&6
8881 else case e in #(
8882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8884 int i;
8885 _ACEOF
8886 if ac_fn_c_try_compile "$LINENO"
8887 then :
8888 xorg_cv_cc_flag_unused_command_line_argument=yes
8889 else case e in #(
8890 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8891 esac
8892 fi
8893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8894 esac
8895 fi
8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8897 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8899 CFLAGS="$xorg_testset_save_CFLAGS"
8900 fi
8901
8902 found="no"
8903
8904 if test $found = "no" ; then
8905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8907 fi
8908
8909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8911 fi
8912
8913 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8914
8915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8916 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8917 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8918 if eval test \${$cacheid+y}
8919 then :
8920 printf %s "(cached) " >&6
8921 else case e in #(
8922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h. */
8924 int i;
8925 int
8926 main (void)
8927 {
8928
8929 ;
8930 return 0;
8931 }
8932 _ACEOF
8933 if ac_fn_c_try_link "$LINENO"
8934 then :
8935 eval $cacheid=yes
8936 else case e in #(
8937 e) eval $cacheid=no ;;
8938 esac
8939 fi
8940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8941 conftest$ac_exeext conftest.$ac_ext ;;
8942 esac
8943 fi
8944
8945
8946 CFLAGS="$xorg_testset_save_CFLAGS"
8947
8948 eval supported=\$$cacheid
8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8950 printf "%s\n" "$supported" >&6; }
8951 if test "$supported" = "yes" ; then
8952 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8953 found="yes"
8954 fi
8955 fi
8956
8957 if test $found = "no" ; then
8958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8960 fi
8961
8962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8964 fi
8965
8966 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8967
8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8969 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8970 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8971 if eval test \${$cacheid+y}
8972 then :
8973 printf %s "(cached) " >&6
8974 else case e in #(
8975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 int i;
8978 int
8979 main (void)
8980 {
8981
8982 ;
8983 return 0;
8984 }
8985 _ACEOF
8986 if ac_fn_c_try_link "$LINENO"
8987 then :
8988 eval $cacheid=yes
8989 else case e in #(
8990 e) eval $cacheid=no ;;
8991 esac
8992 fi
8993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8994 conftest$ac_exeext conftest.$ac_ext ;;
8995 esac
8996 fi
8997
8998
8999 CFLAGS="$xorg_testset_save_CFLAGS"
9000
9001 eval supported=\$$cacheid
9002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9003 printf "%s\n" "$supported" >&6; }
9004 if test "$supported" = "yes" ; then
9005 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9006 found="yes"
9007 fi
9008 fi
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024 xorg_testset_save_CFLAGS="$CFLAGS"
9025
9026 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9029 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9030 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9031 then :
9032 printf %s "(cached) " >&6
9033 else case e in #(
9034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036 int i;
9037 _ACEOF
9038 if ac_fn_c_try_compile "$LINENO"
9039 then :
9040 xorg_cv_cc_flag_unknown_warning_option=yes
9041 else case e in #(
9042 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9043 esac
9044 fi
9045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9046 esac
9047 fi
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9049 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9051 CFLAGS="$xorg_testset_save_CFLAGS"
9052 fi
9053
9054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9057 fi
9058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9060 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9061 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9062 then :
9063 printf %s "(cached) " >&6
9064 else case e in #(
9065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9067 int i;
9068 _ACEOF
9069 if ac_fn_c_try_compile "$LINENO"
9070 then :
9071 xorg_cv_cc_flag_unused_command_line_argument=yes
9072 else case e in #(
9073 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9074 esac
9075 fi
9076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9077 esac
9078 fi
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9080 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9082 CFLAGS="$xorg_testset_save_CFLAGS"
9083 fi
9084
9085 found="no"
9086
9087 if test $found = "no" ; then
9088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9090 fi
9091
9092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9094 fi
9095
9096 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9097
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9099 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9100 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9101 if eval test \${$cacheid+y}
9102 then :
9103 printf %s "(cached) " >&6
9104 else case e in #(
9105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9107 int i;
9108 int
9109 main (void)
9110 {
9111
9112 ;
9113 return 0;
9114 }
9115 _ACEOF
9116 if ac_fn_c_try_link "$LINENO"
9117 then :
9118 eval $cacheid=yes
9119 else case e in #(
9120 e) eval $cacheid=no ;;
9121 esac
9122 fi
9123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9124 conftest$ac_exeext conftest.$ac_ext ;;
9125 esac
9126 fi
9127
9128
9129 CFLAGS="$xorg_testset_save_CFLAGS"
9130
9131 eval supported=\$$cacheid
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9133 printf "%s\n" "$supported" >&6; }
9134 if test "$supported" = "yes" ; then
9135 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9136 found="yes"
9137 fi
9138 fi
9139
9140 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9141 else
9142 { 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
9143 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;}
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157 xorg_testset_save_CFLAGS="$CFLAGS"
9158
9159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9162 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9163 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9164 then :
9165 printf %s "(cached) " >&6
9166 else case e in #(
9167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 int i;
9170 _ACEOF
9171 if ac_fn_c_try_compile "$LINENO"
9172 then :
9173 xorg_cv_cc_flag_unknown_warning_option=yes
9174 else case e in #(
9175 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9176 esac
9177 fi
9178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9179 esac
9180 fi
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9182 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9184 CFLAGS="$xorg_testset_save_CFLAGS"
9185 fi
9186
9187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9190 fi
9191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9193 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9194 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9195 then :
9196 printf %s "(cached) " >&6
9197 else case e in #(
9198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 int i;
9201 _ACEOF
9202 if ac_fn_c_try_compile "$LINENO"
9203 then :
9204 xorg_cv_cc_flag_unused_command_line_argument=yes
9205 else case e in #(
9206 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9207 esac
9208 fi
9209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9210 esac
9211 fi
9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9213 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9215 CFLAGS="$xorg_testset_save_CFLAGS"
9216 fi
9217
9218 found="no"
9219
9220 if test $found = "no" ; then
9221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223 fi
9224
9225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9227 fi
9228
9229 CFLAGS="$CFLAGS -Wimplicit"
9230
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9232 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9233 cacheid=xorg_cv_cc_flag__Wimplicit
9234 if eval test \${$cacheid+y}
9235 then :
9236 printf %s "(cached) " >&6
9237 else case e in #(
9238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 int i;
9241 int
9242 main (void)
9243 {
9244
9245 ;
9246 return 0;
9247 }
9248 _ACEOF
9249 if ac_fn_c_try_link "$LINENO"
9250 then :
9251 eval $cacheid=yes
9252 else case e in #(
9253 e) eval $cacheid=no ;;
9254 esac
9255 fi
9256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9257 conftest$ac_exeext conftest.$ac_ext ;;
9258 esac
9259 fi
9260
9261
9262 CFLAGS="$xorg_testset_save_CFLAGS"
9263
9264 eval supported=\$$cacheid
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9266 printf "%s\n" "$supported" >&6; }
9267 if test "$supported" = "yes" ; then
9268 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9269 found="yes"
9270 fi
9271 fi
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287 xorg_testset_save_CFLAGS="$CFLAGS"
9288
9289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9292 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9293 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9294 then :
9295 printf %s "(cached) " >&6
9296 else case e in #(
9297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 int i;
9300 _ACEOF
9301 if ac_fn_c_try_compile "$LINENO"
9302 then :
9303 xorg_cv_cc_flag_unknown_warning_option=yes
9304 else case e in #(
9305 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9306 esac
9307 fi
9308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9309 esac
9310 fi
9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9312 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9314 CFLAGS="$xorg_testset_save_CFLAGS"
9315 fi
9316
9317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9320 fi
9321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9323 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9324 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9325 then :
9326 printf %s "(cached) " >&6
9327 else case e in #(
9328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9330 int i;
9331 _ACEOF
9332 if ac_fn_c_try_compile "$LINENO"
9333 then :
9334 xorg_cv_cc_flag_unused_command_line_argument=yes
9335 else case e in #(
9336 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9337 esac
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9340 esac
9341 fi
9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9343 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9345 CFLAGS="$xorg_testset_save_CFLAGS"
9346 fi
9347
9348 found="no"
9349
9350 if test $found = "no" ; then
9351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9353 fi
9354
9355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9357 fi
9358
9359 CFLAGS="$CFLAGS -Wnonnull"
9360
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9362 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9363 cacheid=xorg_cv_cc_flag__Wnonnull
9364 if eval test \${$cacheid+y}
9365 then :
9366 printf %s "(cached) " >&6
9367 else case e in #(
9368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9370 int i;
9371 int
9372 main (void)
9373 {
9374
9375 ;
9376 return 0;
9377 }
9378 _ACEOF
9379 if ac_fn_c_try_link "$LINENO"
9380 then :
9381 eval $cacheid=yes
9382 else case e in #(
9383 e) eval $cacheid=no ;;
9384 esac
9385 fi
9386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9387 conftest$ac_exeext conftest.$ac_ext ;;
9388 esac
9389 fi
9390
9391
9392 CFLAGS="$xorg_testset_save_CFLAGS"
9393
9394 eval supported=\$$cacheid
9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9396 printf "%s\n" "$supported" >&6; }
9397 if test "$supported" = "yes" ; then
9398 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9399 found="yes"
9400 fi
9401 fi
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417 xorg_testset_save_CFLAGS="$CFLAGS"
9418
9419 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9422 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9423 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9424 then :
9425 printf %s "(cached) " >&6
9426 else case e in #(
9427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h. */
9429 int i;
9430 _ACEOF
9431 if ac_fn_c_try_compile "$LINENO"
9432 then :
9433 xorg_cv_cc_flag_unknown_warning_option=yes
9434 else case e in #(
9435 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9436 esac
9437 fi
9438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9439 esac
9440 fi
9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9442 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9444 CFLAGS="$xorg_testset_save_CFLAGS"
9445 fi
9446
9447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9450 fi
9451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9453 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9454 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9455 then :
9456 printf %s "(cached) " >&6
9457 else case e in #(
9458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 int i;
9461 _ACEOF
9462 if ac_fn_c_try_compile "$LINENO"
9463 then :
9464 xorg_cv_cc_flag_unused_command_line_argument=yes
9465 else case e in #(
9466 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9467 esac
9468 fi
9469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9470 esac
9471 fi
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9473 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9475 CFLAGS="$xorg_testset_save_CFLAGS"
9476 fi
9477
9478 found="no"
9479
9480 if test $found = "no" ; then
9481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9483 fi
9484
9485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9487 fi
9488
9489 CFLAGS="$CFLAGS -Winit-self"
9490
9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9492 printf %s "checking if $CC supports -Winit-self... " >&6; }
9493 cacheid=xorg_cv_cc_flag__Winit_self
9494 if eval test \${$cacheid+y}
9495 then :
9496 printf %s "(cached) " >&6
9497 else case e in #(
9498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500 int i;
9501 int
9502 main (void)
9503 {
9504
9505 ;
9506 return 0;
9507 }
9508 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"
9510 then :
9511 eval $cacheid=yes
9512 else case e in #(
9513 e) eval $cacheid=no ;;
9514 esac
9515 fi
9516 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9517 conftest$ac_exeext conftest.$ac_ext ;;
9518 esac
9519 fi
9520
9521
9522 CFLAGS="$xorg_testset_save_CFLAGS"
9523
9524 eval supported=\$$cacheid
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9526 printf "%s\n" "$supported" >&6; }
9527 if test "$supported" = "yes" ; then
9528 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9529 found="yes"
9530 fi
9531 fi
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547 xorg_testset_save_CFLAGS="$CFLAGS"
9548
9549 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9552 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9553 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9554 then :
9555 printf %s "(cached) " >&6
9556 else case e in #(
9557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9559 int i;
9560 _ACEOF
9561 if ac_fn_c_try_compile "$LINENO"
9562 then :
9563 xorg_cv_cc_flag_unknown_warning_option=yes
9564 else case e in #(
9565 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9566 esac
9567 fi
9568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9569 esac
9570 fi
9571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9572 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9574 CFLAGS="$xorg_testset_save_CFLAGS"
9575 fi
9576
9577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9580 fi
9581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9583 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9584 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9585 then :
9586 printf %s "(cached) " >&6
9587 else case e in #(
9588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590 int i;
9591 _ACEOF
9592 if ac_fn_c_try_compile "$LINENO"
9593 then :
9594 xorg_cv_cc_flag_unused_command_line_argument=yes
9595 else case e in #(
9596 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9597 esac
9598 fi
9599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9600 esac
9601 fi
9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9603 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9605 CFLAGS="$xorg_testset_save_CFLAGS"
9606 fi
9607
9608 found="no"
9609
9610 if test $found = "no" ; then
9611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9613 fi
9614
9615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9617 fi
9618
9619 CFLAGS="$CFLAGS -Wmain"
9620
9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9622 printf %s "checking if $CC supports -Wmain... " >&6; }
9623 cacheid=xorg_cv_cc_flag__Wmain
9624 if eval test \${$cacheid+y}
9625 then :
9626 printf %s "(cached) " >&6
9627 else case e in #(
9628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9630 int i;
9631 int
9632 main (void)
9633 {
9634
9635 ;
9636 return 0;
9637 }
9638 _ACEOF
9639 if ac_fn_c_try_link "$LINENO"
9640 then :
9641 eval $cacheid=yes
9642 else case e in #(
9643 e) eval $cacheid=no ;;
9644 esac
9645 fi
9646 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9647 conftest$ac_exeext conftest.$ac_ext ;;
9648 esac
9649 fi
9650
9651
9652 CFLAGS="$xorg_testset_save_CFLAGS"
9653
9654 eval supported=\$$cacheid
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9656 printf "%s\n" "$supported" >&6; }
9657 if test "$supported" = "yes" ; then
9658 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9659 found="yes"
9660 fi
9661 fi
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677 xorg_testset_save_CFLAGS="$CFLAGS"
9678
9679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9682 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9683 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9684 then :
9685 printf %s "(cached) " >&6
9686 else case e in #(
9687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689 int i;
9690 _ACEOF
9691 if ac_fn_c_try_compile "$LINENO"
9692 then :
9693 xorg_cv_cc_flag_unknown_warning_option=yes
9694 else case e in #(
9695 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9696 esac
9697 fi
9698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9699 esac
9700 fi
9701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9702 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9704 CFLAGS="$xorg_testset_save_CFLAGS"
9705 fi
9706
9707 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9710 fi
9711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9713 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9714 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9715 then :
9716 printf %s "(cached) " >&6
9717 else case e in #(
9718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719 /* end confdefs.h. */
9720 int i;
9721 _ACEOF
9722 if ac_fn_c_try_compile "$LINENO"
9723 then :
9724 xorg_cv_cc_flag_unused_command_line_argument=yes
9725 else case e in #(
9726 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9727 esac
9728 fi
9729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9730 esac
9731 fi
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9733 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9735 CFLAGS="$xorg_testset_save_CFLAGS"
9736 fi
9737
9738 found="no"
9739
9740 if test $found = "no" ; then
9741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9743 fi
9744
9745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9747 fi
9748
9749 CFLAGS="$CFLAGS -Wmissing-braces"
9750
9751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9752 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9753 cacheid=xorg_cv_cc_flag__Wmissing_braces
9754 if eval test \${$cacheid+y}
9755 then :
9756 printf %s "(cached) " >&6
9757 else case e in #(
9758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h. */
9760 int i;
9761 int
9762 main (void)
9763 {
9764
9765 ;
9766 return 0;
9767 }
9768 _ACEOF
9769 if ac_fn_c_try_link "$LINENO"
9770 then :
9771 eval $cacheid=yes
9772 else case e in #(
9773 e) eval $cacheid=no ;;
9774 esac
9775 fi
9776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9777 conftest$ac_exeext conftest.$ac_ext ;;
9778 esac
9779 fi
9780
9781
9782 CFLAGS="$xorg_testset_save_CFLAGS"
9783
9784 eval supported=\$$cacheid
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9786 printf "%s\n" "$supported" >&6; }
9787 if test "$supported" = "yes" ; then
9788 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9789 found="yes"
9790 fi
9791 fi
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807 xorg_testset_save_CFLAGS="$CFLAGS"
9808
9809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9812 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9813 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9814 then :
9815 printf %s "(cached) " >&6
9816 else case e in #(
9817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9819 int i;
9820 _ACEOF
9821 if ac_fn_c_try_compile "$LINENO"
9822 then :
9823 xorg_cv_cc_flag_unknown_warning_option=yes
9824 else case e in #(
9825 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9826 esac
9827 fi
9828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9829 esac
9830 fi
9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9832 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9834 CFLAGS="$xorg_testset_save_CFLAGS"
9835 fi
9836
9837 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9840 fi
9841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9843 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9844 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9845 then :
9846 printf %s "(cached) " >&6
9847 else case e in #(
9848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849 /* end confdefs.h. */
9850 int i;
9851 _ACEOF
9852 if ac_fn_c_try_compile "$LINENO"
9853 then :
9854 xorg_cv_cc_flag_unused_command_line_argument=yes
9855 else case e in #(
9856 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9857 esac
9858 fi
9859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9860 esac
9861 fi
9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9863 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9865 CFLAGS="$xorg_testset_save_CFLAGS"
9866 fi
9867
9868 found="no"
9869
9870 if test $found = "no" ; then
9871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9873 fi
9874
9875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9877 fi
9878
9879 CFLAGS="$CFLAGS -Wsequence-point"
9880
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9882 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9883 cacheid=xorg_cv_cc_flag__Wsequence_point
9884 if eval test \${$cacheid+y}
9885 then :
9886 printf %s "(cached) " >&6
9887 else case e in #(
9888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9890 int i;
9891 int
9892 main (void)
9893 {
9894
9895 ;
9896 return 0;
9897 }
9898 _ACEOF
9899 if ac_fn_c_try_link "$LINENO"
9900 then :
9901 eval $cacheid=yes
9902 else case e in #(
9903 e) eval $cacheid=no ;;
9904 esac
9905 fi
9906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9907 conftest$ac_exeext conftest.$ac_ext ;;
9908 esac
9909 fi
9910
9911
9912 CFLAGS="$xorg_testset_save_CFLAGS"
9913
9914 eval supported=\$$cacheid
9915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9916 printf "%s\n" "$supported" >&6; }
9917 if test "$supported" = "yes" ; then
9918 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9919 found="yes"
9920 fi
9921 fi
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937 xorg_testset_save_CFLAGS="$CFLAGS"
9938
9939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9942 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9943 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9944 then :
9945 printf %s "(cached) " >&6
9946 else case e in #(
9947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h. */
9949 int i;
9950 _ACEOF
9951 if ac_fn_c_try_compile "$LINENO"
9952 then :
9953 xorg_cv_cc_flag_unknown_warning_option=yes
9954 else case e in #(
9955 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9956 esac
9957 fi
9958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9959 esac
9960 fi
9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9962 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9964 CFLAGS="$xorg_testset_save_CFLAGS"
9965 fi
9966
9967 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9970 fi
9971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9973 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9974 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9975 then :
9976 printf %s "(cached) " >&6
9977 else case e in #(
9978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h. */
9980 int i;
9981 _ACEOF
9982 if ac_fn_c_try_compile "$LINENO"
9983 then :
9984 xorg_cv_cc_flag_unused_command_line_argument=yes
9985 else case e in #(
9986 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9987 esac
9988 fi
9989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9990 esac
9991 fi
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9993 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9995 CFLAGS="$xorg_testset_save_CFLAGS"
9996 fi
9997
9998 found="no"
9999
10000 if test $found = "no" ; then
10001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10003 fi
10004
10005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10007 fi
10008
10009 CFLAGS="$CFLAGS -Wreturn-type"
10010
10011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10012 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10013 cacheid=xorg_cv_cc_flag__Wreturn_type
10014 if eval test \${$cacheid+y}
10015 then :
10016 printf %s "(cached) " >&6
10017 else case e in #(
10018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 int i;
10021 int
10022 main (void)
10023 {
10024
10025 ;
10026 return 0;
10027 }
10028 _ACEOF
10029 if ac_fn_c_try_link "$LINENO"
10030 then :
10031 eval $cacheid=yes
10032 else case e in #(
10033 e) eval $cacheid=no ;;
10034 esac
10035 fi
10036 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10037 conftest$ac_exeext conftest.$ac_ext ;;
10038 esac
10039 fi
10040
10041
10042 CFLAGS="$xorg_testset_save_CFLAGS"
10043
10044 eval supported=\$$cacheid
10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10046 printf "%s\n" "$supported" >&6; }
10047 if test "$supported" = "yes" ; then
10048 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10049 found="yes"
10050 fi
10051 fi
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067 xorg_testset_save_CFLAGS="$CFLAGS"
10068
10069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10072 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10073 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10074 then :
10075 printf %s "(cached) " >&6
10076 else case e in #(
10077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079 int i;
10080 _ACEOF
10081 if ac_fn_c_try_compile "$LINENO"
10082 then :
10083 xorg_cv_cc_flag_unknown_warning_option=yes
10084 else case e in #(
10085 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10086 esac
10087 fi
10088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10089 esac
10090 fi
10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10092 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10094 CFLAGS="$xorg_testset_save_CFLAGS"
10095 fi
10096
10097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10100 fi
10101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10103 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10104 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10105 then :
10106 printf %s "(cached) " >&6
10107 else case e in #(
10108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110 int i;
10111 _ACEOF
10112 if ac_fn_c_try_compile "$LINENO"
10113 then :
10114 xorg_cv_cc_flag_unused_command_line_argument=yes
10115 else case e in #(
10116 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10117 esac
10118 fi
10119 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10120 esac
10121 fi
10122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10123 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10125 CFLAGS="$xorg_testset_save_CFLAGS"
10126 fi
10127
10128 found="no"
10129
10130 if test $found = "no" ; then
10131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10133 fi
10134
10135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10137 fi
10138
10139 CFLAGS="$CFLAGS -Wtrigraphs"
10140
10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10142 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10143 cacheid=xorg_cv_cc_flag__Wtrigraphs
10144 if eval test \${$cacheid+y}
10145 then :
10146 printf %s "(cached) " >&6
10147 else case e in #(
10148 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149 /* end confdefs.h. */
10150 int i;
10151 int
10152 main (void)
10153 {
10154
10155 ;
10156 return 0;
10157 }
10158 _ACEOF
10159 if ac_fn_c_try_link "$LINENO"
10160 then :
10161 eval $cacheid=yes
10162 else case e in #(
10163 e) eval $cacheid=no ;;
10164 esac
10165 fi
10166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10167 conftest$ac_exeext conftest.$ac_ext ;;
10168 esac
10169 fi
10170
10171
10172 CFLAGS="$xorg_testset_save_CFLAGS"
10173
10174 eval supported=\$$cacheid
10175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10176 printf "%s\n" "$supported" >&6; }
10177 if test "$supported" = "yes" ; then
10178 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10179 found="yes"
10180 fi
10181 fi
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197 xorg_testset_save_CFLAGS="$CFLAGS"
10198
10199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10202 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10203 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10204 then :
10205 printf %s "(cached) " >&6
10206 else case e in #(
10207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209 int i;
10210 _ACEOF
10211 if ac_fn_c_try_compile "$LINENO"
10212 then :
10213 xorg_cv_cc_flag_unknown_warning_option=yes
10214 else case e in #(
10215 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10216 esac
10217 fi
10218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10219 esac
10220 fi
10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10222 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10224 CFLAGS="$xorg_testset_save_CFLAGS"
10225 fi
10226
10227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10230 fi
10231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10233 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10234 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10235 then :
10236 printf %s "(cached) " >&6
10237 else case e in #(
10238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 int i;
10241 _ACEOF
10242 if ac_fn_c_try_compile "$LINENO"
10243 then :
10244 xorg_cv_cc_flag_unused_command_line_argument=yes
10245 else case e in #(
10246 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10247 esac
10248 fi
10249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10250 esac
10251 fi
10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10253 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10255 CFLAGS="$xorg_testset_save_CFLAGS"
10256 fi
10257
10258 found="no"
10259
10260 if test $found = "no" ; then
10261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10263 fi
10264
10265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10267 fi
10268
10269 CFLAGS="$CFLAGS -Warray-bounds"
10270
10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10272 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10273 cacheid=xorg_cv_cc_flag__Warray_bounds
10274 if eval test \${$cacheid+y}
10275 then :
10276 printf %s "(cached) " >&6
10277 else case e in #(
10278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 int i;
10281 int
10282 main (void)
10283 {
10284
10285 ;
10286 return 0;
10287 }
10288 _ACEOF
10289 if ac_fn_c_try_link "$LINENO"
10290 then :
10291 eval $cacheid=yes
10292 else case e in #(
10293 e) eval $cacheid=no ;;
10294 esac
10295 fi
10296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10297 conftest$ac_exeext conftest.$ac_ext ;;
10298 esac
10299 fi
10300
10301
10302 CFLAGS="$xorg_testset_save_CFLAGS"
10303
10304 eval supported=\$$cacheid
10305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10306 printf "%s\n" "$supported" >&6; }
10307 if test "$supported" = "yes" ; then
10308 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10309 found="yes"
10310 fi
10311 fi
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327 xorg_testset_save_CFLAGS="$CFLAGS"
10328
10329 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10330 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10332 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10333 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10334 then :
10335 printf %s "(cached) " >&6
10336 else case e in #(
10337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10339 int i;
10340 _ACEOF
10341 if ac_fn_c_try_compile "$LINENO"
10342 then :
10343 xorg_cv_cc_flag_unknown_warning_option=yes
10344 else case e in #(
10345 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10346 esac
10347 fi
10348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10349 esac
10350 fi
10351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10352 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10354 CFLAGS="$xorg_testset_save_CFLAGS"
10355 fi
10356
10357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10360 fi
10361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10363 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10364 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10365 then :
10366 printf %s "(cached) " >&6
10367 else case e in #(
10368 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10370 int i;
10371 _ACEOF
10372 if ac_fn_c_try_compile "$LINENO"
10373 then :
10374 xorg_cv_cc_flag_unused_command_line_argument=yes
10375 else case e in #(
10376 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10377 esac
10378 fi
10379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10380 esac
10381 fi
10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10383 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10385 CFLAGS="$xorg_testset_save_CFLAGS"
10386 fi
10387
10388 found="no"
10389
10390 if test $found = "no" ; then
10391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10393 fi
10394
10395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10397 fi
10398
10399 CFLAGS="$CFLAGS -Wwrite-strings"
10400
10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10402 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10403 cacheid=xorg_cv_cc_flag__Wwrite_strings
10404 if eval test \${$cacheid+y}
10405 then :
10406 printf %s "(cached) " >&6
10407 else case e in #(
10408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410 int i;
10411 int
10412 main (void)
10413 {
10414
10415 ;
10416 return 0;
10417 }
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"
10420 then :
10421 eval $cacheid=yes
10422 else case e in #(
10423 e) eval $cacheid=no ;;
10424 esac
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10427 conftest$ac_exeext conftest.$ac_ext ;;
10428 esac
10429 fi
10430
10431
10432 CFLAGS="$xorg_testset_save_CFLAGS"
10433
10434 eval supported=\$$cacheid
10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10436 printf "%s\n" "$supported" >&6; }
10437 if test "$supported" = "yes" ; then
10438 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10439 found="yes"
10440 fi
10441 fi
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457 xorg_testset_save_CFLAGS="$CFLAGS"
10458
10459 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10462 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10463 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10464 then :
10465 printf %s "(cached) " >&6
10466 else case e in #(
10467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10469 int i;
10470 _ACEOF
10471 if ac_fn_c_try_compile "$LINENO"
10472 then :
10473 xorg_cv_cc_flag_unknown_warning_option=yes
10474 else case e in #(
10475 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10476 esac
10477 fi
10478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10479 esac
10480 fi
10481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10482 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10484 CFLAGS="$xorg_testset_save_CFLAGS"
10485 fi
10486
10487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10490 fi
10491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10493 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10494 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10495 then :
10496 printf %s "(cached) " >&6
10497 else case e in #(
10498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10500 int i;
10501 _ACEOF
10502 if ac_fn_c_try_compile "$LINENO"
10503 then :
10504 xorg_cv_cc_flag_unused_command_line_argument=yes
10505 else case e in #(
10506 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10507 esac
10508 fi
10509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10510 esac
10511 fi
10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10513 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10515 CFLAGS="$xorg_testset_save_CFLAGS"
10516 fi
10517
10518 found="no"
10519
10520 if test $found = "no" ; then
10521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10523 fi
10524
10525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10527 fi
10528
10529 CFLAGS="$CFLAGS -Waddress"
10530
10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10532 printf %s "checking if $CC supports -Waddress... " >&6; }
10533 cacheid=xorg_cv_cc_flag__Waddress
10534 if eval test \${$cacheid+y}
10535 then :
10536 printf %s "(cached) " >&6
10537 else case e in #(
10538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10540 int i;
10541 int
10542 main (void)
10543 {
10544
10545 ;
10546 return 0;
10547 }
10548 _ACEOF
10549 if ac_fn_c_try_link "$LINENO"
10550 then :
10551 eval $cacheid=yes
10552 else case e in #(
10553 e) eval $cacheid=no ;;
10554 esac
10555 fi
10556 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10557 conftest$ac_exeext conftest.$ac_ext ;;
10558 esac
10559 fi
10560
10561
10562 CFLAGS="$xorg_testset_save_CFLAGS"
10563
10564 eval supported=\$$cacheid
10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10566 printf "%s\n" "$supported" >&6; }
10567 if test "$supported" = "yes" ; then
10568 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10569 found="yes"
10570 fi
10571 fi
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587 xorg_testset_save_CFLAGS="$CFLAGS"
10588
10589 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10592 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10593 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10594 then :
10595 printf %s "(cached) " >&6
10596 else case e in #(
10597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h. */
10599 int i;
10600 _ACEOF
10601 if ac_fn_c_try_compile "$LINENO"
10602 then :
10603 xorg_cv_cc_flag_unknown_warning_option=yes
10604 else case e in #(
10605 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10606 esac
10607 fi
10608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10609 esac
10610 fi
10611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10612 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10614 CFLAGS="$xorg_testset_save_CFLAGS"
10615 fi
10616
10617 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10620 fi
10621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10623 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10624 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10625 then :
10626 printf %s "(cached) " >&6
10627 else case e in #(
10628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10630 int i;
10631 _ACEOF
10632 if ac_fn_c_try_compile "$LINENO"
10633 then :
10634 xorg_cv_cc_flag_unused_command_line_argument=yes
10635 else case e in #(
10636 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10637 esac
10638 fi
10639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10640 esac
10641 fi
10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10643 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10645 CFLAGS="$xorg_testset_save_CFLAGS"
10646 fi
10647
10648 found="no"
10649
10650 if test $found = "no" ; then
10651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10653 fi
10654
10655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10657 fi
10658
10659 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10660
10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10662 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10663 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10664 if eval test \${$cacheid+y}
10665 then :
10666 printf %s "(cached) " >&6
10667 else case e in #(
10668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670 int i;
10671 int
10672 main (void)
10673 {
10674
10675 ;
10676 return 0;
10677 }
10678 _ACEOF
10679 if ac_fn_c_try_link "$LINENO"
10680 then :
10681 eval $cacheid=yes
10682 else case e in #(
10683 e) eval $cacheid=no ;;
10684 esac
10685 fi
10686 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10687 conftest$ac_exeext conftest.$ac_ext ;;
10688 esac
10689 fi
10690
10691
10692 CFLAGS="$xorg_testset_save_CFLAGS"
10693
10694 eval supported=\$$cacheid
10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10696 printf "%s\n" "$supported" >&6; }
10697 if test "$supported" = "yes" ; then
10698 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10699 found="yes"
10700 fi
10701 fi
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717 xorg_testset_save_CFLAGS="$CFLAGS"
10718
10719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10722 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10723 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10724 then :
10725 printf %s "(cached) " >&6
10726 else case e in #(
10727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 int i;
10730 _ACEOF
10731 if ac_fn_c_try_compile "$LINENO"
10732 then :
10733 xorg_cv_cc_flag_unknown_warning_option=yes
10734 else case e in #(
10735 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10736 esac
10737 fi
10738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10739 esac
10740 fi
10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10742 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10744 CFLAGS="$xorg_testset_save_CFLAGS"
10745 fi
10746
10747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10750 fi
10751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10753 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10754 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10755 then :
10756 printf %s "(cached) " >&6
10757 else case e in #(
10758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760 int i;
10761 _ACEOF
10762 if ac_fn_c_try_compile "$LINENO"
10763 then :
10764 xorg_cv_cc_flag_unused_command_line_argument=yes
10765 else case e in #(
10766 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10767 esac
10768 fi
10769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10770 esac
10771 fi
10772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10773 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10775 CFLAGS="$xorg_testset_save_CFLAGS"
10776 fi
10777
10778 found="no"
10779
10780 if test $found = "no" ; then
10781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10783 fi
10784
10785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10787 fi
10788
10789 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10790
10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10792 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10793 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10794 if eval test \${$cacheid+y}
10795 then :
10796 printf %s "(cached) " >&6
10797 else case e in #(
10798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10800 int i;
10801 int
10802 main (void)
10803 {
10804
10805 ;
10806 return 0;
10807 }
10808 _ACEOF
10809 if ac_fn_c_try_link "$LINENO"
10810 then :
10811 eval $cacheid=yes
10812 else case e in #(
10813 e) eval $cacheid=no ;;
10814 esac
10815 fi
10816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10817 conftest$ac_exeext conftest.$ac_ext ;;
10818 esac
10819 fi
10820
10821
10822 CFLAGS="$xorg_testset_save_CFLAGS"
10823
10824 eval supported=\$$cacheid
10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10826 printf "%s\n" "$supported" >&6; }
10827 if test "$supported" = "yes" ; then
10828 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10829 found="yes"
10830 fi
10831 fi
10832
10833
10834 fi
10835
10836
10837
10838
10839
10840
10841
10842 CWARNFLAGS="$BASE_CFLAGS"
10843 if test "x$GCC" = xyes ; then
10844 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10845 fi
10846
10847
10848
10849
10850
10851
10852
10853
10854 # Check whether --enable-strict-compilation was given.
10855 if test ${enable_strict_compilation+y}
10856 then :
10857 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10858 else case e in #(
10859 e) STRICT_COMPILE=no ;;
10860 esac
10861 fi
10862
10863
10864
10865
10866
10867
10868 STRICT_CFLAGS=""
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882 xorg_testset_save_CFLAGS="$CFLAGS"
10883
10884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10888 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10889 then :
10890 printf %s "(cached) " >&6
10891 else case e in #(
10892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10894 int i;
10895 _ACEOF
10896 if ac_fn_c_try_compile "$LINENO"
10897 then :
10898 xorg_cv_cc_flag_unknown_warning_option=yes
10899 else case e in #(
10900 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10901 esac
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10904 esac
10905 fi
10906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10907 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10909 CFLAGS="$xorg_testset_save_CFLAGS"
10910 fi
10911
10912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10915 fi
10916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10918 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10919 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10920 then :
10921 printf %s "(cached) " >&6
10922 else case e in #(
10923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924 /* end confdefs.h. */
10925 int i;
10926 _ACEOF
10927 if ac_fn_c_try_compile "$LINENO"
10928 then :
10929 xorg_cv_cc_flag_unused_command_line_argument=yes
10930 else case e in #(
10931 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10932 esac
10933 fi
10934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10935 esac
10936 fi
10937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10938 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10940 CFLAGS="$xorg_testset_save_CFLAGS"
10941 fi
10942
10943 found="no"
10944
10945 if test $found = "no" ; then
10946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10948 fi
10949
10950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10952 fi
10953
10954 CFLAGS="$CFLAGS -pedantic"
10955
10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10957 printf %s "checking if $CC supports -pedantic... " >&6; }
10958 cacheid=xorg_cv_cc_flag__pedantic
10959 if eval test \${$cacheid+y}
10960 then :
10961 printf %s "(cached) " >&6
10962 else case e in #(
10963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10965 int i;
10966 int
10967 main (void)
10968 {
10969
10970 ;
10971 return 0;
10972 }
10973 _ACEOF
10974 if ac_fn_c_try_link "$LINENO"
10975 then :
10976 eval $cacheid=yes
10977 else case e in #(
10978 e) eval $cacheid=no ;;
10979 esac
10980 fi
10981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10982 conftest$ac_exeext conftest.$ac_ext ;;
10983 esac
10984 fi
10985
10986
10987 CFLAGS="$xorg_testset_save_CFLAGS"
10988
10989 eval supported=\$$cacheid
10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10991 printf "%s\n" "$supported" >&6; }
10992 if test "$supported" = "yes" ; then
10993 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10994 found="yes"
10995 fi
10996 fi
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012 xorg_testset_save_CFLAGS="$CFLAGS"
11013
11014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11017 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11018 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11019 then :
11020 printf %s "(cached) " >&6
11021 else case e in #(
11022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h. */
11024 int i;
11025 _ACEOF
11026 if ac_fn_c_try_compile "$LINENO"
11027 then :
11028 xorg_cv_cc_flag_unknown_warning_option=yes
11029 else case e in #(
11030 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11031 esac
11032 fi
11033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11034 esac
11035 fi
11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11037 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11039 CFLAGS="$xorg_testset_save_CFLAGS"
11040 fi
11041
11042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11045 fi
11046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11048 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11049 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11050 then :
11051 printf %s "(cached) " >&6
11052 else case e in #(
11053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11055 int i;
11056 _ACEOF
11057 if ac_fn_c_try_compile "$LINENO"
11058 then :
11059 xorg_cv_cc_flag_unused_command_line_argument=yes
11060 else case e in #(
11061 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11062 esac
11063 fi
11064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11065 esac
11066 fi
11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11068 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11070 CFLAGS="$xorg_testset_save_CFLAGS"
11071 fi
11072
11073 found="no"
11074
11075 if test $found = "no" ; then
11076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11078 fi
11079
11080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11082 fi
11083
11084 CFLAGS="$CFLAGS -Werror"
11085
11086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11087 printf %s "checking if $CC supports -Werror... " >&6; }
11088 cacheid=xorg_cv_cc_flag__Werror
11089 if eval test \${$cacheid+y}
11090 then :
11091 printf %s "(cached) " >&6
11092 else case e in #(
11093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095 int i;
11096 int
11097 main (void)
11098 {
11099
11100 ;
11101 return 0;
11102 }
11103 _ACEOF
11104 if ac_fn_c_try_link "$LINENO"
11105 then :
11106 eval $cacheid=yes
11107 else case e in #(
11108 e) eval $cacheid=no ;;
11109 esac
11110 fi
11111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11112 conftest$ac_exeext conftest.$ac_ext ;;
11113 esac
11114 fi
11115
11116
11117 CFLAGS="$xorg_testset_save_CFLAGS"
11118
11119 eval supported=\$$cacheid
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11121 printf "%s\n" "$supported" >&6; }
11122 if test "$supported" = "yes" ; then
11123 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11124 found="yes"
11125 fi
11126 fi
11127
11128 if test $found = "no" ; then
11129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11131 fi
11132
11133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11135 fi
11136
11137 CFLAGS="$CFLAGS -errwarn"
11138
11139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11140 printf %s "checking if $CC supports -errwarn... " >&6; }
11141 cacheid=xorg_cv_cc_flag__errwarn
11142 if eval test \${$cacheid+y}
11143 then :
11144 printf %s "(cached) " >&6
11145 else case e in #(
11146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11148 int i;
11149 int
11150 main (void)
11151 {
11152
11153 ;
11154 return 0;
11155 }
11156 _ACEOF
11157 if ac_fn_c_try_link "$LINENO"
11158 then :
11159 eval $cacheid=yes
11160 else case e in #(
11161 e) eval $cacheid=no ;;
11162 esac
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11165 conftest$ac_exeext conftest.$ac_ext ;;
11166 esac
11167 fi
11168
11169
11170 CFLAGS="$xorg_testset_save_CFLAGS"
11171
11172 eval supported=\$$cacheid
11173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11174 printf "%s\n" "$supported" >&6; }
11175 if test "$supported" = "yes" ; then
11176 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11177 found="yes"
11178 fi
11179 fi
11180
11181
11182
11183 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11184 # activate it with -Werror, so we add it here explicitly.
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198 xorg_testset_save_CFLAGS="$CFLAGS"
11199
11200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11203 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11204 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11205 then :
11206 printf %s "(cached) " >&6
11207 else case e in #(
11208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210 int i;
11211 _ACEOF
11212 if ac_fn_c_try_compile "$LINENO"
11213 then :
11214 xorg_cv_cc_flag_unknown_warning_option=yes
11215 else case e in #(
11216 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11217 esac
11218 fi
11219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11220 esac
11221 fi
11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11223 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11225 CFLAGS="$xorg_testset_save_CFLAGS"
11226 fi
11227
11228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11231 fi
11232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11234 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11235 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11236 then :
11237 printf %s "(cached) " >&6
11238 else case e in #(
11239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11241 int i;
11242 _ACEOF
11243 if ac_fn_c_try_compile "$LINENO"
11244 then :
11245 xorg_cv_cc_flag_unused_command_line_argument=yes
11246 else case e in #(
11247 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11248 esac
11249 fi
11250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11251 esac
11252 fi
11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11254 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11256 CFLAGS="$xorg_testset_save_CFLAGS"
11257 fi
11258
11259 found="no"
11260
11261 if test $found = "no" ; then
11262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11264 fi
11265
11266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11268 fi
11269
11270 CFLAGS="$CFLAGS -Werror=attributes"
11271
11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11273 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11274 cacheid=xorg_cv_cc_flag__Werror_attributes
11275 if eval test \${$cacheid+y}
11276 then :
11277 printf %s "(cached) " >&6
11278 else case e in #(
11279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11281 int i;
11282 int
11283 main (void)
11284 {
11285
11286 ;
11287 return 0;
11288 }
11289 _ACEOF
11290 if ac_fn_c_try_link "$LINENO"
11291 then :
11292 eval $cacheid=yes
11293 else case e in #(
11294 e) eval $cacheid=no ;;
11295 esac
11296 fi
11297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11298 conftest$ac_exeext conftest.$ac_ext ;;
11299 esac
11300 fi
11301
11302
11303 CFLAGS="$xorg_testset_save_CFLAGS"
11304
11305 eval supported=\$$cacheid
11306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11307 printf "%s\n" "$supported" >&6; }
11308 if test "$supported" = "yes" ; then
11309 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11310 found="yes"
11311 fi
11312 fi
11313
11314
11315
11316 if test "x$STRICT_COMPILE" = "xyes"; then
11317 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11318 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11319 fi
11320
11321
11322
11323
11324
11325
11326
11327
11328 cat >>confdefs.h <<_ACEOF
11329 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11330 _ACEOF
11331
11332 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11333 if test "x$PVM" = "x"; then
11334 PVM="0"
11335 fi
11336
11337 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11338
11339 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11340 if test "x$PVP" = "x"; then
11341 PVP="0"
11342 fi
11343
11344 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11345
11346
11347
11348 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11349 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11350 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11351 touch \$(top_srcdir)/ChangeLog; \
11352 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11353
11354
11355
11356
11357 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11358 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11359 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11360 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11361 touch \$(top_srcdir)/INSTALL; \
11362 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11363
11364
11365
11366
11367
11368
11369 case $host_os in
11370 solaris*)
11371 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11372 # check for a man page file found in later versions that use
11373 # traditional section numbers instead
11374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11375 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11376 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11377 then :
11378 printf %s "(cached) " >&6
11379 else case e in #(
11380 e) test "$cross_compiling" = yes &&
11381 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11382 if test -r "/usr/share/man/man7/attributes.7"; then
11383 ac_cv_file__usr_share_man_man7_attributes_7=yes
11384 else
11385 ac_cv_file__usr_share_man_man7_attributes_7=no
11386 fi ;;
11387 esac
11388 fi
11389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11390 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11391 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11392 then :
11393 SYSV_MAN_SECTIONS=false
11394 else case e in #(
11395 e) SYSV_MAN_SECTIONS=true ;;
11396 esac
11397 fi
11398
11399 ;;
11400 *) SYSV_MAN_SECTIONS=false ;;
11401 esac
11402
11403 if test x$APP_MAN_SUFFIX = x ; then
11404 APP_MAN_SUFFIX=1
11405 fi
11406 if test x$APP_MAN_DIR = x ; then
11407 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11408 fi
11409
11410 if test x$LIB_MAN_SUFFIX = x ; then
11411 LIB_MAN_SUFFIX=3
11412 fi
11413 if test x$LIB_MAN_DIR = x ; then
11414 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11415 fi
11416
11417 if test x$FILE_MAN_SUFFIX = x ; then
11418 case $SYSV_MAN_SECTIONS in
11419 true) FILE_MAN_SUFFIX=4 ;;
11420 *) FILE_MAN_SUFFIX=5 ;;
11421 esac
11422 fi
11423 if test x$FILE_MAN_DIR = x ; then
11424 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11425 fi
11426
11427 if test x$MISC_MAN_SUFFIX = x ; then
11428 case $SYSV_MAN_SECTIONS in
11429 true) MISC_MAN_SUFFIX=5 ;;
11430 *) MISC_MAN_SUFFIX=7 ;;
11431 esac
11432 fi
11433 if test x$MISC_MAN_DIR = x ; then
11434 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11435 fi
11436
11437 if test x$DRIVER_MAN_SUFFIX = x ; then
11438 case $SYSV_MAN_SECTIONS in
11439 true) DRIVER_MAN_SUFFIX=7 ;;
11440 *) DRIVER_MAN_SUFFIX=4 ;;
11441 esac
11442 fi
11443 if test x$DRIVER_MAN_DIR = x ; then
11444 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11445 fi
11446
11447 if test x$ADMIN_MAN_SUFFIX = x ; then
11448 case $SYSV_MAN_SECTIONS in
11449 true) ADMIN_MAN_SUFFIX=1m ;;
11450 *) ADMIN_MAN_SUFFIX=8 ;;
11451 esac
11452 fi
11453 if test x$ADMIN_MAN_DIR = x ; then
11454 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11455 fi
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471 XORG_MAN_PAGE="X Version 11"
11472
11473 MAN_SUBSTS="\
11474 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11475 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11476 -e 's|__xservername__|Xorg|g' \
11477 -e 's|__xconfigfile__|xorg.conf|g' \
11478 -e 's|__projectroot__|\$(prefix)|g' \
11479 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11480 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11481 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11482 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11483 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11484 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11485 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11486
11487
11488
11489
11490 AM_DEFAULT_VERBOSITY=0
11491
11492
11493
11494 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
11495 if test "x$ac_cv_func_setenv" = xyes
11496 then :
11497 have_setenv=yes
11498 else case e in #(
11499 e) have_setenv=no ;;
11500 esac
11501 fi
11502
11503 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
11504 if test "x$ac_cv_func_vasprintf" = xyes
11505 then :
11506 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
11507
11508 fi
11509
11510 ac_fn_check_decl "$LINENO" "va_copy" "ac_cv_have_decl_va_copy" "
11511 $ac_includes_default
11512 #include <stdarg.h>
11513
11514 " "$ac_c_undeclared_builtin_options" "CFLAGS"
11515 if test "x$ac_cv_have_decl_va_copy" = xyes
11516 then :
11517 ac_have_decl=1
11518 else case e in #(
11519 e) ac_have_decl=0 ;;
11520 esac
11521 fi
11522 printf "%s\n" "#define HAVE_DECL_VA_COPY $ac_have_decl" >>confdefs.h
11523
11524
11525 if test x$have_setenv = xno; then
11526 NEED_SETENV_TRUE=
11527 NEED_SETENV_FALSE='#'
11528 else
11529 NEED_SETENV_TRUE='#'
11530 NEED_SETENV_FALSE=
11531 fi
11532
11533
11534 # Checks for pkg-config packages
11535
11536 pkg_failed=no
11537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FONTTOSFNT" >&5
11538 printf %s "checking for FONTTOSFNT... " >&6; }
11539
11540 if test -n "$FONTTOSFNT_CFLAGS"; then
11541 pkg_cv_FONTTOSFNT_CFLAGS="$FONTTOSFNT_CFLAGS"
11542 elif test -n "$PKG_CONFIG"; then
11543 if test -n "$PKG_CONFIG" && \
11544 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto freetype2 fontenc\""; } >&5
11545 ($PKG_CONFIG --exists --print-errors "xproto freetype2 fontenc") 2>&5
11546 ac_status=$?
11547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11548 test $ac_status = 0; }; then
11549 pkg_cv_FONTTOSFNT_CFLAGS=`$PKG_CONFIG --cflags "xproto freetype2 fontenc" 2>/dev/null`
11550 test "x$?" != "x0" && pkg_failed=yes
11551 else
11552 pkg_failed=yes
11553 fi
11554 else
11555 pkg_failed=untried
11556 fi
11557 if test -n "$FONTTOSFNT_LIBS"; then
11558 pkg_cv_FONTTOSFNT_LIBS="$FONTTOSFNT_LIBS"
11559 elif test -n "$PKG_CONFIG"; then
11560 if test -n "$PKG_CONFIG" && \
11561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto freetype2 fontenc\""; } >&5
11562 ($PKG_CONFIG --exists --print-errors "xproto freetype2 fontenc") 2>&5
11563 ac_status=$?
11564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11565 test $ac_status = 0; }; then
11566 pkg_cv_FONTTOSFNT_LIBS=`$PKG_CONFIG --libs "xproto freetype2 fontenc" 2>/dev/null`
11567 test "x$?" != "x0" && pkg_failed=yes
11568 else
11569 pkg_failed=yes
11570 fi
11571 else
11572 pkg_failed=untried
11573 fi
11574
11575
11576
11577 if test $pkg_failed = yes; then
11578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 printf "%s\n" "no" >&6; }
11580
11581 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11582 _pkg_short_errors_supported=yes
11583 else
11584 _pkg_short_errors_supported=no
11585 fi
11586 if test $_pkg_short_errors_supported = yes; then
11587 FONTTOSFNT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto freetype2 fontenc" 2>&1`
11588 else
11589 FONTTOSFNT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto freetype2 fontenc" 2>&1`
11590 fi
11591 # Put the nasty error message in config.log where it belongs
11592 echo "$FONTTOSFNT_PKG_ERRORS" >&5
11593
11594 as_fn_error $? "Package requirements (xproto freetype2 fontenc) were not met:
11595
11596 $FONTTOSFNT_PKG_ERRORS
11597
11598 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11599 installed software in a non-standard prefix.
11600
11601 Alternatively, you may set the environment variables FONTTOSFNT_CFLAGS
11602 and FONTTOSFNT_LIBS to avoid the need to call pkg-config.
11603 See the pkg-config man page for more details." "$LINENO" 5
11604 elif test $pkg_failed = untried; then
11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 printf "%s\n" "no" >&6; }
11607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11608 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11609 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11610 is in your PATH or set the PKG_CONFIG environment variable to the full
11611 path to pkg-config.
11612
11613 Alternatively, you may set the environment variables FONTTOSFNT_CFLAGS
11614 and FONTTOSFNT_LIBS to avoid the need to call pkg-config.
11615 See the pkg-config man page for more details.
11616
11617 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11618 See 'config.log' for more details" "$LINENO" 5; }
11619 else
11620 FONTTOSFNT_CFLAGS=$pkg_cv_FONTTOSFNT_CFLAGS
11621 FONTTOSFNT_LIBS=$pkg_cv_FONTTOSFNT_LIBS
11622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 printf "%s\n" "yes" >&6; }
11624
11625 fi
11626
11627
11628 ac_config_files="$ac_config_files Makefile man/Makefile"
11629
11630 cat >confcache <<\_ACEOF
11631 # This file is a shell script that caches the results of configure
11632 # tests run on this system so they can be shared between configure
11633 # scripts and configure runs, see configure's option --config-cache.
11634 # It is not useful on other systems. If it contains results you don't
11635 # want to keep, you may remove or edit it.
11636 #
11637 # config.status only pays attention to the cache file if you give it
11638 # the --recheck option to rerun configure.
11639 #
11640 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11641 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11642 # following values.
11643
11644 _ACEOF
11645
11646 # The following way of writing the cache mishandles newlines in values,
11647 # but we know of no workaround that is simple, portable, and efficient.
11648 # So, we kill variables containing newlines.
11649 # Ultrix sh set writes to stderr and can't be redirected directly,
11650 # and sets the high bit in the cache file unless we assign to the vars.
11651 (
11652 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11653 eval ac_val=\$$ac_var
11654 case $ac_val in #(
11655 *${as_nl}*)
11656 case $ac_var in #(
11657 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11658 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11659 esac
11660 case $ac_var in #(
11661 _ | IFS | as_nl) ;; #(
11662 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11663 *) { eval $ac_var=; unset $ac_var;} ;;
11664 esac ;;
11665 esac
11666 done
11667
11668 (set) 2>&1 |
11669 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11670 *${as_nl}ac_space=\ *)
11671 # 'set' does not quote correctly, so add quotes: double-quote
11672 # substitution turns \\\\ into \\, and sed turns \\ into \.
11673 sed -n \
11674 "s/'/'\\\\''/g;
11675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11676 ;; #(
11677 *)
11678 # 'set' quotes correctly as required by POSIX, so do not add quotes.
11679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11680 ;;
11681 esac |
11682 sort
11683 ) |
11684 sed '
11685 /^ac_cv_env_/b end
11686 t clear
11687 :clear
11688 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11689 t end
11690 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11691 :end' >>confcache
11692 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11693 if test -w "$cache_file"; then
11694 if test "x$cache_file" != "x/dev/null"; then
11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11696 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11697 if test ! -f "$cache_file" || test -h "$cache_file"; then
11698 cat confcache >"$cache_file"
11699 else
11700 case $cache_file in #(
11701 */* | ?:*)
11702 mv -f confcache "$cache_file"$$ &&
11703 mv -f "$cache_file"$$ "$cache_file" ;; #(
11704 *)
11705 mv -f confcache "$cache_file" ;;
11706 esac
11707 fi
11708 fi
11709 else
11710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11711 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11712 fi
11713 fi
11714 rm -f confcache
11715
11716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11717 # Let make expand exec_prefix.
11718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11719
11720 DEFS=-DHAVE_CONFIG_H
11721
11722 ac_libobjs=
11723 ac_ltlibobjs=
11724 U=
11725 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11726 # 1. Remove the extension, and $U if already installed.
11727 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11728 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11729 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11730 # will be set to the directory where LIBOBJS objects are built.
11731 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11732 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11733 done
11734 LIBOBJS=$ac_libobjs
11735
11736 LTLIBOBJS=$ac_ltlibobjs
11737
11738
11739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11740 printf %s "checking that generated files are newer than configure... " >&6; }
11741 if test -n "$am_sleep_pid"; then
11742 # Hide warnings about reused PIDs.
11743 wait $am_sleep_pid 2>/dev/null
11744 fi
11745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11746 printf "%s\n" "done" >&6; }
11747 case $enable_silent_rules in # (((
11748 yes) AM_DEFAULT_VERBOSITY=0;;
11749 no) AM_DEFAULT_VERBOSITY=1;;
11750 esac
11751 if test $am_cv_make_support_nested_variables = yes; then
11752 AM_V='$(V)'
11753 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11754 else
11755 AM_V=$AM_DEFAULT_VERBOSITY
11756 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11757 fi
11758
11759 if test -n "$EXEEXT"; then
11760 am__EXEEXT_TRUE=
11761 am__EXEEXT_FALSE='#'
11762 else
11763 am__EXEEXT_TRUE='#'
11764 am__EXEEXT_FALSE=
11765 fi
11766
11767 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11768 as_fn_error $? "conditional \"AMDEP\" was never defined.
11769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11770 fi
11771 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11772 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11774 fi
11775 if test -z "${NEED_SETENV_TRUE}" && test -z "${NEED_SETENV_FALSE}"; then
11776 as_fn_error $? "conditional \"NEED_SETENV\" was never defined.
11777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11778 fi
11779
11780 : "${CONFIG_STATUS=./config.status}"
11781 ac_write_fail=0
11782 ac_clean_files_save=$ac_clean_files
11783 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11785 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11786 as_write_fail=0
11787 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11788 #! $SHELL
11789 # Generated by $as_me.
11790 # Run this file to recreate the current configuration.
11791 # Compiler output produced by configure, useful for debugging
11792 # configure, is in config.log if it exists.
11793
11794 debug=false
11795 ac_cs_recheck=false
11796 ac_cs_silent=false
11797
11798 SHELL=\${CONFIG_SHELL-$SHELL}
11799 export SHELL
11800 _ASEOF
11801 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11802 ## -------------------- ##
11803 ## M4sh Initialization. ##
11804 ## -------------------- ##
11805
11806 # Be more Bourne compatible
11807 DUALCASE=1; export DUALCASE # for MKS sh
11808 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11809 then :
11810 emulate sh
11811 NULLCMD=:
11812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11813 # is contrary to our usage. Disable this feature.
11814 alias -g '${1+"$@"}'='"$@"'
11815 setopt NO_GLOB_SUBST
11816 else case e in #(
11817 e) case `(set -o) 2>/dev/null` in #(
11818 *posix*) :
11819 set -o posix ;; #(
11820 *) :
11821 ;;
11822 esac ;;
11823 esac
11824 fi
11825
11826
11827
11828 # Reset variables that may have inherited troublesome values from
11829 # the environment.
11830
11831 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11832 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11833 # side effect of setting IFS to empty, thus disabling word splitting.)
11834 # Quoting is to prevent editors from complaining about space-tab.
11835 as_nl='
11836 '
11837 export as_nl
11838 IFS=" "" $as_nl"
11839
11840 PS1='$ '
11841 PS2='> '
11842 PS4='+ '
11843
11844 # Ensure predictable behavior from utilities with locale-dependent output.
11845 LC_ALL=C
11846 export LC_ALL
11847 LANGUAGE=C
11848 export LANGUAGE
11849
11850 # We cannot yet rely on "unset" to work, but we need these variables
11851 # to be unset--not just set to an empty or harmless value--now, to
11852 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11853 # also avoids known problems related to "unset" and subshell syntax
11854 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11855 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11856 do eval test \${$as_var+y} \
11857 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11858 done
11859
11860 # Ensure that fds 0, 1, and 2 are open.
11861 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11862 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11863 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11864
11865 # The user is always right.
11866 if ${PATH_SEPARATOR+false} :; then
11867 PATH_SEPARATOR=:
11868 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11869 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11870 PATH_SEPARATOR=';'
11871 }
11872 fi
11873
11874
11875 # Find who we are. Look in the path if we contain no directory separator.
11876 as_myself=
11877 case $0 in #((
11878 *[\\/]* ) as_myself=$0 ;;
11879 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11881 do
11882 IFS=$as_save_IFS
11883 case $as_dir in #(((
11884 '') as_dir=./ ;;
11885 */) ;;
11886 *) as_dir=$as_dir/ ;;
11887 esac
11888 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11889 done
11890 IFS=$as_save_IFS
11891
11892 ;;
11893 esac
11894 # We did not find ourselves, most probably we were run as 'sh COMMAND'
11895 # in which case we are not to be found in the path.
11896 if test "x$as_myself" = x; then
11897 as_myself=$0
11898 fi
11899 if test ! -f "$as_myself"; then
11900 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11901 exit 1
11902 fi
11903
11904
11905
11906 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11907 # ----------------------------------------
11908 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11909 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11910 # script with STATUS, using 1 if that was 0.
11911 as_fn_error ()
11912 {
11913 as_status=$1; test $as_status -eq 0 && as_status=1
11914 if test "$4"; then
11915 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11917 fi
11918 printf "%s\n" "$as_me: error: $2" >&2
11919 as_fn_exit $as_status
11920 } # as_fn_error
11921
11922
11923 # as_fn_set_status STATUS
11924 # -----------------------
11925 # Set $? to STATUS, without forking.
11926 as_fn_set_status ()
11927 {
11928 return $1
11929 } # as_fn_set_status
11930
11931 # as_fn_exit STATUS
11932 # -----------------
11933 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11934 as_fn_exit ()
11935 {
11936 set +e
11937 as_fn_set_status $1
11938 exit $1
11939 } # as_fn_exit
11940
11941 # as_fn_unset VAR
11942 # ---------------
11943 # Portably unset VAR.
11944 as_fn_unset ()
11945 {
11946 { eval $1=; unset $1;}
11947 }
11948 as_unset=as_fn_unset
11949
11950 # as_fn_append VAR VALUE
11951 # ----------------------
11952 # Append the text in VALUE to the end of the definition contained in VAR. Take
11953 # advantage of any shell optimizations that allow amortized linear growth over
11954 # repeated appends, instead of the typical quadratic growth present in naive
11955 # implementations.
11956 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11957 then :
11958 eval 'as_fn_append ()
11959 {
11960 eval $1+=\$2
11961 }'
11962 else case e in #(
11963 e) as_fn_append ()
11964 {
11965 eval $1=\$$1\$2
11966 } ;;
11967 esac
11968 fi # as_fn_append
11969
11970 # as_fn_arith ARG...
11971 # ------------------
11972 # Perform arithmetic evaluation on the ARGs, and store the result in the
11973 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11974 # must be portable across $(()) and expr.
11975 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11976 then :
11977 eval 'as_fn_arith ()
11978 {
11979 as_val=$(( $* ))
11980 }'
11981 else case e in #(
11982 e) as_fn_arith ()
11983 {
11984 as_val=`expr "$@" || test $? -eq 1`
11985 } ;;
11986 esac
11987 fi # as_fn_arith
11988
11989
11990 if expr a : '\(a\)' >/dev/null 2>&1 &&
11991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11992 as_expr=expr
11993 else
11994 as_expr=false
11995 fi
11996
11997 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11998 as_basename=basename
11999 else
12000 as_basename=false
12001 fi
12002
12003 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12004 as_dirname=dirname
12005 else
12006 as_dirname=false
12007 fi
12008
12009 as_me=`$as_basename -- "$0" ||
12010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12011 X"$0" : 'X\(//\)$' \| \
12012 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12013 printf "%s\n" X/"$0" |
12014 sed '/^.*\/\([^/][^/]*\)\/*$/{
12015 s//\1/
12016 q
12017 }
12018 /^X\/\(\/\/\)$/{
12019 s//\1/
12020 q
12021 }
12022 /^X\/\(\/\).*/{
12023 s//\1/
12024 q
12025 }
12026 s/.*/./; q'`
12027
12028 # Avoid depending upon Character Ranges.
12029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12032 as_cr_digits='0123456789'
12033 as_cr_alnum=$as_cr_Letters$as_cr_digits
12034
12035
12036 # Determine whether it's possible to make 'echo' print without a newline.
12037 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12038 # for compatibility with existing Makefiles.
12039 ECHO_C= ECHO_N= ECHO_T=
12040 case `echo -n x` in #(((((
12041 -n*)
12042 case `echo 'xy\c'` in
12043 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12044 xy) ECHO_C='\c';;
12045 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12046 ECHO_T=' ';;
12047 esac;;
12048 *)
12049 ECHO_N='-n';;
12050 esac
12051
12052 # For backward compatibility with old third-party macros, we provide
12053 # the shell variables $as_echo and $as_echo_n. New code should use
12054 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12055 as_echo='printf %s\n'
12056 as_echo_n='printf %s'
12057
12058 rm -f conf$$ conf$$.exe conf$$.file
12059 if test -d conf$$.dir; then
12060 rm -f conf$$.dir/conf$$.file
12061 else
12062 rm -f conf$$.dir
12063 mkdir conf$$.dir 2>/dev/null
12064 fi
12065 if (echo >conf$$.file) 2>/dev/null; then
12066 if ln -s conf$$.file conf$$ 2>/dev/null; then
12067 as_ln_s='ln -s'
12068 # ... but there are two gotchas:
12069 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12070 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12071 # In both cases, we have to default to 'cp -pR'.
12072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12073 as_ln_s='cp -pR'
12074 elif ln conf$$.file conf$$ 2>/dev/null; then
12075 as_ln_s=ln
12076 else
12077 as_ln_s='cp -pR'
12078 fi
12079 else
12080 as_ln_s='cp -pR'
12081 fi
12082 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12083 rmdir conf$$.dir 2>/dev/null
12084
12085
12086 # as_fn_mkdir_p
12087 # -------------
12088 # Create "$as_dir" as a directory, including parents if necessary.
12089 as_fn_mkdir_p ()
12090 {
12091
12092 case $as_dir in #(
12093 -*) as_dir=./$as_dir;;
12094 esac
12095 test -d "$as_dir" || eval $as_mkdir_p || {
12096 as_dirs=
12097 while :; do
12098 case $as_dir in #(
12099 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12100 *) as_qdir=$as_dir;;
12101 esac
12102 as_dirs="'$as_qdir' $as_dirs"
12103 as_dir=`$as_dirname -- "$as_dir" ||
12104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12105 X"$as_dir" : 'X\(//\)[^/]' \| \
12106 X"$as_dir" : 'X\(//\)$' \| \
12107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12108 printf "%s\n" X"$as_dir" |
12109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12110 s//\1/
12111 q
12112 }
12113 /^X\(\/\/\)[^/].*/{
12114 s//\1/
12115 q
12116 }
12117 /^X\(\/\/\)$/{
12118 s//\1/
12119 q
12120 }
12121 /^X\(\/\).*/{
12122 s//\1/
12123 q
12124 }
12125 s/.*/./; q'`
12126 test -d "$as_dir" && break
12127 done
12128 test -z "$as_dirs" || eval "mkdir $as_dirs"
12129 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12130
12131
12132 } # as_fn_mkdir_p
12133 if mkdir -p . 2>/dev/null; then
12134 as_mkdir_p='mkdir -p "$as_dir"'
12135 else
12136 test -d ./-p && rmdir ./-p
12137 as_mkdir_p=false
12138 fi
12139
12140
12141 # as_fn_executable_p FILE
12142 # -----------------------
12143 # Test if FILE is an executable regular file.
12144 as_fn_executable_p ()
12145 {
12146 test -f "$1" && test -x "$1"
12147 } # as_fn_executable_p
12148 as_test_x='test -x'
12149 as_executable_p=as_fn_executable_p
12150
12151 # Sed expression to map a string onto a valid CPP name.
12152 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12153 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12154
12155 # Sed expression to map a string onto a valid variable name.
12156 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12157 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12158
12159
12160 exec 6>&1
12161 ## ----------------------------------- ##
12162 ## Main body of $CONFIG_STATUS script. ##
12163 ## ----------------------------------- ##
12164 _ASEOF
12165 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12166
12167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12168 # Save the log message, to keep $0 and so on meaningful, and to
12169 # report actual input values of CONFIG_FILES etc. instead of their
12170 # values after options handling.
12171 ac_log="
12172 This file was extended by fonttosfnt $as_me 1.2.4, which was
12173 generated by GNU Autoconf 2.72. Invocation command line was
12174
12175 CONFIG_FILES = $CONFIG_FILES
12176 CONFIG_HEADERS = $CONFIG_HEADERS
12177 CONFIG_LINKS = $CONFIG_LINKS
12178 CONFIG_COMMANDS = $CONFIG_COMMANDS
12179 $ $0 $@
12180
12181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12182 "
12183
12184 _ACEOF
12185
12186 case $ac_config_files in *"
12187 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12188 esac
12189
12190 case $ac_config_headers in *"
12191 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12192 esac
12193
12194
12195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12196 # Files that config.status was made for.
12197 config_files="$ac_config_files"
12198 config_headers="$ac_config_headers"
12199 config_commands="$ac_config_commands"
12200
12201 _ACEOF
12202
12203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12204 ac_cs_usage="\
12205 '$as_me' instantiates files and other configuration actions
12206 from templates according to the current configuration. Unless the files
12207 and actions are specified as TAGs, all are instantiated by default.
12208
12209 Usage: $0 [OPTION]... [TAG]...
12210
12211 -h, --help print this help, then exit
12212 -V, --version print version number and configuration settings, then exit
12213 --config print configuration, then exit
12214 -q, --quiet, --silent
12215 do not print progress messages
12216 -d, --debug don't remove temporary files
12217 --recheck update $as_me by reconfiguring in the same conditions
12218 --file=FILE[:TEMPLATE]
12219 instantiate the configuration file FILE
12220 --header=FILE[:TEMPLATE]
12221 instantiate the configuration header FILE
12222
12223 Configuration files:
12224 $config_files
12225
12226 Configuration headers:
12227 $config_headers
12228
12229 Configuration commands:
12230 $config_commands
12231
12232 Report bugs to <https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/issues>."
12233
12234 _ACEOF
12235 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12236 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12238 ac_cs_config='$ac_cs_config_escaped'
12239 ac_cs_version="\\
12240 fonttosfnt config.status 1.2.4
12241 configured by $0, generated by GNU Autoconf 2.72,
12242 with options \\"\$ac_cs_config\\"
12243
12244 Copyright (C) 2023 Free Software Foundation, Inc.
12245 This config.status script is free software; the Free Software Foundation
12246 gives unlimited permission to copy, distribute and modify it."
12247
12248 ac_pwd='$ac_pwd'
12249 srcdir='$srcdir'
12250 INSTALL='$INSTALL'
12251 MKDIR_P='$MKDIR_P'
12252 AWK='$AWK'
12253 test -n "\$AWK" || AWK=awk
12254 _ACEOF
12255
12256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12257 # The default lists apply if the user does not specify any file.
12258 ac_need_defaults=:
12259 while test $# != 0
12260 do
12261 case $1 in
12262 --*=?*)
12263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12264 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12265 ac_shift=:
12266 ;;
12267 --*=)
12268 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12269 ac_optarg=
12270 ac_shift=:
12271 ;;
12272 *)
12273 ac_option=$1
12274 ac_optarg=$2
12275 ac_shift=shift
12276 ;;
12277 esac
12278
12279 case $ac_option in
12280 # Handling of the options.
12281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12282 ac_cs_recheck=: ;;
12283 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12284 printf "%s\n" "$ac_cs_version"; exit ;;
12285 --config | --confi | --conf | --con | --co | --c )
12286 printf "%s\n" "$ac_cs_config"; exit ;;
12287 --debug | --debu | --deb | --de | --d | -d )
12288 debug=: ;;
12289 --file | --fil | --fi | --f )
12290 $ac_shift
12291 case $ac_optarg in
12292 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12293 '') as_fn_error $? "missing file argument" ;;
12294 esac
12295 as_fn_append CONFIG_FILES " '$ac_optarg'"
12296 ac_need_defaults=false;;
12297 --header | --heade | --head | --hea )
12298 $ac_shift
12299 case $ac_optarg in
12300 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12301 esac
12302 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12303 ac_need_defaults=false;;
12304 --he | --h)
12305 # Conflict between --help and --header
12306 as_fn_error $? "ambiguous option: '$1'
12307 Try '$0 --help' for more information.";;
12308 --help | --hel | -h )
12309 printf "%s\n" "$ac_cs_usage"; exit ;;
12310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12311 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12312 ac_cs_silent=: ;;
12313
12314 # This is an error.
12315 -*) as_fn_error $? "unrecognized option: '$1'
12316 Try '$0 --help' for more information." ;;
12317
12318 *) as_fn_append ac_config_targets " $1"
12319 ac_need_defaults=false ;;
12320
12321 esac
12322 shift
12323 done
12324
12325 ac_configure_extra_args=
12326
12327 if $ac_cs_silent; then
12328 exec 6>/dev/null
12329 ac_configure_extra_args="$ac_configure_extra_args --silent"
12330 fi
12331
12332 _ACEOF
12333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12334 if \$ac_cs_recheck; then
12335 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12336 shift
12337 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12338 CONFIG_SHELL='$SHELL'
12339 export CONFIG_SHELL
12340 exec "\$@"
12341 fi
12342
12343 _ACEOF
12344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12345 exec 5>>config.log
12346 {
12347 echo
12348 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12349 ## Running $as_me. ##
12350 _ASBOX
12351 printf "%s\n" "$ac_log"
12352 } >&5
12353
12354 _ACEOF
12355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12356 #
12357 # INIT-COMMANDS
12358 #
12359 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12360
12361 _ACEOF
12362
12363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12364
12365 # Handling of arguments.
12366 for ac_config_target in $ac_config_targets
12367 do
12368 case $ac_config_target in
12369 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12370 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12371 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12372 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12373
12374 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12375 esac
12376 done
12377
12378
12379 # If the user did not use the arguments to specify the items to instantiate,
12380 # then the envvar interface is used. Set only those that are not.
12381 # We use the long form for the default assignment because of an extremely
12382 # bizarre bug on SunOS 4.1.3.
12383 if $ac_need_defaults; then
12384 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12385 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12386 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12387 fi
12388
12389 # Have a temporary directory for convenience. Make it in the build tree
12390 # simply because there is no reason against having it here, and in addition,
12391 # creating and moving files from /tmp can sometimes cause problems.
12392 # Hook for its removal unless debugging.
12393 # Note that there is a small window in which the directory will not be cleaned:
12394 # after its creation but before its name has been assigned to '$tmp'.
12395 $debug ||
12396 {
12397 tmp= ac_tmp=
12398 trap 'exit_status=$?
12399 : "${ac_tmp:=$tmp}"
12400 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12401 ' 0
12402 trap 'as_fn_exit 1' 1 2 13 15
12403 }
12404 # Create a (secure) tmp directory for tmp files.
12405
12406 {
12407 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12408 test -d "$tmp"
12409 } ||
12410 {
12411 tmp=./conf$$-$RANDOM
12412 (umask 077 && mkdir "$tmp")
12413 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12414 ac_tmp=$tmp
12415
12416 # Set up the scripts for CONFIG_FILES section.
12417 # No need to generate them if there are no CONFIG_FILES.
12418 # This happens for instance with './config.status config.h'.
12419 if test -n "$CONFIG_FILES"; then
12420
12421
12422 ac_cr=`echo X | tr X '\015'`
12423 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12424 # But we know of no other shell where ac_cr would be empty at this
12425 # point, so we can use a bashism as a fallback.
12426 if test "x$ac_cr" = x; then
12427 eval ac_cr=\$\'\\r\'
12428 fi
12429 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12430 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12431 ac_cs_awk_cr='\\r'
12432 else
12433 ac_cs_awk_cr=$ac_cr
12434 fi
12435
12436 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12437 _ACEOF
12438
12439
12440 {
12441 echo "cat >conf$$subs.awk <<_ACEOF" &&
12442 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12443 echo "_ACEOF"
12444 } >conf$$subs.sh ||
12445 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12446 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12447 ac_delim='%!_!# '
12448 for ac_last_try in false false false false false :; do
12449 . ./conf$$subs.sh ||
12450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12451
12452 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12453 if test $ac_delim_n = $ac_delim_num; then
12454 break
12455 elif $ac_last_try; then
12456 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12457 else
12458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12459 fi
12460 done
12461 rm -f conf$$subs.sh
12462
12463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12464 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12465 _ACEOF
12466 sed -n '
12467 h
12468 s/^/S["/; s/!.*/"]=/
12469 p
12470 g
12471 s/^[^!]*!//
12472 :repl
12473 t repl
12474 s/'"$ac_delim"'$//
12475 t delim
12476 :nl
12477 h
12478 s/\(.\{148\}\)..*/\1/
12479 t more1
12480 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12481 p
12482 n
12483 b repl
12484 :more1
12485 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12486 p
12487 g
12488 s/.\{148\}//
12489 t nl
12490 :delim
12491 h
12492 s/\(.\{148\}\)..*/\1/
12493 t more2
12494 s/["\\]/\\&/g; s/^/"/; s/$/"/
12495 p
12496 b
12497 :more2
12498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12499 p
12500 g
12501 s/.\{148\}//
12502 t delim
12503 ' <conf$$subs.awk | sed '
12504 /^[^""]/{
12505 N
12506 s/\n//
12507 }
12508 ' >>$CONFIG_STATUS || ac_write_fail=1
12509 rm -f conf$$subs.awk
12510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12511 _ACAWK
12512 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12513 for (key in S) S_is_set[key] = 1
12514 FS = ""
12515
12516 }
12517 {
12518 line = $ 0
12519 nfields = split(line, field, "@")
12520 substed = 0
12521 len = length(field[1])
12522 for (i = 2; i < nfields; i++) {
12523 key = field[i]
12524 keylen = length(key)
12525 if (S_is_set[key]) {
12526 value = S[key]
12527 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12528 len += length(value) + length(field[++i])
12529 substed = 1
12530 } else
12531 len += 1 + keylen
12532 }
12533
12534 print line
12535 }
12536
12537 _ACAWK
12538 _ACEOF
12539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12540 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12541 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12542 else
12543 cat
12544 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12545 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12546 _ACEOF
12547
12548 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12549 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12550 # trailing colons and then remove the whole line if VPATH becomes empty
12551 # (actually we leave an empty line to preserve line numbers).
12552 if test "x$srcdir" = x.; then
12553 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12554 h
12555 s///
12556 s/^/:/
12557 s/[ ]*$/:/
12558 s/:\$(srcdir):/:/g
12559 s/:\${srcdir}:/:/g
12560 s/:@srcdir@:/:/g
12561 s/^:*//
12562 s/:*$//
12563 x
12564 s/\(=[ ]*\).*/\1/
12565 G
12566 s/\n//
12567 s/^[^=]*=[ ]*$//
12568 }'
12569 fi
12570
12571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12572 fi # test -n "$CONFIG_FILES"
12573
12574 # Set up the scripts for CONFIG_HEADERS section.
12575 # No need to generate them if there are no CONFIG_HEADERS.
12576 # This happens for instance with './config.status Makefile'.
12577 if test -n "$CONFIG_HEADERS"; then
12578 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12579 BEGIN {
12580 _ACEOF
12581
12582 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12583 # here-document in config.status, that substitutes the proper values into
12584 # config.h.in to produce config.h.
12585
12586 # Create a delimiter string that does not exist in confdefs.h, to ease
12587 # handling of long lines.
12588 ac_delim='%!_!# '
12589 for ac_last_try in false false :; do
12590 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12591 if test -z "$ac_tt"; then
12592 break
12593 elif $ac_last_try; then
12594 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12595 else
12596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12597 fi
12598 done
12599
12600 # For the awk script, D is an array of macro values keyed by name,
12601 # likewise P contains macro parameters if any. Preserve backslash
12602 # newline sequences.
12603
12604 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12605 sed -n '
12606 s/.\{148\}/&'"$ac_delim"'/g
12607 t rset
12608 :rset
12609 s/^[ ]*#[ ]*define[ ][ ]*/ /
12610 t def
12611 d
12612 :def
12613 s/\\$//
12614 t bsnl
12615 s/["\\]/\\&/g
12616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12617 D["\1"]=" \3"/p
12618 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12619 d
12620 :bsnl
12621 s/["\\]/\\&/g
12622 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12623 D["\1"]=" \3\\\\\\n"\\/p
12624 t cont
12625 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12626 t cont
12627 d
12628 :cont
12629 n
12630 s/.\{148\}/&'"$ac_delim"'/g
12631 t clear
12632 :clear
12633 s/\\$//
12634 t bsnlc
12635 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12636 d
12637 :bsnlc
12638 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12639 b cont
12640 ' <confdefs.h | sed '
12641 s/'"$ac_delim"'/"\\\
12642 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12643
12644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12645 for (key in D) D_is_set[key] = 1
12646 FS = ""
12647 }
12648 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12649 line = \$ 0
12650 split(line, arg, " ")
12651 if (arg[1] == "#") {
12652 defundef = arg[2]
12653 mac1 = arg[3]
12654 } else {
12655 defundef = substr(arg[1], 2)
12656 mac1 = arg[2]
12657 }
12658 split(mac1, mac2, "(") #)
12659 macro = mac2[1]
12660 prefix = substr(line, 1, index(line, defundef) - 1)
12661 if (D_is_set[macro]) {
12662 # Preserve the white space surrounding the "#".
12663 print prefix "define", macro P[macro] D[macro]
12664 next
12665 } else {
12666 # Replace #undef with comments. This is necessary, for example,
12667 # in the case of _POSIX_SOURCE, which is predefined and required
12668 # on some systems where configure will not decide to define it.
12669 if (defundef == "undef") {
12670 print "/*", prefix defundef, macro, "*/"
12671 next
12672 }
12673 }
12674 }
12675 { print }
12676 _ACAWK
12677 _ACEOF
12678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12679 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12680 fi # test -n "$CONFIG_HEADERS"
12681
12682
12683 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12684 shift
12685 for ac_tag
12686 do
12687 case $ac_tag in
12688 :[FHLC]) ac_mode=$ac_tag; continue;;
12689 esac
12690 case $ac_mode$ac_tag in
12691 :[FHL]*:*);;
12692 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12693 :[FH]-) ac_tag=-:-;;
12694 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12695 esac
12696 ac_save_IFS=$IFS
12697 IFS=:
12698 set x $ac_tag
12699 IFS=$ac_save_IFS
12700 shift
12701 ac_file=$1
12702 shift
12703
12704 case $ac_mode in
12705 :L) ac_source=$1;;
12706 :[FH])
12707 ac_file_inputs=
12708 for ac_f
12709 do
12710 case $ac_f in
12711 -) ac_f="$ac_tmp/stdin";;
12712 *) # Look for the file first in the build tree, then in the source tree
12713 # (if the path is not absolute). The absolute path cannot be DOS-style,
12714 # because $ac_f cannot contain ':'.
12715 test -f "$ac_f" ||
12716 case $ac_f in
12717 [\\/$]*) false;;
12718 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12719 esac ||
12720 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12721 esac
12722 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12723 as_fn_append ac_file_inputs " '$ac_f'"
12724 done
12725
12726 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12727 # use $as_me), people would be surprised to read:
12728 # /* config.h. Generated by config.status. */
12729 configure_input='Generated from '`
12730 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12731 `' by configure.'
12732 if test x"$ac_file" != x-; then
12733 configure_input="$ac_file. $configure_input"
12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12735 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12736 fi
12737 # Neutralize special characters interpreted by sed in replacement strings.
12738 case $configure_input in #(
12739 *\&* | *\|* | *\\* )
12740 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12741 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12742 *) ac_sed_conf_input=$configure_input;;
12743 esac
12744
12745 case $ac_tag in
12746 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12748 esac
12749 ;;
12750 esac
12751
12752 ac_dir=`$as_dirname -- "$ac_file" ||
12753 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12754 X"$ac_file" : 'X\(//\)[^/]' \| \
12755 X"$ac_file" : 'X\(//\)$' \| \
12756 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12757 printf "%s\n" X"$ac_file" |
12758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12759 s//\1/
12760 q
12761 }
12762 /^X\(\/\/\)[^/].*/{
12763 s//\1/
12764 q
12765 }
12766 /^X\(\/\/\)$/{
12767 s//\1/
12768 q
12769 }
12770 /^X\(\/\).*/{
12771 s//\1/
12772 q
12773 }
12774 s/.*/./; q'`
12775 as_dir="$ac_dir"; as_fn_mkdir_p
12776 ac_builddir=.
12777
12778 case "$ac_dir" in
12779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12780 *)
12781 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12782 # A ".." for each directory in $ac_dir_suffix.
12783 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12784 case $ac_top_builddir_sub in
12785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12787 esac ;;
12788 esac
12789 ac_abs_top_builddir=$ac_pwd
12790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12791 # for backward compatibility:
12792 ac_top_builddir=$ac_top_build_prefix
12793
12794 case $srcdir in
12795 .) # We are building in place.
12796 ac_srcdir=.
12797 ac_top_srcdir=$ac_top_builddir_sub
12798 ac_abs_top_srcdir=$ac_pwd ;;
12799 [\\/]* | ?:[\\/]* ) # Absolute name.
12800 ac_srcdir=$srcdir$ac_dir_suffix;
12801 ac_top_srcdir=$srcdir
12802 ac_abs_top_srcdir=$srcdir ;;
12803 *) # Relative name.
12804 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12805 ac_top_srcdir=$ac_top_build_prefix$srcdir
12806 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12807 esac
12808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12809
12810
12811 case $ac_mode in
12812 :F)
12813 #
12814 # CONFIG_FILE
12815 #
12816
12817 case $INSTALL in
12818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12820 esac
12821 ac_MKDIR_P=$MKDIR_P
12822 case $MKDIR_P in
12823 [\\/$]* | ?:[\\/]* ) ;;
12824 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12825 esac
12826 _ACEOF
12827
12828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12829 # If the template does not know about datarootdir, expand it.
12830 # FIXME: This hack should be removed a few years after 2.60.
12831 ac_datarootdir_hack=; ac_datarootdir_seen=
12832 ac_sed_dataroot='
12833 /datarootdir/ {
12834 p
12835 q
12836 }
12837 /@datadir@/p
12838 /@docdir@/p
12839 /@infodir@/p
12840 /@localedir@/p
12841 /@mandir@/p'
12842 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12843 *datarootdir*) ac_datarootdir_seen=yes;;
12844 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12846 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12847 _ACEOF
12848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12849 ac_datarootdir_hack='
12850 s&@datadir@&$datadir&g
12851 s&@docdir@&$docdir&g
12852 s&@infodir@&$infodir&g
12853 s&@localedir@&$localedir&g
12854 s&@mandir@&$mandir&g
12855 s&\\\${datarootdir}&$datarootdir&g' ;;
12856 esac
12857 _ACEOF
12858
12859 # Neutralize VPATH when '$srcdir' = '.'.
12860 # Shell code in configure.ac might set extrasub.
12861 # FIXME: do we really want to maintain this feature?
12862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12863 ac_sed_extra="$ac_vpsub
12864 $extrasub
12865 _ACEOF
12866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12867 :t
12868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12869 s|@configure_input@|$ac_sed_conf_input|;t t
12870 s&@top_builddir@&$ac_top_builddir_sub&;t t
12871 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12872 s&@srcdir@&$ac_srcdir&;t t
12873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12874 s&@top_srcdir@&$ac_top_srcdir&;t t
12875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12876 s&@builddir@&$ac_builddir&;t t
12877 s&@abs_builddir@&$ac_abs_builddir&;t t
12878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12879 s&@INSTALL@&$ac_INSTALL&;t t
12880 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12881 $ac_datarootdir_hack
12882 "
12883 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12884 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12885
12886 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12887 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12889 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12891 which seems to be undefined. Please make sure it is defined" >&5
12892 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12893 which seems to be undefined. Please make sure it is defined" >&2;}
12894
12895 rm -f "$ac_tmp/stdin"
12896 case $ac_file in
12897 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12898 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12899 esac \
12900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12901 ;;
12902 :H)
12903 #
12904 # CONFIG_HEADER
12905 #
12906 if test x"$ac_file" != x-; then
12907 {
12908 printf "%s\n" "/* $configure_input */" >&1 \
12909 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12910 } >"$ac_tmp/config.h" \
12911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12912 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12914 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12915 else
12916 rm -f "$ac_file"
12917 mv "$ac_tmp/config.h" "$ac_file" \
12918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12919 fi
12920 else
12921 printf "%s\n" "/* $configure_input */" >&1 \
12922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12923 || as_fn_error $? "could not create -" "$LINENO" 5
12924 fi
12925 # Compute "$ac_file"'s index in $config_headers.
12926 _am_arg="$ac_file"
12927 _am_stamp_count=1
12928 for _am_header in $config_headers :; do
12929 case $_am_header in
12930 $_am_arg | $_am_arg:* )
12931 break ;;
12932 * )
12933 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12934 esac
12935 done
12936 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12937 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12938 X"$_am_arg" : 'X\(//\)[^/]' \| \
12939 X"$_am_arg" : 'X\(//\)$' \| \
12940 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12941 printf "%s\n" X"$_am_arg" |
12942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12943 s//\1/
12944 q
12945 }
12946 /^X\(\/\/\)[^/].*/{
12947 s//\1/
12948 q
12949 }
12950 /^X\(\/\/\)$/{
12951 s//\1/
12952 q
12953 }
12954 /^X\(\/\).*/{
12955 s//\1/
12956 q
12957 }
12958 s/.*/./; q'`/stamp-h$_am_stamp_count
12959 ;;
12960
12961 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12962 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12963 ;;
12964 esac
12965
12966
12967 case $ac_file$ac_mode in
12968 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12969 # Older Autoconf quotes --file arguments for eval, but not when files
12970 # are listed without --file. Let's play safe and only enable the eval
12971 # if we detect the quoting.
12972 # TODO: see whether this extra hack can be removed once we start
12973 # requiring Autoconf 2.70 or later.
12974 case $CONFIG_FILES in #(
12975 *\'*) :
12976 eval set x "$CONFIG_FILES" ;; #(
12977 *) :
12978 set x $CONFIG_FILES ;; #(
12979 *) :
12980 ;;
12981 esac
12982 shift
12983 # Used to flag and report bootstrapping failures.
12984 am_rc=0
12985 for am_mf
12986 do
12987 # Strip MF so we end up with the name of the file.
12988 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12989 # Check whether this is an Automake generated Makefile which includes
12990 # dependency-tracking related rules and includes.
12991 # Grep'ing the whole file directly is not great: AIX grep has a line
12992 # limit of 2048, but all sed's we know have understand at least 4000.
12993 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12994 || continue
12995 am_dirpart=`$as_dirname -- "$am_mf" ||
12996 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12997 X"$am_mf" : 'X\(//\)[^/]' \| \
12998 X"$am_mf" : 'X\(//\)$' \| \
12999 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13000 printf "%s\n" X"$am_mf" |
13001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13002 s//\1/
13003 q
13004 }
13005 /^X\(\/\/\)[^/].*/{
13006 s//\1/
13007 q
13008 }
13009 /^X\(\/\/\)$/{
13010 s//\1/
13011 q
13012 }
13013 /^X\(\/\).*/{
13014 s//\1/
13015 q
13016 }
13017 s/.*/./; q'`
13018 am_filepart=`$as_basename -- "$am_mf" ||
13019 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13020 X"$am_mf" : 'X\(//\)$' \| \
13021 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13022 printf "%s\n" X/"$am_mf" |
13023 sed '/^.*\/\([^/][^/]*\)\/*$/{
13024 s//\1/
13025 q
13026 }
13027 /^X\/\(\/\/\)$/{
13028 s//\1/
13029 q
13030 }
13031 /^X\/\(\/\).*/{
13032 s//\1/
13033 q
13034 }
13035 s/.*/./; q'`
13036 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13037 && sed -e '/# am--include-marker/d' "$am_filepart" \
13038 | $MAKE -f - am--depfiles" >&5
13039 (cd "$am_dirpart" \
13040 && sed -e '/# am--include-marker/d' "$am_filepart" \
13041 | $MAKE -f - am--depfiles) >&5 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } || am_rc=$?
13045 done
13046 if test $am_rc -ne 0; then
13047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13048 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13049 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13050 for automatic dependency tracking. If GNU make was not used, consider
13051 re-running the configure script with MAKE=\"gmake\" (or whatever is
13052 necessary). You can also try re-running configure with the
13053 '--disable-dependency-tracking' option to at least be able to build
13054 the package (albeit without support for automatic dependency tracking).
13055 See 'config.log' for more details" "$LINENO" 5; }
13056 fi
13057 { am_dirpart=; unset am_dirpart;}
13058 { am_filepart=; unset am_filepart;}
13059 { am_mf=; unset am_mf;}
13060 { am_rc=; unset am_rc;}
13061 rm -f conftest-deps.mk
13062 }
13063 ;;
13064
13065 esac
13066 done # for ac_tag
13067
13068
13069 as_fn_exit 0
13070 _ACEOF
13071 ac_clean_files=$ac_clean_files_save
13072
13073 test $ac_write_fail = 0 ||
13074 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13075
13076
13077 # configure is writing to config.log, and then calls config.status.
13078 # config.status does its own redirection, appending to config.log.
13079 # Unfortunately, on DOS this fails, as config.log is still kept open
13080 # by configure, so config.status won't be able to write to it; its
13081 # output is simply discarded. So we exec the FD to /dev/null,
13082 # effectively closing config.log, so it can be properly (re)opened and
13083 # appended to by config.status. When coming back to configure, we
13084 # need to make the FD available again.
13085 if test "$no_create" != yes; then
13086 ac_cs_success=:
13087 ac_config_status_args=
13088 test "$silent" = yes &&
13089 ac_config_status_args="$ac_config_status_args --quiet"
13090 exec 5>/dev/null
13091 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13092 exec 5>>config.log
13093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13094 # would make configure fail if this is the last instruction.
13095 $ac_cs_success || as_fn_exit 1
13096 fi
13097 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13099 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13100 fi
13101
13102
13103