Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for Cairo 1.3.
4 #
5 # Report bugs to <[email protected]>.
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 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else case e in #(
191 e) as_have_required=no ;;
192 esac
193 fi
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 then :
196
197 else case e in #(
198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 as_found=false
200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 do
202 IFS=$as_save_IFS
203 case $as_dir in #(((
204 '') as_dir=./ ;;
205 */) ;;
206 *) as_dir=$as_dir/ ;;
207 esac
208 as_found=:
209 case $as_dir in #(
210 /*)
211 for as_base in sh bash ksh sh5; do
212 # Try only shells that exist, to save several forks.
213 as_shell=$as_dir$as_base
214 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
215 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 then :
217 CONFIG_SHELL=$as_shell as_have_required=yes
218 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219 then :
220 break 2
221 fi
222 fi
223 done;;
224 esac
225 as_found=false
226 done
227 IFS=$as_save_IFS
228 if $as_found
229 then :
230
231 else case e in #(
232 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi ;;
237 esac
238 fi
239
240
241 if test "x$CONFIG_SHELL" != x
242 then :
243 export CONFIG_SHELL
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
248 BASH_ENV=/dev/null
249 ENV=/dev/null
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256 esac
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed 'exec'.
260 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 exit 255
262 fi
263
264 if test x$as_have_required = xno
265 then :
266 printf "%s\n" "$0: This script requires a shell more modern than all"
267 printf "%s\n" "$0: the shells that I found on your system."
268 if test ${ZSH_VERSION+y} ; then
269 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
271 else
272 printf "%s\n" "$0: Please tell [email protected] and
273 $0: [email protected] about your system,
274 $0: including any error possibly output before this
275 $0: message. Then install a modern shell, or manually run
276 $0: the script under such a shell if you do have one."
277 fi
278 exit 1
279 fi ;;
280 esac
281 fi
282 fi
283 SHELL=${CONFIG_SHELL-/bin/sh}
284 export SHELL
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE= GREP_OPTIONS=
287 unset CLICOLOR_FORCE GREP_OPTIONS
288
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
292 # as_fn_unset VAR
293 # ---------------
294 # Portably unset VAR.
295 as_fn_unset ()
296 {
297 { eval $1=; unset $1;}
298 }
299 as_unset=as_fn_unset
300
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 printf "%s\n" X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382 then :
383 eval 'as_fn_append ()
384 {
385 eval $1+=\$2
386 }'
387 else case e in #(
388 e) as_fn_append ()
389 {
390 eval $1=\$$1\$2
391 } ;;
392 esac
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else case e in #(
407 e) as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 } ;;
411 esac
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 printf "%s\n" "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 printf "%s\n" X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 t clear
488 :clear
489 s/[$]LINENO.*/&-/
490 t lineno
491 b
492 :lineno
493 N
494 :loop
495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 t loop
497 s/-\n.*//
498 ' >$as_me.lineno &&
499 chmod +x "$as_me.lineno" ||
500 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
501
502 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
503 # already done that, so ensure we don't try to do so again and fall
504 # in an infinite loop. This has already happened in practice.
505 _as_can_reexec=no; export _as_can_reexec
506 # Don't try to exec as it changes $[0], causing all sort of problems
507 # (the dirname of $[0] is not the place where we might find the
508 # original and so on. Autoconf is especially sensitive to this).
509 . "./$as_me.lineno"
510 # Exit status is that of the last command.
511 exit
512 }
513
514
515 # Determine whether it's possible to make 'echo' print without a newline.
516 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
517 # for compatibility with existing Makefiles.
518 ECHO_C= ECHO_N= ECHO_T=
519 case `echo -n x` in #(((((
520 -n*)
521 case `echo 'xy\c'` in
522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
523 xy) ECHO_C='\c';;
524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 ECHO_T=' ';;
526 esac;;
527 *)
528 ECHO_N='-n';;
529 esac
530
531 # For backward compatibility with old third-party macros, we provide
532 # the shell variables $as_echo and $as_echo_n. New code should use
533 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
534 as_echo='printf %s\n'
535 as_echo_n='printf %s'
536
537 rm -f conf$$ conf$$.exe conf$$.file
538 if test -d conf$$.dir; then
539 rm -f conf$$.dir/conf$$.file
540 else
541 rm -f conf$$.dir
542 mkdir conf$$.dir 2>/dev/null
543 fi
544 if (echo >conf$$.file) 2>/dev/null; then
545 if ln -s conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s='ln -s'
547 # ... but there are two gotchas:
548 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
549 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
550 # In both cases, we have to default to 'cp -pR'.
551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
552 as_ln_s='cp -pR'
553 elif ln conf$$.file conf$$ 2>/dev/null; then
554 as_ln_s=ln
555 else
556 as_ln_s='cp -pR'
557 fi
558 else
559 as_ln_s='cp -pR'
560 fi
561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
562 rmdir conf$$.dir 2>/dev/null
563
564 if mkdir -p . 2>/dev/null; then
565 as_mkdir_p='mkdir -p "$as_dir"'
566 else
567 test -d ./-p && rmdir ./-p
568 as_mkdir_p=false
569 fi
570
571 as_test_x='test -x'
572 as_executable_p=as_fn_executable_p
573
574 # Sed expression to map a string onto a valid CPP name.
575 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
577
578 # Sed expression to map a string onto a valid variable name.
579 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
581
582
583 test -n "$DJDIR" || exec 7<&0 </dev/null
584 exec 6>&1
585
586 # Name of the host.
587 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
588 # so uname gets run too.
589 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
590
591 #
592 # Initializations.
593 #
594 ac_default_prefix=/usr/local
595 ac_clean_files=
596 ac_config_libobj_dir=.
597 LIBOBJS=
598 cross_compiling=no
599 subdirs=
600 MFLAGS=
601 MAKEFLAGS=
602
603 # Identity of this package.
604 PACKAGE_NAME='Cairo'
605 PACKAGE_TARNAME='cairo'
606 PACKAGE_VERSION='1.3'
607 PACKAGE_STRING='Cairo 1.3'
608 PACKAGE_BUGREPORT='[email protected]'
609 PACKAGE_URL=''
610
611 ac_unique_file="src/cairogd.c"
612 # Factoring default headers for most tests.
613 ac_includes_default="\
614 #include <stddef.h>
615 #ifdef HAVE_STDIO_H
616 # include <stdio.h>
617 #endif
618 #ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 #endif
621 #ifdef HAVE_STRING_H
622 # include <string.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_SYS_TYPES_H
634 # include <sys/types.h>
635 #endif
636 #ifdef HAVE_SYS_STAT_H
637 # include <sys/stat.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_header_c_list=
644 ac_subst_vars='LTLIBOBJS
645 LIBOBJS
646 PKGCONF
647 OBJEXT
648 EXEEXT
649 ac_ct_CC
650 CPPFLAGS
651 LDFLAGS
652 CFLAGS
653 CC
654 R_HOME
655 target_alias
656 host_alias
657 build_alias
658 LIBS
659 ECHO_T
660 ECHO_N
661 ECHO_C
662 DEFS
663 mandir
664 localedir
665 libdir
666 psdir
667 pdfdir
668 dvidir
669 htmldir
670 infodir
671 docdir
672 oldincludedir
673 includedir
674 runstatedir
675 localstatedir
676 sharedstatedir
677 sysconfdir
678 datadir
679 datarootdir
680 libexecdir
681 sbindir
682 bindir
683 program_transform_name
684 prefix
685 exec_prefix
686 PACKAGE_URL
687 PACKAGE_BUGREPORT
688 PACKAGE_STRING
689 PACKAGE_VERSION
690 PACKAGE_TARNAME
691 PACKAGE_NAME
692 PATH_SEPARATOR
693 SHELL'
694 ac_subst_files=''
695 ac_user_opts='
696 enable_option_checking
697 with_freetype
698 with_harfbuzz
699 enable_debug
700 '
701 ac_precious_vars='build_alias
702 host_alias
703 target_alias
704 CC
705 CFLAGS
706 LDFLAGS
707 LIBS
708 CPPFLAGS'
709
710
711 # Initialize some variables set by options.
712 ac_init_help=
713 ac_init_version=false
714 ac_unrecognized_opts=
715 ac_unrecognized_sep=
716 # The variables have the same names as the options, with
717 # dashes changed to underlines.
718 cache_file=/dev/null
719 exec_prefix=NONE
720 no_create=
721 no_recursion=
722 prefix=NONE
723 program_prefix=NONE
724 program_suffix=NONE
725 program_transform_name=s,x,x,
726 silent=
727 site=
728 srcdir=
729 verbose=
730 x_includes=NONE
731 x_libraries=NONE
732
733 # Installation directory options.
734 # These are left unexpanded so users can "make install exec_prefix=/foo"
735 # and all the variables that are supposed to be based on exec_prefix
736 # by default will actually change.
737 # Use braces instead of parens because sh, perl, etc. also accept them.
738 # (The list follows the same order as the GNU Coding Standards.)
739 bindir='${exec_prefix}/bin'
740 sbindir='${exec_prefix}/sbin'
741 libexecdir='${exec_prefix}/libexec'
742 datarootdir='${prefix}/share'
743 datadir='${datarootdir}'
744 sysconfdir='${prefix}/etc'
745 sharedstatedir='${prefix}/com'
746 localstatedir='${prefix}/var'
747 runstatedir='${localstatedir}/run'
748 includedir='${prefix}/include'
749 oldincludedir='/usr/include'
750 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
751 infodir='${datarootdir}/info'
752 htmldir='${docdir}'
753 dvidir='${docdir}'
754 pdfdir='${docdir}'
755 psdir='${docdir}'
756 libdir='${exec_prefix}/lib'
757 localedir='${datarootdir}/locale'
758 mandir='${datarootdir}/man'
759
760 ac_prev=
761 ac_dashdash=
762 for ac_option
763 do
764 # If the previous option needs an argument, assign it.
765 if test -n "$ac_prev"; then
766 eval $ac_prev=\$ac_option
767 ac_prev=
768 continue
769 fi
770
771 case $ac_option in
772 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
773 *=) ac_optarg= ;;
774 *) ac_optarg=yes ;;
775 esac
776
777 case $ac_dashdash$ac_option in
778 --)
779 ac_dashdash=yes ;;
780
781 -bindir | --bindir | --bindi | --bind | --bin | --bi)
782 ac_prev=bindir ;;
783 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
784 bindir=$ac_optarg ;;
785
786 -build | --build | --buil | --bui | --bu)
787 ac_prev=build_alias ;;
788 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789 build_alias=$ac_optarg ;;
790
791 -cache-file | --cache-file | --cache-fil | --cache-fi \
792 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793 ac_prev=cache_file ;;
794 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796 cache_file=$ac_optarg ;;
797
798 --config-cache | -C)
799 cache_file=config.cache ;;
800
801 -datadir | --datadir | --datadi | --datad)
802 ac_prev=datadir ;;
803 -datadir=* | --datadir=* | --datadi=* | --datad=*)
804 datadir=$ac_optarg ;;
805
806 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807 | --dataroo | --dataro | --datar)
808 ac_prev=datarootdir ;;
809 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811 datarootdir=$ac_optarg ;;
812
813 -disable-* | --disable-*)
814 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815 # Reject names that are not valid shell variable names.
816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
817 as_fn_error $? "invalid feature name: '$ac_useropt'"
818 ac_useropt_orig=$ac_useropt
819 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
820 case $ac_user_opts in
821 *"
822 "enable_$ac_useropt"
823 "*) ;;
824 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
825 ac_unrecognized_sep=', ';;
826 esac
827 eval enable_$ac_useropt=no ;;
828
829 -docdir | --docdir | --docdi | --doc | --do)
830 ac_prev=docdir ;;
831 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
832 docdir=$ac_optarg ;;
833
834 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835 ac_prev=dvidir ;;
836 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
837 dvidir=$ac_optarg ;;
838
839 -enable-* | --enable-*)
840 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
843 as_fn_error $? "invalid feature name: '$ac_useropt'"
844 ac_useropt_orig=$ac_useropt
845 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
846 case $ac_user_opts in
847 *"
848 "enable_$ac_useropt"
849 "*) ;;
850 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
851 ac_unrecognized_sep=', ';;
852 esac
853 eval enable_$ac_useropt=\$ac_optarg ;;
854
855 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
856 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
857 | --exec | --exe | --ex)
858 ac_prev=exec_prefix ;;
859 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
860 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
861 | --exec=* | --exe=* | --ex=*)
862 exec_prefix=$ac_optarg ;;
863
864 -gas | --gas | --ga | --g)
865 # Obsolete; use --with-gas.
866 with_gas=yes ;;
867
868 -help | --help | --hel | --he | -h)
869 ac_init_help=long ;;
870 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
871 ac_init_help=recursive ;;
872 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
873 ac_init_help=short ;;
874
875 -host | --host | --hos | --ho)
876 ac_prev=host_alias ;;
877 -host=* | --host=* | --hos=* | --ho=*)
878 host_alias=$ac_optarg ;;
879
880 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
881 ac_prev=htmldir ;;
882 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
883 | --ht=*)
884 htmldir=$ac_optarg ;;
885
886 -includedir | --includedir | --includedi | --included | --include \
887 | --includ | --inclu | --incl | --inc)
888 ac_prev=includedir ;;
889 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
890 | --includ=* | --inclu=* | --incl=* | --inc=*)
891 includedir=$ac_optarg ;;
892
893 -infodir | --infodir | --infodi | --infod | --info | --inf)
894 ac_prev=infodir ;;
895 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
896 infodir=$ac_optarg ;;
897
898 -libdir | --libdir | --libdi | --libd)
899 ac_prev=libdir ;;
900 -libdir=* | --libdir=* | --libdi=* | --libd=*)
901 libdir=$ac_optarg ;;
902
903 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
904 | --libexe | --libex | --libe)
905 ac_prev=libexecdir ;;
906 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
907 | --libexe=* | --libex=* | --libe=*)
908 libexecdir=$ac_optarg ;;
909
910 -localedir | --localedir | --localedi | --localed | --locale)
911 ac_prev=localedir ;;
912 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
913 localedir=$ac_optarg ;;
914
915 -localstatedir | --localstatedir | --localstatedi | --localstated \
916 | --localstate | --localstat | --localsta | --localst | --locals)
917 ac_prev=localstatedir ;;
918 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
919 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
920 localstatedir=$ac_optarg ;;
921
922 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
923 ac_prev=mandir ;;
924 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925 mandir=$ac_optarg ;;
926
927 -nfp | --nfp | --nf)
928 # Obsolete; use --without-fp.
929 with_fp=no ;;
930
931 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
932 | --no-cr | --no-c | -n)
933 no_create=yes ;;
934
935 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
937 no_recursion=yes ;;
938
939 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
940 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
941 | --oldin | --oldi | --old | --ol | --o)
942 ac_prev=oldincludedir ;;
943 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
944 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
945 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
946 oldincludedir=$ac_optarg ;;
947
948 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
949 ac_prev=prefix ;;
950 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
951 prefix=$ac_optarg ;;
952
953 -program-prefix | --program-prefix | --program-prefi | --program-pref \
954 | --program-pre | --program-pr | --program-p)
955 ac_prev=program_prefix ;;
956 -program-prefix=* | --program-prefix=* | --program-prefi=* \
957 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
958 program_prefix=$ac_optarg ;;
959
960 -program-suffix | --program-suffix | --program-suffi | --program-suff \
961 | --program-suf | --program-su | --program-s)
962 ac_prev=program_suffix ;;
963 -program-suffix=* | --program-suffix=* | --program-suffi=* \
964 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
965 program_suffix=$ac_optarg ;;
966
967 -program-transform-name | --program-transform-name \
968 | --program-transform-nam | --program-transform-na \
969 | --program-transform-n | --program-transform- \
970 | --program-transform | --program-transfor \
971 | --program-transfo | --program-transf \
972 | --program-trans | --program-tran \
973 | --progr-tra | --program-tr | --program-t)
974 ac_prev=program_transform_name ;;
975 -program-transform-name=* | --program-transform-name=* \
976 | --program-transform-nam=* | --program-transform-na=* \
977 | --program-transform-n=* | --program-transform-=* \
978 | --program-transform=* | --program-transfor=* \
979 | --program-transfo=* | --program-transf=* \
980 | --program-trans=* | --program-tran=* \
981 | --progr-tra=* | --program-tr=* | --program-t=*)
982 program_transform_name=$ac_optarg ;;
983
984 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
985 ac_prev=pdfdir ;;
986 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
987 pdfdir=$ac_optarg ;;
988
989 -psdir | --psdir | --psdi | --psd | --ps)
990 ac_prev=psdir ;;
991 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
992 psdir=$ac_optarg ;;
993
994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
995 | -silent | --silent | --silen | --sile | --sil)
996 silent=yes ;;
997
998 -runstatedir | --runstatedir | --runstatedi | --runstated \
999 | --runstate | --runstat | --runsta | --runst | --runs \
1000 | --run | --ru | --r)
1001 ac_prev=runstatedir ;;
1002 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1003 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1004 | --run=* | --ru=* | --r=*)
1005 runstatedir=$ac_optarg ;;
1006
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008 ac_prev=sbindir ;;
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010 | --sbi=* | --sb=*)
1011 sbindir=$ac_optarg ;;
1012
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1016 | --sha | --sh)
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021 | --sha=* | --sh=*)
1022 sharedstatedir=$ac_optarg ;;
1023
1024 -site | --site | --sit)
1025 ac_prev=site ;;
1026 -site=* | --site=* | --sit=*)
1027 site=$ac_optarg ;;
1028
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030 ac_prev=srcdir ;;
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1033
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1040
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1045
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047 verbose=yes ;;
1048
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1051
1052 -with-* | --with-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid package name: '$ac_useropt'"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1060 *"
1061 "with_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval with_$ac_useropt=\$ac_optarg ;;
1067
1068 -without-* | --without-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error $? "invalid package name: '$ac_useropt'"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077 "with_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval with_$ac_useropt=no ;;
1083
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1087
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1094
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1101
1102 -*) as_fn_error $? "unrecognized option: '$ac_option'
1103 Try '$0 --help' for more information"
1104 ;;
1105
1106 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 case $ac_envvar in #(
1110 '' | [0-9]* | *[!_$as_cr_alnum]* )
1111 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1112 esac
1113 eval $ac_envvar=\$ac_optarg
1114 export $ac_envvar ;;
1115
1116 *)
1117 # FIXME: should be removed in autoconf 3.0.
1118 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1122 ;;
1123
1124 esac
1125 done
1126
1127 if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 as_fn_error $? "missing argument to $ac_option"
1130 fi
1131
1132 if test -n "$ac_unrecognized_opts"; then
1133 case $enable_option_checking in
1134 no) ;;
1135 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1136 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1137 esac
1138 fi
1139
1140 # Check all directory arguments for consistency.
1141 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir runstatedir
1145 do
1146 eval ac_val=\$$ac_var
1147 # Remove trailing slashes.
1148 case $ac_val in
1149 */ )
1150 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1151 eval $ac_var=\$ac_val;;
1152 esac
1153 # Be sure to have absolute directory names.
1154 case $ac_val in
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157 esac
1158 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1159 done
1160
1161 # There might be people who depend on the old broken behavior: '$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1164 build=$build_alias
1165 host=$host_alias
1166 target=$target_alias
1167
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x; then
1170 if test "x$build_alias" = x; then
1171 cross_compiling=maybe
1172 elif test "x$build_alias" != "x$host_alias"; then
1173 cross_compiling=yes
1174 fi
1175 fi
1176
1177 ac_tool_prefix=
1178 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1179
1180 test "$silent" = yes && exec 6>/dev/null
1181
1182
1183 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1184 ac_ls_di=`ls -di .` &&
1185 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1186 as_fn_error $? "working directory cannot be determined"
1187 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1188 as_fn_error $? "pwd does not report name of working directory"
1189
1190
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$as_myself" ||
1196 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$as_myself" : 'X\(//\)[^/]' \| \
1198 X"$as_myself" : 'X\(//\)$' \| \
1199 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1200 printf "%s\n" X"$as_myself" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)[^/].*/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\/\)$/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\).*/{
1214 s//\1/
1215 q
1216 }
1217 s/.*/./; q'`
1218 srcdir=$ac_confdir
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 srcdir=..
1221 fi
1222 else
1223 ac_srcdir_defaulted=no
1224 fi
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1228 fi
1229 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1230 ac_abs_confdir=`(
1231 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1232 pwd)`
1233 # When building in place, set srcdir=.
1234 if test "$ac_abs_confdir" = "$ac_pwd"; then
1235 srcdir=.
1236 fi
1237 # Remove unnecessary trailing slashes from srcdir.
1238 # Double slashes in file names in object file debugging info
1239 # mess up M-x gdb in Emacs.
1240 case $srcdir in
1241 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1242 esac
1243 for ac_var in $ac_precious_vars; do
1244 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_env_${ac_var}_value=\$${ac_var}
1246 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1248 done
1249
1250 #
1251 # Report the --help message.
1252 #
1253 if test "$ac_init_help" = "long"; then
1254 # Omit some internal or obsolete options to make the list less imposing.
1255 # This message is too long to be a string in the A/UX 3.1 sh.
1256 cat <<_ACEOF
1257 'configure' configures Cairo 1.3 to adapt to many kinds of systems.
1258
1259 Usage: $0 [OPTION]... [VAR=VALUE]...
1260
1261 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262 VAR=VALUE. See below for descriptions of some of the useful variables.
1263
1264 Defaults for the options are specified in brackets.
1265
1266 Configuration:
1267 -h, --help display this help and exit
1268 --help=short display options specific to this package
1269 --help=recursive display the short help of all the included packages
1270 -V, --version display version information and exit
1271 -q, --quiet, --silent do not print 'checking ...' messages
1272 --cache-file=FILE cache test results in FILE [disabled]
1273 -C, --config-cache alias for '--cache-file=config.cache'
1274 -n, --no-create do not create output files
1275 --srcdir=DIR find the sources in DIR [configure dir or '..']
1276
1277 Installation directories:
1278 --prefix=PREFIX install architecture-independent files in PREFIX
1279 [$ac_default_prefix]
1280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1281 [PREFIX]
1282
1283 By default, 'make install' will install all the files in
1284 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1285 an installation prefix other than '$ac_default_prefix' using '--prefix',
1286 for instance '--prefix=\$HOME'.
1287
1288 For better control, use the options below.
1289
1290 Fine tuning of the installation directories:
1291 --bindir=DIR user executables [EPREFIX/bin]
1292 --sbindir=DIR system admin executables [EPREFIX/sbin]
1293 --libexecdir=DIR program executables [EPREFIX/libexec]
1294 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1295 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1296 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1297 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1298 --libdir=DIR object code libraries [EPREFIX/lib]
1299 --includedir=DIR C header files [PREFIX/include]
1300 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1301 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1302 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1303 --infodir=DIR info documentation [DATAROOTDIR/info]
1304 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1305 --mandir=DIR man documentation [DATAROOTDIR/man]
1306 --docdir=DIR documentation root [DATAROOTDIR/doc/cairo]
1307 --htmldir=DIR html documentation [DOCDIR]
1308 --dvidir=DIR dvi documentation [DOCDIR]
1309 --pdfdir=DIR pdf documentation [DOCDIR]
1310 --psdir=DIR ps documentation [DOCDIR]
1311 _ACEOF
1312
1313 cat <<\_ACEOF
1314 _ACEOF
1315 fi
1316
1317 if test -n "$ac_init_help"; then
1318 case $ac_init_help in
1319 short | recursive ) echo "Configuration of Cairo 1.3:";;
1320 esac
1321 cat <<\_ACEOF
1322
1323 Optional Features:
1324 --disable-option-checking ignore unrecognized --enable/--with options
1325 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1326 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1327 --enable-debug enable debug flags and output. [no]
1328
1329 Optional Packages:
1330 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1331 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1332 --with-freetype compile support for better font handling using
1333 FreeType and Fontconfig if present and supported by
1334 cairo. (default is [auto]).
1335 --with-harfbuzz compile support for bi-directional Unicode and
1336 advanced text layout (like ligature support) using
1337 Harfbuzz and ICU libraries. (default is [auto]).
1338
1339 Some influential environment variables:
1340 CC C compiler command
1341 CFLAGS C compiler flags
1342 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1343 nonstandard directory <lib dir>
1344 LIBS libraries to pass to the linker, e.g. -l<library>
1345 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1346 you have headers in a nonstandard directory <include dir>
1347
1348 Use these variables to override the choices made by 'configure' or to help
1349 it to find libraries and programs with nonstandard names/locations.
1350
1351 Report bugs to <[email protected]>.
1352 _ACEOF
1353 ac_status=$?
1354 fi
1355
1356 if test "$ac_init_help" = "recursive"; then
1357 # If there are subdirs, report their specific --help.
1358 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1359 test -d "$ac_dir" ||
1360 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1361 continue
1362 ac_builddir=.
1363
1364 case "$ac_dir" in
1365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1366 *)
1367 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1368 # A ".." for each directory in $ac_dir_suffix.
1369 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1370 case $ac_top_builddir_sub in
1371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1373 esac ;;
1374 esac
1375 ac_abs_top_builddir=$ac_pwd
1376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1377 # for backward compatibility:
1378 ac_top_builddir=$ac_top_build_prefix
1379
1380 case $srcdir in
1381 .) # We are building in place.
1382 ac_srcdir=.
1383 ac_top_srcdir=$ac_top_builddir_sub
1384 ac_abs_top_srcdir=$ac_pwd ;;
1385 [\\/]* | ?:[\\/]* ) # Absolute name.
1386 ac_srcdir=$srcdir$ac_dir_suffix;
1387 ac_top_srcdir=$srcdir
1388 ac_abs_top_srcdir=$srcdir ;;
1389 *) # Relative name.
1390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1391 ac_top_srcdir=$ac_top_build_prefix$srcdir
1392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1393 esac
1394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1395
1396 cd "$ac_dir" || { ac_status=$?; continue; }
1397 # Check for configure.gnu first; this name is used for a wrapper for
1398 # Metaconfig's "Configure" on case-insensitive file systems.
1399 if test -f "$ac_srcdir/configure.gnu"; then
1400 echo &&
1401 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1402 elif test -f "$ac_srcdir/configure"; then
1403 echo &&
1404 $SHELL "$ac_srcdir/configure" --help=recursive
1405 else
1406 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1407 fi || ac_status=$?
1408 cd "$ac_pwd" || { ac_status=$?; break; }
1409 done
1410 fi
1411
1412 test -n "$ac_init_help" && exit $ac_status
1413 if $ac_init_version; then
1414 cat <<\_ACEOF
1415 Cairo configure 1.3
1416 generated by GNU Autoconf 2.72
1417
1418 Copyright (C) 2023 Free Software Foundation, Inc.
1419 This configure script is free software; the Free Software Foundation
1420 gives unlimited permission to copy, distribute and modify it.
1421 _ACEOF
1422 exit
1423 fi
1424
1425 ## ------------------------ ##
1426 ## Autoconf initialization. ##
1427 ## ------------------------ ##
1428
1429 # ac_fn_c_try_compile LINENO
1430 # --------------------------
1431 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1432 ac_fn_c_try_compile ()
1433 {
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 rm -f conftest.$ac_objext conftest.beam
1436 if { { ac_try="$ac_compile"
1437 case "(($ac_try" in
1438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1439 *) ac_try_echo=$ac_try;;
1440 esac
1441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1442 printf "%s\n" "$ac_try_echo"; } >&5
1443 (eval "$ac_compile") 2>conftest.err
1444 ac_status=$?
1445 if test -s conftest.err; then
1446 grep -v '^ *+' conftest.err >conftest.er1
1447 cat conftest.er1 >&5
1448 mv -f conftest.er1 conftest.err
1449 fi
1450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1451 test $ac_status = 0; } && {
1452 test -z "$ac_c_werror_flag" ||
1453 test ! -s conftest.err
1454 } && test -s conftest.$ac_objext
1455 then :
1456 ac_retval=0
1457 else case e in #(
1458 e) printf "%s\n" "$as_me: failed program was:" >&5
1459 sed 's/^/| /' conftest.$ac_ext >&5
1460
1461 ac_retval=1 ;;
1462 esac
1463 fi
1464 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1465 as_fn_set_status $ac_retval
1466
1467 } # ac_fn_c_try_compile
1468
1469 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1470 # -------------------------------------------------------
1471 # Tests whether HEADER exists and can be compiled using the include files in
1472 # INCLUDES, setting the cache variable VAR accordingly.
1473 ac_fn_c_check_header_compile ()
1474 {
1475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1477 printf %s "checking for $2... " >&6; }
1478 if eval test \${$3+y}
1479 then :
1480 printf %s "(cached) " >&6
1481 else case e in #(
1482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1483 /* end confdefs.h. */
1484 $4
1485 #include <$2>
1486 _ACEOF
1487 if ac_fn_c_try_compile "$LINENO"
1488 then :
1489 eval "$3=yes"
1490 else case e in #(
1491 e) eval "$3=no" ;;
1492 esac
1493 fi
1494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1495 esac
1496 fi
1497 eval ac_res=\$$3
1498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1499 printf "%s\n" "$ac_res" >&6; }
1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1501
1502 } # ac_fn_c_check_header_compile
1503
1504 # ac_fn_c_try_link LINENO
1505 # -----------------------
1506 # Try to link conftest.$ac_ext, and return whether this succeeded.
1507 ac_fn_c_try_link ()
1508 {
1509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1511 if { { ac_try="$ac_link"
1512 case "(($ac_try" in
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1515 esac
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 printf "%s\n" "$ac_try_echo"; } >&5
1518 (eval "$ac_link") 2>conftest.err
1519 ac_status=$?
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1524 fi
1525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } && {
1527 test -z "$ac_c_werror_flag" ||
1528 test ! -s conftest.err
1529 } && test -s conftest$ac_exeext && {
1530 test "$cross_compiling" = yes ||
1531 test -x conftest$ac_exeext
1532 }
1533 then :
1534 ac_retval=0
1535 else case e in #(
1536 e) printf "%s\n" "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1538
1539 ac_retval=1 ;;
1540 esac
1541 fi
1542 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1543 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1544 # interfere with the next link command; also delete a directory that is
1545 # left behind by Apple's compiler. We do this before executing the actions.
1546 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1549
1550 } # ac_fn_c_try_link
1551
1552 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1553 # ------------------------------------------------------------------
1554 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1555 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1556 ac_fn_check_decl ()
1557 {
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 as_decl_name=`echo $2|sed 's/ *(.*//'`
1560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1561 printf %s "checking whether $as_decl_name is declared... " >&6; }
1562 if eval test \${$3+y}
1563 then :
1564 printf %s "(cached) " >&6
1565 else case e in #(
1566 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1567 eval ac_save_FLAGS=\$$6
1568 as_fn_append $6 " $5"
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1571 $4
1572 int
1573 main (void)
1574 {
1575 #ifndef $as_decl_name
1576 #ifdef __cplusplus
1577 (void) $as_decl_use;
1578 #else
1579 (void) $as_decl_name;
1580 #endif
1581 #endif
1582
1583 ;
1584 return 0;
1585 }
1586 _ACEOF
1587 if ac_fn_c_try_compile "$LINENO"
1588 then :
1589 eval "$3=yes"
1590 else case e in #(
1591 e) eval "$3=no" ;;
1592 esac
1593 fi
1594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1595 eval $6=\$ac_save_FLAGS
1596 ;;
1597 esac
1598 fi
1599 eval ac_res=\$$3
1600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1601 printf "%s\n" "$ac_res" >&6; }
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603
1604 } # ac_fn_check_decl
1605 ac_configure_args_raw=
1606 for ac_arg
1607 do
1608 case $ac_arg in
1609 *\'*)
1610 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1611 esac
1612 as_fn_append ac_configure_args_raw " '$ac_arg'"
1613 done
1614
1615 case $ac_configure_args_raw in
1616 *$as_nl*)
1617 ac_safe_unquote= ;;
1618 *)
1619 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1620 ac_unsafe_a="$ac_unsafe_z#~"
1621 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1622 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1623 esac
1624
1625 cat >config.log <<_ACEOF
1626 This file contains any messages produced by compilers while
1627 running configure, to aid debugging if configure makes a mistake.
1628
1629 It was created by Cairo $as_me 1.3, which was
1630 generated by GNU Autoconf 2.72. Invocation command line was
1631
1632 $ $0$ac_configure_args_raw
1633
1634 _ACEOF
1635 exec 5>>config.log
1636 {
1637 cat <<_ASUNAME
1638 ## --------- ##
1639 ## Platform. ##
1640 ## --------- ##
1641
1642 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1643 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1644 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1645 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1646 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1647
1648 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1649 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1650
1651 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1652 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1653 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1654 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1655 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1656 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1657 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1658
1659 _ASUNAME
1660
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1663 do
1664 IFS=$as_save_IFS
1665 case $as_dir in #(((
1666 '') as_dir=./ ;;
1667 */) ;;
1668 *) as_dir=$as_dir/ ;;
1669 esac
1670 printf "%s\n" "PATH: $as_dir"
1671 done
1672 IFS=$as_save_IFS
1673
1674 } >&5
1675
1676 cat >&5 <<_ACEOF
1677
1678
1679 ## ----------- ##
1680 ## Core tests. ##
1681 ## ----------- ##
1682
1683 _ACEOF
1684
1685
1686 # Keep a trace of the command line.
1687 # Strip out --no-create and --no-recursion so they do not pile up.
1688 # Strip out --silent because we don't want to record it for future runs.
1689 # Also quote any args containing shell meta-characters.
1690 # Make two passes to allow for proper duplicate-argument suppression.
1691 ac_configure_args=
1692 ac_configure_args0=
1693 ac_configure_args1=
1694 ac_must_keep_next=false
1695 for ac_pass in 1 2
1696 do
1697 for ac_arg
1698 do
1699 case $ac_arg in
1700 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1702 | -silent | --silent | --silen | --sile | --sil)
1703 continue ;;
1704 *\'*)
1705 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1706 esac
1707 case $ac_pass in
1708 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1709 2)
1710 as_fn_append ac_configure_args1 " '$ac_arg'"
1711 if test $ac_must_keep_next = true; then
1712 ac_must_keep_next=false # Got value, back to normal.
1713 else
1714 case $ac_arg in
1715 *=* | --config-cache | -C | -disable-* | --disable-* \
1716 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1717 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1718 | -with-* | --with-* | -without-* | --without-* | --x)
1719 case "$ac_configure_args0 " in
1720 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1721 esac
1722 ;;
1723 -* ) ac_must_keep_next=true ;;
1724 esac
1725 fi
1726 as_fn_append ac_configure_args " '$ac_arg'"
1727 ;;
1728 esac
1729 done
1730 done
1731 { ac_configure_args0=; unset ac_configure_args0;}
1732 { ac_configure_args1=; unset ac_configure_args1;}
1733
1734 # When interrupted or exit'd, cleanup temporary files, and complete
1735 # config.log. We remove comments because anyway the quotes in there
1736 # would cause problems or look ugly.
1737 # WARNING: Use '\'' to represent an apostrophe within the trap.
1738 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1739 trap 'exit_status=$?
1740 # Sanitize IFS.
1741 IFS=" "" $as_nl"
1742 # Save into config.log some information that might help in debugging.
1743 {
1744 echo
1745
1746 printf "%s\n" "## ---------------- ##
1747 ## Cache variables. ##
1748 ## ---------------- ##"
1749 echo
1750 # The following way of writing the cache mishandles newlines in values,
1751 (
1752 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1753 eval ac_val=\$$ac_var
1754 case $ac_val in #(
1755 *${as_nl}*)
1756 case $ac_var in #(
1757 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1758 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1759 esac
1760 case $ac_var in #(
1761 _ | IFS | as_nl) ;; #(
1762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1763 *) { eval $ac_var=; unset $ac_var;} ;;
1764 esac ;;
1765 esac
1766 done
1767 (set) 2>&1 |
1768 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1769 *${as_nl}ac_space=\ *)
1770 sed -n \
1771 "s/'\''/'\''\\\\'\'''\''/g;
1772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1773 ;; #(
1774 *)
1775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1776 ;;
1777 esac |
1778 sort
1779 )
1780 echo
1781
1782 printf "%s\n" "## ----------------- ##
1783 ## Output variables. ##
1784 ## ----------------- ##"
1785 echo
1786 for ac_var in $ac_subst_vars
1787 do
1788 eval ac_val=\$$ac_var
1789 case $ac_val in
1790 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 esac
1792 printf "%s\n" "$ac_var='\''$ac_val'\''"
1793 done | sort
1794 echo
1795
1796 if test -n "$ac_subst_files"; then
1797 printf "%s\n" "## ------------------- ##
1798 ## File substitutions. ##
1799 ## ------------------- ##"
1800 echo
1801 for ac_var in $ac_subst_files
1802 do
1803 eval ac_val=\$$ac_var
1804 case $ac_val in
1805 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 esac
1807 printf "%s\n" "$ac_var='\''$ac_val'\''"
1808 done | sort
1809 echo
1810 fi
1811
1812 if test -s confdefs.h; then
1813 printf "%s\n" "## ----------- ##
1814 ## confdefs.h. ##
1815 ## ----------- ##"
1816 echo
1817 cat confdefs.h
1818 echo
1819 fi
1820 test "$ac_signal" != 0 &&
1821 printf "%s\n" "$as_me: caught signal $ac_signal"
1822 printf "%s\n" "$as_me: exit $exit_status"
1823 } >&5
1824 rm -f core *.core core.conftest.* &&
1825 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1826 exit $exit_status
1827 ' 0
1828 for ac_signal in 1 2 13 15; do
1829 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1830 done
1831 ac_signal=0
1832
1833 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1834 rm -f -r conftest* confdefs.h
1835
1836 printf "%s\n" "/* confdefs.h */" > confdefs.h
1837
1838 # Predefined preprocessor variables.
1839
1840 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1841
1842 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1843
1844 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1845
1846 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1847
1848 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1849
1850 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1851
1852
1853 # Let the site file select an alternate cache file if it wants to.
1854 # Prefer an explicitly selected file to automatically selected ones.
1855 if test -n "$CONFIG_SITE"; then
1856 ac_site_files="$CONFIG_SITE"
1857 elif test "x$prefix" != xNONE; then
1858 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1859 else
1860 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1861 fi
1862
1863 for ac_site_file in $ac_site_files
1864 do
1865 case $ac_site_file in #(
1866 */*) :
1867 ;; #(
1868 *) :
1869 ac_site_file=./$ac_site_file ;;
1870 esac
1871 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1873 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1874 sed 's/^/| /' "$ac_site_file" >&5
1875 . "$ac_site_file" \
1876 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1877 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1878 as_fn_error $? "failed to load site script $ac_site_file
1879 See 'config.log' for more details" "$LINENO" 5; }
1880 fi
1881 done
1882
1883 if test -r "$cache_file"; then
1884 # Some versions of bash will fail to source /dev/null (special files
1885 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1886 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1888 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1889 case $cache_file in
1890 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1891 *) . "./$cache_file";;
1892 esac
1893 fi
1894 else
1895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1896 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1897 >$cache_file
1898 fi
1899
1900 # Test code for whether the C compiler supports C89 (global declarations)
1901 ac_c_conftest_c89_globals='
1902 /* Does the compiler advertise C89 conformance?
1903 Do not test the value of __STDC__, because some compilers set it to 0
1904 while being otherwise adequately conformant. */
1905 #if !defined __STDC__
1906 # error "Compiler does not advertise C89 conformance"
1907 #endif
1908
1909 #include <stddef.h>
1910 #include <stdarg.h>
1911 struct stat;
1912 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1913 struct buf { int x; };
1914 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1915 static char *e (char **p, int i)
1916 {
1917 return p[i];
1918 }
1919 static char *f (char * (*g) (char **, int), char **p, ...)
1920 {
1921 char *s;
1922 va_list v;
1923 va_start (v,p);
1924 s = g (p, va_arg (v,int));
1925 va_end (v);
1926 return s;
1927 }
1928
1929 /* C89 style stringification. */
1930 #define noexpand_stringify(a) #a
1931 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
1932
1933 /* C89 style token pasting. Exercises some of the corner cases that
1934 e.g. old MSVC gets wrong, but not very hard. */
1935 #define noexpand_concat(a,b) a##b
1936 #define expand_concat(a,b) noexpand_concat(a,b)
1937 extern int vA;
1938 extern int vbee;
1939 #define aye A
1940 #define bee B
1941 int *pvA = &expand_concat(v,aye);
1942 int *pvbee = &noexpand_concat(v,bee);
1943
1944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1945 function prototypes and stuff, but not \xHH hex character constants.
1946 These do not provoke an error unfortunately, instead are silently treated
1947 as an "x". The following induces an error, until -std is added to get
1948 proper ANSI mode. Curiously \x00 != x always comes out true, for an
1949 array size at least. It is necessary to write \x00 == 0 to get something
1950 that is true only with -std. */
1951 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1952
1953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1954 inside strings and character constants. */
1955 #define FOO(x) '\''x'\''
1956 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1957
1958 int test (int i, double x);
1959 struct s1 {int (*f) (int a);};
1960 struct s2 {int (*f) (double a);};
1961 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1962 int, int);'
1963
1964 # Test code for whether the C compiler supports C89 (body of main).
1965 ac_c_conftest_c89_main='
1966 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1967 '
1968
1969 # Test code for whether the C compiler supports C99 (global declarations)
1970 ac_c_conftest_c99_globals='
1971 /* Does the compiler advertise C99 conformance? */
1972 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1973 # error "Compiler does not advertise C99 conformance"
1974 #endif
1975
1976 // See if C++-style comments work.
1977
1978 #include <stdbool.h>
1979 extern int puts (const char *);
1980 extern int printf (const char *, ...);
1981 extern int dprintf (int, const char *, ...);
1982 extern void *malloc (size_t);
1983 extern void free (void *);
1984
1985 // Check varargs macros. These examples are taken from C99 6.10.3.5.
1986 // dprintf is used instead of fprintf to avoid needing to declare
1987 // FILE and stderr.
1988 #define debug(...) dprintf (2, __VA_ARGS__)
1989 #define showlist(...) puts (#__VA_ARGS__)
1990 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1991 static void
1992 test_varargs_macros (void)
1993 {
1994 int x = 1234;
1995 int y = 5678;
1996 debug ("Flag");
1997 debug ("X = %d\n", x);
1998 showlist (The first, second, and third items.);
1999 report (x>y, "x is %d but y is %d", x, y);
2000 }
2001
2002 // Check long long types.
2003 #define BIG64 18446744073709551615ull
2004 #define BIG32 4294967295ul
2005 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2006 #if !BIG_OK
2007 #error "your preprocessor is broken"
2008 #endif
2009 #if BIG_OK
2010 #else
2011 #error "your preprocessor is broken"
2012 #endif
2013 static long long int bignum = -9223372036854775807LL;
2014 static unsigned long long int ubignum = BIG64;
2015
2016 struct incomplete_array
2017 {
2018 int datasize;
2019 double data[];
2020 };
2021
2022 struct named_init {
2023 int number;
2024 const wchar_t *name;
2025 double average;
2026 };
2027
2028 typedef const char *ccp;
2029
2030 static inline int
2031 test_restrict (ccp restrict text)
2032 {
2033 // Iterate through items via the restricted pointer.
2034 // Also check for declarations in for loops.
2035 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2036 continue;
2037 return 0;
2038 }
2039
2040 // Check varargs and va_copy.
2041 static bool
2042 test_varargs (const char *format, ...)
2043 {
2044 va_list args;
2045 va_start (args, format);
2046 va_list args_copy;
2047 va_copy (args_copy, args);
2048
2049 const char *str = "";
2050 int number = 0;
2051 float fnumber = 0;
2052
2053 while (*format)
2054 {
2055 switch (*format++)
2056 {
2057 case '\''s'\'': // string
2058 str = va_arg (args_copy, const char *);
2059 break;
2060 case '\''d'\'': // int
2061 number = va_arg (args_copy, int);
2062 break;
2063 case '\''f'\'': // float
2064 fnumber = va_arg (args_copy, double);
2065 break;
2066 default:
2067 break;
2068 }
2069 }
2070 va_end (args_copy);
2071 va_end (args);
2072
2073 return *str && number && fnumber;
2074 }
2075 '
2076
2077 # Test code for whether the C compiler supports C99 (body of main).
2078 ac_c_conftest_c99_main='
2079 // Check bool.
2080 _Bool success = false;
2081 success |= (argc != 0);
2082
2083 // Check restrict.
2084 if (test_restrict ("String literal") == 0)
2085 success = true;
2086 char *restrict newvar = "Another string";
2087
2088 // Check varargs.
2089 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2090 test_varargs_macros ();
2091
2092 // Check flexible array members.
2093 struct incomplete_array *ia =
2094 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2095 ia->datasize = 10;
2096 for (int i = 0; i < ia->datasize; ++i)
2097 ia->data[i] = i * 1.234;
2098 // Work around memory leak warnings.
2099 free (ia);
2100
2101 // Check named initializers.
2102 struct named_init ni = {
2103 .number = 34,
2104 .name = L"Test wide string",
2105 .average = 543.34343,
2106 };
2107
2108 ni.number = 58;
2109
2110 int dynamic_array[ni.number];
2111 dynamic_array[0] = argv[0][0];
2112 dynamic_array[ni.number - 1] = 543;
2113
2114 // work around unused variable warnings
2115 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2116 || dynamic_array[ni.number - 1] != 543);
2117 '
2118
2119 # Test code for whether the C compiler supports C11 (global declarations)
2120 ac_c_conftest_c11_globals='
2121 /* Does the compiler advertise C11 conformance? */
2122 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2123 # error "Compiler does not advertise C11 conformance"
2124 #endif
2125
2126 // Check _Alignas.
2127 char _Alignas (double) aligned_as_double;
2128 char _Alignas (0) no_special_alignment;
2129 extern char aligned_as_int;
2130 char _Alignas (0) _Alignas (int) aligned_as_int;
2131
2132 // Check _Alignof.
2133 enum
2134 {
2135 int_alignment = _Alignof (int),
2136 int_array_alignment = _Alignof (int[100]),
2137 char_alignment = _Alignof (char)
2138 };
2139 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2140
2141 // Check _Noreturn.
2142 int _Noreturn does_not_return (void) { for (;;) continue; }
2143
2144 // Check _Static_assert.
2145 struct test_static_assert
2146 {
2147 int x;
2148 _Static_assert (sizeof (int) <= sizeof (long int),
2149 "_Static_assert does not work in struct");
2150 long int y;
2151 };
2152
2153 // Check UTF-8 literals.
2154 #define u8 syntax error!
2155 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2156
2157 // Check duplicate typedefs.
2158 typedef long *long_ptr;
2159 typedef long int *long_ptr;
2160 typedef long_ptr long_ptr;
2161
2162 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2163 struct anonymous
2164 {
2165 union {
2166 struct { int i; int j; };
2167 struct { int k; long int l; } w;
2168 };
2169 int m;
2170 } v1;
2171 '
2172
2173 # Test code for whether the C compiler supports C11 (body of main).
2174 ac_c_conftest_c11_main='
2175 _Static_assert ((offsetof (struct anonymous, i)
2176 == offsetof (struct anonymous, w.k)),
2177 "Anonymous union alignment botch");
2178 v1.i = 2;
2179 v1.w.k = 5;
2180 ok |= v1.i != 5;
2181 '
2182
2183 # Test code for whether the C compiler supports C11 (complete).
2184 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2185 ${ac_c_conftest_c99_globals}
2186 ${ac_c_conftest_c11_globals}
2187
2188 int
2189 main (int argc, char **argv)
2190 {
2191 int ok = 0;
2192 ${ac_c_conftest_c89_main}
2193 ${ac_c_conftest_c99_main}
2194 ${ac_c_conftest_c11_main}
2195 return ok;
2196 }
2197 "
2198
2199 # Test code for whether the C compiler supports C99 (complete).
2200 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2201 ${ac_c_conftest_c99_globals}
2202
2203 int
2204 main (int argc, char **argv)
2205 {
2206 int ok = 0;
2207 ${ac_c_conftest_c89_main}
2208 ${ac_c_conftest_c99_main}
2209 return ok;
2210 }
2211 "
2212
2213 # Test code for whether the C compiler supports C89 (complete).
2214 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2215
2216 int
2217 main (int argc, char **argv)
2218 {
2219 int ok = 0;
2220 ${ac_c_conftest_c89_main}
2221 return ok;
2222 }
2223 "
2224
2225 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2226 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2227 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2228 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2229 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2230 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2231 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2232 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2233 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2234 # Check that the precious variables saved in the cache have kept the same
2235 # value.
2236 ac_cache_corrupted=false
2237 for ac_var in $ac_precious_vars; do
2238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2239 eval ac_new_set=\$ac_env_${ac_var}_set
2240 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2241 eval ac_new_val=\$ac_env_${ac_var}_value
2242 case $ac_old_set,$ac_new_set in
2243 set,)
2244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2245 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2246 ac_cache_corrupted=: ;;
2247 ,set)
2248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2249 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2250 ac_cache_corrupted=: ;;
2251 ,);;
2252 *)
2253 if test "x$ac_old_val" != "x$ac_new_val"; then
2254 # differences in whitespace do not lead to failure.
2255 ac_old_val_w=`echo x $ac_old_val`
2256 ac_new_val_w=`echo x $ac_new_val`
2257 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2259 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2260 ac_cache_corrupted=:
2261 else
2262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2263 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2264 eval $ac_var=\$ac_old_val
2265 fi
2266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2267 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2269 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2270 fi;;
2271 esac
2272 # Pass precious variables to config.status.
2273 if test "$ac_new_set" = set; then
2274 case $ac_new_val in
2275 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2276 *) ac_arg=$ac_var=$ac_new_val ;;
2277 esac
2278 case " $ac_configure_args " in
2279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2280 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2281 esac
2282 fi
2283 done
2284 if $ac_cache_corrupted; then
2285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2286 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2288 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2289 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2290 and start over" "$LINENO" 5
2291 fi
2292 ## -------------------- ##
2293 ## Main body of script. ##
2294 ## -------------------- ##
2295
2296 ac_ext=c
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
2302
2303
2304 ac_config_headers="$ac_config_headers src/cconfig.h"
2305
2306
2307 # find R home and set CC/CFLAGS
2308 : ${R_HOME=`R RHOME`}
2309 if test -z "${R_HOME}"; then
2310 echo "could not determine R_HOME"
2311 exit 1
2312 fi
2313 RBIN="${R_HOME}/bin/R"
2314 CC=`"${RBIN}" CMD config CC`;
2315 CFLAGS=`"${RBIN}" CMD config CFLAGS`
2316 CPPFLAGS=`"${RBIN}" CMD config CPPFLAGS`
2317 LDFLAGS=`"${RBIN}" CMD config LDFLAGS`
2318 CPP="${CC} -E"
2319
2320
2321 # Checks for programs.
2322 ac_ext=c
2323 ac_cpp='$CPP $CPPFLAGS'
2324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337 ac_ext=c
2338 ac_cpp='$CPP $CPPFLAGS'
2339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2342 if test -n "$ac_tool_prefix"; then
2343 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2346 printf %s "checking for $ac_word... " >&6; }
2347 if test ${ac_cv_prog_CC+y}
2348 then :
2349 printf %s "(cached) " >&6
2350 else case e in #(
2351 e) if test -n "$CC"; then
2352 ac_cv_prog_CC="$CC" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357 IFS=$as_save_IFS
2358 case $as_dir in #(((
2359 '') as_dir=./ ;;
2360 */) ;;
2361 *) as_dir=$as_dir/ ;;
2362 esac
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2365 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2367 break 2
2368 fi
2369 done
2370 done
2371 IFS=$as_save_IFS
2372
2373 fi ;;
2374 esac
2375 fi
2376 CC=$ac_cv_prog_CC
2377 if test -n "$CC"; then
2378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2379 printf "%s\n" "$CC" >&6; }
2380 else
2381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382 printf "%s\n" "no" >&6; }
2383 fi
2384
2385
2386 fi
2387 if test -z "$ac_cv_prog_CC"; then
2388 ac_ct_CC=$CC
2389 # Extract the first word of "gcc", so it can be a program name with args.
2390 set dummy gcc; ac_word=$2
2391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392 printf %s "checking for $ac_word... " >&6; }
2393 if test ${ac_cv_prog_ac_ct_CC+y}
2394 then :
2395 printf %s "(cached) " >&6
2396 else case e in #(
2397 e) if test -n "$ac_ct_CC"; then
2398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403 IFS=$as_save_IFS
2404 case $as_dir in #(((
2405 '') as_dir=./ ;;
2406 */) ;;
2407 *) as_dir=$as_dir/ ;;
2408 esac
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2411 ac_cv_prog_ac_ct_CC="gcc"
2412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2413 break 2
2414 fi
2415 done
2416 done
2417 IFS=$as_save_IFS
2418
2419 fi ;;
2420 esac
2421 fi
2422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2423 if test -n "$ac_ct_CC"; then
2424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2425 printf "%s\n" "$ac_ct_CC" >&6; }
2426 else
2427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2428 printf "%s\n" "no" >&6; }
2429 fi
2430
2431 if test "x$ac_ct_CC" = x; then
2432 CC=""
2433 else
2434 case $cross_compiling:$ac_tool_warned in
2435 yes:)
2436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2437 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2438 ac_tool_warned=yes ;;
2439 esac
2440 CC=$ac_ct_CC
2441 fi
2442 else
2443 CC="$ac_cv_prog_CC"
2444 fi
2445
2446 if test -z "$CC"; then
2447 if test -n "$ac_tool_prefix"; then
2448 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2449 set dummy ${ac_tool_prefix}cc; ac_word=$2
2450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2451 printf %s "checking for $ac_word... " >&6; }
2452 if test ${ac_cv_prog_CC+y}
2453 then :
2454 printf %s "(cached) " >&6
2455 else case e in #(
2456 e) if test -n "$CC"; then
2457 ac_cv_prog_CC="$CC" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2461 do
2462 IFS=$as_save_IFS
2463 case $as_dir in #(((
2464 '') as_dir=./ ;;
2465 */) ;;
2466 *) as_dir=$as_dir/ ;;
2467 esac
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2470 ac_cv_prog_CC="${ac_tool_prefix}cc"
2471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi ;;
2479 esac
2480 fi
2481 CC=$ac_cv_prog_CC
2482 if test -n "$CC"; then
2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2484 printf "%s\n" "$CC" >&6; }
2485 else
2486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487 printf "%s\n" "no" >&6; }
2488 fi
2489
2490
2491 fi
2492 fi
2493 if test -z "$CC"; then
2494 # Extract the first word of "cc", so it can be a program name with args.
2495 set dummy cc; ac_word=$2
2496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2497 printf %s "checking for $ac_word... " >&6; }
2498 if test ${ac_cv_prog_CC+y}
2499 then :
2500 printf %s "(cached) " >&6
2501 else case e in #(
2502 e) if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 else
2505 ac_prog_rejected=no
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509 IFS=$as_save_IFS
2510 case $as_dir in #(((
2511 '') as_dir=./ ;;
2512 */) ;;
2513 *) as_dir=$as_dir/ ;;
2514 esac
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2517 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2518 ac_prog_rejected=yes
2519 continue
2520 fi
2521 ac_cv_prog_CC="cc"
2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 if test $ac_prog_rejected = yes; then
2530 # We found a bogon in the path, so make sure we never use it.
2531 set dummy $ac_cv_prog_CC
2532 shift
2533 if test $# != 0; then
2534 # We chose a different compiler from the bogus one.
2535 # However, it has the same basename, so the bogon will be chosen
2536 # first if we set CC to just the basename; use the full file name.
2537 shift
2538 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2539 fi
2540 fi
2541 fi ;;
2542 esac
2543 fi
2544 CC=$ac_cv_prog_CC
2545 if test -n "$CC"; then
2546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2547 printf "%s\n" "$CC" >&6; }
2548 else
2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2550 printf "%s\n" "no" >&6; }
2551 fi
2552
2553
2554 fi
2555 if test -z "$CC"; then
2556 if test -n "$ac_tool_prefix"; then
2557 for ac_prog in cl.exe
2558 do
2559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562 printf %s "checking for $ac_word... " >&6; }
2563 if test ${ac_cv_prog_CC+y}
2564 then :
2565 printf %s "(cached) " >&6
2566 else case e in #(
2567 e) if test -n "$CC"; then
2568 ac_cv_prog_CC="$CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573 IFS=$as_save_IFS
2574 case $as_dir in #(((
2575 '') as_dir=./ ;;
2576 */) ;;
2577 *) as_dir=$as_dir/ ;;
2578 esac
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2581 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi ;;
2590 esac
2591 fi
2592 CC=$ac_cv_prog_CC
2593 if test -n "$CC"; then
2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2595 printf "%s\n" "$CC" >&6; }
2596 else
2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 printf "%s\n" "no" >&6; }
2599 fi
2600
2601
2602 test -n "$CC" && break
2603 done
2604 fi
2605 if test -z "$CC"; then
2606 ac_ct_CC=$CC
2607 for ac_prog in cl.exe
2608 do
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 printf %s "checking for $ac_word... " >&6; }
2613 if test ${ac_cv_prog_ac_ct_CC+y}
2614 then :
2615 printf %s "(cached) " >&6
2616 else case e in #(
2617 e) if test -n "$ac_ct_CC"; then
2618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623 IFS=$as_save_IFS
2624 case $as_dir in #(((
2625 '') as_dir=./ ;;
2626 */) ;;
2627 *) as_dir=$as_dir/ ;;
2628 esac
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2631 ac_cv_prog_ac_ct_CC="$ac_prog"
2632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2633 break 2
2634 fi
2635 done
2636 done
2637 IFS=$as_save_IFS
2638
2639 fi ;;
2640 esac
2641 fi
2642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2643 if test -n "$ac_ct_CC"; then
2644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2645 printf "%s\n" "$ac_ct_CC" >&6; }
2646 else
2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 printf "%s\n" "no" >&6; }
2649 fi
2650
2651
2652 test -n "$ac_ct_CC" && break
2653 done
2654
2655 if test "x$ac_ct_CC" = x; then
2656 CC=""
2657 else
2658 case $cross_compiling:$ac_tool_warned in
2659 yes:)
2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2661 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2662 ac_tool_warned=yes ;;
2663 esac
2664 CC=$ac_ct_CC
2665 fi
2666 fi
2667
2668 fi
2669 if test -z "$CC"; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2672 set dummy ${ac_tool_prefix}clang; ac_word=$2
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 printf %s "checking for $ac_word... " >&6; }
2675 if test ${ac_cv_prog_CC+y}
2676 then :
2677 printf %s "(cached) " >&6
2678 else case e in #(
2679 e) if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2684 do
2685 IFS=$as_save_IFS
2686 case $as_dir in #(((
2687 '') as_dir=./ ;;
2688 */) ;;
2689 *) as_dir=$as_dir/ ;;
2690 esac
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_CC="${ac_tool_prefix}clang"
2694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697 done
2698 done
2699 IFS=$as_save_IFS
2700
2701 fi ;;
2702 esac
2703 fi
2704 CC=$ac_cv_prog_CC
2705 if test -n "$CC"; then
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707 printf "%s\n" "$CC" >&6; }
2708 else
2709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 printf "%s\n" "no" >&6; }
2711 fi
2712
2713
2714 fi
2715 if test -z "$ac_cv_prog_CC"; then
2716 ac_ct_CC=$CC
2717 # Extract the first word of "clang", so it can be a program name with args.
2718 set dummy clang; ac_word=$2
2719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 printf %s "checking for $ac_word... " >&6; }
2721 if test ${ac_cv_prog_ac_ct_CC+y}
2722 then :
2723 printf %s "(cached) " >&6
2724 else case e in #(
2725 e) if test -n "$ac_ct_CC"; then
2726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731 IFS=$as_save_IFS
2732 case $as_dir in #(((
2733 '') as_dir=./ ;;
2734 */) ;;
2735 *) as_dir=$as_dir/ ;;
2736 esac
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2739 ac_cv_prog_ac_ct_CC="clang"
2740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2741 break 2
2742 fi
2743 done
2744 done
2745 IFS=$as_save_IFS
2746
2747 fi ;;
2748 esac
2749 fi
2750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2751 if test -n "$ac_ct_CC"; then
2752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2753 printf "%s\n" "$ac_ct_CC" >&6; }
2754 else
2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 printf "%s\n" "no" >&6; }
2757 fi
2758
2759 if test "x$ac_ct_CC" = x; then
2760 CC=""
2761 else
2762 case $cross_compiling:$ac_tool_warned in
2763 yes:)
2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2765 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2766 ac_tool_warned=yes ;;
2767 esac
2768 CC=$ac_ct_CC
2769 fi
2770 else
2771 CC="$ac_cv_prog_CC"
2772 fi
2773
2774 fi
2775
2776
2777 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2778 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2779 as_fn_error $? "no acceptable C compiler found in \$PATH
2780 See 'config.log' for more details" "$LINENO" 5; }
2781
2782 # Provide some information about the compiler.
2783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2784 set X $ac_compile
2785 ac_compiler=$2
2786 for ac_option in --version -v -V -qversion -version; do
2787 { { ac_try="$ac_compiler $ac_option >&5"
2788 case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791 esac
2792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2793 printf "%s\n" "$ac_try_echo"; } >&5
2794 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2795 ac_status=$?
2796 if test -s conftest.err; then
2797 sed '10a\
2798 ... rest of stderr output deleted ...
2799 10q' conftest.err >conftest.er1
2800 cat conftest.er1 >&5
2801 fi
2802 rm -f conftest.er1 conftest.err
2803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804 test $ac_status = 0; }
2805 done
2806
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2809
2810 int
2811 main (void)
2812 {
2813
2814 ;
2815 return 0;
2816 }
2817 _ACEOF
2818 ac_clean_files_save=$ac_clean_files
2819 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2820 # Try to create an executable without -o first, disregard a.out.
2821 # It will help us diagnose broken compilers, and finding out an intuition
2822 # of exeext.
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2824 printf %s "checking whether the C compiler works... " >&6; }
2825 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2826
2827 # The possible output files:
2828 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2829
2830 ac_rmfiles=
2831 for ac_file in $ac_files
2832 do
2833 case $ac_file in
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2835 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2836 esac
2837 done
2838 rm -f $ac_rmfiles
2839
2840 if { { ac_try="$ac_link_default"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846 printf "%s\n" "$ac_try_echo"; } >&5
2847 (eval "$ac_link_default") 2>&5
2848 ac_status=$?
2849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2850 test $ac_status = 0; }
2851 then :
2852 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
2853 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
2854 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2855 # so that the user can short-circuit this test for compilers unknown to
2856 # Autoconf.
2857 for ac_file in $ac_files ''
2858 do
2859 test -f "$ac_file" || continue
2860 case $ac_file in
2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2862 ;;
2863 [ab].out )
2864 # We found the default executable, but exeext='' is most
2865 # certainly right.
2866 break;;
2867 *.* )
2868 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2869 then :; else
2870 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2871 fi
2872 # We set ac_cv_exeext here because the later test for it is not
2873 # safe: cross compilers may not add the suffix if given an '-o'
2874 # argument, so we may need to know it at that point already.
2875 # Even if this section looks crufty: it has the advantage of
2876 # actually working.
2877 break;;
2878 * )
2879 break;;
2880 esac
2881 done
2882 test "$ac_cv_exeext" = no && ac_cv_exeext=
2883
2884 else case e in #(
2885 e) ac_file='' ;;
2886 esac
2887 fi
2888 if test -z "$ac_file"
2889 then :
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 printf "%s\n" "no" >&6; }
2892 printf "%s\n" "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894
2895 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2896 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2897 as_fn_error 77 "C compiler cannot create executables
2898 See 'config.log' for more details" "$LINENO" 5; }
2899 else case e in #(
2900 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2901 printf "%s\n" "yes" >&6; } ;;
2902 esac
2903 fi
2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2905 printf %s "checking for C compiler default output file name... " >&6; }
2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2907 printf "%s\n" "$ac_file" >&6; }
2908 ac_exeext=$ac_cv_exeext
2909
2910 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2911 ac_clean_files=$ac_clean_files_save
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2913 printf %s "checking for suffix of executables... " >&6; }
2914 if { { ac_try="$ac_link"
2915 case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918 esac
2919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920 printf "%s\n" "$ac_try_echo"; } >&5
2921 (eval "$ac_link") 2>&5
2922 ac_status=$?
2923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924 test $ac_status = 0; }
2925 then :
2926 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
2927 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
2928 # work properly (i.e., refer to 'conftest.exe'), while it won't with
2929 # 'rm'.
2930 for ac_file in conftest.exe conftest conftest.*; do
2931 test -f "$ac_file" || continue
2932 case $ac_file in
2933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2934 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2935 break;;
2936 * ) break;;
2937 esac
2938 done
2939 else case e in #(
2940 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2941 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2942 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2943 See 'config.log' for more details" "$LINENO" 5; } ;;
2944 esac
2945 fi
2946 rm -f conftest conftest$ac_cv_exeext
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2948 printf "%s\n" "$ac_cv_exeext" >&6; }
2949
2950 rm -f conftest.$ac_ext
2951 EXEEXT=$ac_cv_exeext
2952 ac_exeext=$EXEEXT
2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954 /* end confdefs.h. */
2955 #include <stdio.h>
2956 int
2957 main (void)
2958 {
2959 FILE *f = fopen ("conftest.out", "w");
2960 if (!f)
2961 return 1;
2962 return ferror (f) || fclose (f) != 0;
2963
2964 ;
2965 return 0;
2966 }
2967 _ACEOF
2968 ac_clean_files="$ac_clean_files conftest.out"
2969 # Check that the compiler produces executables we can run. If not, either
2970 # the compiler is broken, or we cross compile.
2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2972 printf %s "checking whether we are cross compiling... " >&6; }
2973 if test "$cross_compiling" != yes; then
2974 { { ac_try="$ac_link"
2975 case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 printf "%s\n" "$ac_try_echo"; } >&5
2981 (eval "$ac_link") 2>&5
2982 ac_status=$?
2983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }
2985 if { ac_try='./conftest$ac_cv_exeext'
2986 { { case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991 printf "%s\n" "$ac_try_echo"; } >&5
2992 (eval "$ac_try") 2>&5
2993 ac_status=$?
2994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995 test $ac_status = 0; }; }; then
2996 cross_compiling=no
2997 else
2998 if test "$cross_compiling" = maybe; then
2999 cross_compiling=yes
3000 else
3001 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3002 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3003 as_fn_error 77 "cannot run C compiled programs.
3004 If you meant to cross compile, use '--host'.
3005 See 'config.log' for more details" "$LINENO" 5; }
3006 fi
3007 fi
3008 fi
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3010 printf "%s\n" "$cross_compiling" >&6; }
3011
3012 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3013 conftest.o conftest.obj conftest.out
3014 ac_clean_files=$ac_clean_files_save
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3016 printf %s "checking for suffix of object files... " >&6; }
3017 if test ${ac_cv_objext+y}
3018 then :
3019 printf %s "(cached) " >&6
3020 else case e in #(
3021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3023
3024 int
3025 main (void)
3026 {
3027
3028 ;
3029 return 0;
3030 }
3031 _ACEOF
3032 rm -f conftest.o conftest.obj
3033 if { { ac_try="$ac_compile"
3034 case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039 printf "%s\n" "$ac_try_echo"; } >&5
3040 (eval "$ac_compile") 2>&5
3041 ac_status=$?
3042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043 test $ac_status = 0; }
3044 then :
3045 for ac_file in conftest.o conftest.obj conftest.*; do
3046 test -f "$ac_file" || continue;
3047 case $ac_file in
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3050 break;;
3051 esac
3052 done
3053 else case e in #(
3054 e) printf "%s\n" "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3058 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3059 as_fn_error $? "cannot compute suffix of object files: cannot compile
3060 See 'config.log' for more details" "$LINENO" 5; } ;;
3061 esac
3062 fi
3063 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3064 esac
3065 fi
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3067 printf "%s\n" "$ac_cv_objext" >&6; }
3068 OBJEXT=$ac_cv_objext
3069 ac_objext=$OBJEXT
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3071 printf %s "checking whether the compiler supports GNU C... " >&6; }
3072 if test ${ac_cv_c_compiler_gnu+y}
3073 then :
3074 printf %s "(cached) " >&6
3075 else case e in #(
3076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h. */
3078
3079 int
3080 main (void)
3081 {
3082 #ifndef __GNUC__
3083 choke me
3084 #endif
3085
3086 ;
3087 return 0;
3088 }
3089 _ACEOF
3090 if ac_fn_c_try_compile "$LINENO"
3091 then :
3092 ac_compiler_gnu=yes
3093 else case e in #(
3094 e) ac_compiler_gnu=no ;;
3095 esac
3096 fi
3097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3099 ;;
3100 esac
3101 fi
3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3103 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105
3106 if test $ac_compiler_gnu = yes; then
3107 GCC=yes
3108 else
3109 GCC=
3110 fi
3111 ac_test_CFLAGS=${CFLAGS+y}
3112 ac_save_CFLAGS=$CFLAGS
3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3114 printf %s "checking whether $CC accepts -g... " >&6; }
3115 if test ${ac_cv_prog_cc_g+y}
3116 then :
3117 printf %s "(cached) " >&6
3118 else case e in #(
3119 e) ac_save_c_werror_flag=$ac_c_werror_flag
3120 ac_c_werror_flag=yes
3121 ac_cv_prog_cc_g=no
3122 CFLAGS="-g"
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3125
3126 int
3127 main (void)
3128 {
3129
3130 ;
3131 return 0;
3132 }
3133 _ACEOF
3134 if ac_fn_c_try_compile "$LINENO"
3135 then :
3136 ac_cv_prog_cc_g=yes
3137 else case e in #(
3138 e) CFLAGS=""
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3141
3142 int
3143 main (void)
3144 {
3145
3146 ;
3147 return 0;
3148 }
3149 _ACEOF
3150 if ac_fn_c_try_compile "$LINENO"
3151 then :
3152
3153 else case e in #(
3154 e) ac_c_werror_flag=$ac_save_c_werror_flag
3155 CFLAGS="-g"
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3158
3159 int
3160 main (void)
3161 {
3162
3163 ;
3164 return 0;
3165 }
3166 _ACEOF
3167 if ac_fn_c_try_compile "$LINENO"
3168 then :
3169 ac_cv_prog_cc_g=yes
3170 fi
3171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3172 esac
3173 fi
3174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3175 esac
3176 fi
3177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3178 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3179 esac
3180 fi
3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3182 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3183 if test $ac_test_CFLAGS; then
3184 CFLAGS=$ac_save_CFLAGS
3185 elif test $ac_cv_prog_cc_g = yes; then
3186 if test "$GCC" = yes; then
3187 CFLAGS="-g -O2"
3188 else
3189 CFLAGS="-g"
3190 fi
3191 else
3192 if test "$GCC" = yes; then
3193 CFLAGS="-O2"
3194 else
3195 CFLAGS=
3196 fi
3197 fi
3198 ac_prog_cc_stdc=no
3199 if test x$ac_prog_cc_stdc = xno
3200 then :
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3202 printf %s "checking for $CC option to enable C11 features... " >&6; }
3203 if test ${ac_cv_prog_cc_c11+y}
3204 then :
3205 printf %s "(cached) " >&6
3206 else case e in #(
3207 e) ac_cv_prog_cc_c11=no
3208 ac_save_CC=$CC
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3211 $ac_c_conftest_c11_program
3212 _ACEOF
3213 for ac_arg in '' -std=gnu11
3214 do
3215 CC="$ac_save_CC $ac_arg"
3216 if ac_fn_c_try_compile "$LINENO"
3217 then :
3218 ac_cv_prog_cc_c11=$ac_arg
3219 fi
3220 rm -f core conftest.err conftest.$ac_objext conftest.beam
3221 test "x$ac_cv_prog_cc_c11" != "xno" && break
3222 done
3223 rm -f conftest.$ac_ext
3224 CC=$ac_save_CC ;;
3225 esac
3226 fi
3227
3228 if test "x$ac_cv_prog_cc_c11" = xno
3229 then :
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3231 printf "%s\n" "unsupported" >&6; }
3232 else case e in #(
3233 e) if test "x$ac_cv_prog_cc_c11" = x
3234 then :
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3236 printf "%s\n" "none needed" >&6; }
3237 else case e in #(
3238 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3239 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3240 CC="$CC $ac_cv_prog_cc_c11" ;;
3241 esac
3242 fi
3243 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3244 ac_prog_cc_stdc=c11 ;;
3245 esac
3246 fi
3247 fi
3248 if test x$ac_prog_cc_stdc = xno
3249 then :
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3251 printf %s "checking for $CC option to enable C99 features... " >&6; }
3252 if test ${ac_cv_prog_cc_c99+y}
3253 then :
3254 printf %s "(cached) " >&6
3255 else case e in #(
3256 e) ac_cv_prog_cc_c99=no
3257 ac_save_CC=$CC
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3260 $ac_c_conftest_c99_program
3261 _ACEOF
3262 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3263 do
3264 CC="$ac_save_CC $ac_arg"
3265 if ac_fn_c_try_compile "$LINENO"
3266 then :
3267 ac_cv_prog_cc_c99=$ac_arg
3268 fi
3269 rm -f core conftest.err conftest.$ac_objext conftest.beam
3270 test "x$ac_cv_prog_cc_c99" != "xno" && break
3271 done
3272 rm -f conftest.$ac_ext
3273 CC=$ac_save_CC ;;
3274 esac
3275 fi
3276
3277 if test "x$ac_cv_prog_cc_c99" = xno
3278 then :
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3280 printf "%s\n" "unsupported" >&6; }
3281 else case e in #(
3282 e) if test "x$ac_cv_prog_cc_c99" = x
3283 then :
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3285 printf "%s\n" "none needed" >&6; }
3286 else case e in #(
3287 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3288 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3289 CC="$CC $ac_cv_prog_cc_c99" ;;
3290 esac
3291 fi
3292 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3293 ac_prog_cc_stdc=c99 ;;
3294 esac
3295 fi
3296 fi
3297 if test x$ac_prog_cc_stdc = xno
3298 then :
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3300 printf %s "checking for $CC option to enable C89 features... " >&6; }
3301 if test ${ac_cv_prog_cc_c89+y}
3302 then :
3303 printf %s "(cached) " >&6
3304 else case e in #(
3305 e) ac_cv_prog_cc_c89=no
3306 ac_save_CC=$CC
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3309 $ac_c_conftest_c89_program
3310 _ACEOF
3311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3312 do
3313 CC="$ac_save_CC $ac_arg"
3314 if ac_fn_c_try_compile "$LINENO"
3315 then :
3316 ac_cv_prog_cc_c89=$ac_arg
3317 fi
3318 rm -f core conftest.err conftest.$ac_objext conftest.beam
3319 test "x$ac_cv_prog_cc_c89" != "xno" && break
3320 done
3321 rm -f conftest.$ac_ext
3322 CC=$ac_save_CC ;;
3323 esac
3324 fi
3325
3326 if test "x$ac_cv_prog_cc_c89" = xno
3327 then :
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3329 printf "%s\n" "unsupported" >&6; }
3330 else case e in #(
3331 e) if test "x$ac_cv_prog_cc_c89" = x
3332 then :
3333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3334 printf "%s\n" "none needed" >&6; }
3335 else case e in #(
3336 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3337 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3338 CC="$CC $ac_cv_prog_cc_c89" ;;
3339 esac
3340 fi
3341 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3342 ac_prog_cc_stdc=c89 ;;
3343 esac
3344 fi
3345 fi
3346
3347 ac_ext=c
3348 ac_cpp='$CPP $CPPFLAGS'
3349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352
3353
3354 # Checks for libraries.
3355
3356 # Checks for header files.
3357
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
3359 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3360 if test ${ac_cv_header_sys_wait_h+y}
3361 then :
3362 printf %s "(cached) " >&6
3363 else case e in #(
3364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366 #include <sys/types.h>
3367 #include <sys/wait.h>
3368 #ifndef WEXITSTATUS
3369 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3370 #endif
3371 #ifndef WIFEXITED
3372 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3373 #endif
3374
3375 int
3376 main (void)
3377 {
3378 int s;
3379 wait (&s);
3380 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3381 ;
3382 return 0;
3383 }
3384 _ACEOF
3385 if ac_fn_c_try_compile "$LINENO"
3386 then :
3387 ac_cv_header_sys_wait_h=yes
3388 else case e in #(
3389 e) ac_cv_header_sys_wait_h=no ;;
3390 esac
3391 fi
3392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3393 esac
3394 fi
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
3396 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
3397 if test $ac_cv_header_sys_wait_h = yes; then
3398
3399 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
3400
3401 fi
3402
3403 ac_header= ac_cache=
3404 for ac_item in $ac_header_c_list
3405 do
3406 if test $ac_cache; then
3407 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3408 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3409 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3410 fi
3411 ac_header= ac_cache=
3412 elif test $ac_header; then
3413 ac_cache=$ac_item
3414 else
3415 ac_header=$ac_item
3416 fi
3417 done
3418
3419
3420
3421
3422
3423
3424
3425
3426 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3427 then :
3428
3429 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3430
3431 fi
3432 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
3433 if test "x$ac_cv_header_string_h" = xyes
3434 then :
3435 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
3436
3437 fi
3438 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
3439 if test "x$ac_cv_header_sys_time_h" = xyes
3440 then :
3441 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
3442
3443 fi
3444 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
3445 if test "x$ac_cv_header_unistd_h" = xyes
3446 then :
3447 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
3448
3449 fi
3450
3451
3452 # Checks for typedefs, structures, and compiler characteristics.
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3454 printf %s "checking for an ANSI C-conforming const... " >&6; }
3455 if test ${ac_cv_c_const+y}
3456 then :
3457 printf %s "(cached) " >&6
3458 else case e in #(
3459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461
3462 int
3463 main (void)
3464 {
3465
3466 #ifndef __cplusplus
3467 /* Ultrix mips cc rejects this sort of thing. */
3468 typedef int charset[2];
3469 const charset cs = { 0, 0 };
3470 /* SunOS 4.1.1 cc rejects this. */
3471 char const *const *pcpcc;
3472 char **ppc;
3473 /* NEC SVR4.0.2 mips cc rejects this. */
3474 struct point {int x, y;};
3475 static struct point const zero = {0,0};
3476 /* IBM XL C 1.02.0.0 rejects this.
3477 It does not let you subtract one const X* pointer from another in
3478 an arm of an if-expression whose if-part is not a constant
3479 expression */
3480 const char *g = "string";
3481 pcpcc = &g + (g ? g-g : 0);
3482 /* HPUX 7.0 cc rejects these. */
3483 ++pcpcc;
3484 ppc = (char**) pcpcc;
3485 pcpcc = (char const *const *) ppc;
3486 { /* SCO 3.2v4 cc rejects this sort of thing. */
3487 char tx;
3488 char *t = &tx;
3489 char const *s = 0 ? (char *) 0 : (char const *) 0;
3490
3491 *t++ = 0;
3492 if (s) return 0;
3493 }
3494 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3495 int x[] = {25, 17};
3496 const int *foo = &x[0];
3497 ++foo;
3498 }
3499 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3500 typedef const int *iptr;
3501 iptr p = 0;
3502 ++p;
3503 }
3504 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
3505 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3506 struct s { int j; const int *ap[3]; } bx;
3507 struct s *b = &bx; b->j = 5;
3508 }
3509 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3510 const int foo = 10;
3511 if (!foo) return 0;
3512 }
3513 return !cs[0] && !zero.x;
3514 #endif
3515
3516 ;
3517 return 0;
3518 }
3519 _ACEOF
3520 if ac_fn_c_try_compile "$LINENO"
3521 then :
3522 ac_cv_c_const=yes
3523 else case e in #(
3524 e) ac_cv_c_const=no ;;
3525 esac
3526 fi
3527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3528 esac
3529 fi
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3531 printf "%s\n" "$ac_cv_c_const" >&6; }
3532 if test $ac_cv_c_const = no; then
3533
3534 printf "%s\n" "#define const /**/" >>confdefs.h
3535
3536 fi
3537
3538
3539 # Extract the first word of "pkg-config", so it can be a program name with args.
3540 set dummy pkg-config; ac_word=$2
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542 printf %s "checking for $ac_word... " >&6; }
3543 if test ${ac_cv_path_PKGCONF+y}
3544 then :
3545 printf %s "(cached) " >&6
3546 else case e in #(
3547 e) case $PKGCONF in
3548 [\\/]* | ?:[\\/]*)
3549 ac_cv_path_PKGCONF="$PKGCONF" # Let the user override the test with a path.
3550 ;;
3551 *)
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 as_dummy="$PATH:/usr/local/bin:ext/bin:ext:/sw/bin:/opt/bin"
3554 for as_dir in $as_dummy
3555 do
3556 IFS=$as_save_IFS
3557 case $as_dir in #(((
3558 '') as_dir=./ ;;
3559 */) ;;
3560 *) as_dir=$as_dir/ ;;
3561 esac
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3564 ac_cv_path_PKGCONF="$as_dir$ac_word$ac_exec_ext"
3565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 ;;
3573 esac ;;
3574 esac
3575 fi
3576 PKGCONF=$ac_cv_path_PKGCONF
3577 if test -n "$PKGCONF"; then
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONF" >&5
3579 printf "%s\n" "$PKGCONF" >&6; }
3580 else
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 printf "%s\n" "no" >&6; }
3583 fi
3584
3585
3586
3587 have_cairo=no
3588 if test "xx$CAIRO_LIBS" = "xx"; then
3589 if test "xx$PKGCONF" != "xx"; then
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pkg-config knows about cairo" >&5
3591 printf %s "checking whether pkg-config knows about cairo... " >&6; }
3592 if "${PKGCONF}" --exists cairo; then
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594 printf "%s\n" "yes" >&6; }
3595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for configurable backends" >&5
3596 printf %s "checking for configurable backends... " >&6; }
3597 modlist="cairo"
3598 for module in cairo-ft cairo-pdf cairo-png cairo-ps cairo-svn cairo-xlib cairo-xlib-xrender cairo-win32; do
3599 if "${PKGCONF}" --exists ${module}; then
3600 modlist="${modlist} ${module}"
3601 fi
3602 done
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${modlist}" >&5
3604 printf "%s\n" "${modlist}" >&6; }
3605 CAIRO_CFLAGS=`"${PKGCONF}" --cflags ${modlist}`
3606 CAIRO_LIBS=`"${PKGCONF}" --libs ${modlist}`
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --static is needed" >&5
3608 printf %s "checking whether --static is needed... " >&6; }
3609 saveLIBS="$LIBS"
3610 LIBS="$saveLIBS ${CAIRO_LIBS}"
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613 /* Define cairo_reset_clip to an innocuous variant, in case <limits.h> declares cairo_reset_clip.
3614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3615 #define cairo_reset_clip innocuous_cairo_reset_clip
3616
3617 /* System header to define __stub macros and hopefully few prototypes,
3618 which can conflict with char cairo_reset_clip (void); below. */
3619
3620 #include <limits.h>
3621 #undef cairo_reset_clip
3622
3623 /* Override any GCC internal prototype to avoid an error.
3624 Use char because int might match the return type of a GCC
3625 builtin and then its argument prototype would still apply. */
3626 #ifdef __cplusplus
3627 extern "C"
3628 #endif
3629 char cairo_reset_clip (void);
3630 /* The GNU C library defines this for functions which it implements
3631 to always fail with ENOSYS. Some functions are actually named
3632 something starting with __ and the normal name is an alias. */
3633 #if defined __stub_cairo_reset_clip || defined __stub___cairo_reset_clip
3634 choke me
3635 #endif
3636
3637 int
3638 main (void)
3639 {
3640 return cairo_reset_clip ();
3641 ;
3642 return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_c_try_link "$LINENO"
3646 then :
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 printf "%s\n" "no" >&6; }
3649 else case e in #(
3650 e) CAIRO_LIBS=`"${PKGCONF}" --libs --static ${modlist}`
3651 LIBS="$saveLIBS ${CAIRO_LIBS}"
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3654 /* Define cairo_reset_clip to an innocuous variant, in case <limits.h> declares cairo_reset_clip.
3655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3656 #define cairo_reset_clip innocuous_cairo_reset_clip
3657
3658 /* System header to define __stub macros and hopefully few prototypes,
3659 which can conflict with char cairo_reset_clip (void); below. */
3660
3661 #include <limits.h>
3662 #undef cairo_reset_clip
3663
3664 /* Override any GCC internal prototype to avoid an error.
3665 Use char because int might match the return type of a GCC
3666 builtin and then its argument prototype would still apply. */
3667 #ifdef __cplusplus
3668 extern "C"
3669 #endif
3670 char cairo_reset_clip (void);
3671 /* The GNU C library defines this for functions which it implements
3672 to always fail with ENOSYS. Some functions are actually named
3673 something starting with __ and the normal name is an alias. */
3674 #if defined __stub_cairo_reset_clip || defined __stub___cairo_reset_clip
3675 choke me
3676 #endif
3677
3678 int
3679 main (void)
3680 {
3681 return cairo_reset_clip ();
3682 ;
3683 return 0;
3684 }
3685 _ACEOF
3686 if ac_fn_c_try_link "$LINENO"
3687 then :
3688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3689 printf "%s\n" "yes" >&6; }
3690 PKGCONF_LIB_ADD=--static
3691
3692 else case e in #(
3693 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works, abandoning pkg-config" >&5
3694 printf "%s\n" "neither works, abandoning pkg-config" >&6; }
3695 CAIRO_LIBS=''
3696 ;;
3697 esac
3698 fi
3699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3700 conftest$ac_exeext conftest.$ac_ext
3701 ;;
3702 esac
3703 fi
3704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3705 conftest$ac_exeext conftest.$ac_ext
3706 LIBS="$saveLIBS"
3707 else
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 printf "%s\n" "no" >&6; }
3710 fi
3711 fi
3712 fi
3713 if test -z "${CAIRO_LIBS}"; then
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CAIRO_LIBS is unset, attempting to guess it." >&5
3715 printf "%s\n" "$as_me: CAIRO_LIBS is unset, attempting to guess it." >&6;}
3716 cpre=''
3717 for pre in /usr /usr/local /usr/X11 /usr/X11R6 /opt /sw; do
3718 if test -e "${pre}/include/cairo/cairo.h"; then
3719 cpre=${pre}; break
3720 fi
3721 done
3722 if test -n "${cpre}"; then
3723 CAIRO_CFLAGS="-I${cpre}/include/cairo"
3724 if test "${cpre}" = /usr; then
3725 CAIRO_LIBS="-lcairo"
3726 else
3727 CAIRO_LIBS="-L${cpre}/lib -lcairo"
3728 fi
3729 fi
3730 fi
3731
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CAIRO_CFLAGS=${CAIRO_CFLAGS}" >&5
3733 printf "%s\n" "$as_me: CAIRO_CFLAGS=${CAIRO_CFLAGS}" >&6;}
3734
3735 # Check for Rconn patch
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if R was compiled with the RConn patch" >&5
3737 printf %s "checking if R was compiled with the RConn patch... " >&6; }
3738 if test -f "${R_HOME}/include/R_ext/RConn.h"; then
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740 printf "%s\n" "yes" >&6; }
3741 HAVE_RCONN_H="-DHAVE_RCONN_H"
3742 else
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 printf "%s\n" "no" >&6; }
3745 HAVE_RCONN_H=""
3746 fi
3747
3748 CPPFLAGS="$CPPFLAGS ${CAIRO_CFLAGS} ${HAVE_RCONN_H}"
3749
3750 ac_fn_c_check_header_compile "$LINENO" "cairo.h" "ac_cv_header_cairo_h" "$ac_includes_default"
3751 if test "x$ac_cv_header_cairo_h" = xyes
3752 then :
3753
3754 else case e in #(
3755 e) as_fn_error $? "Cannot find cairo.h! Please install cairo (http://www.cairographics.org/) and/or set CAIRO_CFLAGS/LIBS correspondingly." "$LINENO" 5 ;;
3756 esac
3757 fi
3758
3759
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PNG support in Cairo" >&5
3761 printf %s "checking for PNG support in Cairo... " >&6; }
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764
3765 #include "cairo.h"
3766 int main(void) {
3767 #ifndef CAIRO_HAS_PNG_FUNCTIONS
3768 #error no PNG support
3769 #endif
3770 return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_link "$LINENO"
3774 then :
3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3776 printf "%s\n" "yes" >&6; }
3777 else case e in #(
3778 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 printf "%s\n" "no" >&6; }
3780 as_fn_error $? "Cairo library has no PNG support." "$LINENO" 5 ;;
3781 esac
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3784 conftest$ac_exeext conftest.$ac_ext
3785
3786 uses_ats=no
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ATS font support in Cairo" >&5
3788 printf %s "checking for ATS font support in Cairo... " >&6; }
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791
3792 #include "cairo.h"
3793 int main(void) {
3794 #ifndef CAIRO_HAS_ATSUI_FONT
3795 #error no PNG support
3796 #endif
3797 return 0;
3798 }
3799 _ACEOF
3800 if ac_fn_c_try_link "$LINENO"
3801 then :
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3803 printf "%s\n" "yes" >&6; }
3804 uses_ats=yes
3805 else case e in #(
3806 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 printf "%s\n" "no" >&6; } ;;
3808 esac
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3811 conftest$ac_exeext conftest.$ac_ext
3812
3813 if test "xx${CAIRO_LIBS}" = "xx"; then
3814 if test $uses_ats = "yes"; then
3815 CAIRO_LIBS="-lcairo -lpng -lz -framework ApplicationServices"
3816 else
3817 CAIRO_LIBs="-lcairo -lpng -lz"
3818 fi
3819 fi
3820
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CAIRO_LIBS=${CAIRO_LIBS}" >&5
3822 printf "%s\n" "$as_me: CAIRO_LIBS=${CAIRO_LIBS}" >&6;}
3823
3824 LIBS="$LIBS ${CAIRO_LIBS}"
3825
3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
3827 printf %s "checking for library containing deflate... " >&6; }
3828 if test ${ac_cv_search_deflate+y}
3829 then :
3830 printf %s "(cached) " >&6
3831 else case e in #(
3832 e) ac_func_search_save_LIBS=$LIBS
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835
3836 /* Override any GCC internal prototype to avoid an error.
3837 Use char because int might match the return type of a GCC
3838 builtin and then its argument prototype would still apply.
3839 The 'extern "C"' is for builds by C++ compilers;
3840 although this is not generally supported in C code supporting it here
3841 has little cost and some practical benefit (sr 110532). */
3842 #ifdef __cplusplus
3843 extern "C"
3844 #endif
3845 char deflate (void);
3846 int
3847 main (void)
3848 {
3849 return deflate ();
3850 ;
3851 return 0;
3852 }
3853 _ACEOF
3854 for ac_lib in '' z
3855 do
3856 if test -z "$ac_lib"; then
3857 ac_res="none required"
3858 else
3859 ac_res=-l$ac_lib
3860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3861 fi
3862 if ac_fn_c_try_link "$LINENO"
3863 then :
3864 ac_cv_search_deflate=$ac_res
3865 fi
3866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3867 conftest$ac_exeext
3868 if test ${ac_cv_search_deflate+y}
3869 then :
3870 break
3871 fi
3872 done
3873 if test ${ac_cv_search_deflate+y}
3874 then :
3875
3876 else case e in #(
3877 e) ac_cv_search_deflate=no ;;
3878 esac
3879 fi
3880 rm conftest.$ac_ext
3881 LIBS=$ac_func_search_save_LIBS ;;
3882 esac
3883 fi
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
3885 printf "%s\n" "$ac_cv_search_deflate" >&6; }
3886 ac_res=$ac_cv_search_deflate
3887 if test "$ac_res" != no
3888 then :
3889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3890
3891 fi
3892
3893
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Cairo programs can be compiled" >&5
3895 printf %s "checking whether Cairo programs can be compiled... " >&6; }
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898
3899 #include <cairo.h>
3900 int main(void) {
3901 cairo_surface_t *cs = 0;
3902 cairo_t *cr;
3903 cr = cairo_create(cs);
3904 return 0;
3905 }
3906
3907 _ACEOF
3908 if ac_fn_c_try_link "$LINENO"
3909 then :
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3911 printf "%s\n" "yes" >&6; }
3912 else case e in #(
3913 e) as_fn_error $? "Cannot compile a simple Cairo program. See config.log for details." "$LINENO" 5 ;;
3914 esac
3915 fi
3916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3917 conftest$ac_exeext conftest.$ac_ext
3918
3919
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
3921 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
3922 if test ${ac_cv_c_undeclared_builtin_options+y}
3923 then :
3924 printf %s "(cached) " >&6
3925 else case e in #(
3926 e) ac_save_CFLAGS=$CFLAGS
3927 ac_cv_c_undeclared_builtin_options='cannot detect'
3928 for ac_arg in '' -fno-builtin; do
3929 CFLAGS="$ac_save_CFLAGS $ac_arg"
3930 # This test program should *not* compile successfully.
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933
3934 int
3935 main (void)
3936 {
3937 (void) strchr;
3938 ;
3939 return 0;
3940 }
3941 _ACEOF
3942 if ac_fn_c_try_compile "$LINENO"
3943 then :
3944
3945 else case e in #(
3946 e) # This test program should compile successfully.
3947 # No library function is consistently available on
3948 # freestanding implementations, so test against a dummy
3949 # declaration. Include always-available headers on the
3950 # off chance that they somehow elicit warnings.
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 #include <float.h>
3954 #include <limits.h>
3955 #include <stdarg.h>
3956 #include <stddef.h>
3957 extern void ac_decl (int, char *);
3958
3959 int
3960 main (void)
3961 {
3962 (void) ac_decl (0, (char *) 0);
3963 (void) ac_decl;
3964
3965 ;
3966 return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"
3970 then :
3971 if test x"$ac_arg" = x
3972 then :
3973 ac_cv_c_undeclared_builtin_options='none needed'
3974 else case e in #(
3975 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
3976 esac
3977 fi
3978 break
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3981 esac
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3984 done
3985 CFLAGS=$ac_save_CFLAGS
3986 ;;
3987 esac
3988 fi
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
3990 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
3991 case $ac_cv_c_undeclared_builtin_options in #(
3992 'cannot detect') :
3993 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3994 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3995 as_fn_error $? "cannot make $CC report undeclared builtins
3996 See 'config.log' for more details" "$LINENO" 5; } ;; #(
3997 'none needed') :
3998 ac_c_undeclared_builtin_options='' ;; #(
3999 *) :
4000 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4001 esac
4002
4003 ac_fn_check_decl "$LINENO" "cairo_image_surface_get_format" "ac_cv_have_decl_cairo_image_surface_get_format" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4004 if test "x$ac_cv_have_decl_cairo_image_surface_get_format" = xyes
4005 then :
4006 ac_have_decl=1
4007 else case e in #(
4008 e) ac_have_decl=0 ;;
4009 esac
4010 fi
4011 printf "%s\n" "#define HAVE_DECL_CAIRO_IMAGE_SURFACE_GET_FORMAT $ac_have_decl" >>confdefs.h
4012 if test $ac_have_decl = 1
4013 then :
4014 #include <cairo.h>
4015 fi
4016
4017
4018 has_cairo_ft=no
4019
4020
4021 # Check whether --with-freetype was given.
4022 if test ${with_freetype+y}
4023 then :
4024 withval=$with_freetype; with_freetype=$withval
4025 else case e in #(
4026 e) with_freetype=auto ;;
4027 esac
4028 fi
4029
4030
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether FreeType support is desired" >&5
4032 printf %s "checking whether FreeType support is desired... " >&6; }
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_freetype}" >&5
4034 printf "%s\n" "${with_freetype}" >&6; }
4035
4036 if test x${with_freetype} != xno; then ## with_freetype
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeType support in cairo" >&5
4038 printf %s "checking for FreeType support in cairo... " >&6; }
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041
4042 #include <cairo.h>
4043 #ifndef CAIRO_HAS_FT_FONT
4044 #error nope, no ft
4045 #endif
4046
4047 _ACEOF
4048 if ac_fn_c_try_compile "$LINENO"
4049 then :
4050 has_cairo_ft=yes
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${has_cairo_ft}" >&5
4054 printf "%s\n" "${has_cairo_ft}" >&6; }
4055
4056 need_xtra_ft_flags=no
4057 if test "${has_cairo_ft}" = yes; then
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether FreeType needs additional flags" >&5
4059 printf %s "checking whether FreeType needs additional flags... " >&6; }
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062
4063 #include <cairo.h>
4064 #include <cairo-ft.h>
4065 int main(void) {
4066 cairo_ft_font_face_create_for_pattern(0);
4067 return 0;
4068 }
4069
4070 _ACEOF
4071 if ac_fn_c_try_link "$LINENO"
4072 then :
4073
4074 else case e in #(
4075 e) need_xtra_ft_flags=yes ;;
4076 esac
4077 fi
4078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4079 conftest$ac_exeext conftest.$ac_ext
4080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${need_xtra_ft_flags}" >&5
4081 printf "%s\n" "${need_xtra_ft_flags}" >&6; }
4082 fi
4083
4084 if test "${need_xtra_ft_flags}" = yes; then
4085 if test -n "${PKGCONF}"; then
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pkg-config knows about fontconfig or freetype2" >&5
4087 printf %s "checking whether pkg-config knows about fontconfig or freetype2... " >&6; }
4088 ftmod=''
4089 for module in fontconfig freetype2; do
4090 if "${PKGCONF}" --exists ${module}; then ftmod="${ftmod} ${module}"; fi
4091 done
4092 if test -n "${ftmod}"; then
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4094 printf "%s\n" "yes" >&6; }
4095 FT_CPPFLAGS=`"${PKGCONF}" --cflags ${ftmod}`
4096 FT_LIBS=`"${PKGCONF}" --libs ${PKGCONF_LIB_ADD} ${ftmod}`
4097 else
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 printf "%s\n" "no" >&6; }
4100 fi
4101 fi
4102 if test -z "${FT_LIBS}"; then
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fontconfig/freetype2 location can be guessed" >&5
4104 printf %s "checking whether fontconfig/freetype2 location can be guessed... " >&6; }
4105 FCI=''; FTI=''; FCL=''; FTL=''
4106 for pre in /usr /usr/X11 /usr/X11R6 /usr/local /opt /sw; do
4107 if test -z "${FCI}"; then
4108 if test -e "${pre}/include/fontconfig/fontconfig.h"; then
4109 FCI="-I${pre}/include"
4110 FCL="-L${pre}/lib"
4111 fi
4112 fi
4113 if test -z "${FTI}"; then
4114 if test -e "${pre}/include/freetype2/freetype/freetype.h"; then
4115 FTI="-I${pre}/include/freetype2"
4116 FTL="-L${pre}/lib"
4117 fi
4118 fi
4119 done
4120 if test "${FCI}" = -I/usr/include; then FCI=''; fi
4121 if test "${FCL}" = "-L/usr/lib"; then FCL=''; fi
4122 if test "${FTL}" = "-L/usr/lib"; then FTL=''; fi
4123 if test "${FTL}" = "${FCL}"; then FTL=''; fi
4124 if test -z "${FCI}"; then
4125 if test -z "${FTI}"; then
4126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 printf "%s\n" "no" >&6; }
4128 as_fn_error $? "Cannot find fontconfig/freetype2 although cairo claims to support it. Please check your cairo installation and/or update cairo if necessary or set CAIRO_CFLAGS/CAIRO_LIBS accordingly." "$LINENO" 5
4129 fi
4130 fi
4131 FT_CPPFLAGS="${FCI} ${FTI}"
4132 FT_LIBS="${FCL} ${FTL} -lfontconfig -lfreetype -lz"
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: possibly" >&5
4134 printf "%s\n" "possibly" >&6; }
4135 fi
4136 zLIBS="${LIBS}"
4137 LIBS="${LIBS} ${FT_LIBS}"
4138 zCPPFLAGS="${CPPFLAGS}"
4139 CPPFLAGS="${CPPFLAGS} ${FT_CPPFLAGS}"
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether additional flags work" >&5
4141 printf %s "checking whether additional flags work... " >&6; }
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144
4145 #include <cairo.h>
4146 #include <cairo-ft.h>
4147 int main(void) {
4148 cairo_ft_font_face_create_for_pattern(0);
4149 return 0;
4150 }
4151
4152 _ACEOF
4153 if ac_fn_c_try_link "$LINENO"
4154 then :
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4156 printf "%s\n" "yes" >&6; }
4157 CAIRO_LIBS="${CAIRO_LIBS} ${FT_LIBS}"
4158 CAIRO_CFLAGS="${CAIRO_CFLAGS} ${FT_CPPFLAGS}"
4159
4160 else case e in #(
4161 e)
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 printf "%s\n" "no" >&6; }
4164 as_fn_error $? "Cannot use cairo-ft backend, although cairo claims it is working. Please check your cairo installation and/or update cairo if necessary or set CAIRO_CFLAGS/CAIRO_LIBS accordingly." "$LINENO" 5
4165 ;;
4166 esac
4167 fi
4168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4169 conftest$ac_exeext conftest.$ac_ext
4170 fi
4171 fi ## with_freetype
4172
4173 # --- check for Xt support (we need it in additon to xlib surface) ---
4174 if test -n "${PKGCONF}"; then
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pkg-config knows about Xt" >&5
4176 printf %s "checking whether pkg-config knows about Xt... " >&6; }
4177 xtmod=''
4178 for module in xt; do
4179 if "${PKGCONF}" --exists ${module}; then xtmod="${xtmod} ${module}"; fi
4180 done
4181 if test -n "${ftmod}"; then
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183 printf "%s\n" "yes" >&6; }
4184 XT_CPPFLAGS=`"${PKGCONF}" --cflags ${xtmod}`
4185 XT_LIBS=`"${PKGCONF}" --libs ${PKGCONF_LIB_ADD} ${xtmod}`
4186 else
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4188 printf "%s\n" "no" >&6; }
4189 fi
4190 fi
4191
4192 # --- check for JPEG support ---
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libjpeg works" >&5
4194 printf %s "checking whether libjpeg works... " >&6; }
4195 zLIBS="${LIBS}"
4196 LIBS="${LIBS} -ljpeg"
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199
4200 #include <stdio.h>
4201 #include <jpeglib.h>
4202 int main(void) {
4203 struct jpeg_compress_struct cinfo;
4204 jpeg_create_compress(&cinfo);
4205 return 0;
4206 }
4207
4208 _ACEOF
4209 if ac_fn_c_try_link "$LINENO"
4210 then :
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4212 printf "%s\n" "yes" >&6; }
4213
4214 printf "%s\n" "#define SUPPORTS_JPEG 1" >>confdefs.h
4215
4216 else case e in #(
4217 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 printf "%s\n" "no" >&6; }
4219 LIBS="${zLIBS}" ;;
4220 esac
4221 fi
4222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4223 conftest$ac_exeext conftest.$ac_ext
4224
4225 # --- check for Harfbuzz/ICU support ---
4226
4227
4228 # Check whether --with-harfbuzz was given.
4229 if test ${with_harfbuzz+y}
4230 then :
4231 withval=$with_harfbuzz; with_harfbuzz=$withval
4232 else case e in #(
4233 e) with_harfbuzz=auto ;;
4234 esac
4235 fi
4236
4237
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Harfbuzz layout is desired" >&5
4239 printf %s "checking whether Harfbuzz layout is desired... " >&6; }
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${with_harfbuzz}" >&5
4241 printf "%s\n" "${with_harfbuzz}" >&6; }
4242 if test x${with_harfbuzz} != xno; then
4243 if test x${has_cairo_ft} != xyes; then
4244 if test x${with_harfbuzz} = xyes; then
4245 as_fn_error $? "ERROR: Harfbuzz support is requested, but FreeType is not available.
4246 Harfbuzz requires cairo with FreeType support to be present." "$LINENO" 5
4247 else
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: NOTE: Harfbuzz requires cairo with FreeType support which is not available." >&5
4249 printf "%s\n" "$as_me: NOTE: Harfbuzz requires cairo with FreeType support which is not available." >&6;}
4250 fi
4251 with_harfbuzz=no
4252 fi
4253 fi
4254 if test x${with_harfbuzz} != xno; then
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Harfbuzz + ICU works" >&5
4256 printf %s "checking whether Harfbuzz + ICU works... " >&6; }
4257 zLIBS="${LIBS}"
4258 zCPPFLAGS="${CPPFLAGS}"
4259 if test -n "$PKGCONF"; then
4260 : ${HB_CPPFLAGS=`"${PKGCONF}" --cflags harfbuzz-icu icu-uc`}
4261 : ${HB_LIBS=`"${PKGCONF}" --libs ${PKGCONF_LIB_ADD} harfbuzz-icu icu-uc`}
4262 fi
4263 if test -z "${HB_LIBS}"; then
4264 HB_LIBS='-lharfbuzz-icu -licuuc -licudata -lharfbuzz'
4265 fi
4266 ## ICU uses C++ (sadly) so requires stdc++ - this may not be very portable ...
4267 LIBS="${LIBS} ${HB_LIBS} -lstdc++"
4268 CPPFLAGS="${CPPFLAGS} ${HB_CPPFLAGS}"
4269
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4272
4273 #include <unicode/ubidi.h>
4274 #include <unicode/uchar.h>
4275
4276 #include <harfbuzz/hb.h>
4277 #include <harfbuzz/hb-ft.h>
4278 #include <harfbuzz/hb-icu.h>
4279 int main(void) {
4280 UBiDi *bidi = 0;
4281 UChar *text = 0;
4282 bidi = ubidi_open();
4283 hb_buffer_t *buf = hb_buffer_create();
4284 hb_buffer_set_unicode_funcs(buf, hb_icu_get_unicode_funcs());
4285 return 0;
4286 }
4287
4288 _ACEOF
4289 if ac_fn_c_try_link "$LINENO"
4290 then :
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292 printf "%s\n" "yes" >&6; }
4293
4294 printf "%s\n" "#define HAVE_HARFBUZZ 1" >>confdefs.h
4295
4296 else case e in #(
4297 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 printf "%s\n" "no" >&6; }
4299 LIBS="${zLIBS}"
4300 CPPFLAGS="${zCPPFLAGS}"
4301 HB_CPPFLAGS=''
4302 ;;
4303 esac
4304 fi
4305 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4306 conftest$ac_exeext conftest.$ac_ext
4307 fi
4308
4309 # --- check for TIFF support
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libtiff works" >&5
4311 printf %s "checking whether libtiff works... " >&6; }
4312 zLIBS="${LIBS}"
4313 if test -n "$PKGCONF"; then
4314 ## FIXME: --cflags?
4315 TIFF_LIBS=`"${PKGCONF}" --libs ${PKGCONF_LIB_ADD} libtiff-4`
4316 fi
4317 if test -z "${TIFF_LIBS}"; then
4318 TIFF_LIBS=-ltiff
4319 fi
4320 LIBS="${LIBS} ${TIFF_LIBS}"
4321
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324
4325 #include <tiffio.h>
4326 int main(void) {
4327 TIFF *out = TIFFOpen("new.tif", "w");
4328 TIFFSetField (out, TIFFTAG_IMAGEWIDTH, 100);
4329 return 0;
4330 }
4331
4332 _ACEOF
4333 if ac_fn_c_try_link "$LINENO"
4334 then :
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4336 printf "%s\n" "yes" >&6; }
4337
4338 printf "%s\n" "#define SUPPORTS_TIFF 1" >>confdefs.h
4339
4340 else case e in #(
4341 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 printf "%s\n" "no" >&6; }
4343 LIBS="${zLIBS}" ;;
4344 esac
4345 fi
4346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4347 conftest$ac_exeext conftest.$ac_ext
4348
4349 ## our CPPFLAGS included R's CPPFLAGS which we don't need to
4350 ## set so only include those we detected in addition to the
4351 ## R CMD config CPPFLAGS
4352 CPPFLAGS="${CAIRO_CFLAGS} ${HB_CPPFLAGS} ${HAVE_RCONN_H}"
4353
4354 # Check whether --enable-debug was given.
4355 if test ${enable_debug+y}
4356 then :
4357 enableval=$enable_debug; want_debug="${enableval}"
4358 else case e in #(
4359 e) want_debug=no ;;
4360 esac
4361 fi
4362
4363 if test ${want_debug} = yes; then
4364 CPPFLAGS="-DJGD_DEBUG=1 ${CPPFLAGS}"
4365 fi
4366
4367 ac_config_files="$ac_config_files src/Makevars"
4368
4369 cat >confcache <<\_ACEOF
4370 # This file is a shell script that caches the results of configure
4371 # tests run on this system so they can be shared between configure
4372 # scripts and configure runs, see configure's option --config-cache.
4373 # It is not useful on other systems. If it contains results you don't
4374 # want to keep, you may remove or edit it.
4375 #
4376 # config.status only pays attention to the cache file if you give it
4377 # the --recheck option to rerun configure.
4378 #
4379 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
4380 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
4381 # following values.
4382
4383 _ACEOF
4384
4385 # The following way of writing the cache mishandles newlines in values,
4386 # but we know of no workaround that is simple, portable, and efficient.
4387 # So, we kill variables containing newlines.
4388 # Ultrix sh set writes to stderr and can't be redirected directly,
4389 # and sets the high bit in the cache file unless we assign to the vars.
4390 (
4391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4392 eval ac_val=\$$ac_var
4393 case $ac_val in #(
4394 *${as_nl}*)
4395 case $ac_var in #(
4396 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4397 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4398 esac
4399 case $ac_var in #(
4400 _ | IFS | as_nl) ;; #(
4401 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4402 *) { eval $ac_var=; unset $ac_var;} ;;
4403 esac ;;
4404 esac
4405 done
4406
4407 (set) 2>&1 |
4408 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4409 *${as_nl}ac_space=\ *)
4410 # 'set' does not quote correctly, so add quotes: double-quote
4411 # substitution turns \\\\ into \\, and sed turns \\ into \.
4412 sed -n \
4413 "s/'/'\\\\''/g;
4414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4415 ;; #(
4416 *)
4417 # 'set' quotes correctly as required by POSIX, so do not add quotes.
4418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4419 ;;
4420 esac |
4421 sort
4422 ) |
4423 sed '
4424 /^ac_cv_env_/b end
4425 t clear
4426 :clear
4427 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
4428 t end
4429 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4430 :end' >>confcache
4431 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4432 if test -w "$cache_file"; then
4433 if test "x$cache_file" != "x/dev/null"; then
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4435 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
4436 if test ! -f "$cache_file" || test -h "$cache_file"; then
4437 cat confcache >"$cache_file"
4438 else
4439 case $cache_file in #(
4440 */* | ?:*)
4441 mv -f confcache "$cache_file"$$ &&
4442 mv -f "$cache_file"$$ "$cache_file" ;; #(
4443 *)
4444 mv -f confcache "$cache_file" ;;
4445 esac
4446 fi
4447 fi
4448 else
4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4450 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
4451 fi
4452 fi
4453 rm -f confcache
4454
4455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4456 # Let make expand exec_prefix.
4457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4458
4459 DEFS=-DHAVE_CONFIG_H
4460
4461 ac_libobjs=
4462 ac_ltlibobjs=
4463 U=
4464 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4465 # 1. Remove the extension, and $U if already installed.
4466 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4467 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
4468 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4469 # will be set to the directory where LIBOBJS objects are built.
4470 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4471 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4472 done
4473 LIBOBJS=$ac_libobjs
4474
4475 LTLIBOBJS=$ac_ltlibobjs
4476
4477
4478
4479 : "${CONFIG_STATUS=./config.status}"
4480 ac_write_fail=0
4481 ac_clean_files_save=$ac_clean_files
4482 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4484 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
4485 as_write_fail=0
4486 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4487 #! $SHELL
4488 # Generated by $as_me.
4489 # Run this file to recreate the current configuration.
4490 # Compiler output produced by configure, useful for debugging
4491 # configure, is in config.log if it exists.
4492
4493 debug=false
4494 ac_cs_recheck=false
4495 ac_cs_silent=false
4496
4497 SHELL=\${CONFIG_SHELL-$SHELL}
4498 export SHELL
4499 _ASEOF
4500 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4501 ## -------------------- ##
4502 ## M4sh Initialization. ##
4503 ## -------------------- ##
4504
4505 # Be more Bourne compatible
4506 DUALCASE=1; export DUALCASE # for MKS sh
4507 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
4508 then :
4509 emulate sh
4510 NULLCMD=:
4511 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4512 # is contrary to our usage. Disable this feature.
4513 alias -g '${1+"$@"}'='"$@"'
4514 setopt NO_GLOB_SUBST
4515 else case e in #(
4516 e) case `(set -o) 2>/dev/null` in #(
4517 *posix*) :
4518 set -o posix ;; #(
4519 *) :
4520 ;;
4521 esac ;;
4522 esac
4523 fi
4524
4525
4526
4527 # Reset variables that may have inherited troublesome values from
4528 # the environment.
4529
4530 # IFS needs to be set, to space, tab, and newline, in precisely that order.
4531 # (If _AS_PATH_WALK were called with IFS unset, it would have the
4532 # side effect of setting IFS to empty, thus disabling word splitting.)
4533 # Quoting is to prevent editors from complaining about space-tab.
4534 as_nl='
4535 '
4536 export as_nl
4537 IFS=" "" $as_nl"
4538
4539 PS1='$ '
4540 PS2='> '
4541 PS4='+ '
4542
4543 # Ensure predictable behavior from utilities with locale-dependent output.
4544 LC_ALL=C
4545 export LC_ALL
4546 LANGUAGE=C
4547 export LANGUAGE
4548
4549 # We cannot yet rely on "unset" to work, but we need these variables
4550 # to be unset--not just set to an empty or harmless value--now, to
4551 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
4552 # also avoids known problems related to "unset" and subshell syntax
4553 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
4554 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
4555 do eval test \${$as_var+y} \
4556 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4557 done
4558
4559 # Ensure that fds 0, 1, and 2 are open.
4560 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
4561 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
4562 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
4563
4564 # The user is always right.
4565 if ${PATH_SEPARATOR+false} :; then
4566 PATH_SEPARATOR=:
4567 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4568 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4569 PATH_SEPARATOR=';'
4570 }
4571 fi
4572
4573
4574 # Find who we are. Look in the path if we contain no directory separator.
4575 as_myself=
4576 case $0 in #((
4577 *[\\/]* ) as_myself=$0 ;;
4578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581 IFS=$as_save_IFS
4582 case $as_dir in #(((
4583 '') as_dir=./ ;;
4584 */) ;;
4585 *) as_dir=$as_dir/ ;;
4586 esac
4587 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
4588 done
4589 IFS=$as_save_IFS
4590
4591 ;;
4592 esac
4593 # We did not find ourselves, most probably we were run as 'sh COMMAND'
4594 # in which case we are not to be found in the path.
4595 if test "x$as_myself" = x; then
4596 as_myself=$0
4597 fi
4598 if test ! -f "$as_myself"; then
4599 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4600 exit 1
4601 fi
4602
4603
4604
4605 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4606 # ----------------------------------------
4607 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4608 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4609 # script with STATUS, using 1 if that was 0.
4610 as_fn_error ()
4611 {
4612 as_status=$1; test $as_status -eq 0 && as_status=1
4613 if test "$4"; then
4614 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4616 fi
4617 printf "%s\n" "$as_me: error: $2" >&2
4618 as_fn_exit $as_status
4619 } # as_fn_error
4620
4621
4622 # as_fn_set_status STATUS
4623 # -----------------------
4624 # Set $? to STATUS, without forking.
4625 as_fn_set_status ()
4626 {
4627 return $1
4628 } # as_fn_set_status
4629
4630 # as_fn_exit STATUS
4631 # -----------------
4632 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4633 as_fn_exit ()
4634 {
4635 set +e
4636 as_fn_set_status $1
4637 exit $1
4638 } # as_fn_exit
4639
4640 # as_fn_unset VAR
4641 # ---------------
4642 # Portably unset VAR.
4643 as_fn_unset ()
4644 {
4645 { eval $1=; unset $1;}
4646 }
4647 as_unset=as_fn_unset
4648
4649 # as_fn_append VAR VALUE
4650 # ----------------------
4651 # Append the text in VALUE to the end of the definition contained in VAR. Take
4652 # advantage of any shell optimizations that allow amortized linear growth over
4653 # repeated appends, instead of the typical quadratic growth present in naive
4654 # implementations.
4655 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
4656 then :
4657 eval 'as_fn_append ()
4658 {
4659 eval $1+=\$2
4660 }'
4661 else case e in #(
4662 e) as_fn_append ()
4663 {
4664 eval $1=\$$1\$2
4665 } ;;
4666 esac
4667 fi # as_fn_append
4668
4669 # as_fn_arith ARG...
4670 # ------------------
4671 # Perform arithmetic evaluation on the ARGs, and store the result in the
4672 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4673 # must be portable across $(()) and expr.
4674 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4675 then :
4676 eval 'as_fn_arith ()
4677 {
4678 as_val=$(( $* ))
4679 }'
4680 else case e in #(
4681 e) as_fn_arith ()
4682 {
4683 as_val=`expr "$@" || test $? -eq 1`
4684 } ;;
4685 esac
4686 fi # as_fn_arith
4687
4688
4689 if expr a : '\(a\)' >/dev/null 2>&1 &&
4690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4691 as_expr=expr
4692 else
4693 as_expr=false
4694 fi
4695
4696 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4697 as_basename=basename
4698 else
4699 as_basename=false
4700 fi
4701
4702 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4703 as_dirname=dirname
4704 else
4705 as_dirname=false
4706 fi
4707
4708 as_me=`$as_basename -- "$0" ||
4709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4710 X"$0" : 'X\(//\)$' \| \
4711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4712 printf "%s\n" X/"$0" |
4713 sed '/^.*\/\([^/][^/]*\)\/*$/{
4714 s//\1/
4715 q
4716 }
4717 /^X\/\(\/\/\)$/{
4718 s//\1/
4719 q
4720 }
4721 /^X\/\(\/\).*/{
4722 s//\1/
4723 q
4724 }
4725 s/.*/./; q'`
4726
4727 # Avoid depending upon Character Ranges.
4728 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4731 as_cr_digits='0123456789'
4732 as_cr_alnum=$as_cr_Letters$as_cr_digits
4733
4734
4735 # Determine whether it's possible to make 'echo' print without a newline.
4736 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
4737 # for compatibility with existing Makefiles.
4738 ECHO_C= ECHO_N= ECHO_T=
4739 case `echo -n x` in #(((((
4740 -n*)
4741 case `echo 'xy\c'` in
4742 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4743 xy) ECHO_C='\c';;
4744 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4745 ECHO_T=' ';;
4746 esac;;
4747 *)
4748 ECHO_N='-n';;
4749 esac
4750
4751 # For backward compatibility with old third-party macros, we provide
4752 # the shell variables $as_echo and $as_echo_n. New code should use
4753 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
4754 as_echo='printf %s\n'
4755 as_echo_n='printf %s'
4756
4757 rm -f conf$$ conf$$.exe conf$$.file
4758 if test -d conf$$.dir; then
4759 rm -f conf$$.dir/conf$$.file
4760 else
4761 rm -f conf$$.dir
4762 mkdir conf$$.dir 2>/dev/null
4763 fi
4764 if (echo >conf$$.file) 2>/dev/null; then
4765 if ln -s conf$$.file conf$$ 2>/dev/null; then
4766 as_ln_s='ln -s'
4767 # ... but there are two gotchas:
4768 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
4769 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
4770 # In both cases, we have to default to 'cp -pR'.
4771 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4772 as_ln_s='cp -pR'
4773 elif ln conf$$.file conf$$ 2>/dev/null; then
4774 as_ln_s=ln
4775 else
4776 as_ln_s='cp -pR'
4777 fi
4778 else
4779 as_ln_s='cp -pR'
4780 fi
4781 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4782 rmdir conf$$.dir 2>/dev/null
4783
4784
4785 # as_fn_mkdir_p
4786 # -------------
4787 # Create "$as_dir" as a directory, including parents if necessary.
4788 as_fn_mkdir_p ()
4789 {
4790
4791 case $as_dir in #(
4792 -*) as_dir=./$as_dir;;
4793 esac
4794 test -d "$as_dir" || eval $as_mkdir_p || {
4795 as_dirs=
4796 while :; do
4797 case $as_dir in #(
4798 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4799 *) as_qdir=$as_dir;;
4800 esac
4801 as_dirs="'$as_qdir' $as_dirs"
4802 as_dir=`$as_dirname -- "$as_dir" ||
4803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4804 X"$as_dir" : 'X\(//\)[^/]' \| \
4805 X"$as_dir" : 'X\(//\)$' \| \
4806 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4807 printf "%s\n" X"$as_dir" |
4808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4809 s//\1/
4810 q
4811 }
4812 /^X\(\/\/\)[^/].*/{
4813 s//\1/
4814 q
4815 }
4816 /^X\(\/\/\)$/{
4817 s//\1/
4818 q
4819 }
4820 /^X\(\/\).*/{
4821 s//\1/
4822 q
4823 }
4824 s/.*/./; q'`
4825 test -d "$as_dir" && break
4826 done
4827 test -z "$as_dirs" || eval "mkdir $as_dirs"
4828 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4829
4830
4831 } # as_fn_mkdir_p
4832 if mkdir -p . 2>/dev/null; then
4833 as_mkdir_p='mkdir -p "$as_dir"'
4834 else
4835 test -d ./-p && rmdir ./-p
4836 as_mkdir_p=false
4837 fi
4838
4839
4840 # as_fn_executable_p FILE
4841 # -----------------------
4842 # Test if FILE is an executable regular file.
4843 as_fn_executable_p ()
4844 {
4845 test -f "$1" && test -x "$1"
4846 } # as_fn_executable_p
4847 as_test_x='test -x'
4848 as_executable_p=as_fn_executable_p
4849
4850 # Sed expression to map a string onto a valid CPP name.
4851 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4852 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
4853
4854 # Sed expression to map a string onto a valid variable name.
4855 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4856 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
4857
4858
4859 exec 6>&1
4860 ## ----------------------------------- ##
4861 ## Main body of $CONFIG_STATUS script. ##
4862 ## ----------------------------------- ##
4863 _ASEOF
4864 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4865
4866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4867 # Save the log message, to keep $0 and so on meaningful, and to
4868 # report actual input values of CONFIG_FILES etc. instead of their
4869 # values after options handling.
4870 ac_log="
4871 This file was extended by Cairo $as_me 1.3, which was
4872 generated by GNU Autoconf 2.72. Invocation command line was
4873
4874 CONFIG_FILES = $CONFIG_FILES
4875 CONFIG_HEADERS = $CONFIG_HEADERS
4876 CONFIG_LINKS = $CONFIG_LINKS
4877 CONFIG_COMMANDS = $CONFIG_COMMANDS
4878 $ $0 $@
4879
4880 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4881 "
4882
4883 _ACEOF
4884
4885 case $ac_config_files in *"
4886 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4887 esac
4888
4889 case $ac_config_headers in *"
4890 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4891 esac
4892
4893
4894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4895 # Files that config.status was made for.
4896 config_files="$ac_config_files"
4897 config_headers="$ac_config_headers"
4898
4899 _ACEOF
4900
4901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4902 ac_cs_usage="\
4903 '$as_me' instantiates files and other configuration actions
4904 from templates according to the current configuration. Unless the files
4905 and actions are specified as TAGs, all are instantiated by default.
4906
4907 Usage: $0 [OPTION]... [TAG]...
4908
4909 -h, --help print this help, then exit
4910 -V, --version print version number and configuration settings, then exit
4911 --config print configuration, then exit
4912 -q, --quiet, --silent
4913 do not print progress messages
4914 -d, --debug don't remove temporary files
4915 --recheck update $as_me by reconfiguring in the same conditions
4916 --file=FILE[:TEMPLATE]
4917 instantiate the configuration file FILE
4918 --header=FILE[:TEMPLATE]
4919 instantiate the configuration header FILE
4920
4921 Configuration files:
4922 $config_files
4923
4924 Configuration headers:
4925 $config_headers
4926
4927 Report bugs to <[email protected]>."
4928
4929 _ACEOF
4930 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
4931 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
4932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4933 ac_cs_config='$ac_cs_config_escaped'
4934 ac_cs_version="\\
4935 Cairo config.status 1.3
4936 configured by $0, generated by GNU Autoconf 2.72,
4937 with options \\"\$ac_cs_config\\"
4938
4939 Copyright (C) 2023 Free Software Foundation, Inc.
4940 This config.status script is free software; the Free Software Foundation
4941 gives unlimited permission to copy, distribute and modify it."
4942
4943 ac_pwd='$ac_pwd'
4944 srcdir='$srcdir'
4945 test -n "\$AWK" || AWK=awk
4946 _ACEOF
4947
4948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4949 # The default lists apply if the user does not specify any file.
4950 ac_need_defaults=:
4951 while test $# != 0
4952 do
4953 case $1 in
4954 --*=?*)
4955 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4956 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4957 ac_shift=:
4958 ;;
4959 --*=)
4960 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4961 ac_optarg=
4962 ac_shift=:
4963 ;;
4964 *)
4965 ac_option=$1
4966 ac_optarg=$2
4967 ac_shift=shift
4968 ;;
4969 esac
4970
4971 case $ac_option in
4972 # Handling of the options.
4973 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4974 ac_cs_recheck=: ;;
4975 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4976 printf "%s\n" "$ac_cs_version"; exit ;;
4977 --config | --confi | --conf | --con | --co | --c )
4978 printf "%s\n" "$ac_cs_config"; exit ;;
4979 --debug | --debu | --deb | --de | --d | -d )
4980 debug=: ;;
4981 --file | --fil | --fi | --f )
4982 $ac_shift
4983 case $ac_optarg in
4984 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4985 '') as_fn_error $? "missing file argument" ;;
4986 esac
4987 as_fn_append CONFIG_FILES " '$ac_optarg'"
4988 ac_need_defaults=false;;
4989 --header | --heade | --head | --hea )
4990 $ac_shift
4991 case $ac_optarg in
4992 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4993 esac
4994 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4995 ac_need_defaults=false;;
4996 --he | --h)
4997 # Conflict between --help and --header
4998 as_fn_error $? "ambiguous option: '$1'
4999 Try '$0 --help' for more information.";;
5000 --help | --hel | -h )
5001 printf "%s\n" "$ac_cs_usage"; exit ;;
5002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5003 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5004 ac_cs_silent=: ;;
5005
5006 # This is an error.
5007 -*) as_fn_error $? "unrecognized option: '$1'
5008 Try '$0 --help' for more information." ;;
5009
5010 *) as_fn_append ac_config_targets " $1"
5011 ac_need_defaults=false ;;
5012
5013 esac
5014 shift
5015 done
5016
5017 ac_configure_extra_args=
5018
5019 if $ac_cs_silent; then
5020 exec 6>/dev/null
5021 ac_configure_extra_args="$ac_configure_extra_args --silent"
5022 fi
5023
5024 _ACEOF
5025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5026 if \$ac_cs_recheck; then
5027 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5028 shift
5029 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5030 CONFIG_SHELL='$SHELL'
5031 export CONFIG_SHELL
5032 exec "\$@"
5033 fi
5034
5035 _ACEOF
5036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5037 exec 5>>config.log
5038 {
5039 echo
5040 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5041 ## Running $as_me. ##
5042 _ASBOX
5043 printf "%s\n" "$ac_log"
5044 } >&5
5045
5046 _ACEOF
5047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5048 _ACEOF
5049
5050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5051
5052 # Handling of arguments.
5053 for ac_config_target in $ac_config_targets
5054 do
5055 case $ac_config_target in
5056 "src/cconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/cconfig.h" ;;
5057 "src/Makevars") CONFIG_FILES="$CONFIG_FILES src/Makevars" ;;
5058
5059 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
5060 esac
5061 done
5062
5063
5064 # If the user did not use the arguments to specify the items to instantiate,
5065 # then the envvar interface is used. Set only those that are not.
5066 # We use the long form for the default assignment because of an extremely
5067 # bizarre bug on SunOS 4.1.3.
5068 if $ac_need_defaults; then
5069 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5070 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
5071 fi
5072
5073 # Have a temporary directory for convenience. Make it in the build tree
5074 # simply because there is no reason against having it here, and in addition,
5075 # creating and moving files from /tmp can sometimes cause problems.
5076 # Hook for its removal unless debugging.
5077 # Note that there is a small window in which the directory will not be cleaned:
5078 # after its creation but before its name has been assigned to '$tmp'.
5079 $debug ||
5080 {
5081 tmp= ac_tmp=
5082 trap 'exit_status=$?
5083 : "${ac_tmp:=$tmp}"
5084 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5085 ' 0
5086 trap 'as_fn_exit 1' 1 2 13 15
5087 }
5088 # Create a (secure) tmp directory for tmp files.
5089
5090 {
5091 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5092 test -d "$tmp"
5093 } ||
5094 {
5095 tmp=./conf$$-$RANDOM
5096 (umask 077 && mkdir "$tmp")
5097 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5098 ac_tmp=$tmp
5099
5100 # Set up the scripts for CONFIG_FILES section.
5101 # No need to generate them if there are no CONFIG_FILES.
5102 # This happens for instance with './config.status config.h'.
5103 if test -n "$CONFIG_FILES"; then
5104
5105
5106 ac_cr=`echo X | tr X '\015'`
5107 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5108 # But we know of no other shell where ac_cr would be empty at this
5109 # point, so we can use a bashism as a fallback.
5110 if test "x$ac_cr" = x; then
5111 eval ac_cr=\$\'\\r\'
5112 fi
5113 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5114 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5115 ac_cs_awk_cr='\\r'
5116 else
5117 ac_cs_awk_cr=$ac_cr
5118 fi
5119
5120 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5121 _ACEOF
5122
5123
5124 {
5125 echo "cat >conf$$subs.awk <<_ACEOF" &&
5126 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5127 echo "_ACEOF"
5128 } >conf$$subs.sh ||
5129 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5130 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5131 ac_delim='%!_!# '
5132 for ac_last_try in false false false false false :; do
5133 . ./conf$$subs.sh ||
5134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5135
5136 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5137 if test $ac_delim_n = $ac_delim_num; then
5138 break
5139 elif $ac_last_try; then
5140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5141 else
5142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5143 fi
5144 done
5145 rm -f conf$$subs.sh
5146
5147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5148 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5149 _ACEOF
5150 sed -n '
5151 h
5152 s/^/S["/; s/!.*/"]=/
5153 p
5154 g
5155 s/^[^!]*!//
5156 :repl
5157 t repl
5158 s/'"$ac_delim"'$//
5159 t delim
5160 :nl
5161 h
5162 s/\(.\{148\}\)..*/\1/
5163 t more1
5164 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5165 p
5166 n
5167 b repl
5168 :more1
5169 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5170 p
5171 g
5172 s/.\{148\}//
5173 t nl
5174 :delim
5175 h
5176 s/\(.\{148\}\)..*/\1/
5177 t more2
5178 s/["\\]/\\&/g; s/^/"/; s/$/"/
5179 p
5180 b
5181 :more2
5182 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5183 p
5184 g
5185 s/.\{148\}//
5186 t delim
5187 ' <conf$$subs.awk | sed '
5188 /^[^""]/{
5189 N
5190 s/\n//
5191 }
5192 ' >>$CONFIG_STATUS || ac_write_fail=1
5193 rm -f conf$$subs.awk
5194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5195 _ACAWK
5196 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5197 for (key in S) S_is_set[key] = 1
5198 FS = ""
5199
5200 }
5201 {
5202 line = $ 0
5203 nfields = split(line, field, "@")
5204 substed = 0
5205 len = length(field[1])
5206 for (i = 2; i < nfields; i++) {
5207 key = field[i]
5208 keylen = length(key)
5209 if (S_is_set[key]) {
5210 value = S[key]
5211 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5212 len += length(value) + length(field[++i])
5213 substed = 1
5214 } else
5215 len += 1 + keylen
5216 }
5217
5218 print line
5219 }
5220
5221 _ACAWK
5222 _ACEOF
5223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5224 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5225 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5226 else
5227 cat
5228 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5229 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5230 _ACEOF
5231
5232 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5233 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5234 # trailing colons and then remove the whole line if VPATH becomes empty
5235 # (actually we leave an empty line to preserve line numbers).
5236 if test "x$srcdir" = x.; then
5237 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5238 h
5239 s///
5240 s/^/:/
5241 s/[ ]*$/:/
5242 s/:\$(srcdir):/:/g
5243 s/:\${srcdir}:/:/g
5244 s/:@srcdir@:/:/g
5245 s/^:*//
5246 s/:*$//
5247 x
5248 s/\(=[ ]*\).*/\1/
5249 G
5250 s/\n//
5251 s/^[^=]*=[ ]*$//
5252 }'
5253 fi
5254
5255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5256 fi # test -n "$CONFIG_FILES"
5257
5258 # Set up the scripts for CONFIG_HEADERS section.
5259 # No need to generate them if there are no CONFIG_HEADERS.
5260 # This happens for instance with './config.status Makefile'.
5261 if test -n "$CONFIG_HEADERS"; then
5262 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5263 BEGIN {
5264 _ACEOF
5265
5266 # Transform confdefs.h into an awk script 'defines.awk', embedded as
5267 # here-document in config.status, that substitutes the proper values into
5268 # config.h.in to produce config.h.
5269
5270 # Create a delimiter string that does not exist in confdefs.h, to ease
5271 # handling of long lines.
5272 ac_delim='%!_!# '
5273 for ac_last_try in false false :; do
5274 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5275 if test -z "$ac_tt"; then
5276 break
5277 elif $ac_last_try; then
5278 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5279 else
5280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5281 fi
5282 done
5283
5284 # For the awk script, D is an array of macro values keyed by name,
5285 # likewise P contains macro parameters if any. Preserve backslash
5286 # newline sequences.
5287
5288 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5289 sed -n '
5290 s/.\{148\}/&'"$ac_delim"'/g
5291 t rset
5292 :rset
5293 s/^[ ]*#[ ]*define[ ][ ]*/ /
5294 t def
5295 d
5296 :def
5297 s/\\$//
5298 t bsnl
5299 s/["\\]/\\&/g
5300 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5301 D["\1"]=" \3"/p
5302 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5303 d
5304 :bsnl
5305 s/["\\]/\\&/g
5306 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5307 D["\1"]=" \3\\\\\\n"\\/p
5308 t cont
5309 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5310 t cont
5311 d
5312 :cont
5313 n
5314 s/.\{148\}/&'"$ac_delim"'/g
5315 t clear
5316 :clear
5317 s/\\$//
5318 t bsnlc
5319 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5320 d
5321 :bsnlc
5322 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5323 b cont
5324 ' <confdefs.h | sed '
5325 s/'"$ac_delim"'/"\\\
5326 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5327
5328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5329 for (key in D) D_is_set[key] = 1
5330 FS = ""
5331 }
5332 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5333 line = \$ 0
5334 split(line, arg, " ")
5335 if (arg[1] == "#") {
5336 defundef = arg[2]
5337 mac1 = arg[3]
5338 } else {
5339 defundef = substr(arg[1], 2)
5340 mac1 = arg[2]
5341 }
5342 split(mac1, mac2, "(") #)
5343 macro = mac2[1]
5344 prefix = substr(line, 1, index(line, defundef) - 1)
5345 if (D_is_set[macro]) {
5346 # Preserve the white space surrounding the "#".
5347 print prefix "define", macro P[macro] D[macro]
5348 next
5349 } else {
5350 # Replace #undef with comments. This is necessary, for example,
5351 # in the case of _POSIX_SOURCE, which is predefined and required
5352 # on some systems where configure will not decide to define it.
5353 if (defundef == "undef") {
5354 print "/*", prefix defundef, macro, "*/"
5355 next
5356 }
5357 }
5358 }
5359 { print }
5360 _ACAWK
5361 _ACEOF
5362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5363 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5364 fi # test -n "$CONFIG_HEADERS"
5365
5366
5367 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5368 shift
5369 for ac_tag
5370 do
5371 case $ac_tag in
5372 :[FHLC]) ac_mode=$ac_tag; continue;;
5373 esac
5374 case $ac_mode$ac_tag in
5375 :[FHL]*:*);;
5376 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
5377 :[FH]-) ac_tag=-:-;;
5378 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5379 esac
5380 ac_save_IFS=$IFS
5381 IFS=:
5382 set x $ac_tag
5383 IFS=$ac_save_IFS
5384 shift
5385 ac_file=$1
5386 shift
5387
5388 case $ac_mode in
5389 :L) ac_source=$1;;
5390 :[FH])
5391 ac_file_inputs=
5392 for ac_f
5393 do
5394 case $ac_f in
5395 -) ac_f="$ac_tmp/stdin";;
5396 *) # Look for the file first in the build tree, then in the source tree
5397 # (if the path is not absolute). The absolute path cannot be DOS-style,
5398 # because $ac_f cannot contain ':'.
5399 test -f "$ac_f" ||
5400 case $ac_f in
5401 [\\/$]*) false;;
5402 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5403 esac ||
5404 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
5405 esac
5406 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5407 as_fn_append ac_file_inputs " '$ac_f'"
5408 done
5409
5410 # Let's still pretend it is 'configure' which instantiates (i.e., don't
5411 # use $as_me), people would be surprised to read:
5412 # /* config.h. Generated by config.status. */
5413 configure_input='Generated from '`
5414 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5415 `' by configure.'
5416 if test x"$ac_file" != x-; then
5417 configure_input="$ac_file. $configure_input"
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5419 printf "%s\n" "$as_me: creating $ac_file" >&6;}
5420 fi
5421 # Neutralize special characters interpreted by sed in replacement strings.
5422 case $configure_input in #(
5423 *\&* | *\|* | *\\* )
5424 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
5425 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5426 *) ac_sed_conf_input=$configure_input;;
5427 esac
5428
5429 case $ac_tag in
5430 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5432 esac
5433 ;;
5434 esac
5435
5436 ac_dir=`$as_dirname -- "$ac_file" ||
5437 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5438 X"$ac_file" : 'X\(//\)[^/]' \| \
5439 X"$ac_file" : 'X\(//\)$' \| \
5440 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5441 printf "%s\n" X"$ac_file" |
5442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5443 s//\1/
5444 q
5445 }
5446 /^X\(\/\/\)[^/].*/{
5447 s//\1/
5448 q
5449 }
5450 /^X\(\/\/\)$/{
5451 s//\1/
5452 q
5453 }
5454 /^X\(\/\).*/{
5455 s//\1/
5456 q
5457 }
5458 s/.*/./; q'`
5459 as_dir="$ac_dir"; as_fn_mkdir_p
5460 ac_builddir=.
5461
5462 case "$ac_dir" in
5463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5464 *)
5465 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
5466 # A ".." for each directory in $ac_dir_suffix.
5467 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5468 case $ac_top_builddir_sub in
5469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5471 esac ;;
5472 esac
5473 ac_abs_top_builddir=$ac_pwd
5474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5475 # for backward compatibility:
5476 ac_top_builddir=$ac_top_build_prefix
5477
5478 case $srcdir in
5479 .) # We are building in place.
5480 ac_srcdir=.
5481 ac_top_srcdir=$ac_top_builddir_sub
5482 ac_abs_top_srcdir=$ac_pwd ;;
5483 [\\/]* | ?:[\\/]* ) # Absolute name.
5484 ac_srcdir=$srcdir$ac_dir_suffix;
5485 ac_top_srcdir=$srcdir
5486 ac_abs_top_srcdir=$srcdir ;;
5487 *) # Relative name.
5488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5489 ac_top_srcdir=$ac_top_build_prefix$srcdir
5490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5491 esac
5492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5493
5494
5495 case $ac_mode in
5496 :F)
5497 #
5498 # CONFIG_FILE
5499 #
5500
5501 _ACEOF
5502
5503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5504 # If the template does not know about datarootdir, expand it.
5505 # FIXME: This hack should be removed a few years after 2.60.
5506 ac_datarootdir_hack=; ac_datarootdir_seen=
5507 ac_sed_dataroot='
5508 /datarootdir/ {
5509 p
5510 q
5511 }
5512 /@datadir@/p
5513 /@docdir@/p
5514 /@infodir@/p
5515 /@localedir@/p
5516 /@mandir@/p'
5517 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5518 *datarootdir*) ac_datarootdir_seen=yes;;
5519 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5521 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5522 _ACEOF
5523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5524 ac_datarootdir_hack='
5525 s&@datadir@&$datadir&g
5526 s&@docdir@&$docdir&g
5527 s&@infodir@&$infodir&g
5528 s&@localedir@&$localedir&g
5529 s&@mandir@&$mandir&g
5530 s&\\\${datarootdir}&$datarootdir&g' ;;
5531 esac
5532 _ACEOF
5533
5534 # Neutralize VPATH when '$srcdir' = '.'.
5535 # Shell code in configure.ac might set extrasub.
5536 # FIXME: do we really want to maintain this feature?
5537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5538 ac_sed_extra="$ac_vpsub
5539 $extrasub
5540 _ACEOF
5541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5542 :t
5543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5544 s|@configure_input@|$ac_sed_conf_input|;t t
5545 s&@top_builddir@&$ac_top_builddir_sub&;t t
5546 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5547 s&@srcdir@&$ac_srcdir&;t t
5548 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5549 s&@top_srcdir@&$ac_top_srcdir&;t t
5550 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5551 s&@builddir@&$ac_builddir&;t t
5552 s&@abs_builddir@&$ac_abs_builddir&;t t
5553 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5554 $ac_datarootdir_hack
5555 "
5556 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5557 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5558
5559 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5560 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5561 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5562 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
5564 which seems to be undefined. Please make sure it is defined" >&5
5565 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
5566 which seems to be undefined. Please make sure it is defined" >&2;}
5567
5568 rm -f "$ac_tmp/stdin"
5569 case $ac_file in
5570 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5571 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5572 esac \
5573 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5574 ;;
5575 :H)
5576 #
5577 # CONFIG_HEADER
5578 #
5579 if test x"$ac_file" != x-; then
5580 {
5581 printf "%s\n" "/* $configure_input */" >&1 \
5582 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5583 } >"$ac_tmp/config.h" \
5584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5585 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5587 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
5588 else
5589 rm -f "$ac_file"
5590 mv "$ac_tmp/config.h" "$ac_file" \
5591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5592 fi
5593 else
5594 printf "%s\n" "/* $configure_input */" >&1 \
5595 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5596 || as_fn_error $? "could not create -" "$LINENO" 5
5597 fi
5598 ;;
5599
5600
5601 esac
5602
5603 done # for ac_tag
5604
5605
5606 as_fn_exit 0
5607 _ACEOF
5608 ac_clean_files=$ac_clean_files_save
5609
5610 test $ac_write_fail = 0 ||
5611 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5612
5613
5614 # configure is writing to config.log, and then calls config.status.
5615 # config.status does its own redirection, appending to config.log.
5616 # Unfortunately, on DOS this fails, as config.log is still kept open
5617 # by configure, so config.status won't be able to write to it; its
5618 # output is simply discarded. So we exec the FD to /dev/null,
5619 # effectively closing config.log, so it can be properly (re)opened and
5620 # appended to by config.status. When coming back to configure, we
5621 # need to make the FD available again.
5622 if test "$no_create" != yes; then
5623 ac_cs_success=:
5624 ac_config_status_args=
5625 test "$silent" = yes &&
5626 ac_config_status_args="$ac_config_status_args --quiet"
5627 exec 5>/dev/null
5628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5629 exec 5>>config.log
5630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5631 # would make configure fail if this is the last instruction.
5632 $ac_cs_success || as_fn_exit 1
5633 fi
5634 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5636 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5637 fi
5638
5639