Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / modules / freetype2 / builds / unix / configure
blobe818cef313c877e8efba976792970dae4c037ed0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for FreeType 2.3.7.
5 # Report bugs to <freetype@nongnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 as_nl='
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
161 /^X\/\(\/\/\)$/{
162 s//\1/
165 /^X\/\(\/\).*/{
166 s//\1/
169 s/.*/./; q'`
171 # CDPATH.
172 $as_unset CDPATH
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
186 as_func_success () {
187 as_func_return 0
189 as_func_failure () {
190 as_func_return 1
192 as_func_ret_success () {
193 return 0
195 as_func_ret_failure () {
196 return 1
199 exitcode=0
200 if as_func_success; then
202 else
203 exitcode=1
204 echo as_func_success failed.
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 else
227 exitcode=1
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
298 (as_func_return () {
299 (exit $1)
301 as_func_success () {
302 as_func_return 0
304 as_func_failure () {
305 as_func_return 1
307 as_func_ret_success () {
308 return 0
310 as_func_ret_failure () {
311 return 1
314 exitcode=0
315 if as_func_success; then
317 else
318 exitcode=1
319 echo as_func_success failed.
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 else
342 exitcode=1
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354 _ASEOF
355 }; then
356 break
361 done
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
388 (exit \$1)
390 as_func_success () {
391 as_func_return 0
393 as_func_failure () {
394 as_func_return 1
396 as_func_ret_success () {
397 return 0
399 as_func_ret_failure () {
400 return 1
403 exitcode=0
404 if as_func_success; then
406 else
407 exitcode=1
408 echo as_func_success failed.
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 else
431 exitcode=1
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
468 :lineno
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
532 else
533 as_ln_s='cp -p'
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
580 case X$lt_ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
585 esac
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
607 _LT_EOF
608 exit 0
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
625 done
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
649 done
650 IFS="$lt_save_ifs"
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
698 prev="$cmd"
699 done
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 # Initializations.
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
746 PACKAGE_NAME='FreeType'
747 PACKAGE_TARNAME='freetype'
748 PACKAGE_VERSION='2.3.7'
749 PACKAGE_STRING='FreeType 2.3.7'
750 PACKAGE_BUGREPORT='freetype@nongnu.org'
752 ac_unique_file="ftconfig.in"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 # include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 # include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
789 ac_subst_vars='SHELL
790 PATH_SEPARATOR
791 PACKAGE_NAME
792 PACKAGE_TARNAME
793 PACKAGE_VERSION
794 PACKAGE_STRING
795 PACKAGE_BUGREPORT
796 exec_prefix
797 prefix
798 program_transform_name
799 bindir
800 sbindir
801 libexecdir
802 datarootdir
803 datadir
804 sysconfdir
805 sharedstatedir
806 localstatedir
807 includedir
808 oldincludedir
809 docdir
810 infodir
811 htmldir
812 dvidir
813 pdfdir
814 psdir
815 libdir
816 localedir
817 mandir
818 DEFS
819 ECHO_C
820 ECHO_N
821 ECHO_T
822 LIBS
823 build_alias
824 host_alias
825 target_alias
826 version_info
827 ft_version
828 build
829 build_cpu
830 build_vendor
831 build_os
832 host
833 host_cpu
834 host_vendor
835 host_os
836 target
837 target_cpu
838 target_vendor
839 target_os
841 CFLAGS
842 LDFLAGS
843 CPPFLAGS
844 ac_ct_CC
845 EXEEXT
846 OBJEXT
848 CC_BUILD
849 EXEEXT_BUILD
850 XX_CFLAGS
851 XX_ANSIFLAGS
853 RMDIR
854 INSTALL_PROGRAM
855 INSTALL_SCRIPT
856 INSTALL_DATA
857 GREP
858 EGREP
859 FTSYS_SRC
860 LIBZ
861 FT2_EXTRA_LIBS
862 SYSTEM_ZLIB
864 DLLTOOL
865 OBJDUMP
866 LIBTOOL
868 FGREP
870 DUMPBIN
871 ac_ct_DUMPBIN
873 LN_S
875 STRIP
876 RANLIB
877 lt_ECHO
878 DSYMUTIL
879 NMEDIT
880 LIPO
881 OTOOL
882 OTOOL64
883 hardcode_libdir_flag_spec
885 build_libtool_libs
886 LIBOBJS
887 LTLIBOBJS'
888 ac_subst_files=''
889 ac_user_opts='
890 enable_option_checking
891 with_zlib
892 with_old_mac_fonts
893 with_fsspec
894 with_fsref
895 with_quickdraw_toolbox
896 with_quickdraw_carbon
897 with_ats
898 enable_shared
899 enable_static
900 with_pic
901 enable_fast_install
902 with_gnu_ld
903 enable_libtool_lock
905 ac_precious_vars='build_alias
906 host_alias
907 target_alias
909 CFLAGS
910 LDFLAGS
911 LIBS
912 CPPFLAGS
913 CPP'
916 # Initialize some variables set by options.
917 ac_init_help=
918 ac_init_version=false
919 ac_unrecognized_opts=
920 ac_unrecognized_sep=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
923 cache_file=/dev/null
924 exec_prefix=NONE
925 no_create=
926 no_recursion=
927 prefix=NONE
928 program_prefix=NONE
929 program_suffix=NONE
930 program_transform_name=s,x,x,
931 silent=
932 site=
933 srcdir=
934 verbose=
935 x_includes=NONE
936 x_libraries=NONE
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir='${exec_prefix}/bin'
945 sbindir='${exec_prefix}/sbin'
946 libexecdir='${exec_prefix}/libexec'
947 datarootdir='${prefix}/share'
948 datadir='${datarootdir}'
949 sysconfdir='${prefix}/etc'
950 sharedstatedir='${prefix}/com'
951 localstatedir='${prefix}/var'
952 includedir='${prefix}/include'
953 oldincludedir='/usr/include'
954 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
955 infodir='${datarootdir}/info'
956 htmldir='${docdir}'
957 dvidir='${docdir}'
958 pdfdir='${docdir}'
959 psdir='${docdir}'
960 libdir='${exec_prefix}/lib'
961 localedir='${datarootdir}/locale'
962 mandir='${datarootdir}/man'
964 ac_prev=
965 ac_dashdash=
966 for ac_option
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\$ac_option
971 ac_prev=
972 continue
975 case $ac_option in
976 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 *) ac_optarg=yes ;;
978 esac
980 # Accept the important Cygnus configure options, so we can diagnose typos.
982 case $ac_dashdash$ac_option in
984 ac_dashdash=yes ;;
986 -bindir | --bindir | --bindi | --bind | --bin | --bi)
987 ac_prev=bindir ;;
988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 bindir=$ac_optarg ;;
991 -build | --build | --buil | --bui | --bu)
992 ac_prev=build_alias ;;
993 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
994 build_alias=$ac_optarg ;;
996 -cache-file | --cache-file | --cache-fil | --cache-fi \
997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
998 ac_prev=cache_file ;;
999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1001 cache_file=$ac_optarg ;;
1003 --config-cache | -C)
1004 cache_file=config.cache ;;
1006 -datadir | --datadir | --datadi | --datad)
1007 ac_prev=datadir ;;
1008 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1009 datadir=$ac_optarg ;;
1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1012 | --dataroo | --dataro | --datar)
1013 ac_prev=datarootdir ;;
1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1016 datarootdir=$ac_optarg ;;
1018 -disable-* | --disable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=no ;;
1035 -docdir | --docdir | --docdi | --doc | --do)
1036 ac_prev=docdir ;;
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir=$ac_optarg ;;
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1041 ac_prev=dvidir ;;
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir=$ac_optarg ;;
1045 -enable-* | --enable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_$ac_useropt"
1056 "*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1059 esac
1060 eval enable_$ac_useropt=\$ac_optarg ;;
1062 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064 | --exec | --exe | --ex)
1065 ac_prev=exec_prefix ;;
1066 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068 | --exec=* | --exe=* | --ex=*)
1069 exec_prefix=$ac_optarg ;;
1071 -gas | --gas | --ga | --g)
1072 # Obsolete; use --with-gas.
1073 with_gas=yes ;;
1075 -help | --help | --hel | --he | -h)
1076 ac_init_help=long ;;
1077 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078 ac_init_help=recursive ;;
1079 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080 ac_init_help=short ;;
1082 -host | --host | --hos | --ho)
1083 ac_prev=host_alias ;;
1084 -host=* | --host=* | --hos=* | --ho=*)
1085 host_alias=$ac_optarg ;;
1087 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088 ac_prev=htmldir ;;
1089 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090 | --ht=*)
1091 htmldir=$ac_optarg ;;
1093 -includedir | --includedir | --includedi | --included | --include \
1094 | --includ | --inclu | --incl | --inc)
1095 ac_prev=includedir ;;
1096 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097 | --includ=* | --inclu=* | --incl=* | --inc=*)
1098 includedir=$ac_optarg ;;
1100 -infodir | --infodir | --infodi | --infod | --info | --inf)
1101 ac_prev=infodir ;;
1102 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103 infodir=$ac_optarg ;;
1105 -libdir | --libdir | --libdi | --libd)
1106 ac_prev=libdir ;;
1107 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108 libdir=$ac_optarg ;;
1110 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111 | --libexe | --libex | --libe)
1112 ac_prev=libexecdir ;;
1113 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114 | --libexe=* | --libex=* | --libe=*)
1115 libexecdir=$ac_optarg ;;
1117 -localedir | --localedir | --localedi | --localed | --locale)
1118 ac_prev=localedir ;;
1119 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120 localedir=$ac_optarg ;;
1122 -localstatedir | --localstatedir | --localstatedi | --localstated \
1123 | --localstate | --localstat | --localsta | --localst | --locals)
1124 ac_prev=localstatedir ;;
1125 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127 localstatedir=$ac_optarg ;;
1129 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130 ac_prev=mandir ;;
1131 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132 mandir=$ac_optarg ;;
1134 -nfp | --nfp | --nf)
1135 # Obsolete; use --without-fp.
1136 with_fp=no ;;
1138 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139 | --no-cr | --no-c | -n)
1140 no_create=yes ;;
1142 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144 no_recursion=yes ;;
1146 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148 | --oldin | --oldi | --old | --ol | --o)
1149 ac_prev=oldincludedir ;;
1150 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153 oldincludedir=$ac_optarg ;;
1155 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156 ac_prev=prefix ;;
1157 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158 prefix=$ac_optarg ;;
1160 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161 | --program-pre | --program-pr | --program-p)
1162 ac_prev=program_prefix ;;
1163 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165 program_prefix=$ac_optarg ;;
1167 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168 | --program-suf | --program-su | --program-s)
1169 ac_prev=program_suffix ;;
1170 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172 program_suffix=$ac_optarg ;;
1174 -program-transform-name | --program-transform-name \
1175 | --program-transform-nam | --program-transform-na \
1176 | --program-transform-n | --program-transform- \
1177 | --program-transform | --program-transfor \
1178 | --program-transfo | --program-transf \
1179 | --program-trans | --program-tran \
1180 | --progr-tra | --program-tr | --program-t)
1181 ac_prev=program_transform_name ;;
1182 -program-transform-name=* | --program-transform-name=* \
1183 | --program-transform-nam=* | --program-transform-na=* \
1184 | --program-transform-n=* | --program-transform-=* \
1185 | --program-transform=* | --program-transfor=* \
1186 | --program-transfo=* | --program-transf=* \
1187 | --program-trans=* | --program-tran=* \
1188 | --progr-tra=* | --program-tr=* | --program-t=*)
1189 program_transform_name=$ac_optarg ;;
1191 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192 ac_prev=pdfdir ;;
1193 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194 pdfdir=$ac_optarg ;;
1196 -psdir | --psdir | --psdi | --psd | --ps)
1197 ac_prev=psdir ;;
1198 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199 psdir=$ac_optarg ;;
1201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202 | -silent | --silent | --silen | --sile | --sil)
1203 silent=yes ;;
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 ac_prev=sbindir ;;
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 | --sbi=* | --sb=*)
1209 sbindir=$ac_optarg ;;
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1214 | --sha | --sh)
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 | --sha=* | --sh=*)
1220 sharedstatedir=$ac_optarg ;;
1222 -site | --site | --sit)
1223 ac_prev=site ;;
1224 -site=* | --site=* | --sit=*)
1225 site=$ac_optarg ;;
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 ac_prev=srcdir ;;
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 verbose=yes ;;
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1250 -with-* | --with-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1260 "with_$ac_useropt"
1261 "*) ;;
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1264 esac
1265 eval with_$ac_useropt=\$ac_optarg ;;
1267 -without-* | --without-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1277 "with_$ac_useropt"
1278 "*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=no ;;
1284 --x)
1285 # Obsolete; use --with-x.
1286 with_x=yes ;;
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293 x_includes=$ac_optarg ;;
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300 x_libraries=$ac_optarg ;;
1302 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1303 Try \`$0 --help' for more information." >&2
1304 { (exit 1); exit 1; }; }
1307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312 { (exit 1); exit 1; }; }
1313 eval $ac_envvar=\$ac_optarg
1314 export $ac_envvar ;;
1317 # FIXME: should be removed in autoconf 3.0.
1318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324 esac
1325 done
1327 if test -n "$ac_prev"; then
1328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1330 { (exit 1); exit 1; }; }
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
1336 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1337 { (exit 1); exit 1; }; } ;;
1338 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 esac
1342 # Check all directory arguments for consistency.
1343 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1348 eval ac_val=\$$ac_var
1349 # Remove trailing slashes.
1350 case $ac_val in
1351 */ )
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1354 esac
1355 # Be sure to have absolute directory names.
1356 case $ac_val in
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 esac
1360 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1361 { (exit 1); exit 1; }; }
1362 done
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1367 build=$build_alias
1368 host=$host_alias
1369 target=$target_alias
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1376 If a cross compiler is detected then cross compile mode will be used." >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1378 cross_compiling=yes
1382 ac_tool_prefix=
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385 test "$silent" = yes && exec 6>/dev/null
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1392 { (exit 1); exit 1; }; }
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1395 { (exit 1); exit 1; }; }
1398 # Find the source files, if location was not specified.
1399 if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
1401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$as_myself" ||
1403 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$as_myself" : 'X\(//\)[^/]' \| \
1405 X"$as_myself" : 'X\(//\)$' \| \
1406 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407 $as_echo X"$as_myself" |
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 s//\1/
1412 /^X\(\/\/\)[^/].*/{
1413 s//\1/
1416 /^X\(\/\/\)$/{
1417 s//\1/
1420 /^X\(\/\).*/{
1421 s//\1/
1424 s/.*/./; q'`
1425 srcdir=$ac_confdir
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 srcdir=..
1429 else
1430 ac_srcdir_defaulted=no
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1435 { (exit 1); exit 1; }; }
1437 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438 ac_abs_confdir=`(
1439 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1440 { (exit 1); exit 1; }; }
1441 pwd)`
1442 # When building in place, set srcdir=.
1443 if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 srcdir=.
1446 # Remove unnecessary trailing slashes from srcdir.
1447 # Double slashes in file names in object file debugging info
1448 # mess up M-x gdb in Emacs.
1449 case $srcdir in
1450 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 esac
1452 for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457 done
1460 # Report the --help message.
1462 if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1465 cat <<_ACEOF
1466 \`configure' configures FreeType 2.3.7 to adapt to many kinds of systems.
1468 Usage: $0 [OPTION]... [VAR=VALUE]...
1470 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471 VAR=VALUE. See below for descriptions of some of the useful variables.
1473 Defaults for the options are specified in brackets.
1475 Configuration:
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1486 Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
1488 [$ac_default_prefix]
1489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1490 [PREFIX]
1492 By default, \`make install' will install all the files in
1493 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495 for instance \`--prefix=\$HOME'.
1497 For better control, use the options below.
1499 Fine tuning of the installation directories:
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --libdir=DIR object code libraries [EPREFIX/lib]
1507 --includedir=DIR C header files [PREFIX/include]
1508 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1509 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1510 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1511 --infodir=DIR info documentation [DATAROOTDIR/info]
1512 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1513 --mandir=DIR man documentation [DATAROOTDIR/man]
1514 --docdir=DIR documentation root [DATAROOTDIR/doc/freetype]
1515 --htmldir=DIR html documentation [DOCDIR]
1516 --dvidir=DIR dvi documentation [DOCDIR]
1517 --pdfdir=DIR pdf documentation [DOCDIR]
1518 --psdir=DIR ps documentation [DOCDIR]
1519 _ACEOF
1521 cat <<\_ACEOF
1523 System types:
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 --target=TARGET configure for building compilers for TARGET [HOST]
1527 _ACEOF
1530 if test -n "$ac_init_help"; then
1531 case $ac_init_help in
1532 short | recursive ) echo "Configuration of FreeType 2.3.7:";;
1533 esac
1534 cat <<\_ACEOF
1536 Optional Features:
1537 --disable-option-checking ignore unrecognized --enable/--with options
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --enable-shared[=PKGS] build shared libraries [default=yes]
1541 --enable-static[=PKGS] build static libraries [default=yes]
1542 --enable-fast-install[=PKGS]
1543 optimize for fast installation [default=yes]
1544 --disable-libtool-lock avoid locking (might break parallel builds)
1546 Optional Packages:
1547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1549 --without-zlib use internal zlib instead of system-wide
1550 --with-old-mac-fonts allow Mac resource-based fonts to be used
1551 --with-fsspec use obsolete FSSpec API of MacOS, if available
1552 (default=yes)
1553 --with-fsref use Carbon FSRef API of MacOS, if available
1554 (default=yes)
1555 --with-quickdraw-toolbox
1556 use MacOS QuickDraw in ToolBox, if available
1557 (default=yes)
1558 --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1559 (default=yes)
1560 --with-ats use AppleTypeService, if available (default=yes)
1561 --with-pic try to use only PIC/non-PIC objects [default=use
1562 both]
1563 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1565 Some influential environment variables:
1566 CC C compiler command
1567 CFLAGS C compiler flags
1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1569 nonstandard directory <lib dir>
1570 LIBS libraries to pass to the linker, e.g. -l<library>
1571 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
1573 CPP C preprocessor
1575 Use these variables to override the choices made by `configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1578 Report bugs to <freetype@nongnu.org>.
1579 _ACEOF
1580 ac_status=$?
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1588 continue
1589 ac_builddir=.
1591 case "$ac_dir" in
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 esac ;;
1601 esac
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1607 case $srcdir in
1608 .) # We are building in place.
1609 ac_srcdir=.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1616 *) # Relative name.
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1620 esac
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1631 else
1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633 fi || ac_status=$?
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1635 done
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1640 cat <<\_ACEOF
1641 FreeType configure 2.3.7
1642 generated by GNU Autoconf 2.62
1644 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1645 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1646 This configure script is free software; the Free Software Foundation
1647 gives unlimited permission to copy, distribute and modify it.
1648 _ACEOF
1649 exit
1651 cat >config.log <<_ACEOF
1652 This file contains any messages produced by compilers while
1653 running configure, to aid debugging if configure makes a mistake.
1655 It was created by FreeType $as_me 2.3.7, which was
1656 generated by GNU Autoconf 2.62. Invocation command line was
1658 $ $0 $@
1660 _ACEOF
1661 exec 5>>config.log
1663 cat <<_ASUNAME
1664 ## --------- ##
1665 ## Platform. ##
1666 ## --------- ##
1668 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1669 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1670 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1671 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1672 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1674 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1675 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1677 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1678 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1679 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1680 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1681 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1682 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1683 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1685 _ASUNAME
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 $as_echo "PATH: $as_dir"
1693 done
1694 IFS=$as_save_IFS
1696 } >&5
1698 cat >&5 <<_ACEOF
1701 ## ----------- ##
1702 ## Core tests. ##
1703 ## ----------- ##
1705 _ACEOF
1708 # Keep a trace of the command line.
1709 # Strip out --no-create and --no-recursion so they do not pile up.
1710 # Strip out --silent because we don't want to record it for future runs.
1711 # Also quote any args containing shell meta-characters.
1712 # Make two passes to allow for proper duplicate-argument suppression.
1713 ac_configure_args=
1714 ac_configure_args0=
1715 ac_configure_args1=
1716 ac_must_keep_next=false
1717 for ac_pass in 1 2
1719 for ac_arg
1721 case $ac_arg in
1722 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1724 | -silent | --silent | --silen | --sile | --sil)
1725 continue ;;
1726 *\'*)
1727 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1728 esac
1729 case $ac_pass in
1730 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1732 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1733 if test $ac_must_keep_next = true; then
1734 ac_must_keep_next=false # Got value, back to normal.
1735 else
1736 case $ac_arg in
1737 *=* | --config-cache | -C | -disable-* | --disable-* \
1738 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1739 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1740 | -with-* | --with-* | -without-* | --without-* | --x)
1741 case "$ac_configure_args0 " in
1742 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1743 esac
1745 -* ) ac_must_keep_next=true ;;
1746 esac
1748 ac_configure_args="$ac_configure_args '$ac_arg'"
1750 esac
1751 done
1752 done
1753 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1754 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1756 # When interrupted or exit'd, cleanup temporary files, and complete
1757 # config.log. We remove comments because anyway the quotes in there
1758 # would cause problems or look ugly.
1759 # WARNING: Use '\'' to represent an apostrophe within the trap.
1760 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1761 trap 'exit_status=$?
1762 # Save into config.log some information that might help in debugging.
1764 echo
1766 cat <<\_ASBOX
1767 ## ---------------- ##
1768 ## Cache variables. ##
1769 ## ---------------- ##
1770 _ASBOX
1771 echo
1772 # The following way of writing the cache mishandles newlines in values,
1774 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1775 eval ac_val=\$$ac_var
1776 case $ac_val in #(
1777 *${as_nl}*)
1778 case $ac_var in #(
1779 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1780 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1781 esac
1782 case $ac_var in #(
1783 _ | IFS | as_nl) ;; #(
1784 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1785 *) $as_unset $ac_var ;;
1786 esac ;;
1787 esac
1788 done
1789 (set) 2>&1 |
1790 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1791 *${as_nl}ac_space=\ *)
1792 sed -n \
1793 "s/'\''/'\''\\\\'\'''\''/g;
1794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1795 ;; #(
1797 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1799 esac |
1800 sort
1802 echo
1804 cat <<\_ASBOX
1805 ## ----------------- ##
1806 ## Output variables. ##
1807 ## ----------------- ##
1808 _ASBOX
1809 echo
1810 for ac_var in $ac_subst_vars
1812 eval ac_val=\$$ac_var
1813 case $ac_val in
1814 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815 esac
1816 $as_echo "$ac_var='\''$ac_val'\''"
1817 done | sort
1818 echo
1820 if test -n "$ac_subst_files"; then
1821 cat <<\_ASBOX
1822 ## ------------------- ##
1823 ## File substitutions. ##
1824 ## ------------------- ##
1825 _ASBOX
1826 echo
1827 for ac_var in $ac_subst_files
1829 eval ac_val=\$$ac_var
1830 case $ac_val in
1831 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 esac
1833 $as_echo "$ac_var='\''$ac_val'\''"
1834 done | sort
1835 echo
1838 if test -s confdefs.h; then
1839 cat <<\_ASBOX
1840 ## ----------- ##
1841 ## confdefs.h. ##
1842 ## ----------- ##
1843 _ASBOX
1844 echo
1845 cat confdefs.h
1846 echo
1848 test "$ac_signal" != 0 &&
1849 $as_echo "$as_me: caught signal $ac_signal"
1850 $as_echo "$as_me: exit $exit_status"
1851 } >&5
1852 rm -f core *.core core.conftest.* &&
1853 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1854 exit $exit_status
1856 for ac_signal in 1 2 13 15; do
1857 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1858 done
1859 ac_signal=0
1861 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1862 rm -f -r conftest* confdefs.h
1864 # Predefined preprocessor variables.
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_NAME "$PACKAGE_NAME"
1868 _ACEOF
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1873 _ACEOF
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1878 _ACEOF
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_STRING "$PACKAGE_STRING"
1883 _ACEOF
1886 cat >>confdefs.h <<_ACEOF
1887 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888 _ACEOF
1891 # Let the site file select an alternate cache file if it wants to.
1892 # Prefer an explicitly selected file to automatically selected ones.
1893 ac_site_file1=NONE
1894 ac_site_file2=NONE
1895 if test -n "$CONFIG_SITE"; then
1896 ac_site_file1=$CONFIG_SITE
1897 elif test "x$prefix" != xNONE; then
1898 ac_site_file1=$prefix/share/config.site
1899 ac_site_file2=$prefix/etc/config.site
1900 else
1901 ac_site_file1=$ac_default_prefix/share/config.site
1902 ac_site_file2=$ac_default_prefix/etc/config.site
1904 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1906 test "x$ac_site_file" = xNONE && continue
1907 if test -r "$ac_site_file"; then
1908 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1909 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1910 sed 's/^/| /' "$ac_site_file" >&5
1911 . "$ac_site_file"
1913 done
1915 if test -r "$cache_file"; then
1916 # Some versions of bash will fail to source /dev/null (special
1917 # files actually), so we avoid doing that.
1918 if test -f "$cache_file"; then
1919 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1920 $as_echo "$as_me: loading cache $cache_file" >&6;}
1921 case $cache_file in
1922 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1923 *) . "./$cache_file";;
1924 esac
1926 else
1927 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1928 $as_echo "$as_me: creating cache $cache_file" >&6;}
1929 >$cache_file
1932 # Check that the precious variables saved in the cache have kept the same
1933 # value.
1934 ac_cache_corrupted=false
1935 for ac_var in $ac_precious_vars; do
1936 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1937 eval ac_new_set=\$ac_env_${ac_var}_set
1938 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1939 eval ac_new_val=\$ac_env_${ac_var}_value
1940 case $ac_old_set,$ac_new_set in
1941 set,)
1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1943 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1944 ac_cache_corrupted=: ;;
1945 ,set)
1946 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1947 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1948 ac_cache_corrupted=: ;;
1949 ,);;
1951 if test "x$ac_old_val" != "x$ac_new_val"; then
1952 # differences in whitespace do not lead to failure.
1953 ac_old_val_w=`echo x $ac_old_val`
1954 ac_new_val_w=`echo x $ac_new_val`
1955 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1956 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1957 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1958 ac_cache_corrupted=:
1959 else
1960 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1961 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1962 eval $ac_var=\$ac_old_val
1964 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1965 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1966 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1967 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1968 fi;;
1969 esac
1970 # Pass precious variables to config.status.
1971 if test "$ac_new_set" = set; then
1972 case $ac_new_val in
1973 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1974 *) ac_arg=$ac_var=$ac_new_val ;;
1975 esac
1976 case " $ac_configure_args " in
1977 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1978 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1979 esac
1981 done
1982 if $ac_cache_corrupted; then
1983 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1984 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1986 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1987 { (exit 1); exit 1; }; }
2014 ac_ext=c
2015 ac_cpp='$CPP $CPPFLAGS'
2016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024 # Don't forget to update docs/VERSION.DLL!
2026 version_info='9:18:3'
2028 ft_version=`echo $version_info | tr : .`
2032 # checks for system type
2034 ac_aux_dir=
2035 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2036 if test -f "$ac_dir/install-sh"; then
2037 ac_aux_dir=$ac_dir
2038 ac_install_sh="$ac_aux_dir/install-sh -c"
2039 break
2040 elif test -f "$ac_dir/install.sh"; then
2041 ac_aux_dir=$ac_dir
2042 ac_install_sh="$ac_aux_dir/install.sh -c"
2043 break
2044 elif test -f "$ac_dir/shtool"; then
2045 ac_aux_dir=$ac_dir
2046 ac_install_sh="$ac_aux_dir/shtool install -c"
2047 break
2049 done
2050 if test -z "$ac_aux_dir"; then
2051 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2052 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2053 { (exit 1); exit 1; }; }
2056 # These three variables are undocumented and unsupported,
2057 # and are intended to be withdrawn in a future Autoconf release.
2058 # They can cause serious problems if a builder's source tree is in a directory
2059 # whose full name contains unusual characters.
2060 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2061 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2062 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2065 # Make sure we can run config.sub.
2066 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2067 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2068 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2069 { (exit 1); exit 1; }; }
2071 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2072 $as_echo_n "checking build system type... " >&6; }
2073 if test "${ac_cv_build+set}" = set; then
2074 $as_echo_n "(cached) " >&6
2075 else
2076 ac_build_alias=$build_alias
2077 test "x$ac_build_alias" = x &&
2078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2079 test "x$ac_build_alias" = x &&
2080 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2081 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2082 { (exit 1); exit 1; }; }
2083 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2084 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2085 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2086 { (exit 1); exit 1; }; }
2089 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2090 $as_echo "$ac_cv_build" >&6; }
2091 case $ac_cv_build in
2092 *-*-*) ;;
2093 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2094 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2095 { (exit 1); exit 1; }; };;
2096 esac
2097 build=$ac_cv_build
2098 ac_save_IFS=$IFS; IFS='-'
2099 set x $ac_cv_build
2100 shift
2101 build_cpu=$1
2102 build_vendor=$2
2103 shift; shift
2104 # Remember, the first character of IFS is used to create $*,
2105 # except with old shells:
2106 build_os=$*
2107 IFS=$ac_save_IFS
2108 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2111 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2112 $as_echo_n "checking host system type... " >&6; }
2113 if test "${ac_cv_host+set}" = set; then
2114 $as_echo_n "(cached) " >&6
2115 else
2116 if test "x$host_alias" = x; then
2117 ac_cv_host=$ac_cv_build
2118 else
2119 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2120 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2121 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2122 { (exit 1); exit 1; }; }
2126 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2127 $as_echo "$ac_cv_host" >&6; }
2128 case $ac_cv_host in
2129 *-*-*) ;;
2130 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2131 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2132 { (exit 1); exit 1; }; };;
2133 esac
2134 host=$ac_cv_host
2135 ac_save_IFS=$IFS; IFS='-'
2136 set x $ac_cv_host
2137 shift
2138 host_cpu=$1
2139 host_vendor=$2
2140 shift; shift
2141 # Remember, the first character of IFS is used to create $*,
2142 # except with old shells:
2143 host_os=$*
2144 IFS=$ac_save_IFS
2145 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2148 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2149 $as_echo_n "checking target system type... " >&6; }
2150 if test "${ac_cv_target+set}" = set; then
2151 $as_echo_n "(cached) " >&6
2152 else
2153 if test "x$target_alias" = x; then
2154 ac_cv_target=$ac_cv_host
2155 else
2156 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2157 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2158 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2159 { (exit 1); exit 1; }; }
2163 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2164 $as_echo "$ac_cv_target" >&6; }
2165 case $ac_cv_target in
2166 *-*-*) ;;
2167 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2168 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2169 { (exit 1); exit 1; }; };;
2170 esac
2171 target=$ac_cv_target
2172 ac_save_IFS=$IFS; IFS='-'
2173 set x $ac_cv_target
2174 shift
2175 target_cpu=$1
2176 target_vendor=$2
2177 shift; shift
2178 # Remember, the first character of IFS is used to create $*,
2179 # except with old shells:
2180 target_os=$*
2181 IFS=$ac_save_IFS
2182 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2185 # The aliases save the names the user supplied, while $host etc.
2186 # will get canonicalized.
2187 test -n "$target_alias" &&
2188 test "$program_prefix$program_suffix$program_transform_name" = \
2189 NONENONEs,x,x, &&
2190 program_prefix=${target_alias}-
2193 # checks for programs
2195 ac_ext=c
2196 ac_cpp='$CPP $CPPFLAGS'
2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200 if test -n "$ac_tool_prefix"; then
2201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2202 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2203 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2204 $as_echo_n "checking for $ac_word... " >&6; }
2205 if test "${ac_cv_prog_CC+set}" = set; then
2206 $as_echo_n "(cached) " >&6
2207 else
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2210 else
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2212 for as_dir in $PATH
2214 IFS=$as_save_IFS
2215 test -z "$as_dir" && as_dir=.
2216 for ac_exec_ext in '' $ac_executable_extensions; do
2217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2218 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 break 2
2222 done
2223 done
2224 IFS=$as_save_IFS
2228 CC=$ac_cv_prog_CC
2229 if test -n "$CC"; then
2230 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2231 $as_echo "$CC" >&6; }
2232 else
2233 { $as_echo "$as_me:$LINENO: result: no" >&5
2234 $as_echo "no" >&6; }
2239 if test -z "$ac_cv_prog_CC"; then
2240 ac_ct_CC=$CC
2241 # Extract the first word of "gcc", so it can be a program name with args.
2242 set dummy gcc; ac_word=$2
2243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 $as_echo_n "checking for $ac_word... " >&6; }
2245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2246 $as_echo_n "(cached) " >&6
2247 else
2248 if test -n "$ac_ct_CC"; then
2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258 ac_cv_prog_ac_ct_CC="gcc"
2259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2262 done
2263 done
2264 IFS=$as_save_IFS
2268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2269 if test -n "$ac_ct_CC"; then
2270 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2271 $as_echo "$ac_ct_CC" >&6; }
2272 else
2273 { $as_echo "$as_me:$LINENO: result: no" >&5
2274 $as_echo "no" >&6; }
2277 if test "x$ac_ct_CC" = x; then
2278 CC=""
2279 else
2280 case $cross_compiling:$ac_tool_warned in
2281 yes:)
2282 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2283 whose name does not start with the host triplet. If you think this
2284 configuration is useful to you, please write to autoconf@gnu.org." >&5
2285 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2286 whose name does not start with the host triplet. If you think this
2287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2288 ac_tool_warned=yes ;;
2289 esac
2290 CC=$ac_ct_CC
2292 else
2293 CC="$ac_cv_prog_CC"
2296 if test -z "$CC"; then
2297 if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2299 set dummy ${ac_tool_prefix}cc; ac_word=$2
2300 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 $as_echo_n "checking for $ac_word... " >&6; }
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303 $as_echo_n "(cached) " >&6
2304 else
2305 if test -n "$CC"; then
2306 ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 for ac_exec_ext in '' $ac_executable_extensions; do
2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315 ac_cv_prog_CC="${ac_tool_prefix}cc"
2316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 break 2
2319 done
2320 done
2321 IFS=$as_save_IFS
2325 CC=$ac_cv_prog_CC
2326 if test -n "$CC"; then
2327 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2328 $as_echo "$CC" >&6; }
2329 else
2330 { $as_echo "$as_me:$LINENO: result: no" >&5
2331 $as_echo "no" >&6; }
2337 if test -z "$CC"; then
2338 # Extract the first word of "cc", so it can be a program name with args.
2339 set dummy cc; ac_word=$2
2340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 $as_echo_n "checking for $ac_word... " >&6; }
2342 if test "${ac_cv_prog_CC+set}" = set; then
2343 $as_echo_n "(cached) " >&6
2344 else
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2347 else
2348 ac_prog_rejected=no
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 for as_dir in $PATH
2352 IFS=$as_save_IFS
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2357 ac_prog_rejected=yes
2358 continue
2360 ac_cv_prog_CC="cc"
2361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 break 2
2364 done
2365 done
2366 IFS=$as_save_IFS
2368 if test $ac_prog_rejected = yes; then
2369 # We found a bogon in the path, so make sure we never use it.
2370 set dummy $ac_cv_prog_CC
2371 shift
2372 if test $# != 0; then
2373 # We chose a different compiler from the bogus one.
2374 # However, it has the same basename, so the bogon will be chosen
2375 # first if we set CC to just the basename; use the full file name.
2376 shift
2377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2382 CC=$ac_cv_prog_CC
2383 if test -n "$CC"; then
2384 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2385 $as_echo "$CC" >&6; }
2386 else
2387 { $as_echo "$as_me:$LINENO: result: no" >&5
2388 $as_echo "no" >&6; }
2393 if test -z "$CC"; then
2394 if test -n "$ac_tool_prefix"; then
2395 for ac_prog in cl.exe
2397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 $as_echo_n "checking for $ac_word... " >&6; }
2401 if test "${ac_cv_prog_CC+set}" = set; then
2402 $as_echo_n "(cached) " >&6
2403 else
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2418 done
2419 done
2420 IFS=$as_save_IFS
2424 CC=$ac_cv_prog_CC
2425 if test -n "$CC"; then
2426 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2427 $as_echo "$CC" >&6; }
2428 else
2429 { $as_echo "$as_me:$LINENO: result: no" >&5
2430 $as_echo "no" >&6; }
2434 test -n "$CC" && break
2435 done
2437 if test -z "$CC"; then
2438 ac_ct_CC=$CC
2439 for ac_prog in cl.exe
2441 # Extract the first word of "$ac_prog", so it can be a program name with args.
2442 set dummy $ac_prog; ac_word=$2
2443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 $as_echo_n "checking for $ac_word... " >&6; }
2445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2446 $as_echo_n "(cached) " >&6
2447 else
2448 if test -n "$ac_ct_CC"; then
2449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458 ac_cv_prog_ac_ct_CC="$ac_prog"
2459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2462 done
2463 done
2464 IFS=$as_save_IFS
2468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2469 if test -n "$ac_ct_CC"; then
2470 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2471 $as_echo "$ac_ct_CC" >&6; }
2472 else
2473 { $as_echo "$as_me:$LINENO: result: no" >&5
2474 $as_echo "no" >&6; }
2478 test -n "$ac_ct_CC" && break
2479 done
2481 if test "x$ac_ct_CC" = x; then
2482 CC=""
2483 else
2484 case $cross_compiling:$ac_tool_warned in
2485 yes:)
2486 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2487 whose name does not start with the host triplet. If you think this
2488 configuration is useful to you, please write to autoconf@gnu.org." >&5
2489 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2490 whose name does not start with the host triplet. If you think this
2491 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2492 ac_tool_warned=yes ;;
2493 esac
2494 CC=$ac_ct_CC
2501 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2502 See \`config.log' for more details." >&5
2503 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2507 # Provide some information about the compiler.
2508 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2509 set X $ac_compile
2510 ac_compiler=$2
2511 { (ac_try="$ac_compiler --version >&5"
2512 case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2515 esac
2516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2517 $as_echo "$ac_try_echo") >&5
2518 (eval "$ac_compiler --version >&5") 2>&5
2519 ac_status=$?
2520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }
2522 { (ac_try="$ac_compiler -v >&5"
2523 case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2526 esac
2527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2528 $as_echo "$ac_try_echo") >&5
2529 (eval "$ac_compiler -v >&5") 2>&5
2530 ac_status=$?
2531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }
2533 { (ac_try="$ac_compiler -V >&5"
2534 case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537 esac
2538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2539 $as_echo "$ac_try_echo") >&5
2540 (eval "$ac_compiler -V >&5") 2>&5
2541 ac_status=$?
2542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2545 cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h. */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2553 main ()
2557 return 0;
2559 _ACEOF
2560 ac_clean_files_save=$ac_clean_files
2561 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2562 # Try to create an executable without -o first, disregard a.out.
2563 # It will help us diagnose broken compilers, and finding out an intuition
2564 # of exeext.
2565 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2566 $as_echo_n "checking for C compiler default output file name... " >&6; }
2567 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2569 # The possible output files:
2570 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2572 ac_rmfiles=
2573 for ac_file in $ac_files
2575 case $ac_file in
2576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2577 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2578 esac
2579 done
2580 rm -f $ac_rmfiles
2582 if { (ac_try="$ac_link_default"
2583 case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586 esac
2587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2588 $as_echo "$ac_try_echo") >&5
2589 (eval "$ac_link_default") 2>&5
2590 ac_status=$?
2591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; then
2593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2594 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2595 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2596 # so that the user can short-circuit this test for compilers unknown to
2597 # Autoconf.
2598 for ac_file in $ac_files ''
2600 test -f "$ac_file" || continue
2601 case $ac_file in
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2604 [ab].out )
2605 # We found the default executable, but exeext='' is most
2606 # certainly right.
2607 break;;
2608 *.* )
2609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2610 then :; else
2611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2613 # We set ac_cv_exeext here because the later test for it is not
2614 # safe: cross compilers may not add the suffix if given an `-o'
2615 # argument, so we may need to know it at that point already.
2616 # Even if this section looks crufty: it has the advantage of
2617 # actually working.
2618 break;;
2620 break;;
2621 esac
2622 done
2623 test "$ac_cv_exeext" = no && ac_cv_exeext=
2625 else
2626 ac_file=''
2629 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2630 $as_echo "$ac_file" >&6; }
2631 if test -z "$ac_file"; then
2632 $as_echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2635 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2636 See \`config.log' for more details." >&5
2637 $as_echo "$as_me: error: C compiler cannot create executables
2638 See \`config.log' for more details." >&2;}
2639 { (exit 77); exit 77; }; }
2642 ac_exeext=$ac_cv_exeext
2644 # Check that the compiler produces executables we can run. If not, either
2645 # the compiler is broken, or we cross compile.
2646 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2647 $as_echo_n "checking whether the C compiler works... " >&6; }
2648 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2649 # If not cross compiling, check that we can run a simple program.
2650 if test "$cross_compiling" != yes; then
2651 if { ac_try='./$ac_file'
2652 { (case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2655 esac
2656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2657 $as_echo "$ac_try_echo") >&5
2658 (eval "$ac_try") 2>&5
2659 ac_status=$?
2660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2662 cross_compiling=no
2663 else
2664 if test "$cross_compiling" = maybe; then
2665 cross_compiling=yes
2666 else
2667 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2668 If you meant to cross compile, use \`--host'.
2669 See \`config.log' for more details." >&5
2670 $as_echo "$as_me: error: cannot run C compiled programs.
2671 If you meant to cross compile, use \`--host'.
2672 See \`config.log' for more details." >&2;}
2673 { (exit 1); exit 1; }; }
2677 { $as_echo "$as_me:$LINENO: result: yes" >&5
2678 $as_echo "yes" >&6; }
2680 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2681 ac_clean_files=$ac_clean_files_save
2682 # Check that the compiler produces executables we can run. If not, either
2683 # the compiler is broken, or we cross compile.
2684 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2685 $as_echo_n "checking whether we are cross compiling... " >&6; }
2686 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2687 $as_echo "$cross_compiling" >&6; }
2689 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2690 $as_echo_n "checking for suffix of executables... " >&6; }
2691 if { (ac_try="$ac_link"
2692 case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695 esac
2696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2697 $as_echo "$ac_try_echo") >&5
2698 (eval "$ac_link") 2>&5
2699 ac_status=$?
2700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; then
2702 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2703 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2704 # work properly (i.e., refer to `conftest.exe'), while it won't with
2705 # `rm'.
2706 for ac_file in conftest.exe conftest conftest.*; do
2707 test -f "$ac_file" || continue
2708 case $ac_file in
2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2710 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2711 break;;
2712 * ) break;;
2713 esac
2714 done
2715 else
2716 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2717 See \`config.log' for more details." >&5
2718 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2719 See \`config.log' for more details." >&2;}
2720 { (exit 1); exit 1; }; }
2723 rm -f conftest$ac_cv_exeext
2724 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2725 $as_echo "$ac_cv_exeext" >&6; }
2727 rm -f conftest.$ac_ext
2728 EXEEXT=$ac_cv_exeext
2729 ac_exeext=$EXEEXT
2730 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2731 $as_echo_n "checking for suffix of object files... " >&6; }
2732 if test "${ac_cv_objext+set}" = set; then
2733 $as_echo_n "(cached) " >&6
2734 else
2735 cat >conftest.$ac_ext <<_ACEOF
2736 /* confdefs.h. */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2743 main ()
2747 return 0;
2749 _ACEOF
2750 rm -f conftest.o conftest.obj
2751 if { (ac_try="$ac_compile"
2752 case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755 esac
2756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2757 $as_echo "$ac_try_echo") >&5
2758 (eval "$ac_compile") 2>&5
2759 ac_status=$?
2760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; then
2762 for ac_file in conftest.o conftest.obj conftest.*; do
2763 test -f "$ac_file" || continue;
2764 case $ac_file in
2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2766 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2767 break;;
2768 esac
2769 done
2770 else
2771 $as_echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2774 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2775 See \`config.log' for more details." >&5
2776 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2777 See \`config.log' for more details." >&2;}
2778 { (exit 1); exit 1; }; }
2781 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2783 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2784 $as_echo "$ac_cv_objext" >&6; }
2785 OBJEXT=$ac_cv_objext
2786 ac_objext=$OBJEXT
2787 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2788 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2789 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2790 $as_echo_n "(cached) " >&6
2791 else
2792 cat >conftest.$ac_ext <<_ACEOF
2793 /* confdefs.h. */
2794 _ACEOF
2795 cat confdefs.h >>conftest.$ac_ext
2796 cat >>conftest.$ac_ext <<_ACEOF
2797 /* end confdefs.h. */
2800 main ()
2802 #ifndef __GNUC__
2803 choke me
2804 #endif
2807 return 0;
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (ac_try="$ac_compile"
2812 case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2817 $as_echo "$ac_try_echo") >&5
2818 (eval "$ac_compile") 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
2828 ac_compiler_gnu=yes
2829 else
2830 $as_echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2833 ac_compiler_gnu=no
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2840 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2841 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2842 if test $ac_compiler_gnu = yes; then
2843 GCC=yes
2844 else
2845 GCC=
2847 ac_test_CFLAGS=${CFLAGS+set}
2848 ac_save_CFLAGS=$CFLAGS
2849 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2850 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2851 if test "${ac_cv_prog_cc_g+set}" = set; then
2852 $as_echo_n "(cached) " >&6
2853 else
2854 ac_save_c_werror_flag=$ac_c_werror_flag
2855 ac_c_werror_flag=yes
2856 ac_cv_prog_cc_g=no
2857 CFLAGS="-g"
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2866 main ()
2870 return 0;
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (ac_try="$ac_compile"
2875 case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878 esac
2879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2880 $as_echo "$ac_try_echo") >&5
2881 (eval "$ac_compile") 2>conftest.er1
2882 ac_status=$?
2883 grep -v '^ *+' conftest.er1 >conftest.err
2884 rm -f conftest.er1
2885 cat conftest.err >&5
2886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } && {
2888 test -z "$ac_c_werror_flag" ||
2889 test ! -s conftest.err
2890 } && test -s conftest.$ac_objext; then
2891 ac_cv_prog_cc_g=yes
2892 else
2893 $as_echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2896 CFLAGS=""
2897 cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h. */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2905 main ()
2909 return 0;
2911 _ACEOF
2912 rm -f conftest.$ac_objext
2913 if { (ac_try="$ac_compile"
2914 case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917 esac
2918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2919 $as_echo "$ac_try_echo") >&5
2920 (eval "$ac_compile") 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } && {
2927 test -z "$ac_c_werror_flag" ||
2928 test ! -s conftest.err
2929 } && test -s conftest.$ac_objext; then
2931 else
2932 $as_echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2935 ac_c_werror_flag=$ac_save_c_werror_flag
2936 CFLAGS="-g"
2937 cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h. */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2945 main ()
2949 return 0;
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (ac_try="$ac_compile"
2954 case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957 esac
2958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2959 $as_echo "$ac_try_echo") >&5
2960 (eval "$ac_compile") 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
2965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } && {
2967 test -z "$ac_c_werror_flag" ||
2968 test ! -s conftest.err
2969 } && test -s conftest.$ac_objext; then
2970 ac_cv_prog_cc_g=yes
2971 else
2972 $as_echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_c_werror_flag=$ac_save_c_werror_flag
2987 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2988 $as_echo "$ac_cv_prog_cc_g" >&6; }
2989 if test "$ac_test_CFLAGS" = set; then
2990 CFLAGS=$ac_save_CFLAGS
2991 elif test $ac_cv_prog_cc_g = yes; then
2992 if test "$GCC" = yes; then
2993 CFLAGS="-g -O2"
2994 else
2995 CFLAGS="-g"
2997 else
2998 if test "$GCC" = yes; then
2999 CFLAGS="-O2"
3000 else
3001 CFLAGS=
3004 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3005 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3006 if test "${ac_cv_prog_cc_c89+set}" = set; then
3007 $as_echo_n "(cached) " >&6
3008 else
3009 ac_cv_prog_cc_c89=no
3010 ac_save_CC=$CC
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 #include <stdarg.h>
3018 #include <stdio.h>
3019 #include <sys/types.h>
3020 #include <sys/stat.h>
3021 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3022 struct buf { int x; };
3023 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3024 static char *e (p, i)
3025 char **p;
3026 int i;
3028 return p[i];
3030 static char *f (char * (*g) (char **, int), char **p, ...)
3032 char *s;
3033 va_list v;
3034 va_start (v,p);
3035 s = g (p, va_arg (v,int));
3036 va_end (v);
3037 return s;
3040 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3041 function prototypes and stuff, but not '\xHH' hex character constants.
3042 These don't provoke an error unfortunately, instead are silently treated
3043 as 'x'. The following induces an error, until -std is added to get
3044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3045 array size at least. It's necessary to write '\x00'==0 to get something
3046 that's true only with -std. */
3047 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3049 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3050 inside strings and character constants. */
3051 #define FOO(x) 'x'
3052 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3054 int test (int i, double x);
3055 struct s1 {int (*f) (int a);};
3056 struct s2 {int (*f) (double a);};
3057 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3058 int argc;
3059 char **argv;
3061 main ()
3063 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3065 return 0;
3067 _ACEOF
3068 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3069 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3071 CC="$ac_save_CC $ac_arg"
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3074 case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3079 $as_echo "$ac_try_echo") >&5
3080 (eval "$ac_compile") 2>conftest.er1
3081 ac_status=$?
3082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
3085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } && {
3087 test -z "$ac_c_werror_flag" ||
3088 test ! -s conftest.err
3089 } && test -s conftest.$ac_objext; then
3090 ac_cv_prog_cc_c89=$ac_arg
3091 else
3092 $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3098 rm -f core conftest.err conftest.$ac_objext
3099 test "x$ac_cv_prog_cc_c89" != "xno" && break
3100 done
3101 rm -f conftest.$ac_ext
3102 CC=$ac_save_CC
3105 # AC_CACHE_VAL
3106 case "x$ac_cv_prog_cc_c89" in
3108 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3109 $as_echo "none needed" >&6; } ;;
3110 xno)
3111 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3112 $as_echo "unsupported" >&6; } ;;
3114 CC="$CC $ac_cv_prog_cc_c89"
3115 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3116 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3117 esac
3120 ac_ext=c
3121 ac_cpp='$CPP $CPPFLAGS'
3122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3132 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3133 # On Suns, sometimes $CPP names a directory.
3134 if test -n "$CPP" && test -d "$CPP"; then
3135 CPP=
3137 if test -z "$CPP"; then
3138 if test "${ac_cv_prog_CPP+set}" = set; then
3139 $as_echo_n "(cached) " >&6
3140 else
3141 # Double quotes because CPP needs to be expanded
3142 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3144 ac_preproc_ok=false
3145 for ac_c_preproc_warn_flag in '' yes
3147 # Use a header file that comes with gcc, so configuring glibc
3148 # with a fresh cross-compiler works.
3149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3150 # <limits.h> exists even on freestanding compilers.
3151 # On the NeXT, cc -E runs the code through the compiler's parser,
3152 # not just through cpp. "Syntax error" is here to catch this case.
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 #ifdef __STDC__
3160 # include <limits.h>
3161 #else
3162 # include <assert.h>
3163 #endif
3164 Syntax error
3165 _ACEOF
3166 if { (ac_try="$ac_cpp conftest.$ac_ext"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3172 $as_echo "$ac_try_echo") >&5
3173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3174 ac_status=$?
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } >/dev/null && {
3180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3181 test ! -s conftest.err
3182 }; then
3184 else
3185 $as_echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3188 # Broken: fails on valid input.
3189 continue
3192 rm -f conftest.err conftest.$ac_ext
3194 # OK, works on sane cases. Now check whether nonexistent headers
3195 # can be detected and how.
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3202 #include <ac_nonexistent.h>
3203 _ACEOF
3204 if { (ac_try="$ac_cpp conftest.$ac_ext"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3210 $as_echo "$ac_try_echo") >&5
3211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3212 ac_status=$?
3213 grep -v '^ *+' conftest.er1 >conftest.err
3214 rm -f conftest.er1
3215 cat conftest.err >&5
3216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } >/dev/null && {
3218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3219 test ! -s conftest.err
3220 }; then
3221 # Broken: success on invalid input.
3222 continue
3223 else
3224 $as_echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3227 # Passes both tests.
3228 ac_preproc_ok=:
3229 break
3232 rm -f conftest.err conftest.$ac_ext
3234 done
3235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3236 rm -f conftest.err conftest.$ac_ext
3237 if $ac_preproc_ok; then
3238 break
3241 done
3242 ac_cv_prog_CPP=$CPP
3245 CPP=$ac_cv_prog_CPP
3246 else
3247 ac_cv_prog_CPP=$CPP
3249 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3250 $as_echo "$CPP" >&6; }
3251 ac_preproc_ok=false
3252 for ac_c_preproc_warn_flag in '' yes
3254 # Use a header file that comes with gcc, so configuring glibc
3255 # with a fresh cross-compiler works.
3256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257 # <limits.h> exists even on freestanding compilers.
3258 # On the NeXT, cc -E runs the code through the compiler's parser,
3259 # not just through cpp. "Syntax error" is here to catch this case.
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266 #ifdef __STDC__
3267 # include <limits.h>
3268 #else
3269 # include <assert.h>
3270 #endif
3271 Syntax error
3272 _ACEOF
3273 if { (ac_try="$ac_cpp conftest.$ac_ext"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3279 $as_echo "$ac_try_echo") >&5
3280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null && {
3287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3288 test ! -s conftest.err
3289 }; then
3291 else
3292 $as_echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 # Broken: fails on valid input.
3296 continue
3299 rm -f conftest.err conftest.$ac_ext
3301 # OK, works on sane cases. Now check whether nonexistent headers
3302 # can be detected and how.
3303 cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309 #include <ac_nonexistent.h>
3310 _ACEOF
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3317 $as_echo "$ac_try_echo") >&5
3318 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } >/dev/null && {
3325 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3326 test ! -s conftest.err
3327 }; then
3328 # Broken: success on invalid input.
3329 continue
3330 else
3331 $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3334 # Passes both tests.
3335 ac_preproc_ok=:
3336 break
3339 rm -f conftest.err conftest.$ac_ext
3341 done
3342 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3343 rm -f conftest.err conftest.$ac_ext
3344 if $ac_preproc_ok; then
3346 else
3347 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3348 See \`config.log' for more details." >&5
3349 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3350 See \`config.log' for more details." >&2;}
3351 { (exit 1); exit 1; }; }
3354 ac_ext=c
3355 ac_cpp='$CPP $CPPFLAGS'
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363 # checks for native programs to generate building tool
3365 if test ${cross_compiling} = yes; then
3366 # Extract the first word of "${build}-gcc", so it can be a program name with args.
3367 set dummy ${build}-gcc; ac_word=$2
3368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if test "${ac_cv_prog_CC_BUILD+set}" = set; then
3371 $as_echo_n "(cached) " >&6
3372 else
3373 if test -n "$CC_BUILD"; then
3374 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383 ac_cv_prog_CC_BUILD="${build}-gcc"
3384 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 break 2
3387 done
3388 done
3389 IFS=$as_save_IFS
3393 CC_BUILD=$ac_cv_prog_CC_BUILD
3394 if test -n "$CC_BUILD"; then
3395 { $as_echo "$as_me:$LINENO: result: $CC_BUILD" >&5
3396 $as_echo "$CC_BUILD" >&6; }
3397 else
3398 { $as_echo "$as_me:$LINENO: result: no" >&5
3399 $as_echo "no" >&6; }
3403 test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
3404 set dummy gcc; ac_word=$2
3405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_CC_BUILD+set}" = set; then
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -n "$CC_BUILD"; then
3411 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_CC_BUILD="gcc"
3421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3424 done
3425 done
3426 IFS=$as_save_IFS
3430 CC_BUILD=$ac_cv_prog_CC_BUILD
3431 if test -n "$CC_BUILD"; then
3432 { $as_echo "$as_me:$LINENO: result: $CC_BUILD" >&5
3433 $as_echo "$CC_BUILD" >&6; }
3434 else
3435 { $as_echo "$as_me:$LINENO: result: no" >&5
3436 $as_echo "no" >&6; }
3440 test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
3441 set dummy cc; ac_word=$2
3442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if test "${ac_cv_prog_CC_BUILD+set}" = set; then
3445 $as_echo_n "(cached) " >&6
3446 else
3447 if test -n "$CC_BUILD"; then
3448 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3449 else
3450 ac_prog_rejected=no
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3459 ac_prog_rejected=yes
3460 continue
3462 ac_cv_prog_CC_BUILD="cc"
3463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3466 done
3467 done
3468 IFS=$as_save_IFS
3470 if test $ac_prog_rejected = yes; then
3471 # We found a bogon in the path, so make sure we never use it.
3472 set dummy $ac_cv_prog_CC_BUILD
3473 shift
3474 if test $# != 0; then
3475 # We chose a different compiler from the bogus one.
3476 # However, it has the same basename, so the bogon will be chosen
3477 # first if we set CC_BUILD to just the basename; use the full file name.
3478 shift
3479 ac_cv_prog_CC_BUILD="$as_dir/$ac_word${1+' '}$@"
3484 CC_BUILD=$ac_cv_prog_CC_BUILD
3485 if test -n "$CC_BUILD"; then
3486 { $as_echo "$as_me:$LINENO: result: $CC_BUILD" >&5
3487 $as_echo "$CC_BUILD" >&6; }
3488 else
3489 { $as_echo "$as_me:$LINENO: result: no" >&5
3490 $as_echo "no" >&6; }
3494 test -z "${CC_BUILD}" && { { $as_echo "$as_me:$LINENO: error: cannot find native C compiler" >&5
3495 $as_echo "$as_me: error: cannot find native C compiler" >&2;}
3496 { (exit 1); exit 1; }; }
3498 { $as_echo "$as_me:$LINENO: checking for suffix of native executables" >&5
3499 $as_echo_n "checking for suffix of native executables... " >&6; }
3500 rm -f a.* b.* a_out.exe conftest.*
3501 echo > conftest.c "int main() { return 0;}"
3502 ${CC_BUILD} conftest.c || { { $as_echo "$as_me:$LINENO: error: native C compiler is not working" >&5
3503 $as_echo "$as_me: error: native C compiler is not working" >&2;}
3504 { (exit 1); exit 1; }; }
3505 rm -f conftest.c
3506 if test -x a.out -o -x b.out -o -x conftest; then
3507 EXEEXT_BUILD=""
3508 elif test -x a_out.exe -o -x conftest.exe; then
3509 EXEEXT_BUILD=".exe"
3510 elif test -x conftest.* ; then
3511 EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\.//g'`
3513 { $as_echo "$as_me:$LINENO: result: $EXEEXT_BUILD" >&5
3514 $as_echo "$EXEEXT_BUILD" >&6; }
3515 else
3516 CC_BUILD=${CC}
3517 EXEEXT_BUILD=${EXEEXT}
3521 if test ! -z ${EXEEXT_BUILD}; then
3522 EXEEXT_BUILD=."${EXEEXT_BUILD}"
3529 # get compiler flags right
3531 if test "x$CC" = xgcc; then
3532 XX_CFLAGS="-Wall"
3533 XX_ANSIFLAGS="-pedantic -ansi"
3534 else
3535 case "$host" in
3536 *-dec-osf*)
3537 CFLAGS=
3538 XX_CFLAGS="-std1 -g3"
3539 XX_ANSIFLAGS=
3542 XX_CFLAGS=
3543 XX_ANSIFLAGS=
3545 esac
3551 # auxiliary programs
3553 # Extract the first word of "rm", so it can be a program name with args.
3554 set dummy rm; ac_word=$2
3555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if test "${ac_cv_prog_RMF+set}" = set; then
3558 $as_echo_n "(cached) " >&6
3559 else
3560 if test -n "$RMF"; then
3561 ac_cv_prog_RMF="$RMF" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3570 ac_cv_prog_RMF="rm -f"
3571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3574 done
3575 done
3576 IFS=$as_save_IFS
3580 RMF=$ac_cv_prog_RMF
3581 if test -n "$RMF"; then
3582 { $as_echo "$as_me:$LINENO: result: $RMF" >&5
3583 $as_echo "$RMF" >&6; }
3584 else
3585 { $as_echo "$as_me:$LINENO: result: no" >&5
3586 $as_echo "no" >&6; }
3590 # Extract the first word of "rmdir", so it can be a program name with args.
3591 set dummy rmdir; ac_word=$2
3592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if test "${ac_cv_prog_RMDIR+set}" = set; then
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -n "$RMDIR"; then
3598 ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 ac_cv_prog_RMDIR="rmdir"
3608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3611 done
3612 done
3613 IFS=$as_save_IFS
3617 RMDIR=$ac_cv_prog_RMDIR
3618 if test -n "$RMDIR"; then
3619 { $as_echo "$as_me:$LINENO: result: $RMDIR" >&5
3620 $as_echo "$RMDIR" >&6; }
3621 else
3622 { $as_echo "$as_me:$LINENO: result: no" >&5
3623 $as_echo "no" >&6; }
3629 # Since this file will be finally moved to another directory we make
3630 # the path of the install script absolute. This small code snippet has
3631 # been taken from automake's `ylwrap' script.
3633 # Find a good install program. We prefer a C program (faster),
3634 # so one script is as good as another. But avoid the broken or
3635 # incompatible versions:
3636 # SysV /etc/install, /usr/sbin/install
3637 # SunOS /usr/etc/install
3638 # IRIX /sbin/install
3639 # AIX /bin/install
3640 # AmigaOS /C/install, which installs bootblocks on floppy discs
3641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3644 # OS/2's system install, which has a completely different semantic
3645 # ./install, which can be erroneously created by make from ./install.sh.
3646 # Reject install programs that cannot install multiple files.
3647 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3648 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3649 if test -z "$INSTALL"; then
3650 if test "${ac_cv_path_install+set}" = set; then
3651 $as_echo_n "(cached) " >&6
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 # Account for people who put trailing slashes in PATH elements.
3659 case $as_dir/ in
3660 ./ | .// | /cC/* | \
3661 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3662 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3663 /usr/ucb/* ) ;;
3665 # OSF1 and SCO ODT 3.0 have their own names for install.
3666 # Don't use installbsd from OSF since it installs stuff as root
3667 # by default.
3668 for ac_prog in ginstall scoinst install; do
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3671 if test $ac_prog = install &&
3672 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3673 # AIX install. It has an incompatible calling convention.
3675 elif test $ac_prog = install &&
3676 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3677 # program-specific install script used by HP pwplus--don't use.
3679 else
3680 rm -rf conftest.one conftest.two conftest.dir
3681 echo one > conftest.one
3682 echo two > conftest.two
3683 mkdir conftest.dir
3684 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3685 test -s conftest.one && test -s conftest.two &&
3686 test -s conftest.dir/conftest.one &&
3687 test -s conftest.dir/conftest.two
3688 then
3689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3690 break 3
3694 done
3695 done
3697 esac
3699 done
3700 IFS=$as_save_IFS
3702 rm -rf conftest.one conftest.two conftest.dir
3705 if test "${ac_cv_path_install+set}" = set; then
3706 INSTALL=$ac_cv_path_install
3707 else
3708 # As a last resort, use the slow shell script. Don't cache a
3709 # value for INSTALL within a source directory, because that will
3710 # break other packages using the cache if that directory is
3711 # removed, or if the value is a relative name.
3712 INSTALL=$ac_install_sh
3715 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3716 $as_echo "$INSTALL" >&6; }
3718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3719 # It thinks the first close brace ends the variable substitution.
3720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3726 case "$INSTALL" in
3729 */*)
3730 INSTALL="`pwd`/$INSTALL" ;;
3731 esac
3734 # checks for header files
3738 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3739 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3740 if test "${ac_cv_path_GREP+set}" = set; then
3741 $as_echo_n "(cached) " >&6
3742 else
3743 if test -z "$GREP"; then
3744 ac_path_GREP_found=false
3745 # Loop through the user's path and test for each of PROGNAME-LIST
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in grep ggrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3754 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3755 # Check for GNU ac_path_GREP and select it if it is found.
3756 # Check for GNU $ac_path_GREP
3757 case `"$ac_path_GREP" --version 2>&1` in
3758 *GNU*)
3759 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3761 ac_count=0
3762 $as_echo_n 0123456789 >"conftest.in"
3763 while :
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 $as_echo 'GREP' >> "conftest.nl"
3769 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 ac_count=`expr $ac_count + 1`
3772 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_GREP="$ac_path_GREP"
3775 ac_path_GREP_max=$ac_count
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3779 done
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781 esac
3783 $ac_path_GREP_found && break 3
3784 done
3785 done
3786 done
3787 IFS=$as_save_IFS
3788 if test -z "$ac_cv_path_GREP"; then
3789 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3790 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3791 { (exit 1); exit 1; }; }
3793 else
3794 ac_cv_path_GREP=$GREP
3798 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3799 $as_echo "$ac_cv_path_GREP" >&6; }
3800 GREP="$ac_cv_path_GREP"
3803 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3804 $as_echo_n "checking for egrep... " >&6; }
3805 if test "${ac_cv_path_EGREP+set}" = set; then
3806 $as_echo_n "(cached) " >&6
3807 else
3808 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3809 then ac_cv_path_EGREP="$GREP -E"
3810 else
3811 if test -z "$EGREP"; then
3812 ac_path_EGREP_found=false
3813 # Loop through the user's path and test for each of PROGNAME-LIST
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_prog in egrep; do
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3822 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3823 # Check for GNU ac_path_EGREP and select it if it is found.
3824 # Check for GNU $ac_path_EGREP
3825 case `"$ac_path_EGREP" --version 2>&1` in
3826 *GNU*)
3827 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3829 ac_count=0
3830 $as_echo_n 0123456789 >"conftest.in"
3831 while :
3833 cat "conftest.in" "conftest.in" >"conftest.tmp"
3834 mv "conftest.tmp" "conftest.in"
3835 cp "conftest.in" "conftest.nl"
3836 $as_echo 'EGREP' >> "conftest.nl"
3837 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3839 ac_count=`expr $ac_count + 1`
3840 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3841 # Best one so far, save it but keep looking for a better one
3842 ac_cv_path_EGREP="$ac_path_EGREP"
3843 ac_path_EGREP_max=$ac_count
3845 # 10*(2^10) chars as input seems more than enough
3846 test $ac_count -gt 10 && break
3847 done
3848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3849 esac
3851 $ac_path_EGREP_found && break 3
3852 done
3853 done
3854 done
3855 IFS=$as_save_IFS
3856 if test -z "$ac_cv_path_EGREP"; then
3857 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3858 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3859 { (exit 1); exit 1; }; }
3861 else
3862 ac_cv_path_EGREP=$EGREP
3867 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3868 $as_echo "$ac_cv_path_EGREP" >&6; }
3869 EGREP="$ac_cv_path_EGREP"
3872 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3873 $as_echo_n "checking for ANSI C header files... " >&6; }
3874 if test "${ac_cv_header_stdc+set}" = set; then
3875 $as_echo_n "(cached) " >&6
3876 else
3877 cat >conftest.$ac_ext <<_ACEOF
3878 /* confdefs.h. */
3879 _ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3883 #include <stdlib.h>
3884 #include <stdarg.h>
3885 #include <string.h>
3886 #include <float.h>
3889 main ()
3893 return 0;
3895 _ACEOF
3896 rm -f conftest.$ac_objext
3897 if { (ac_try="$ac_compile"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3903 $as_echo "$ac_try_echo") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3905 ac_status=$?
3906 grep -v '^ *+' conftest.er1 >conftest.err
3907 rm -f conftest.er1
3908 cat conftest.err >&5
3909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } && {
3911 test -z "$ac_c_werror_flag" ||
3912 test ! -s conftest.err
3913 } && test -s conftest.$ac_objext; then
3914 ac_cv_header_stdc=yes
3915 else
3916 $as_echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 ac_cv_header_stdc=no
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 if test $ac_cv_header_stdc = yes; then
3925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3926 cat >conftest.$ac_ext <<_ACEOF
3927 /* confdefs.h. */
3928 _ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3932 #include <string.h>
3934 _ACEOF
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 $EGREP "memchr" >/dev/null 2>&1; then
3938 else
3939 ac_cv_header_stdc=no
3941 rm -f conftest*
3945 if test $ac_cv_header_stdc = yes; then
3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 #include <stdlib.h>
3955 _ACEOF
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "free" >/dev/null 2>&1; then
3959 else
3960 ac_cv_header_stdc=no
3962 rm -f conftest*
3966 if test $ac_cv_header_stdc = yes; then
3967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3968 if test "$cross_compiling" = yes; then
3970 else
3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 #include <ctype.h>
3978 #include <stdlib.h>
3979 #if ((' ' & 0x0FF) == 0x020)
3980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3982 #else
3983 # define ISLOWER(c) \
3984 (('a' <= (c) && (c) <= 'i') \
3985 || ('j' <= (c) && (c) <= 'r') \
3986 || ('s' <= (c) && (c) <= 'z'))
3987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3988 #endif
3990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3992 main ()
3994 int i;
3995 for (i = 0; i < 256; i++)
3996 if (XOR (islower (i), ISLOWER (i))
3997 || toupper (i) != TOUPPER (i))
3998 return 2;
3999 return 0;
4001 _ACEOF
4002 rm -f conftest$ac_exeext
4003 if { (ac_try="$ac_link"
4004 case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007 esac
4008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4009 $as_echo "$ac_try_echo") >&5
4010 (eval "$ac_link") 2>&5
4011 ac_status=$?
4012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4014 { (case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017 esac
4018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4019 $as_echo "$ac_try_echo") >&5
4020 (eval "$ac_try") 2>&5
4021 ac_status=$?
4022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4025 else
4026 $as_echo "$as_me: program exited with status $ac_status" >&5
4027 $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 ( exit $ac_status )
4031 ac_cv_header_stdc=no
4033 rm -rf conftest.dSYM
4034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4040 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4041 $as_echo "$ac_cv_header_stdc" >&6; }
4042 if test $ac_cv_header_stdc = yes; then
4044 cat >>confdefs.h <<\_ACEOF
4045 #define STDC_HEADERS 1
4046 _ACEOF
4050 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4060 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4061 inttypes.h stdint.h unistd.h
4063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4064 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4065 $as_echo_n "checking for $ac_header... " >&6; }
4066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4067 $as_echo_n "(cached) " >&6
4068 else
4069 cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h. */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 $ac_includes_default
4077 #include <$ac_header>
4078 _ACEOF
4079 rm -f conftest.$ac_objext
4080 if { (ac_try="$ac_compile"
4081 case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084 esac
4085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4086 $as_echo "$ac_try_echo") >&5
4087 (eval "$ac_compile") 2>conftest.er1
4088 ac_status=$?
4089 grep -v '^ *+' conftest.er1 >conftest.err
4090 rm -f conftest.er1
4091 cat conftest.err >&5
4092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } && {
4094 test -z "$ac_c_werror_flag" ||
4095 test ! -s conftest.err
4096 } && test -s conftest.$ac_objext; then
4097 eval "$as_ac_Header=yes"
4098 else
4099 $as_echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4102 eval "$as_ac_Header=no"
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_res=`eval 'as_val=${'$as_ac_Header'}
4108 $as_echo "$as_val"'`
4109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4110 $as_echo "$ac_res" >&6; }
4111 if test `eval 'as_val=${'$as_ac_Header'}
4112 $as_echo "$as_val"'` = yes; then
4113 cat >>confdefs.h <<_ACEOF
4114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4115 _ACEOF
4119 done
4124 for ac_header in fcntl.h unistd.h
4126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4129 $as_echo_n "checking for $ac_header... " >&6; }
4130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4131 $as_echo_n "(cached) " >&6
4133 ac_res=`eval 'as_val=${'$as_ac_Header'}
4134 $as_echo "$as_val"'`
4135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4136 $as_echo "$ac_res" >&6; }
4137 else
4138 # Is the header compilable?
4139 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4140 $as_echo_n "checking $ac_header usability... " >&6; }
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 $ac_includes_default
4148 #include <$ac_header>
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (ac_try="$ac_compile"
4152 case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155 esac
4156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4157 $as_echo "$ac_try_echo") >&5
4158 (eval "$ac_compile") 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } && {
4165 test -z "$ac_c_werror_flag" ||
4166 test ! -s conftest.err
4167 } && test -s conftest.$ac_objext; then
4168 ac_header_compiler=yes
4169 else
4170 $as_echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4173 ac_header_compiler=no
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4178 $as_echo "$ac_header_compiler" >&6; }
4180 # Is the header present?
4181 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4182 $as_echo_n "checking $ac_header presence... " >&6; }
4183 cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h. */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 #include <$ac_header>
4190 _ACEOF
4191 if { (ac_try="$ac_cpp conftest.$ac_ext"
4192 case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195 esac
4196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4197 $as_echo "$ac_try_echo") >&5
4198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4199 ac_status=$?
4200 grep -v '^ *+' conftest.er1 >conftest.err
4201 rm -f conftest.er1
4202 cat conftest.err >&5
4203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } >/dev/null && {
4205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4207 }; then
4208 ac_header_preproc=yes
4209 else
4210 $as_echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 ac_header_preproc=no
4216 rm -f conftest.err conftest.$ac_ext
4217 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4218 $as_echo "$ac_header_preproc" >&6; }
4220 # So? What about this header?
4221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4222 yes:no: )
4223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4224 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4227 ac_header_preproc=yes
4229 no:yes:* )
4230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4231 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4233 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4235 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4237 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4241 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4242 ( cat <<\_ASBOX
4243 ## ---------------------------------- ##
4244 ## Report this to freetype@nongnu.org ##
4245 ## ---------------------------------- ##
4246 _ASBOX
4247 ) | sed "s/^/$as_me: WARNING: /" >&2
4249 esac
4250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4251 $as_echo_n "checking for $ac_header... " >&6; }
4252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4253 $as_echo_n "(cached) " >&6
4254 else
4255 eval "$as_ac_Header=\$ac_header_preproc"
4257 ac_res=`eval 'as_val=${'$as_ac_Header'}
4258 $as_echo "$as_val"'`
4259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4260 $as_echo "$ac_res" >&6; }
4263 if test `eval 'as_val=${'$as_ac_Header'}
4264 $as_echo "$as_val"'` = yes; then
4265 cat >>confdefs.h <<_ACEOF
4266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4267 _ACEOF
4271 done
4275 # checks for typedefs, structures, and compiler characteristics
4277 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4278 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4279 if test "${ac_cv_c_const+set}" = set; then
4280 $as_echo_n "(cached) " >&6
4281 else
4282 cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h. */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4290 main ()
4292 /* FIXME: Include the comments suggested by Paul. */
4293 #ifndef __cplusplus
4294 /* Ultrix mips cc rejects this. */
4295 typedef int charset[2];
4296 const charset cs;
4297 /* SunOS 4.1.1 cc rejects this. */
4298 char const *const *pcpcc;
4299 char **ppc;
4300 /* NEC SVR4.0.2 mips cc rejects this. */
4301 struct point {int x, y;};
4302 static struct point const zero = {0,0};
4303 /* AIX XL C 1.02.0.0 rejects this.
4304 It does not let you subtract one const X* pointer from another in
4305 an arm of an if-expression whose if-part is not a constant
4306 expression */
4307 const char *g = "string";
4308 pcpcc = &g + (g ? g-g : 0);
4309 /* HPUX 7.0 cc rejects these. */
4310 ++pcpcc;
4311 ppc = (char**) pcpcc;
4312 pcpcc = (char const *const *) ppc;
4313 { /* SCO 3.2v4 cc rejects this. */
4314 char *t;
4315 char const *s = 0 ? (char *) 0 : (char const *) 0;
4317 *t++ = 0;
4318 if (s) return 0;
4320 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4321 int x[] = {25, 17};
4322 const int *foo = &x[0];
4323 ++foo;
4325 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4326 typedef const int *iptr;
4327 iptr p = 0;
4328 ++p;
4330 { /* AIX XL C 1.02.0.0 rejects this saying
4331 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4332 struct s { int j; const int *ap[3]; };
4333 struct s *b; b->j = 5;
4335 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4336 const int foo = 10;
4337 if (!foo) return 0;
4339 return !cs[0] && !zero.x;
4340 #endif
4343 return 0;
4345 _ACEOF
4346 rm -f conftest.$ac_objext
4347 if { (ac_try="$ac_compile"
4348 case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4353 $as_echo "$ac_try_echo") >&5
4354 (eval "$ac_compile") 2>conftest.er1
4355 ac_status=$?
4356 grep -v '^ *+' conftest.er1 >conftest.err
4357 rm -f conftest.er1
4358 cat conftest.err >&5
4359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); } && {
4361 test -z "$ac_c_werror_flag" ||
4362 test ! -s conftest.err
4363 } && test -s conftest.$ac_objext; then
4364 ac_cv_c_const=yes
4365 else
4366 $as_echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 ac_cv_c_const=no
4372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4375 $as_echo "$ac_cv_c_const" >&6; }
4376 if test $ac_cv_c_const = no; then
4378 cat >>confdefs.h <<\_ACEOF
4379 #define const /**/
4380 _ACEOF
4384 # The cast to long int works around a bug in the HP C Compiler
4385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4387 # This bug is HP SR number 8606223364.
4388 { $as_echo "$as_me:$LINENO: checking size of int" >&5
4389 $as_echo_n "checking size of int... " >&6; }
4390 if test "${ac_cv_sizeof_int+set}" = set; then
4391 $as_echo_n "(cached) " >&6
4392 else
4393 if test "$cross_compiling" = yes; then
4394 # Depending upon the size, compute the lo and hi bounds.
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h. */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4401 $ac_includes_default
4403 main ()
4405 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
4406 test_array [0] = 0
4409 return 0;
4411 _ACEOF
4412 rm -f conftest.$ac_objext
4413 if { (ac_try="$ac_compile"
4414 case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417 esac
4418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4419 $as_echo "$ac_try_echo") >&5
4420 (eval "$ac_compile") 2>conftest.er1
4421 ac_status=$?
4422 grep -v '^ *+' conftest.er1 >conftest.err
4423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } && {
4427 test -z "$ac_c_werror_flag" ||
4428 test ! -s conftest.err
4429 } && test -s conftest.$ac_objext; then
4430 ac_lo=0 ac_mid=0
4431 while :; do
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h. */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4440 main ()
4442 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
4443 test_array [0] = 0
4446 return 0;
4448 _ACEOF
4449 rm -f conftest.$ac_objext
4450 if { (ac_try="$ac_compile"
4451 case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454 esac
4455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4456 $as_echo "$ac_try_echo") >&5
4457 (eval "$ac_compile") 2>conftest.er1
4458 ac_status=$?
4459 grep -v '^ *+' conftest.er1 >conftest.err
4460 rm -f conftest.er1
4461 cat conftest.err >&5
4462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } && {
4464 test -z "$ac_c_werror_flag" ||
4465 test ! -s conftest.err
4466 } && test -s conftest.$ac_objext; then
4467 ac_hi=$ac_mid; break
4468 else
4469 $as_echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 ac_lo=`expr $ac_mid + 1`
4473 if test $ac_lo -le $ac_mid; then
4474 ac_lo= ac_hi=
4475 break
4477 ac_mid=`expr 2 '*' $ac_mid + 1`
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4481 done
4482 else
4483 $as_echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h. */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 $ac_includes_default
4494 main ()
4496 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
4497 test_array [0] = 0
4500 return 0;
4502 _ACEOF
4503 rm -f conftest.$ac_objext
4504 if { (ac_try="$ac_compile"
4505 case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4510 $as_echo "$ac_try_echo") >&5
4511 (eval "$ac_compile") 2>conftest.er1
4512 ac_status=$?
4513 grep -v '^ *+' conftest.er1 >conftest.err
4514 rm -f conftest.er1
4515 cat conftest.err >&5
4516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } && {
4518 test -z "$ac_c_werror_flag" ||
4519 test ! -s conftest.err
4520 } && test -s conftest.$ac_objext; then
4521 ac_hi=-1 ac_mid=-1
4522 while :; do
4523 cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h. */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 $ac_includes_default
4531 main ()
4533 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
4534 test_array [0] = 0
4537 return 0;
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (ac_try="$ac_compile"
4542 case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545 esac
4546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4547 $as_echo "$ac_try_echo") >&5
4548 (eval "$ac_compile") 2>conftest.er1
4549 ac_status=$?
4550 grep -v '^ *+' conftest.er1 >conftest.err
4551 rm -f conftest.er1
4552 cat conftest.err >&5
4553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } && {
4555 test -z "$ac_c_werror_flag" ||
4556 test ! -s conftest.err
4557 } && test -s conftest.$ac_objext; then
4558 ac_lo=$ac_mid; break
4559 else
4560 $as_echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 ac_hi=`expr '(' $ac_mid ')' - 1`
4564 if test $ac_mid -le $ac_hi; then
4565 ac_lo= ac_hi=
4566 break
4568 ac_mid=`expr 2 '*' $ac_mid`
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 done
4573 else
4574 $as_echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4577 ac_lo= ac_hi=
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 # Binary search between lo and hi bounds.
4585 while test "x$ac_lo" != "x$ac_hi"; do
4586 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4587 cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h. */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593 $ac_includes_default
4595 main ()
4597 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
4598 test_array [0] = 0
4601 return 0;
4603 _ACEOF
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4606 case "(($ac_try" in
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4609 esac
4610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4611 $as_echo "$ac_try_echo") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4613 ac_status=$?
4614 grep -v '^ *+' conftest.er1 >conftest.err
4615 rm -f conftest.er1
4616 cat conftest.err >&5
4617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_c_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.$ac_objext; then
4622 ac_hi=$ac_mid
4623 else
4624 $as_echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_lo=`expr '(' $ac_mid ')' + 1`
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 done
4632 case $ac_lo in
4633 ?*) ac_cv_sizeof_int=$ac_lo;;
4634 '') if test "$ac_cv_type_int" = yes; then
4635 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4636 See \`config.log' for more details." >&5
4637 $as_echo "$as_me: error: cannot compute sizeof (int)
4638 See \`config.log' for more details." >&2;}
4639 { (exit 77); exit 77; }; }
4640 else
4641 ac_cv_sizeof_int=0
4642 fi ;;
4643 esac
4644 else
4645 cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h. */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 $ac_includes_default
4652 static long int longval () { return (long int) (sizeof (int)); }
4653 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
4654 #include <stdio.h>
4655 #include <stdlib.h>
4657 main ()
4660 FILE *f = fopen ("conftest.val", "w");
4661 if (! f)
4662 return 1;
4663 if (((long int) (sizeof (int))) < 0)
4665 long int i = longval ();
4666 if (i != ((long int) (sizeof (int))))
4667 return 1;
4668 fprintf (f, "%ld", i);
4670 else
4672 unsigned long int i = ulongval ();
4673 if (i != ((long int) (sizeof (int))))
4674 return 1;
4675 fprintf (f, "%lu", i);
4677 /* Do not output a trailing newline, as this causes \r\n confusion
4678 on some platforms. */
4679 return ferror (f) || fclose (f) != 0;
4682 return 0;
4684 _ACEOF
4685 rm -f conftest$ac_exeext
4686 if { (ac_try="$ac_link"
4687 case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4690 esac
4691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692 $as_echo "$ac_try_echo") >&5
4693 (eval "$ac_link") 2>&5
4694 ac_status=$?
4695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4697 { (case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700 esac
4701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4702 $as_echo "$ac_try_echo") >&5
4703 (eval "$ac_try") 2>&5
4704 ac_status=$?
4705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 ac_cv_sizeof_int=`cat conftest.val`
4708 else
4709 $as_echo "$as_me: program exited with status $ac_status" >&5
4710 $as_echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4713 ( exit $ac_status )
4714 if test "$ac_cv_type_int" = yes; then
4715 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
4716 See \`config.log' for more details." >&5
4717 $as_echo "$as_me: error: cannot compute sizeof (int)
4718 See \`config.log' for more details." >&2;}
4719 { (exit 77); exit 77; }; }
4720 else
4721 ac_cv_sizeof_int=0
4724 rm -rf conftest.dSYM
4725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4727 rm -f conftest.val
4729 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4730 $as_echo "$ac_cv_sizeof_int" >&6; }
4734 cat >>confdefs.h <<_ACEOF
4735 #define SIZEOF_INT $ac_cv_sizeof_int
4736 _ACEOF
4739 # The cast to long int works around a bug in the HP C Compiler
4740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4742 # This bug is HP SR number 8606223364.
4743 { $as_echo "$as_me:$LINENO: checking size of long" >&5
4744 $as_echo_n "checking size of long... " >&6; }
4745 if test "${ac_cv_sizeof_long+set}" = set; then
4746 $as_echo_n "(cached) " >&6
4747 else
4748 if test "$cross_compiling" = yes; then
4749 # Depending upon the size, compute the lo and hi bounds.
4750 cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h. */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4756 $ac_includes_default
4758 main ()
4760 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
4761 test_array [0] = 0
4764 return 0;
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (ac_try="$ac_compile"
4769 case "(($ac_try" in
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4772 esac
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775 (eval "$ac_compile") 2>conftest.er1
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } && {
4782 test -z "$ac_c_werror_flag" ||
4783 test ! -s conftest.err
4784 } && test -s conftest.$ac_objext; then
4785 ac_lo=0 ac_mid=0
4786 while :; do
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4795 main ()
4797 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
4798 test_array [0] = 0
4801 return 0;
4803 _ACEOF
4804 rm -f conftest.$ac_objext
4805 if { (ac_try="$ac_compile"
4806 case "(($ac_try" in
4807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808 *) ac_try_echo=$ac_try;;
4809 esac
4810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4811 $as_echo "$ac_try_echo") >&5
4812 (eval "$ac_compile") 2>conftest.er1
4813 ac_status=$?
4814 grep -v '^ *+' conftest.er1 >conftest.err
4815 rm -f conftest.er1
4816 cat conftest.err >&5
4817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && {
4819 test -z "$ac_c_werror_flag" ||
4820 test ! -s conftest.err
4821 } && test -s conftest.$ac_objext; then
4822 ac_hi=$ac_mid; break
4823 else
4824 $as_echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 ac_lo=`expr $ac_mid + 1`
4828 if test $ac_lo -le $ac_mid; then
4829 ac_lo= ac_hi=
4830 break
4832 ac_mid=`expr 2 '*' $ac_mid + 1`
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 done
4837 else
4838 $as_echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h. */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 $ac_includes_default
4849 main ()
4851 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
4852 test_array [0] = 0
4855 return 0;
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (ac_try="$ac_compile"
4860 case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863 esac
4864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4865 $as_echo "$ac_try_echo") >&5
4866 (eval "$ac_compile") 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } && {
4873 test -z "$ac_c_werror_flag" ||
4874 test ! -s conftest.err
4875 } && test -s conftest.$ac_objext; then
4876 ac_hi=-1 ac_mid=-1
4877 while :; do
4878 cat >conftest.$ac_ext <<_ACEOF
4879 /* confdefs.h. */
4880 _ACEOF
4881 cat confdefs.h >>conftest.$ac_ext
4882 cat >>conftest.$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 $ac_includes_default
4886 main ()
4888 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
4889 test_array [0] = 0
4892 return 0;
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (ac_try="$ac_compile"
4897 case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4902 $as_echo "$ac_try_echo") >&5
4903 (eval "$ac_compile") 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && {
4910 test -z "$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest.$ac_objext; then
4913 ac_lo=$ac_mid; break
4914 else
4915 $as_echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 ac_hi=`expr '(' $ac_mid ')' - 1`
4919 if test $ac_mid -le $ac_hi; then
4920 ac_lo= ac_hi=
4921 break
4923 ac_mid=`expr 2 '*' $ac_mid`
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 done
4928 else
4929 $as_echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 ac_lo= ac_hi=
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 # Binary search between lo and hi bounds.
4940 while test "x$ac_lo" != "x$ac_hi"; do
4941 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 $ac_includes_default
4950 main ()
4952 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
4953 test_array [0] = 0
4956 return 0;
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (ac_try="$ac_compile"
4961 case "(($ac_try" in
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4964 esac
4965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4966 $as_echo "$ac_try_echo") >&5
4967 (eval "$ac_compile") 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && {
4974 test -z "$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4976 } && test -s conftest.$ac_objext; then
4977 ac_hi=$ac_mid
4978 else
4979 $as_echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4982 ac_lo=`expr '(' $ac_mid ')' + 1`
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 done
4987 case $ac_lo in
4988 ?*) ac_cv_sizeof_long=$ac_lo;;
4989 '') if test "$ac_cv_type_long" = yes; then
4990 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
4991 See \`config.log' for more details." >&5
4992 $as_echo "$as_me: error: cannot compute sizeof (long)
4993 See \`config.log' for more details." >&2;}
4994 { (exit 77); exit 77; }; }
4995 else
4996 ac_cv_sizeof_long=0
4997 fi ;;
4998 esac
4999 else
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 $ac_includes_default
5007 static long int longval () { return (long int) (sizeof (long)); }
5008 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
5009 #include <stdio.h>
5010 #include <stdlib.h>
5012 main ()
5015 FILE *f = fopen ("conftest.val", "w");
5016 if (! f)
5017 return 1;
5018 if (((long int) (sizeof (long))) < 0)
5020 long int i = longval ();
5021 if (i != ((long int) (sizeof (long))))
5022 return 1;
5023 fprintf (f, "%ld", i);
5025 else
5027 unsigned long int i = ulongval ();
5028 if (i != ((long int) (sizeof (long))))
5029 return 1;
5030 fprintf (f, "%lu", i);
5032 /* Do not output a trailing newline, as this causes \r\n confusion
5033 on some platforms. */
5034 return ferror (f) || fclose (f) != 0;
5037 return 0;
5039 _ACEOF
5040 rm -f conftest$ac_exeext
5041 if { (ac_try="$ac_link"
5042 case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045 esac
5046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5047 $as_echo "$ac_try_echo") >&5
5048 (eval "$ac_link") 2>&5
5049 ac_status=$?
5050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5052 { (case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055 esac
5056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5057 $as_echo "$ac_try_echo") >&5
5058 (eval "$ac_try") 2>&5
5059 ac_status=$?
5060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_cv_sizeof_long=`cat conftest.val`
5063 else
5064 $as_echo "$as_me: program exited with status $ac_status" >&5
5065 $as_echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5068 ( exit $ac_status )
5069 if test "$ac_cv_type_long" = yes; then
5070 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5071 See \`config.log' for more details." >&5
5072 $as_echo "$as_me: error: cannot compute sizeof (long)
5073 See \`config.log' for more details." >&2;}
5074 { (exit 77); exit 77; }; }
5075 else
5076 ac_cv_sizeof_long=0
5079 rm -rf conftest.dSYM
5080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5082 rm -f conftest.val
5084 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5085 $as_echo "$ac_cv_sizeof_long" >&6; }
5089 cat >>confdefs.h <<_ACEOF
5090 #define SIZEOF_LONG $ac_cv_sizeof_long
5091 _ACEOF
5096 # checks for library functions
5098 # Here we check whether we can use our mmap file component.
5102 for ac_header in stdlib.h unistd.h
5104 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5106 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5107 $as_echo_n "checking for $ac_header... " >&6; }
5108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5109 $as_echo_n "(cached) " >&6
5111 ac_res=`eval 'as_val=${'$as_ac_Header'}
5112 $as_echo "$as_val"'`
5113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5114 $as_echo "$ac_res" >&6; }
5115 else
5116 # Is the header compilable?
5117 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5118 $as_echo_n "checking $ac_header usability... " >&6; }
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 $ac_includes_default
5126 #include <$ac_header>
5127 _ACEOF
5128 rm -f conftest.$ac_objext
5129 if { (ac_try="$ac_compile"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5135 $as_echo "$ac_try_echo") >&5
5136 (eval "$ac_compile") 2>conftest.er1
5137 ac_status=$?
5138 grep -v '^ *+' conftest.er1 >conftest.err
5139 rm -f conftest.er1
5140 cat conftest.err >&5
5141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } && {
5143 test -z "$ac_c_werror_flag" ||
5144 test ! -s conftest.err
5145 } && test -s conftest.$ac_objext; then
5146 ac_header_compiler=yes
5147 else
5148 $as_echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5151 ac_header_compiler=no
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5156 $as_echo "$ac_header_compiler" >&6; }
5158 # Is the header present?
5159 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5160 $as_echo_n "checking $ac_header presence... " >&6; }
5161 cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h. */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h. */
5167 #include <$ac_header>
5168 _ACEOF
5169 if { (ac_try="$ac_cpp conftest.$ac_ext"
5170 case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173 esac
5174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5175 $as_echo "$ac_try_echo") >&5
5176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } >/dev/null && {
5183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5184 test ! -s conftest.err
5185 }; then
5186 ac_header_preproc=yes
5187 else
5188 $as_echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5191 ac_header_preproc=no
5194 rm -f conftest.err conftest.$ac_ext
5195 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5196 $as_echo "$ac_header_preproc" >&6; }
5198 # So? What about this header?
5199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5200 yes:no: )
5201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5202 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5204 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5205 ac_header_preproc=yes
5207 no:yes:* )
5208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5209 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5211 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5213 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5215 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5217 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5219 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5220 ( cat <<\_ASBOX
5221 ## ---------------------------------- ##
5222 ## Report this to freetype@nongnu.org ##
5223 ## ---------------------------------- ##
5224 _ASBOX
5225 ) | sed "s/^/$as_me: WARNING: /" >&2
5227 esac
5228 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5229 $as_echo_n "checking for $ac_header... " >&6; }
5230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5231 $as_echo_n "(cached) " >&6
5232 else
5233 eval "$as_ac_Header=\$ac_header_preproc"
5235 ac_res=`eval 'as_val=${'$as_ac_Header'}
5236 $as_echo "$as_val"'`
5237 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5238 $as_echo "$ac_res" >&6; }
5241 if test `eval 'as_val=${'$as_ac_Header'}
5242 $as_echo "$as_val"'` = yes; then
5243 cat >>confdefs.h <<_ACEOF
5244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5245 _ACEOF
5249 done
5252 for ac_func in getpagesize
5254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5255 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5256 $as_echo_n "checking for $ac_func... " >&6; }
5257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5258 $as_echo_n "(cached) " >&6
5259 else
5260 cat >conftest.$ac_ext <<_ACEOF
5261 /* confdefs.h. */
5262 _ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5268 #define $ac_func innocuous_$ac_func
5270 /* System header to define __stub macros and hopefully few prototypes,
5271 which can conflict with char $ac_func (); below.
5272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5273 <limits.h> exists even on freestanding compilers. */
5275 #ifdef __STDC__
5276 # include <limits.h>
5277 #else
5278 # include <assert.h>
5279 #endif
5281 #undef $ac_func
5283 /* Override any GCC internal prototype to avoid an error.
5284 Use char because int might match the return type of a GCC
5285 builtin and then its argument prototype would still apply. */
5286 #ifdef __cplusplus
5287 extern "C"
5288 #endif
5289 char $ac_func ();
5290 /* The GNU C library defines this for functions which it implements
5291 to always fail with ENOSYS. Some functions are actually named
5292 something starting with __ and the normal name is an alias. */
5293 #if defined __stub_$ac_func || defined __stub___$ac_func
5294 choke me
5295 #endif
5298 main ()
5300 return $ac_func ();
5302 return 0;
5304 _ACEOF
5305 rm -f conftest.$ac_objext conftest$ac_exeext
5306 if { (ac_try="$ac_link"
5307 case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310 esac
5311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5312 $as_echo "$ac_try_echo") >&5
5313 (eval "$ac_link") 2>conftest.er1
5314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } && {
5320 test -z "$ac_c_werror_flag" ||
5321 test ! -s conftest.err
5322 } && test -s conftest$ac_exeext && {
5323 test "$cross_compiling" = yes ||
5324 $as_test_x conftest$ac_exeext
5325 }; then
5326 eval "$as_ac_var=yes"
5327 else
5328 $as_echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5331 eval "$as_ac_var=no"
5334 rm -rf conftest.dSYM
5335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5336 conftest$ac_exeext conftest.$ac_ext
5338 ac_res=`eval 'as_val=${'$as_ac_var'}
5339 $as_echo "$as_val"'`
5340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5341 $as_echo "$ac_res" >&6; }
5342 if test `eval 'as_val=${'$as_ac_var'}
5343 $as_echo "$as_val"'` = yes; then
5344 cat >>confdefs.h <<_ACEOF
5345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5346 _ACEOF
5349 done
5351 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
5352 $as_echo_n "checking for working mmap... " >&6; }
5353 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test "$cross_compiling" = yes; then
5357 ac_cv_func_mmap_fixed_mapped=no
5358 else
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h. */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 $ac_includes_default
5366 /* malloc might have been renamed as rpl_malloc. */
5367 #undef malloc
5369 /* Thanks to Mike Haertel and Jim Avera for this test.
5370 Here is a matrix of mmap possibilities:
5371 mmap private not fixed
5372 mmap private fixed at somewhere currently unmapped
5373 mmap private fixed at somewhere already mapped
5374 mmap shared not fixed
5375 mmap shared fixed at somewhere currently unmapped
5376 mmap shared fixed at somewhere already mapped
5377 For private mappings, we should verify that changes cannot be read()
5378 back from the file, nor mmap's back from the file at a different
5379 address. (There have been systems where private was not correctly
5380 implemented like the infamous i386 svr4.0, and systems where the
5381 VM page cache was not coherent with the file system buffer cache
5382 like early versions of FreeBSD and possibly contemporary NetBSD.)
5383 For shared mappings, we should conversely verify that changes get
5384 propagated back to all the places they're supposed to be.
5386 Grep wants private fixed already mapped.
5387 The main things grep needs to know about mmap are:
5388 * does it exist and is it safe to write into the mmap'd area
5389 * how to use it (BSD variants) */
5391 #include <fcntl.h>
5392 #include <sys/mman.h>
5394 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5395 char *malloc ();
5396 #endif
5398 /* This mess was copied from the GNU getpagesize.h. */
5399 #ifndef HAVE_GETPAGESIZE
5400 /* Assume that all systems that can run configure have sys/param.h. */
5401 # ifndef HAVE_SYS_PARAM_H
5402 # define HAVE_SYS_PARAM_H 1
5403 # endif
5405 # ifdef _SC_PAGESIZE
5406 # define getpagesize() sysconf(_SC_PAGESIZE)
5407 # else /* no _SC_PAGESIZE */
5408 # ifdef HAVE_SYS_PARAM_H
5409 # include <sys/param.h>
5410 # ifdef EXEC_PAGESIZE
5411 # define getpagesize() EXEC_PAGESIZE
5412 # else /* no EXEC_PAGESIZE */
5413 # ifdef NBPG
5414 # define getpagesize() NBPG * CLSIZE
5415 # ifndef CLSIZE
5416 # define CLSIZE 1
5417 # endif /* no CLSIZE */
5418 # else /* no NBPG */
5419 # ifdef NBPC
5420 # define getpagesize() NBPC
5421 # else /* no NBPC */
5422 # ifdef PAGESIZE
5423 # define getpagesize() PAGESIZE
5424 # endif /* PAGESIZE */
5425 # endif /* no NBPC */
5426 # endif /* no NBPG */
5427 # endif /* no EXEC_PAGESIZE */
5428 # else /* no HAVE_SYS_PARAM_H */
5429 # define getpagesize() 8192 /* punt totally */
5430 # endif /* no HAVE_SYS_PARAM_H */
5431 # endif /* no _SC_PAGESIZE */
5433 #endif /* no HAVE_GETPAGESIZE */
5436 main ()
5438 char *data, *data2, *data3;
5439 int i, pagesize;
5440 int fd;
5442 pagesize = getpagesize ();
5444 /* First, make a file with some known garbage in it. */
5445 data = (char *) malloc (pagesize);
5446 if (!data)
5447 return 1;
5448 for (i = 0; i < pagesize; ++i)
5449 *(data + i) = rand ();
5450 umask (0);
5451 fd = creat ("conftest.mmap", 0600);
5452 if (fd < 0)
5453 return 1;
5454 if (write (fd, data, pagesize) != pagesize)
5455 return 1;
5456 close (fd);
5458 /* Next, try to mmap the file at a fixed address which already has
5459 something else allocated at it. If we can, also make sure that
5460 we see the same garbage. */
5461 fd = open ("conftest.mmap", O_RDWR);
5462 if (fd < 0)
5463 return 1;
5464 data2 = (char *) malloc (2 * pagesize);
5465 if (!data2)
5466 return 1;
5467 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5468 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5469 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5470 return 1;
5471 for (i = 0; i < pagesize; ++i)
5472 if (*(data + i) != *(data2 + i))
5473 return 1;
5475 /* Finally, make sure that changes to the mapped area do not
5476 percolate back to the file as seen by read(). (This is a bug on
5477 some variants of i386 svr4.0.) */
5478 for (i = 0; i < pagesize; ++i)
5479 *(data2 + i) = *(data2 + i) + 1;
5480 data3 = (char *) malloc (pagesize);
5481 if (!data3)
5482 return 1;
5483 if (read (fd, data3, pagesize) != pagesize)
5484 return 1;
5485 for (i = 0; i < pagesize; ++i)
5486 if (*(data + i) != *(data3 + i))
5487 return 1;
5488 close (fd);
5489 return 0;
5491 _ACEOF
5492 rm -f conftest$ac_exeext
5493 if { (ac_try="$ac_link"
5494 case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497 esac
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499 $as_echo "$ac_try_echo") >&5
5500 (eval "$ac_link") 2>&5
5501 ac_status=$?
5502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5504 { (case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507 esac
5508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5509 $as_echo "$ac_try_echo") >&5
5510 (eval "$ac_try") 2>&5
5511 ac_status=$?
5512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; }; then
5514 ac_cv_func_mmap_fixed_mapped=yes
5515 else
5516 $as_echo "$as_me: program exited with status $ac_status" >&5
5517 $as_echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 ( exit $ac_status )
5521 ac_cv_func_mmap_fixed_mapped=no
5523 rm -rf conftest.dSYM
5524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5529 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5530 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5531 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5533 cat >>confdefs.h <<\_ACEOF
5534 #define HAVE_MMAP 1
5535 _ACEOF
5538 rm -f conftest.mmap
5540 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
5541 FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
5542 else
5543 FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
5545 { $as_echo "$as_me:$LINENO: checking whether munmap is declared" >&5
5546 $as_echo_n "checking whether munmap is declared... " >&6; }
5547 if test "${ac_cv_have_decl_munmap+set}" = set; then
5548 $as_echo_n "(cached) " >&6
5549 else
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5558 #ifdef HAVE_UNISTD_H
5559 #include <unistd.h>
5560 #endif
5561 #include <sys/mman.h>
5566 main ()
5568 #ifndef munmap
5569 (void) munmap;
5570 #endif
5573 return 0;
5575 _ACEOF
5576 rm -f conftest.$ac_objext
5577 if { (ac_try="$ac_compile"
5578 case "(($ac_try" in
5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5580 *) ac_try_echo=$ac_try;;
5581 esac
5582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5583 $as_echo "$ac_try_echo") >&5
5584 (eval "$ac_compile") 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && {
5591 test -z "$ac_c_werror_flag" ||
5592 test ! -s conftest.err
5593 } && test -s conftest.$ac_objext; then
5594 ac_cv_have_decl_munmap=yes
5595 else
5596 $as_echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5599 ac_cv_have_decl_munmap=no
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5604 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_munmap" >&5
5605 $as_echo "$ac_cv_have_decl_munmap" >&6; }
5606 if test $ac_cv_have_decl_munmap = yes; then
5608 cat >>confdefs.h <<_ACEOF
5609 #define HAVE_DECL_MUNMAP 1
5610 _ACEOF
5613 else
5614 cat >>confdefs.h <<_ACEOF
5615 #define HAVE_DECL_MUNMAP 0
5616 _ACEOF
5623 { $as_echo "$as_me:$LINENO: checking for munmap's first parameter type" >&5
5624 $as_echo_n "checking for munmap's first parameter type... " >&6; }
5625 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5634 #include <unistd.h>
5635 #include <sys/mman.h>
5636 int munmap(void *, size_t);
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (ac_try="$ac_compile"
5643 case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646 esac
5647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5648 $as_echo "$ac_try_echo") >&5
5649 (eval "$ac_compile") 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } && {
5656 test -z "$ac_c_werror_flag" ||
5657 test ! -s conftest.err
5658 } && test -s conftest.$ac_objext; then
5659 { $as_echo "$as_me:$LINENO: result: void *" >&5
5660 $as_echo "void *" >&6; }
5662 cat >>confdefs.h <<\_ACEOF
5663 #define MUNMAP_USES_VOIDP /**/
5664 _ACEOF
5666 else
5667 $as_echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 { $as_echo "$as_me:$LINENO: result: char *" >&5
5671 $as_echo "char *" >&6; }
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 for ac_func in memcpy memmove
5683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5684 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5685 $as_echo_n "checking for $ac_func... " >&6; }
5686 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5687 $as_echo_n "(cached) " >&6
5688 else
5689 cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h. */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5697 #define $ac_func innocuous_$ac_func
5699 /* System header to define __stub macros and hopefully few prototypes,
5700 which can conflict with char $ac_func (); below.
5701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5702 <limits.h> exists even on freestanding compilers. */
5704 #ifdef __STDC__
5705 # include <limits.h>
5706 #else
5707 # include <assert.h>
5708 #endif
5710 #undef $ac_func
5712 /* Override any GCC internal prototype to avoid an error.
5713 Use char because int might match the return type of a GCC
5714 builtin and then its argument prototype would still apply. */
5715 #ifdef __cplusplus
5716 extern "C"
5717 #endif
5718 char $ac_func ();
5719 /* The GNU C library defines this for functions which it implements
5720 to always fail with ENOSYS. Some functions are actually named
5721 something starting with __ and the normal name is an alias. */
5722 #if defined __stub_$ac_func || defined __stub___$ac_func
5723 choke me
5724 #endif
5727 main ()
5729 return $ac_func ();
5731 return 0;
5733 _ACEOF
5734 rm -f conftest.$ac_objext conftest$ac_exeext
5735 if { (ac_try="$ac_link"
5736 case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739 esac
5740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5741 $as_echo "$ac_try_echo") >&5
5742 (eval "$ac_link") 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && {
5749 test -z "$ac_c_werror_flag" ||
5750 test ! -s conftest.err
5751 } && test -s conftest$ac_exeext && {
5752 test "$cross_compiling" = yes ||
5753 $as_test_x conftest$ac_exeext
5754 }; then
5755 eval "$as_ac_var=yes"
5756 else
5757 $as_echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 eval "$as_ac_var=no"
5763 rm -rf conftest.dSYM
5764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5765 conftest$ac_exeext conftest.$ac_ext
5767 ac_res=`eval 'as_val=${'$as_ac_var'}
5768 $as_echo "$as_val"'`
5769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5770 $as_echo "$ac_res" >&6; }
5771 if test `eval 'as_val=${'$as_ac_var'}
5772 $as_echo "$as_val"'` = yes; then
5773 cat >>confdefs.h <<_ACEOF
5774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5775 _ACEOF
5778 done
5782 # check for system zlib
5784 # don't quote AS_HELP_STRING!
5786 # Check whether --with-zlib was given.
5787 if test "${with_zlib+set}" = set; then
5788 withval=$with_zlib;
5791 if test x$with_zlib != xno && test -z "$LIBZ"; then
5792 { $as_echo "$as_me:$LINENO: checking for gzsetparams in -lz" >&5
5793 $as_echo_n "checking for gzsetparams in -lz... " >&6; }
5794 if test "${ac_cv_lib_z_gzsetparams+set}" = set; then
5795 $as_echo_n "(cached) " >&6
5796 else
5797 ac_check_lib_save_LIBS=$LIBS
5798 LIBS="-lz $LIBS"
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5806 /* Override any GCC internal prototype to avoid an error.
5807 Use char because int might match the return type of a GCC
5808 builtin and then its argument prototype would still apply. */
5809 #ifdef __cplusplus
5810 extern "C"
5811 #endif
5812 char gzsetparams ();
5814 main ()
5816 return gzsetparams ();
5818 return 0;
5820 _ACEOF
5821 rm -f conftest.$ac_objext conftest$ac_exeext
5822 if { (ac_try="$ac_link"
5823 case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826 esac
5827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5828 $as_echo "$ac_try_echo") >&5
5829 (eval "$ac_link") 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest$ac_exeext && {
5839 test "$cross_compiling" = yes ||
5840 $as_test_x conftest$ac_exeext
5841 }; then
5842 ac_cv_lib_z_gzsetparams=yes
5843 else
5844 $as_echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 ac_cv_lib_z_gzsetparams=no
5850 rm -rf conftest.dSYM
5851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5852 conftest$ac_exeext conftest.$ac_ext
5853 LIBS=$ac_check_lib_save_LIBS
5855 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzsetparams" >&5
5856 $as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
5857 if test $ac_cv_lib_z_gzsetparams = yes; then
5858 if test "${ac_cv_header_zlib_h+set}" = set; then
5859 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
5860 $as_echo_n "checking for zlib.h... " >&6; }
5861 if test "${ac_cv_header_zlib_h+set}" = set; then
5862 $as_echo_n "(cached) " >&6
5864 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5865 $as_echo "$ac_cv_header_zlib_h" >&6; }
5866 else
5867 # Is the header compilable?
5868 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
5869 $as_echo_n "checking zlib.h usability... " >&6; }
5870 cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 $ac_includes_default
5877 #include <zlib.h>
5878 _ACEOF
5879 rm -f conftest.$ac_objext
5880 if { (ac_try="$ac_compile"
5881 case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884 esac
5885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5886 $as_echo "$ac_try_echo") >&5
5887 (eval "$ac_compile") 2>conftest.er1
5888 ac_status=$?
5889 grep -v '^ *+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
5892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && {
5894 test -z "$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 } && test -s conftest.$ac_objext; then
5897 ac_header_compiler=yes
5898 else
5899 $as_echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 ac_header_compiler=no
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5907 $as_echo "$ac_header_compiler" >&6; }
5909 # Is the header present?
5910 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
5911 $as_echo_n "checking zlib.h presence... " >&6; }
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 #include <zlib.h>
5919 _ACEOF
5920 if { (ac_try="$ac_cpp conftest.$ac_ext"
5921 case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924 esac
5925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5926 $as_echo "$ac_try_echo") >&5
5927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } >/dev/null && {
5934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 }; then
5937 ac_header_preproc=yes
5938 else
5939 $as_echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 ac_header_preproc=no
5945 rm -f conftest.err conftest.$ac_ext
5946 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5947 $as_echo "$ac_header_preproc" >&6; }
5949 # So? What about this header?
5950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5951 yes:no: )
5952 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5953 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5954 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
5955 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
5956 ac_header_preproc=yes
5958 no:yes:* )
5959 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
5960 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
5961 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
5962 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
5963 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
5964 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
5965 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
5966 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
5967 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
5968 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
5969 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
5970 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
5971 ( cat <<\_ASBOX
5972 ## ---------------------------------- ##
5973 ## Report this to freetype@nongnu.org ##
5974 ## ---------------------------------- ##
5975 _ASBOX
5976 ) | sed "s/^/$as_me: WARNING: /" >&2
5978 esac
5979 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
5980 $as_echo_n "checking for zlib.h... " >&6; }
5981 if test "${ac_cv_header_zlib_h+set}" = set; then
5982 $as_echo_n "(cached) " >&6
5983 else
5984 ac_cv_header_zlib_h=$ac_header_preproc
5986 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5987 $as_echo "$ac_cv_header_zlib_h" >&6; }
5990 if test $ac_cv_header_zlib_h = yes; then
5991 LIBZ='-lz'
5998 if test x$with_zlib != xno && test -n "$LIBZ"; then
5999 CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
6000 LDFLAGS="$LDFLAGS $LIBZ"
6001 SYSTEM_ZLIB=yes
6005 # check Apple's `-isysroot' option and duplicate it to LDFLAGS if required --
6006 # Apple TechNote 2137 recommends to include it in CFLAGS but not in LDFLAGS
6008 { $as_echo "$as_me:$LINENO: checking whether CFLAGS includes -isysroot option" >&5
6009 $as_echo_n "checking whether CFLAGS includes -isysroot option... " >&6; }
6010 case "$CFLAGS" in
6011 *sysroot* )
6012 { $as_echo "$as_me:$LINENO: result: yes" >&5
6013 $as_echo "yes" >&6; }
6014 { $as_echo "$as_me:$LINENO: checking whether LDFLAGS includes -isysroot option" >&5
6015 $as_echo_n "checking whether LDFLAGS includes -isysroot option... " >&6; }
6016 case "$LDFLAGS" in
6017 *sysroot* )
6018 { $as_echo "$as_me:$LINENO: result: yes" >&5
6019 $as_echo "yes" >&6; }
6022 { $as_echo "$as_me:$LINENO: result: no" >&5
6023 $as_echo "no" >&6; }
6024 isysroot_dir=`echo ${CFLAGS} | tr '\t' ' ' | sed 's/^.*-isysroot *//;s/ .*//'`
6025 { $as_echo "$as_me:$LINENO: WARNING: -isysroot ${isysroot_dir} is added to LDFLAGS" >&5
6026 $as_echo "$as_me: WARNING: -isysroot ${isysroot_dir} is added to LDFLAGS" >&2;}
6027 LDFLAGS="-isysroot ${isysroot_dir} ${LDFLAGS}"
6029 esac
6032 { $as_echo "$as_me:$LINENO: result: no" >&5
6033 $as_echo "no" >&6; }
6035 esac
6038 # Whether to use Mac OS resource-based fonts.
6040 # don't quote AS_HELP_STRING!
6042 # Check whether --with-old-mac-fonts was given.
6043 if test "${with_old_mac_fonts+set}" = set; then
6044 withval=$with_old_mac_fonts;
6047 if test x$with_old_mac_fonts = xyes; then
6048 orig_LDFLAGS="${LDFLAGS}"
6049 { $as_echo "$as_me:$LINENO: checking CoreServices & ApplicationServices of Mac OS X" >&5
6050 $as_echo_n "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
6051 FT2_EXTRA_LIBS="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
6052 LDFLAGS="$LDFLAGS $FT2_EXTRA_LIBS"
6053 cat >conftest.$ac_ext <<_ACEOF
6055 /* confdefs.h. */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6062 #if defined(__GNUC__) && defined(__APPLE_CC__)
6063 # include <Carbon/Carbon.h>
6064 # include <ApplicationServices/ApplicationServices.h>
6065 #else
6066 # include <ConditionalMacros.h>
6067 # include <Files.h>
6068 #endif
6072 main ()
6076 short res = 0;
6079 UseResFile( res );
6083 return 0;
6085 _ACEOF
6086 rm -f conftest.$ac_objext conftest$ac_exeext
6087 if { (ac_try="$ac_link"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6093 $as_echo "$ac_try_echo") >&5
6094 (eval "$ac_link") 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } && {
6101 test -z "$ac_c_werror_flag" ||
6102 test ! -s conftest.err
6103 } && test -s conftest$ac_exeext && {
6104 test "$cross_compiling" = yes ||
6105 $as_test_x conftest$ac_exeext
6106 }; then
6107 { $as_echo "$as_me:$LINENO: result: ok" >&5
6108 $as_echo "ok" >&6; }
6109 { $as_echo "$as_me:$LINENO: checking OS_INLINE macro is ANSI compatible" >&5
6110 $as_echo_n "checking OS_INLINE macro is ANSI compatible... " >&6; }
6111 orig_CFLAGS="$CFLAGS"
6112 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
6113 cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h. */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6122 #if defined(__GNUC__) && defined(__APPLE_CC__)
6123 # include <Carbon/Carbon.h>
6124 # include <ApplicationServices/ApplicationServices.h>
6125 #else
6126 # include <ConditionalMacros.h>
6127 # include <Files.h>
6128 #endif
6132 main ()
6136 /* OSHostByteOrder() is typed as OS_INLINE */
6137 int32_t os_byte_order = OSHostByteOrder();
6140 if ( OSBigEndian != os_byte_order )
6141 return 1;
6145 return 0;
6147 _ACEOF
6148 rm -f conftest.$ac_objext
6149 if { (ac_try="$ac_compile"
6150 case "(($ac_try" in
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6153 esac
6154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6155 $as_echo "$ac_try_echo") >&5
6156 (eval "$ac_compile") 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && {
6163 test -z "$ac_c_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_objext; then
6166 { $as_echo "$as_me:$LINENO: result: ok" >&5
6167 $as_echo "ok" >&6; }
6168 CFLAGS="$orig_CFLAGS"
6169 CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
6171 else
6172 $as_echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 { $as_echo "$as_me:$LINENO: result: no, ANSI incompatible" >&5
6176 $as_echo "no, ANSI incompatible" >&6; }
6177 CFLAGS="$orig_CFLAGS"
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 { $as_echo "$as_me:$LINENO: checking type ResourceIndex" >&5
6183 $as_echo_n "checking type ResourceIndex... " >&6; }
6184 orig_CFLAGS="$CFLAGS"
6185 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
6186 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h. */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6195 #if defined(__GNUC__) && defined(__APPLE_CC__)
6196 # include <Carbon/Carbon.h>
6197 # include <ApplicationServices/ApplicationServices.h>
6198 #else
6199 # include <ConditionalMacros.h>
6200 # include <Files.h>
6201 # include <Resources.h>
6202 #endif
6206 main ()
6210 ResourceIndex i = 0;
6211 return i;
6215 return 0;
6217 _ACEOF
6218 rm -f conftest.$ac_objext
6219 if { (ac_try="$ac_compile"
6220 case "(($ac_try" in
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6223 esac
6224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6225 $as_echo "$ac_try_echo") >&5
6226 (eval "$ac_compile") 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } && {
6233 test -z "$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6235 } && test -s conftest.$ac_objext; then
6236 { $as_echo "$as_me:$LINENO: result: ok" >&5
6237 $as_echo "ok" >&6; }
6238 CFLAGS="$orig_CFLAGS"
6239 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX"
6241 else
6242 $as_echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 { $as_echo "$as_me:$LINENO: result: no" >&5
6246 $as_echo "no" >&6; }
6247 CFLAGS="$orig_CFLAGS"
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 else
6253 $as_echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 { $as_echo "$as_me:$LINENO: result: not found" >&5
6257 $as_echo "not found" >&6; }
6258 LDFLAGS="${orig_LDFLAGS}"
6259 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
6262 rm -rf conftest.dSYM
6263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6264 conftest$ac_exeext conftest.$ac_ext
6265 else
6266 case x$target_os in
6267 xdarwin*)
6268 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
6270 *) ;;
6271 esac
6275 # Whether to use FileManager which is deprecated since Mac OS X 10.4.
6278 # Check whether --with-fsspec was given.
6279 if test "${with_fsspec+set}" = set; then
6280 withval=$with_fsspec;
6283 if test x$with_fsspec = xno; then
6284 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
6285 elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
6286 { $as_echo "$as_me:$LINENO: checking FSSpec-based FileManager" >&5
6287 $as_echo_n "checking FSSpec-based FileManager... " >&6; }
6288 cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h. */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6297 #if defined(__GNUC__) && defined(__APPLE_CC__)
6298 # include <Carbon/Carbon.h>
6299 # include <ApplicationServices/ApplicationServices.h>
6300 #else
6301 # include <ConditionalMacros.h>
6302 # include <Files.h>
6303 #endif
6307 main ()
6311 FCBPBPtr paramBlock;
6312 short vRefNum;
6313 long dirID;
6314 ConstStr255Param fileName;
6315 FSSpec* spec;
6318 /* FSSpec functions: deprecated since Mac OS X 10.4 */
6319 PBGetFCBInfoSync( paramBlock );
6320 FSMakeFSSpec( vRefNum, dirID, fileName, spec );
6324 return 0;
6326 _ACEOF
6327 rm -f conftest.$ac_objext conftest$ac_exeext
6328 if { (ac_try="$ac_link"
6329 case "(($ac_try" in
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6332 esac
6333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6334 $as_echo "$ac_try_echo") >&5
6335 (eval "$ac_link") 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest$ac_exeext && {
6345 test "$cross_compiling" = yes ||
6346 $as_test_x conftest$ac_exeext
6347 }; then
6348 { $as_echo "$as_me:$LINENO: result: ok" >&5
6349 $as_echo "ok" >&6; }
6350 CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
6351 else
6352 $as_echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6355 { $as_echo "$as_me:$LINENO: result: not found" >&5
6356 $as_echo "not found" >&6; }
6357 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
6360 rm -rf conftest.dSYM
6361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6362 conftest$ac_exeext conftest.$ac_ext
6366 # Whether to use FileManager in Carbon since MacOS 9.x.
6369 # Check whether --with-fsref was given.
6370 if test "${with_fsref+set}" = set; then
6371 withval=$with_fsref;
6374 if test x$with_fsref = xno; then
6375 { $as_echo "$as_me:$LINENO: WARNING:
6376 *** WARNING
6377 FreeType2 built without FSRef API cannot load
6378 data-fork fonts on MacOS, except of XXX.dfont.
6379 " >&5
6380 $as_echo "$as_me: WARNING:
6381 *** WARNING
6382 FreeType2 built without FSRef API cannot load
6383 data-fork fonts on MacOS, except of XXX.dfont.
6384 " >&2;}
6385 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
6386 elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
6387 { $as_echo "$as_me:$LINENO: checking FSRef-based FileManager" >&5
6388 $as_echo_n "checking FSRef-based FileManager... " >&6; }
6389 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6398 #if defined(__GNUC__) && defined(__APPLE_CC__)
6399 # include <Carbon/Carbon.h>
6400 # include <ApplicationServices/ApplicationServices.h>
6401 #else
6402 # include <ConditionalMacros.h>
6403 # include <Files.h>
6404 #endif
6408 main ()
6412 short vRefNum;
6413 long dirID;
6414 ConstStr255Param fileName;
6416 Boolean* isDirectory;
6417 UInt8* path;
6418 SInt16 desiredRefNum;
6419 SInt16* iterator;
6420 SInt16* actualRefNum;
6421 HFSUniStr255* outForkName;
6422 FSVolumeRefNum volume;
6423 FSCatalogInfoBitmap whichInfo;
6424 FSCatalogInfo* catalogInfo;
6425 FSForkInfo* forkInfo;
6426 FSRef* ref;
6428 #if HAVE_FSSPEC
6429 FSSpec* spec;
6430 #endif
6432 /* FSRef functions: no need to check? */
6433 FSGetForkCBInfo( desiredRefNum, volume, iterator,
6434 actualRefNum, forkInfo, ref,
6435 outForkName );
6436 FSPathMakeRef( path, ref, isDirectory );
6438 #if HAVE_FSSPEC
6439 FSpMakeFSRef ( spec, ref );
6440 FSGetCatalogInfo( ref, whichInfo, catalogInfo,
6441 outForkName, spec, ref );
6442 #endif
6445 return 0;
6447 _ACEOF
6448 rm -f conftest.$ac_objext conftest$ac_exeext
6449 if { (ac_try="$ac_link"
6450 case "(($ac_try" in
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6453 esac
6454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6455 $as_echo "$ac_try_echo") >&5
6456 (eval "$ac_link") 2>conftest.er1
6457 ac_status=$?
6458 grep -v '^ *+' conftest.er1 >conftest.err
6459 rm -f conftest.er1
6460 cat conftest.err >&5
6461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } && {
6463 test -z "$ac_c_werror_flag" ||
6464 test ! -s conftest.err
6465 } && test -s conftest$ac_exeext && {
6466 test "$cross_compiling" = yes ||
6467 $as_test_x conftest$ac_exeext
6468 }; then
6469 { $as_echo "$as_me:$LINENO: result: ok" >&5
6470 $as_echo "ok" >&6; }
6471 CFLAGS="$CFLAGS -DHAVE_FSREF=1"
6472 else
6473 $as_echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6476 { $as_echo "$as_me:$LINENO: result: not found" >&5
6477 $as_echo "not found" >&6; }
6478 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
6481 rm -rf conftest.dSYM
6482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6483 conftest$ac_exeext conftest.$ac_ext
6487 # Whether to use QuickDraw API in ToolBox which is deprecated since
6488 # Mac OS X 10.4.
6491 # Check whether --with-quickdraw-toolbox was given.
6492 if test "${with_quickdraw_toolbox+set}" = set; then
6493 withval=$with_quickdraw_toolbox;
6496 if test x$with_quickdraw_toolbox = xno; then
6497 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
6498 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
6499 { $as_echo "$as_me:$LINENO: checking QuickDraw FontManager functions in ToolBox" >&5
6500 $as_echo_n "checking QuickDraw FontManager functions in ToolBox... " >&6; }
6501 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6510 #if defined(__GNUC__) && defined(__APPLE_CC__)
6511 # include <Carbon/Carbon.h>
6512 # include <ApplicationServices/ApplicationServices.h>
6513 #else
6514 # include <ConditionalMacros.h>
6515 # include <Fonts.h>
6516 #endif
6520 main ()
6524 Str255 familyName;
6525 SInt16 familyID = 0;
6526 FMInput* fmIn = NULL;
6527 FMOutput* fmOut = NULL;
6530 GetFontName( familyID, familyName );
6531 GetFNum( familyName, &familyID );
6532 fmOut = FMSwapFont( fmIn );
6536 return 0;
6538 _ACEOF
6539 rm -f conftest.$ac_objext conftest$ac_exeext
6540 if { (ac_try="$ac_link"
6541 case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6546 $as_echo "$ac_try_echo") >&5
6547 (eval "$ac_link") 2>conftest.er1
6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } && {
6554 test -z "$ac_c_werror_flag" ||
6555 test ! -s conftest.err
6556 } && test -s conftest$ac_exeext && {
6557 test "$cross_compiling" = yes ||
6558 $as_test_x conftest$ac_exeext
6559 }; then
6560 { $as_echo "$as_me:$LINENO: result: ok" >&5
6561 $as_echo "ok" >&6; }
6562 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
6563 else
6564 $as_echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 { $as_echo "$as_me:$LINENO: result: not found" >&5
6568 $as_echo "not found" >&6; }
6569 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
6572 rm -rf conftest.dSYM
6573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6574 conftest$ac_exeext conftest.$ac_ext
6578 # Whether to use QuickDraw API in Carbon which is deprecated since
6579 # Mac OS X 10.4.
6582 # Check whether --with-quickdraw-carbon was given.
6583 if test "${with_quickdraw_carbon+set}" = set; then
6584 withval=$with_quickdraw_carbon;
6587 if test x$with_quickdraw_carbon = xno; then
6588 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
6589 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
6590 { $as_echo "$as_me:$LINENO: checking QuickDraw FontManager functions in Carbon" >&5
6591 $as_echo_n "checking QuickDraw FontManager functions in Carbon... " >&6; }
6592 cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h. */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6601 #if defined(__GNUC__) && defined(__APPLE_CC__)
6602 # include <Carbon/Carbon.h>
6603 # include <ApplicationServices/ApplicationServices.h>
6604 #else
6605 # include <ConditionalMacros.h>
6606 # include <Fonts.h>
6607 #endif
6611 main ()
6615 FMFontFamilyIterator famIter;
6616 FMFontFamily family;
6617 Str255 famNameStr;
6618 FMFontFamilyInstanceIterator instIter;
6619 FMFontStyle style;
6620 FMFontSize size;
6621 FMFont font;
6622 FSSpec* pathSpec;
6625 FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
6626 &famIter );
6627 FMGetNextFontFamily( &famIter, &family );
6628 FMGetFontFamilyName( family, famNameStr );
6629 FMCreateFontFamilyInstanceIterator( family, &instIter );
6630 FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
6631 FMDisposeFontFamilyInstanceIterator( &instIter );
6632 FMDisposeFontFamilyIterator( &famIter );
6633 FMGetFontContainer( font, pathSpec );
6637 return 0;
6639 _ACEOF
6640 rm -f conftest.$ac_objext conftest$ac_exeext
6641 if { (ac_try="$ac_link"
6642 case "(($ac_try" in
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6645 esac
6646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6647 $as_echo "$ac_try_echo") >&5
6648 (eval "$ac_link") 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && {
6655 test -z "$ac_c_werror_flag" ||
6656 test ! -s conftest.err
6657 } && test -s conftest$ac_exeext && {
6658 test "$cross_compiling" = yes ||
6659 $as_test_x conftest$ac_exeext
6660 }; then
6661 { $as_echo "$as_me:$LINENO: result: ok" >&5
6662 $as_echo "ok" >&6; }
6663 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
6664 else
6665 $as_echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6668 { $as_echo "$as_me:$LINENO: result: not found" >&5
6669 $as_echo "not found" >&6; }
6670 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
6673 rm -rf conftest.dSYM
6674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6675 conftest$ac_exeext conftest.$ac_ext
6679 # Whether to use AppleTypeService since Mac OS X.
6681 # don't quote AS_HELP_STRING!
6683 # Check whether --with-ats was given.
6684 if test "${with_ats+set}" = set; then
6685 withval=$with_ats;
6688 if test x$with_ats = xno; then
6689 CFLAGS="$CFLAGS -DHAVE_ATS=0"
6690 elif test x$with_old_mac_fonts = xyes -a x$with_ats != x ; then
6691 { $as_echo "$as_me:$LINENO: checking AppleTypeService functions" >&5
6692 $as_echo_n "checking AppleTypeService functions... " >&6; }
6693 cat >conftest.$ac_ext <<_ACEOF
6695 /* confdefs.h. */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6702 #include <Carbon/Carbon.h>
6706 main ()
6710 FSSpec* pathSpec;
6713 ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
6714 #if HAVE_FSSPEC
6715 ATSFontGetFileSpecification( 0, pathSpec );
6716 #endif
6720 return 0;
6722 _ACEOF
6723 rm -f conftest.$ac_objext conftest$ac_exeext
6724 if { (ac_try="$ac_link"
6725 case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6728 esac
6729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6730 $as_echo "$ac_try_echo") >&5
6731 (eval "$ac_link") 2>conftest.er1
6732 ac_status=$?
6733 grep -v '^ *+' conftest.er1 >conftest.err
6734 rm -f conftest.er1
6735 cat conftest.err >&5
6736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } && {
6738 test -z "$ac_c_werror_flag" ||
6739 test ! -s conftest.err
6740 } && test -s conftest$ac_exeext && {
6741 test "$cross_compiling" = yes ||
6742 $as_test_x conftest$ac_exeext
6743 }; then
6744 { $as_echo "$as_me:$LINENO: result: ok" >&5
6745 $as_echo "ok" >&6; }
6746 CFLAGS="$CFLAGS -DHAVE_ATS=1"
6747 else
6748 $as_echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6751 { $as_echo "$as_me:$LINENO: result: not found" >&5
6752 $as_echo "not found" >&6; }
6753 CFLAGS="$CFLAGS -DHAVE_ATS=0"
6756 rm -rf conftest.dSYM
6757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6758 conftest$ac_exeext conftest.$ac_ext
6761 case "$CFLAGS" in
6762 *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
6763 { $as_echo "$as_me:$LINENO: WARNING:
6764 *** WARNING
6765 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
6766 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
6767 " >&5
6768 $as_echo "$as_me: WARNING:
6769 *** WARNING
6770 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
6771 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
6772 " >&2;}
6773 CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
6777 esac
6787 case `pwd` in
6788 *\ * | *\ *)
6789 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6790 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6791 esac
6795 macro_version='2.2.4'
6796 macro_revision='1.2976'
6810 ltmain="$ac_aux_dir/ltmain.sh"
6812 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6813 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6814 if test "${ac_cv_path_SED+set}" = set; then
6815 $as_echo_n "(cached) " >&6
6816 else
6817 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6818 for ac_i in 1 2 3 4 5 6 7; do
6819 ac_script="$ac_script$as_nl$ac_script"
6820 done
6821 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6822 $as_unset ac_script || ac_script=
6823 if test -z "$SED"; then
6824 ac_path_SED_found=false
6825 # Loop through the user's path and test for each of PROGNAME-LIST
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_prog in sed gsed; do
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6834 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6835 # Check for GNU ac_path_SED and select it if it is found.
6836 # Check for GNU $ac_path_SED
6837 case `"$ac_path_SED" --version 2>&1` in
6838 *GNU*)
6839 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6841 ac_count=0
6842 $as_echo_n 0123456789 >"conftest.in"
6843 while :
6845 cat "conftest.in" "conftest.in" >"conftest.tmp"
6846 mv "conftest.tmp" "conftest.in"
6847 cp "conftest.in" "conftest.nl"
6848 $as_echo '' >> "conftest.nl"
6849 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6850 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6851 ac_count=`expr $ac_count + 1`
6852 if test $ac_count -gt ${ac_path_SED_max-0}; then
6853 # Best one so far, save it but keep looking for a better one
6854 ac_cv_path_SED="$ac_path_SED"
6855 ac_path_SED_max=$ac_count
6857 # 10*(2^10) chars as input seems more than enough
6858 test $ac_count -gt 10 && break
6859 done
6860 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6861 esac
6863 $ac_path_SED_found && break 3
6864 done
6865 done
6866 done
6867 IFS=$as_save_IFS
6868 if test -z "$ac_cv_path_SED"; then
6869 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6870 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6871 { (exit 1); exit 1; }; }
6873 else
6874 ac_cv_path_SED=$SED
6878 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6879 $as_echo "$ac_cv_path_SED" >&6; }
6880 SED="$ac_cv_path_SED"
6881 rm -f conftest.sed
6883 test -z "$SED" && SED=sed
6884 Xsed="$SED -e 1s/^X//"
6896 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6897 $as_echo_n "checking for fgrep... " >&6; }
6898 if test "${ac_cv_path_FGREP+set}" = set; then
6899 $as_echo_n "(cached) " >&6
6900 else
6901 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6902 then ac_cv_path_FGREP="$GREP -F"
6903 else
6904 if test -z "$FGREP"; then
6905 ac_path_FGREP_found=false
6906 # Loop through the user's path and test for each of PROGNAME-LIST
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_prog in fgrep; do
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6915 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6916 # Check for GNU ac_path_FGREP and select it if it is found.
6917 # Check for GNU $ac_path_FGREP
6918 case `"$ac_path_FGREP" --version 2>&1` in
6919 *GNU*)
6920 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6922 ac_count=0
6923 $as_echo_n 0123456789 >"conftest.in"
6924 while :
6926 cat "conftest.in" "conftest.in" >"conftest.tmp"
6927 mv "conftest.tmp" "conftest.in"
6928 cp "conftest.in" "conftest.nl"
6929 $as_echo 'FGREP' >> "conftest.nl"
6930 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6932 ac_count=`expr $ac_count + 1`
6933 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6934 # Best one so far, save it but keep looking for a better one
6935 ac_cv_path_FGREP="$ac_path_FGREP"
6936 ac_path_FGREP_max=$ac_count
6938 # 10*(2^10) chars as input seems more than enough
6939 test $ac_count -gt 10 && break
6940 done
6941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6942 esac
6944 $ac_path_FGREP_found && break 3
6945 done
6946 done
6947 done
6948 IFS=$as_save_IFS
6949 if test -z "$ac_cv_path_FGREP"; then
6950 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6951 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6952 { (exit 1); exit 1; }; }
6954 else
6955 ac_cv_path_FGREP=$FGREP
6960 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6961 $as_echo "$ac_cv_path_FGREP" >&6; }
6962 FGREP="$ac_cv_path_FGREP"
6965 test -z "$GREP" && GREP=grep
6985 # Check whether --with-gnu-ld was given.
6986 if test "${with_gnu_ld+set}" = set; then
6987 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6988 else
6989 with_gnu_ld=no
6992 ac_prog=ld
6993 if test "$GCC" = yes; then
6994 # Check if gcc -print-prog-name=ld gives a path.
6995 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6996 $as_echo_n "checking for ld used by $CC... " >&6; }
6997 case $host in
6998 *-*-mingw*)
6999 # gcc leaves a trailing carriage return which upsets mingw
7000 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7002 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7003 esac
7004 case $ac_prog in
7005 # Accept absolute paths.
7006 [\\/]* | ?:[\\/]*)
7007 re_direlt='/[^/][^/]*/\.\./'
7008 # Canonicalize the pathname of ld
7009 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7010 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7011 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7012 done
7013 test -z "$LD" && LD="$ac_prog"
7016 # If it fails, then pretend we aren't using GCC.
7017 ac_prog=ld
7020 # If it is relative, then search for the first ld in PATH.
7021 with_gnu_ld=unknown
7023 esac
7024 elif test "$with_gnu_ld" = yes; then
7025 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7026 $as_echo_n "checking for GNU ld... " >&6; }
7027 else
7028 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7029 $as_echo_n "checking for non-GNU ld... " >&6; }
7031 if test "${lt_cv_path_LD+set}" = set; then
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -z "$LD"; then
7035 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7036 for ac_dir in $PATH; do
7037 IFS="$lt_save_ifs"
7038 test -z "$ac_dir" && ac_dir=.
7039 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7040 lt_cv_path_LD="$ac_dir/$ac_prog"
7041 # Check to see if the program is GNU ld. I'd rather use --version,
7042 # but apparently some variants of GNU ld only accept -v.
7043 # Break only if it was the GNU/non-GNU ld that we prefer.
7044 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7045 *GNU* | *'with BFD'*)
7046 test "$with_gnu_ld" != no && break
7049 test "$with_gnu_ld" != yes && break
7051 esac
7053 done
7054 IFS="$lt_save_ifs"
7055 else
7056 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7060 LD="$lt_cv_path_LD"
7061 if test -n "$LD"; then
7062 { $as_echo "$as_me:$LINENO: result: $LD" >&5
7063 $as_echo "$LD" >&6; }
7064 else
7065 { $as_echo "$as_me:$LINENO: result: no" >&5
7066 $as_echo "no" >&6; }
7068 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7069 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7070 { (exit 1); exit 1; }; }
7071 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7072 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7073 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7074 $as_echo_n "(cached) " >&6
7075 else
7076 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7077 case `$LD -v 2>&1 </dev/null` in
7078 *GNU* | *'with BFD'*)
7079 lt_cv_prog_gnu_ld=yes
7082 lt_cv_prog_gnu_ld=no
7084 esac
7086 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7087 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7088 with_gnu_ld=$lt_cv_prog_gnu_ld
7098 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
7099 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7100 if test "${lt_cv_path_NM+set}" = set; then
7101 $as_echo_n "(cached) " >&6
7102 else
7103 if test -n "$NM"; then
7104 # Let the user override the test.
7105 lt_cv_path_NM="$NM"
7106 else
7107 lt_nm_to_check="${ac_tool_prefix}nm"
7108 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7109 lt_nm_to_check="$lt_nm_to_check nm"
7111 for lt_tmp_nm in $lt_nm_to_check; do
7112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7113 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7114 IFS="$lt_save_ifs"
7115 test -z "$ac_dir" && ac_dir=.
7116 tmp_nm="$ac_dir/$lt_tmp_nm"
7117 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7118 # Check to see if the nm accepts a BSD-compat flag.
7119 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7120 # nm: unknown option "B" ignored
7121 # Tru64's nm complains that /dev/null is an invalid object file
7122 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7123 */dev/null* | *'Invalid file or object type'*)
7124 lt_cv_path_NM="$tmp_nm -B"
7125 break
7128 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7129 */dev/null*)
7130 lt_cv_path_NM="$tmp_nm -p"
7131 break
7134 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7135 continue # so that we can try to find one that supports BSD flags
7137 esac
7139 esac
7141 done
7142 IFS="$lt_save_ifs"
7143 done
7144 : ${lt_cv_path_NM=no}
7147 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7148 $as_echo "$lt_cv_path_NM" >&6; }
7149 if test "$lt_cv_path_NM" != "no"; then
7150 NM="$lt_cv_path_NM"
7151 else
7152 # Didn't find any BSD compatible name lister, look for dumpbin.
7153 if test -n "$ac_tool_prefix"; then
7154 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
7161 $as_echo_n "(cached) " >&6
7162 else
7163 if test -n "$DUMPBIN"; then
7164 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7174 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7177 done
7178 done
7179 IFS=$as_save_IFS
7183 DUMPBIN=$ac_cv_prog_DUMPBIN
7184 if test -n "$DUMPBIN"; then
7185 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
7186 $as_echo "$DUMPBIN" >&6; }
7187 else
7188 { $as_echo "$as_me:$LINENO: result: no" >&5
7189 $as_echo "no" >&6; }
7193 test -n "$DUMPBIN" && break
7194 done
7196 if test -z "$DUMPBIN"; then
7197 ac_ct_DUMPBIN=$DUMPBIN
7198 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7200 # Extract the first word of "$ac_prog", so it can be a program name with args.
7201 set dummy $ac_prog; ac_word=$2
7202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
7205 $as_echo_n "(cached) " >&6
7206 else
7207 if test -n "$ac_ct_DUMPBIN"; then
7208 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7221 done
7222 done
7223 IFS=$as_save_IFS
7227 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7228 if test -n "$ac_ct_DUMPBIN"; then
7229 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
7230 $as_echo "$ac_ct_DUMPBIN" >&6; }
7231 else
7232 { $as_echo "$as_me:$LINENO: result: no" >&5
7233 $as_echo "no" >&6; }
7237 test -n "$ac_ct_DUMPBIN" && break
7238 done
7240 if test "x$ac_ct_DUMPBIN" = x; then
7241 DUMPBIN=":"
7242 else
7243 case $cross_compiling:$ac_tool_warned in
7244 yes:)
7245 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7246 whose name does not start with the host triplet. If you think this
7247 configuration is useful to you, please write to autoconf@gnu.org." >&5
7248 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7249 whose name does not start with the host triplet. If you think this
7250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7251 ac_tool_warned=yes ;;
7252 esac
7253 DUMPBIN=$ac_ct_DUMPBIN
7258 if test "$DUMPBIN" != ":"; then
7259 NM="$DUMPBIN"
7262 test -z "$NM" && NM=nm
7269 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
7270 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7271 if test "${lt_cv_nm_interface+set}" = set; then
7272 $as_echo_n "(cached) " >&6
7273 else
7274 lt_cv_nm_interface="BSD nm"
7275 echo "int some_variable = 0;" > conftest.$ac_ext
7276 (eval echo "\"\$as_me:7276: $ac_compile\"" >&5)
7277 (eval "$ac_compile" 2>conftest.err)
7278 cat conftest.err >&5
7279 (eval echo "\"\$as_me:7279: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7280 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7281 cat conftest.err >&5
7282 (eval echo "\"\$as_me:7282: output\"" >&5)
7283 cat conftest.out >&5
7284 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7285 lt_cv_nm_interface="MS dumpbin"
7287 rm -f conftest*
7289 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
7290 $as_echo "$lt_cv_nm_interface" >&6; }
7292 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7293 $as_echo_n "checking whether ln -s works... " >&6; }
7294 LN_S=$as_ln_s
7295 if test "$LN_S" = "ln -s"; then
7296 { $as_echo "$as_me:$LINENO: result: yes" >&5
7297 $as_echo "yes" >&6; }
7298 else
7299 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7300 $as_echo "no, using $LN_S" >&6; }
7303 # find the maximum length of command line arguments
7304 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7305 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7306 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7307 $as_echo_n "(cached) " >&6
7308 else
7310 teststring="ABCD"
7312 case $build_os in
7313 msdosdjgpp*)
7314 # On DJGPP, this test can blow up pretty badly due to problems in libc
7315 # (any single argument exceeding 2000 bytes causes a buffer overrun
7316 # during glob expansion). Even if it were fixed, the result of this
7317 # check would be larger than it should be.
7318 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7321 gnu*)
7322 # Under GNU Hurd, this test is not required because there is
7323 # no limit to the length of command line arguments.
7324 # Libtool will interpret -1 as no limit whatsoever
7325 lt_cv_sys_max_cmd_len=-1;
7328 cygwin* | mingw*)
7329 # On Win9x/ME, this test blows up -- it succeeds, but takes
7330 # about 5 minutes as the teststring grows exponentially.
7331 # Worse, since 9x/ME are not pre-emptively multitasking,
7332 # you end up with a "frozen" computer, even though with patience
7333 # the test eventually succeeds (with a max line length of 256k).
7334 # Instead, let's just punt: use the minimum linelength reported by
7335 # all of the supported platforms: 8192 (on NT/2K/XP).
7336 lt_cv_sys_max_cmd_len=8192;
7339 amigaos*)
7340 # On AmigaOS with pdksh, this test takes hours, literally.
7341 # So we just punt and use a minimum line length of 8192.
7342 lt_cv_sys_max_cmd_len=8192;
7345 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7346 # This has been around since 386BSD, at least. Likely further.
7347 if test -x /sbin/sysctl; then
7348 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7349 elif test -x /usr/sbin/sysctl; then
7350 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7351 else
7352 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7354 # And add a safety zone
7355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7359 interix*)
7360 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7361 lt_cv_sys_max_cmd_len=196608
7364 osf*)
7365 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7366 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7367 # nice to cause kernel panics so lets avoid the loop below.
7368 # First set a reasonable default.
7369 lt_cv_sys_max_cmd_len=16384
7371 if test -x /sbin/sysconfig; then
7372 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7373 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7374 esac
7377 sco3.2v5*)
7378 lt_cv_sys_max_cmd_len=102400
7380 sysv5* | sco5v6* | sysv4.2uw2*)
7381 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7382 if test -n "$kargmax"; then
7383 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7384 else
7385 lt_cv_sys_max_cmd_len=32768
7389 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7390 if test -n "$lt_cv_sys_max_cmd_len"; then
7391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7393 else
7394 # Make teststring a little bigger before we do anything with it.
7395 # a 1K string should be a reasonable start.
7396 for i in 1 2 3 4 5 6 7 8 ; do
7397 teststring=$teststring$teststring
7398 done
7399 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7400 # If test is not a shell built-in, we'll probably end up computing a
7401 # maximum length that is only half of the actual maximum length, but
7402 # we can't tell.
7403 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7404 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7405 test $i != 17 # 1/2 MB should be enough
7407 i=`expr $i + 1`
7408 teststring=$teststring$teststring
7409 done
7410 # Only check the string length outside the loop.
7411 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7412 teststring=
7413 # Add a significant safety factor because C++ compilers can tack on
7414 # massive amounts of additional arguments before passing them to the
7415 # linker. It appears as though 1/2 is a usable value.
7416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7419 esac
7423 if test -n $lt_cv_sys_max_cmd_len ; then
7424 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7425 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7426 else
7427 { $as_echo "$as_me:$LINENO: result: none" >&5
7428 $as_echo "none" >&6; }
7430 max_cmd_len=$lt_cv_sys_max_cmd_len
7437 : ${CP="cp -f"}
7438 : ${MV="mv -f"}
7439 : ${RM="rm -f"}
7441 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
7442 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7443 # Try some XSI features
7444 xsi_shell=no
7445 ( _lt_dummy="a/b/c"
7446 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7447 = c,a/b,, \
7448 && eval 'test $(( 1 + 1 )) -eq 2 \
7449 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7450 && xsi_shell=yes
7451 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
7452 $as_echo "$xsi_shell" >&6; }
7455 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
7456 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7457 lt_shell_append=no
7458 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7459 >/dev/null 2>&1 \
7460 && lt_shell_append=yes
7461 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
7462 $as_echo "$lt_shell_append" >&6; }
7465 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7466 lt_unset=unset
7467 else
7468 lt_unset=false
7475 # test EBCDIC or ASCII
7476 case `echo X|tr X '\101'` in
7477 A) # ASCII based system
7478 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7479 lt_SP2NL='tr \040 \012'
7480 lt_NL2SP='tr \015\012 \040\040'
7482 *) # EBCDIC based system
7483 lt_SP2NL='tr \100 \n'
7484 lt_NL2SP='tr \r\n \100\100'
7486 esac
7496 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7497 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7498 if test "${lt_cv_ld_reload_flag+set}" = set; then
7499 $as_echo_n "(cached) " >&6
7500 else
7501 lt_cv_ld_reload_flag='-r'
7503 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7504 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7505 reload_flag=$lt_cv_ld_reload_flag
7506 case $reload_flag in
7507 "" | " "*) ;;
7508 *) reload_flag=" $reload_flag" ;;
7509 esac
7510 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7511 case $host_os in
7512 darwin*)
7513 if test "$GCC" = yes; then
7514 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7515 else
7516 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7519 esac
7530 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7531 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7532 if test "${lt_cv_deplibs_check_method+set}" = set; then
7533 $as_echo_n "(cached) " >&6
7534 else
7535 lt_cv_file_magic_cmd='$MAGIC_CMD'
7536 lt_cv_file_magic_test_file=
7537 lt_cv_deplibs_check_method='unknown'
7538 # Need to set the preceding variable on all platforms that support
7539 # interlibrary dependencies.
7540 # 'none' -- dependencies not supported.
7541 # `unknown' -- same as none, but documents that we really don't know.
7542 # 'pass_all' -- all dependencies passed with no checks.
7543 # 'test_compile' -- check by making test program.
7544 # 'file_magic [[regex]]' -- check by looking for files in library path
7545 # which responds to the $file_magic_cmd with a given extended regex.
7546 # If you have `file' or equivalent on your system and you're not sure
7547 # whether `pass_all' will *always* work, you probably want this one.
7549 case $host_os in
7550 aix[4-9]*)
7551 lt_cv_deplibs_check_method=pass_all
7554 beos*)
7555 lt_cv_deplibs_check_method=pass_all
7558 bsdi[45]*)
7559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7560 lt_cv_file_magic_cmd='/usr/bin/file -L'
7561 lt_cv_file_magic_test_file=/shlib/libc.so
7564 cygwin*)
7565 # func_win32_libid is a shell function defined in ltmain.sh
7566 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7567 lt_cv_file_magic_cmd='func_win32_libid'
7570 mingw* | pw32*)
7571 # Base MSYS/MinGW do not provide the 'file' command needed by
7572 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7573 # unless we find 'file', for example because we are cross-compiling.
7574 if ( file / ) >/dev/null 2>&1; then
7575 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7576 lt_cv_file_magic_cmd='func_win32_libid'
7577 else
7578 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7579 lt_cv_file_magic_cmd='$OBJDUMP -f'
7583 darwin* | rhapsody*)
7584 lt_cv_deplibs_check_method=pass_all
7587 freebsd* | dragonfly*)
7588 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7589 case $host_cpu in
7590 i*86 )
7591 # Not sure whether the presence of OpenBSD here was a mistake.
7592 # Let's accept both of them until this is cleared up.
7593 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7594 lt_cv_file_magic_cmd=/usr/bin/file
7595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7597 esac
7598 else
7599 lt_cv_deplibs_check_method=pass_all
7603 gnu*)
7604 lt_cv_deplibs_check_method=pass_all
7607 hpux10.20* | hpux11*)
7608 lt_cv_file_magic_cmd=/usr/bin/file
7609 case $host_cpu in
7610 ia64*)
7611 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7612 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7614 hppa*64*)
7615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7616 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7619 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7620 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7622 esac
7625 interix[3-9]*)
7626 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7630 irix5* | irix6* | nonstopux*)
7631 case $LD in
7632 *-32|*"-32 ") libmagic=32-bit;;
7633 *-n32|*"-n32 ") libmagic=N32;;
7634 *-64|*"-64 ") libmagic=64-bit;;
7635 *) libmagic=never-match;;
7636 esac
7637 lt_cv_deplibs_check_method=pass_all
7640 # This must be Linux ELF.
7641 linux* | k*bsd*-gnu)
7642 lt_cv_deplibs_check_method=pass_all
7645 netbsd*)
7646 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7648 else
7649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7653 newos6*)
7654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7655 lt_cv_file_magic_cmd=/usr/bin/file
7656 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7659 *nto* | *qnx*)
7660 lt_cv_deplibs_check_method=pass_all
7663 openbsd*)
7664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7666 else
7667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7671 osf3* | osf4* | osf5*)
7672 lt_cv_deplibs_check_method=pass_all
7675 rdos*)
7676 lt_cv_deplibs_check_method=pass_all
7679 solaris*)
7680 lt_cv_deplibs_check_method=pass_all
7683 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7684 lt_cv_deplibs_check_method=pass_all
7687 sysv4 | sysv4.3*)
7688 case $host_vendor in
7689 motorola)
7690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7691 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7693 ncr)
7694 lt_cv_deplibs_check_method=pass_all
7696 sequent)
7697 lt_cv_file_magic_cmd='/bin/file'
7698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7700 sni)
7701 lt_cv_file_magic_cmd='/bin/file'
7702 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7703 lt_cv_file_magic_test_file=/lib/libc.so
7705 siemens)
7706 lt_cv_deplibs_check_method=pass_all
7709 lt_cv_deplibs_check_method=pass_all
7711 esac
7714 tpf*)
7715 lt_cv_deplibs_check_method=pass_all
7717 esac
7720 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7721 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7722 file_magic_cmd=$lt_cv_file_magic_cmd
7723 deplibs_check_method=$lt_cv_deplibs_check_method
7724 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7737 if test -n "$ac_tool_prefix"; then
7738 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7739 set dummy ${ac_tool_prefix}ar; ac_word=$2
7740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if test "${ac_cv_prog_AR+set}" = set; then
7743 $as_echo_n "(cached) " >&6
7744 else
7745 if test -n "$AR"; then
7746 ac_cv_prog_AR="$AR" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755 ac_cv_prog_AR="${ac_tool_prefix}ar"
7756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7759 done
7760 done
7761 IFS=$as_save_IFS
7765 AR=$ac_cv_prog_AR
7766 if test -n "$AR"; then
7767 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7768 $as_echo "$AR" >&6; }
7769 else
7770 { $as_echo "$as_me:$LINENO: result: no" >&5
7771 $as_echo "no" >&6; }
7776 if test -z "$ac_cv_prog_AR"; then
7777 ac_ct_AR=$AR
7778 # Extract the first word of "ar", so it can be a program name with args.
7779 set dummy ar; ac_word=$2
7780 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7781 $as_echo_n "checking for $ac_word... " >&6; }
7782 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7783 $as_echo_n "(cached) " >&6
7784 else
7785 if test -n "$ac_ct_AR"; then
7786 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7787 else
7788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789 for as_dir in $PATH
7791 IFS=$as_save_IFS
7792 test -z "$as_dir" && as_dir=.
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_prog_ac_ct_AR="ar"
7796 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 break 2
7799 done
7800 done
7801 IFS=$as_save_IFS
7805 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7806 if test -n "$ac_ct_AR"; then
7807 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7808 $as_echo "$ac_ct_AR" >&6; }
7809 else
7810 { $as_echo "$as_me:$LINENO: result: no" >&5
7811 $as_echo "no" >&6; }
7814 if test "x$ac_ct_AR" = x; then
7815 AR="false"
7816 else
7817 case $cross_compiling:$ac_tool_warned in
7818 yes:)
7819 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7820 whose name does not start with the host triplet. If you think this
7821 configuration is useful to you, please write to autoconf@gnu.org." >&5
7822 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7823 whose name does not start with the host triplet. If you think this
7824 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7825 ac_tool_warned=yes ;;
7826 esac
7827 AR=$ac_ct_AR
7829 else
7830 AR="$ac_cv_prog_AR"
7833 test -z "$AR" && AR=ar
7834 test -z "$AR_FLAGS" && AR_FLAGS=cru
7846 if test -n "$ac_tool_prefix"; then
7847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7848 set dummy ${ac_tool_prefix}strip; ac_word=$2
7849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if test "${ac_cv_prog_STRIP+set}" = set; then
7852 $as_echo_n "(cached) " >&6
7853 else
7854 if test -n "$STRIP"; then
7855 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7868 done
7869 done
7870 IFS=$as_save_IFS
7874 STRIP=$ac_cv_prog_STRIP
7875 if test -n "$STRIP"; then
7876 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7877 $as_echo "$STRIP" >&6; }
7878 else
7879 { $as_echo "$as_me:$LINENO: result: no" >&5
7880 $as_echo "no" >&6; }
7885 if test -z "$ac_cv_prog_STRIP"; then
7886 ac_ct_STRIP=$STRIP
7887 # Extract the first word of "strip", so it can be a program name with args.
7888 set dummy strip; ac_word=$2
7889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7890 $as_echo_n "checking for $ac_word... " >&6; }
7891 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7892 $as_echo_n "(cached) " >&6
7893 else
7894 if test -n "$ac_ct_STRIP"; then
7895 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_prog_ac_ct_STRIP="strip"
7905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7908 done
7909 done
7910 IFS=$as_save_IFS
7914 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7915 if test -n "$ac_ct_STRIP"; then
7916 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7917 $as_echo "$ac_ct_STRIP" >&6; }
7918 else
7919 { $as_echo "$as_me:$LINENO: result: no" >&5
7920 $as_echo "no" >&6; }
7923 if test "x$ac_ct_STRIP" = x; then
7924 STRIP=":"
7925 else
7926 case $cross_compiling:$ac_tool_warned in
7927 yes:)
7928 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7929 whose name does not start with the host triplet. If you think this
7930 configuration is useful to you, please write to autoconf@gnu.org." >&5
7931 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7932 whose name does not start with the host triplet. If you think this
7933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7934 ac_tool_warned=yes ;;
7935 esac
7936 STRIP=$ac_ct_STRIP
7938 else
7939 STRIP="$ac_cv_prog_STRIP"
7942 test -z "$STRIP" && STRIP=:
7949 if test -n "$ac_tool_prefix"; then
7950 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7951 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if test "${ac_cv_prog_RANLIB+set}" = set; then
7955 $as_echo_n "(cached) " >&6
7956 else
7957 if test -n "$RANLIB"; then
7958 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7968 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7971 done
7972 done
7973 IFS=$as_save_IFS
7977 RANLIB=$ac_cv_prog_RANLIB
7978 if test -n "$RANLIB"; then
7979 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7980 $as_echo "$RANLIB" >&6; }
7981 else
7982 { $as_echo "$as_me:$LINENO: result: no" >&5
7983 $as_echo "no" >&6; }
7988 if test -z "$ac_cv_prog_RANLIB"; then
7989 ac_ct_RANLIB=$RANLIB
7990 # Extract the first word of "ranlib", so it can be a program name with args.
7991 set dummy ranlib; ac_word=$2
7992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7995 $as_echo_n "(cached) " >&6
7996 else
7997 if test -n "$ac_ct_RANLIB"; then
7998 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7999 else
8000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 for as_dir in $PATH
8003 IFS=$as_save_IFS
8004 test -z "$as_dir" && as_dir=.
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8007 ac_cv_prog_ac_ct_RANLIB="ranlib"
8008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8009 break 2
8011 done
8012 done
8013 IFS=$as_save_IFS
8017 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8018 if test -n "$ac_ct_RANLIB"; then
8019 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8020 $as_echo "$ac_ct_RANLIB" >&6; }
8021 else
8022 { $as_echo "$as_me:$LINENO: result: no" >&5
8023 $as_echo "no" >&6; }
8026 if test "x$ac_ct_RANLIB" = x; then
8027 RANLIB=":"
8028 else
8029 case $cross_compiling:$ac_tool_warned in
8030 yes:)
8031 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8032 whose name does not start with the host triplet. If you think this
8033 configuration is useful to you, please write to autoconf@gnu.org." >&5
8034 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8035 whose name does not start with the host triplet. If you think this
8036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8037 ac_tool_warned=yes ;;
8038 esac
8039 RANLIB=$ac_ct_RANLIB
8041 else
8042 RANLIB="$ac_cv_prog_RANLIB"
8045 test -z "$RANLIB" && RANLIB=:
8052 # Determine commands to create old-style static archives.
8053 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8054 old_postinstall_cmds='chmod 644 $oldlib'
8055 old_postuninstall_cmds=
8057 if test -n "$RANLIB"; then
8058 case $host_os in
8059 openbsd*)
8060 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8063 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8065 esac
8066 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8102 # If no C compiler was specified, use CC.
8103 LTCC=${LTCC-"$CC"}
8105 # If no C compiler flags were specified, use CFLAGS.
8106 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8108 # Allow CC to be a program name with arguments.
8109 compiler=$CC
8112 # Check for command to grab the raw symbol name followed by C symbol from nm.
8113 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8114 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8115 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8116 $as_echo_n "(cached) " >&6
8117 else
8119 # These are sane defaults that work on at least a few old systems.
8120 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8122 # Character class describing NM global symbol codes.
8123 symcode='[BCDEGRST]'
8125 # Regexp to match symbols that can be accessed directly from C.
8126 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8128 # Define system-specific variables.
8129 case $host_os in
8130 aix*)
8131 symcode='[BCDT]'
8133 cygwin* | mingw* | pw32*)
8134 symcode='[ABCDGISTW]'
8136 hpux*)
8137 if test "$host_cpu" = ia64; then
8138 symcode='[ABCDEGRST]'
8141 irix* | nonstopux*)
8142 symcode='[BCDEGRST]'
8144 osf*)
8145 symcode='[BCDEGQRST]'
8147 solaris*)
8148 symcode='[BDRT]'
8150 sco3.2v5*)
8151 symcode='[DT]'
8153 sysv4.2uw2*)
8154 symcode='[DT]'
8156 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8157 symcode='[ABDT]'
8159 sysv4)
8160 symcode='[DFNSTU]'
8162 esac
8164 # If we're using GNU nm, then use its standard symbol codes.
8165 case `$NM -V 2>&1` in
8166 *GNU* | *'with BFD'*)
8167 symcode='[ABCDGIRSTW]' ;;
8168 esac
8170 # Transform an extracted symbol line into a proper C declaration.
8171 # Some systems (esp. on ia64) link data and code symbols differently,
8172 # so use this general approach.
8173 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8175 # Transform an extracted symbol line into symbol name and symbol address
8176 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8177 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8179 # Handle CRLF in mingw tool chain
8180 opt_cr=
8181 case $build_os in
8182 mingw*)
8183 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8185 esac
8187 # Try without a prefix underscore, then with it.
8188 for ac_symprfx in "" "_"; do
8190 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8191 symxfrm="\\1 $ac_symprfx\\2 \\2"
8193 # Write the raw and C identifiers.
8194 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8195 # Fake it for dumpbin and say T for any non-static function
8196 # and D for any global variable.
8197 # Also find C++ and __fastcall symbols from MSVC++,
8198 # which start with @ or ?.
8199 lt_cv_sys_global_symbol_pipe="$AWK '"\
8200 " {last_section=section; section=\$ 3};"\
8201 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8202 " \$ 0!~/External *\|/{next};"\
8203 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8204 " {if(hide[section]) next};"\
8205 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8206 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8207 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8208 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8209 " ' prfx=^$ac_symprfx"
8210 else
8211 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8214 # Check to see that the pipe works correctly.
8215 pipe_works=no
8217 rm -f conftest*
8218 cat > conftest.$ac_ext <<_LT_EOF
8219 #ifdef __cplusplus
8220 extern "C" {
8221 #endif
8222 char nm_test_var;
8223 void nm_test_func(void);
8224 void nm_test_func(void){}
8225 #ifdef __cplusplus
8227 #endif
8228 int main(){nm_test_var='a';nm_test_func();return(0);}
8229 _LT_EOF
8231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8232 (eval $ac_compile) 2>&5
8233 ac_status=$?
8234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; then
8236 # Now try to grab the symbols.
8237 nlist=conftest.nm
8238 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8239 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8240 ac_status=$?
8241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && test -s "$nlist"; then
8243 # Try sorting and uniquifying the output.
8244 if sort "$nlist" | uniq > "$nlist"T; then
8245 mv -f "$nlist"T "$nlist"
8246 else
8247 rm -f "$nlist"T
8250 # Make sure that we snagged all the symbols we need.
8251 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8252 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8253 cat <<_LT_EOF > conftest.$ac_ext
8254 #ifdef __cplusplus
8255 extern "C" {
8256 #endif
8258 _LT_EOF
8259 # Now generate the symbol file.
8260 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8262 cat <<_LT_EOF >> conftest.$ac_ext
8264 /* The mapping between symbol names and symbols. */
8265 const struct {
8266 const char *name;
8267 void *address;
8269 lt__PROGRAM__LTX_preloaded_symbols[] =
8271 { "@PROGRAM@", (void *) 0 },
8272 _LT_EOF
8273 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8274 cat <<\_LT_EOF >> conftest.$ac_ext
8275 {0, (void *) 0}
8278 /* This works around a problem in FreeBSD linker */
8279 #ifdef FREEBSD_WORKAROUND
8280 static const void *lt_preloaded_setup() {
8281 return lt__PROGRAM__LTX_preloaded_symbols;
8283 #endif
8285 #ifdef __cplusplus
8287 #endif
8288 _LT_EOF
8289 # Now try linking the two files.
8290 mv conftest.$ac_objext conftstm.$ac_objext
8291 lt_save_LIBS="$LIBS"
8292 lt_save_CFLAGS="$CFLAGS"
8293 LIBS="conftstm.$ac_objext"
8294 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8296 (eval $ac_link) 2>&5
8297 ac_status=$?
8298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8300 pipe_works=yes
8302 LIBS="$lt_save_LIBS"
8303 CFLAGS="$lt_save_CFLAGS"
8304 else
8305 echo "cannot find nm_test_func in $nlist" >&5
8307 else
8308 echo "cannot find nm_test_var in $nlist" >&5
8310 else
8311 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8313 else
8314 echo "$progname: failed program was:" >&5
8315 cat conftest.$ac_ext >&5
8317 rm -rf conftest* conftst*
8319 # Do not use the global_symbol_pipe unless it works.
8320 if test "$pipe_works" = yes; then
8321 break
8322 else
8323 lt_cv_sys_global_symbol_pipe=
8325 done
8329 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8330 lt_cv_sys_global_symbol_to_cdecl=
8332 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8333 { $as_echo "$as_me:$LINENO: result: failed" >&5
8334 $as_echo "failed" >&6; }
8335 else
8336 { $as_echo "$as_me:$LINENO: result: ok" >&5
8337 $as_echo "ok" >&6; }
8361 # Check whether --enable-libtool-lock was given.
8362 if test "${enable_libtool_lock+set}" = set; then
8363 enableval=$enable_libtool_lock;
8366 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8368 # Some flags need to be propagated to the compiler or linker for good
8369 # libtool support.
8370 case $host in
8371 ia64-*-hpux*)
8372 # Find out which ABI we are using.
8373 echo 'int i;' > conftest.$ac_ext
8374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8375 (eval $ac_compile) 2>&5
8376 ac_status=$?
8377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; then
8379 case `/usr/bin/file conftest.$ac_objext` in
8380 *ELF-32*)
8381 HPUX_IA64_MODE="32"
8383 *ELF-64*)
8384 HPUX_IA64_MODE="64"
8386 esac
8388 rm -rf conftest*
8390 *-*-irix6*)
8391 # Find out which ABI we are using.
8392 echo '#line 8392 "configure"' > conftest.$ac_ext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8394 (eval $ac_compile) 2>&5
8395 ac_status=$?
8396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; then
8398 if test "$lt_cv_prog_gnu_ld" = yes; then
8399 case `/usr/bin/file conftest.$ac_objext` in
8400 *32-bit*)
8401 LD="${LD-ld} -melf32bsmip"
8403 *N32*)
8404 LD="${LD-ld} -melf32bmipn32"
8406 *64-bit*)
8407 LD="${LD-ld} -melf64bmip"
8409 esac
8410 else
8411 case `/usr/bin/file conftest.$ac_objext` in
8412 *32-bit*)
8413 LD="${LD-ld} -32"
8415 *N32*)
8416 LD="${LD-ld} -n32"
8418 *64-bit*)
8419 LD="${LD-ld} -64"
8421 esac
8424 rm -rf conftest*
8427 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8428 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8429 # Find out which ABI we are using.
8430 echo 'int i;' > conftest.$ac_ext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8432 (eval $ac_compile) 2>&5
8433 ac_status=$?
8434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; then
8436 case `/usr/bin/file conftest.o` in
8437 *32-bit*)
8438 case $host in
8439 x86_64-*kfreebsd*-gnu)
8440 LD="${LD-ld} -m elf_i386_fbsd"
8442 x86_64-*linux*)
8443 LD="${LD-ld} -m elf_i386"
8445 ppc64-*linux*|powerpc64-*linux*)
8446 LD="${LD-ld} -m elf32ppclinux"
8448 s390x-*linux*)
8449 LD="${LD-ld} -m elf_s390"
8451 sparc64-*linux*)
8452 LD="${LD-ld} -m elf32_sparc"
8454 esac
8456 *64-bit*)
8457 case $host in
8458 x86_64-*kfreebsd*-gnu)
8459 LD="${LD-ld} -m elf_x86_64_fbsd"
8461 x86_64-*linux*)
8462 LD="${LD-ld} -m elf_x86_64"
8464 ppc*-*linux*|powerpc*-*linux*)
8465 LD="${LD-ld} -m elf64ppc"
8467 s390*-*linux*|s390*-*tpf*)
8468 LD="${LD-ld} -m elf64_s390"
8470 sparc*-*linux*)
8471 LD="${LD-ld} -m elf64_sparc"
8473 esac
8475 esac
8477 rm -rf conftest*
8480 *-*-sco3.2v5*)
8481 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8482 SAVE_CFLAGS="$CFLAGS"
8483 CFLAGS="$CFLAGS -belf"
8484 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8485 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8486 if test "${lt_cv_cc_needs_belf+set}" = set; then
8487 $as_echo_n "(cached) " >&6
8488 else
8489 ac_ext=c
8490 ac_cpp='$CPP $CPPFLAGS'
8491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h. */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8503 main ()
8507 return 0;
8509 _ACEOF
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8512 case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515 esac
8516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8517 $as_echo "$ac_try_echo") >&5
8518 (eval "$ac_link") 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && {
8525 test -z "$ac_c_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest$ac_exeext && {
8528 test "$cross_compiling" = yes ||
8529 $as_test_x conftest$ac_exeext
8530 }; then
8531 lt_cv_cc_needs_belf=yes
8532 else
8533 $as_echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8536 lt_cv_cc_needs_belf=no
8539 rm -rf conftest.dSYM
8540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8541 conftest$ac_exeext conftest.$ac_ext
8542 ac_ext=c
8543 ac_cpp='$CPP $CPPFLAGS'
8544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8549 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8550 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8551 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8552 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8553 CFLAGS="$SAVE_CFLAGS"
8556 sparc*-*solaris*)
8557 # Find out which ABI we are using.
8558 echo 'int i;' > conftest.$ac_ext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560 (eval $ac_compile) 2>&5
8561 ac_status=$?
8562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; then
8564 case `/usr/bin/file conftest.o` in
8565 *64-bit*)
8566 case $lt_cv_prog_gnu_ld in
8567 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8569 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8570 LD="${LD-ld} -64"
8573 esac
8575 esac
8577 rm -rf conftest*
8579 esac
8581 need_locks="$enable_libtool_lock"
8584 case $host_os in
8585 rhapsody* | darwin*)
8586 if test -n "$ac_tool_prefix"; then
8587 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8588 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8590 $as_echo_n "checking for $ac_word... " >&6; }
8591 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8592 $as_echo_n "(cached) " >&6
8593 else
8594 if test -n "$DSYMUTIL"; then
8595 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8596 else
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 for as_dir in $PATH
8600 IFS=$as_save_IFS
8601 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8604 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 break 2
8608 done
8609 done
8610 IFS=$as_save_IFS
8614 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8615 if test -n "$DSYMUTIL"; then
8616 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8617 $as_echo "$DSYMUTIL" >&6; }
8618 else
8619 { $as_echo "$as_me:$LINENO: result: no" >&5
8620 $as_echo "no" >&6; }
8625 if test -z "$ac_cv_prog_DSYMUTIL"; then
8626 ac_ct_DSYMUTIL=$DSYMUTIL
8627 # Extract the first word of "dsymutil", so it can be a program name with args.
8628 set dummy dsymutil; ac_word=$2
8629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8630 $as_echo_n "checking for $ac_word... " >&6; }
8631 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8632 $as_echo_n "(cached) " >&6
8633 else
8634 if test -n "$ac_ct_DSYMUTIL"; then
8635 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8636 else
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638 for as_dir in $PATH
8640 IFS=$as_save_IFS
8641 test -z "$as_dir" && as_dir=.
8642 for ac_exec_ext in '' $ac_executable_extensions; do
8643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8644 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 break 2
8648 done
8649 done
8650 IFS=$as_save_IFS
8654 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8655 if test -n "$ac_ct_DSYMUTIL"; then
8656 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8657 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8658 else
8659 { $as_echo "$as_me:$LINENO: result: no" >&5
8660 $as_echo "no" >&6; }
8663 if test "x$ac_ct_DSYMUTIL" = x; then
8664 DSYMUTIL=":"
8665 else
8666 case $cross_compiling:$ac_tool_warned in
8667 yes:)
8668 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8669 whose name does not start with the host triplet. If you think this
8670 configuration is useful to you, please write to autoconf@gnu.org." >&5
8671 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8672 whose name does not start with the host triplet. If you think this
8673 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8674 ac_tool_warned=yes ;;
8675 esac
8676 DSYMUTIL=$ac_ct_DSYMUTIL
8678 else
8679 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8682 if test -n "$ac_tool_prefix"; then
8683 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8684 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8686 $as_echo_n "checking for $ac_word... " >&6; }
8687 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8688 $as_echo_n "(cached) " >&6
8689 else
8690 if test -n "$NMEDIT"; then
8691 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8692 else
8693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8694 for as_dir in $PATH
8696 IFS=$as_save_IFS
8697 test -z "$as_dir" && as_dir=.
8698 for ac_exec_ext in '' $ac_executable_extensions; do
8699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8700 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8701 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 break 2
8704 done
8705 done
8706 IFS=$as_save_IFS
8710 NMEDIT=$ac_cv_prog_NMEDIT
8711 if test -n "$NMEDIT"; then
8712 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8713 $as_echo "$NMEDIT" >&6; }
8714 else
8715 { $as_echo "$as_me:$LINENO: result: no" >&5
8716 $as_echo "no" >&6; }
8721 if test -z "$ac_cv_prog_NMEDIT"; then
8722 ac_ct_NMEDIT=$NMEDIT
8723 # Extract the first word of "nmedit", so it can be a program name with args.
8724 set dummy nmedit; ac_word=$2
8725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8728 $as_echo_n "(cached) " >&6
8729 else
8730 if test -n "$ac_ct_NMEDIT"; then
8731 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8732 else
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8740 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8742 break 2
8744 done
8745 done
8746 IFS=$as_save_IFS
8750 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8751 if test -n "$ac_ct_NMEDIT"; then
8752 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8753 $as_echo "$ac_ct_NMEDIT" >&6; }
8754 else
8755 { $as_echo "$as_me:$LINENO: result: no" >&5
8756 $as_echo "no" >&6; }
8759 if test "x$ac_ct_NMEDIT" = x; then
8760 NMEDIT=":"
8761 else
8762 case $cross_compiling:$ac_tool_warned in
8763 yes:)
8764 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8765 whose name does not start with the host triplet. If you think this
8766 configuration is useful to you, please write to autoconf@gnu.org." >&5
8767 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8768 whose name does not start with the host triplet. If you think this
8769 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8770 ac_tool_warned=yes ;;
8771 esac
8772 NMEDIT=$ac_ct_NMEDIT
8774 else
8775 NMEDIT="$ac_cv_prog_NMEDIT"
8778 if test -n "$ac_tool_prefix"; then
8779 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8780 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if test "${ac_cv_prog_LIPO+set}" = set; then
8784 $as_echo_n "(cached) " >&6
8785 else
8786 if test -n "$LIPO"; then
8787 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8796 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8797 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8800 done
8801 done
8802 IFS=$as_save_IFS
8806 LIPO=$ac_cv_prog_LIPO
8807 if test -n "$LIPO"; then
8808 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8809 $as_echo "$LIPO" >&6; }
8810 else
8811 { $as_echo "$as_me:$LINENO: result: no" >&5
8812 $as_echo "no" >&6; }
8817 if test -z "$ac_cv_prog_LIPO"; then
8818 ac_ct_LIPO=$LIPO
8819 # Extract the first word of "lipo", so it can be a program name with args.
8820 set dummy lipo; ac_word=$2
8821 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8824 $as_echo_n "(cached) " >&6
8825 else
8826 if test -n "$ac_ct_LIPO"; then
8827 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8828 else
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8832 IFS=$as_save_IFS
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8836 ac_cv_prog_ac_ct_LIPO="lipo"
8837 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8838 break 2
8840 done
8841 done
8842 IFS=$as_save_IFS
8846 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8847 if test -n "$ac_ct_LIPO"; then
8848 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8849 $as_echo "$ac_ct_LIPO" >&6; }
8850 else
8851 { $as_echo "$as_me:$LINENO: result: no" >&5
8852 $as_echo "no" >&6; }
8855 if test "x$ac_ct_LIPO" = x; then
8856 LIPO=":"
8857 else
8858 case $cross_compiling:$ac_tool_warned in
8859 yes:)
8860 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8861 whose name does not start with the host triplet. If you think this
8862 configuration is useful to you, please write to autoconf@gnu.org." >&5
8863 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8864 whose name does not start with the host triplet. If you think this
8865 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8866 ac_tool_warned=yes ;;
8867 esac
8868 LIPO=$ac_ct_LIPO
8870 else
8871 LIPO="$ac_cv_prog_LIPO"
8874 if test -n "$ac_tool_prefix"; then
8875 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8876 set dummy ${ac_tool_prefix}otool; ac_word=$2
8877 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8878 $as_echo_n "checking for $ac_word... " >&6; }
8879 if test "${ac_cv_prog_OTOOL+set}" = set; then
8880 $as_echo_n "(cached) " >&6
8881 else
8882 if test -n "$OTOOL"; then
8883 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8884 else
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 for as_dir in $PATH
8888 IFS=$as_save_IFS
8889 test -z "$as_dir" && as_dir=.
8890 for ac_exec_ext in '' $ac_executable_extensions; do
8891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8892 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8894 break 2
8896 done
8897 done
8898 IFS=$as_save_IFS
8902 OTOOL=$ac_cv_prog_OTOOL
8903 if test -n "$OTOOL"; then
8904 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8905 $as_echo "$OTOOL" >&6; }
8906 else
8907 { $as_echo "$as_me:$LINENO: result: no" >&5
8908 $as_echo "no" >&6; }
8913 if test -z "$ac_cv_prog_OTOOL"; then
8914 ac_ct_OTOOL=$OTOOL
8915 # Extract the first word of "otool", so it can be a program name with args.
8916 set dummy otool; ac_word=$2
8917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8918 $as_echo_n "checking for $ac_word... " >&6; }
8919 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8920 $as_echo_n "(cached) " >&6
8921 else
8922 if test -n "$ac_ct_OTOOL"; then
8923 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8924 else
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926 for as_dir in $PATH
8928 IFS=$as_save_IFS
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8932 ac_cv_prog_ac_ct_OTOOL="otool"
8933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8934 break 2
8936 done
8937 done
8938 IFS=$as_save_IFS
8942 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8943 if test -n "$ac_ct_OTOOL"; then
8944 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8945 $as_echo "$ac_ct_OTOOL" >&6; }
8946 else
8947 { $as_echo "$as_me:$LINENO: result: no" >&5
8948 $as_echo "no" >&6; }
8951 if test "x$ac_ct_OTOOL" = x; then
8952 OTOOL=":"
8953 else
8954 case $cross_compiling:$ac_tool_warned in
8955 yes:)
8956 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8957 whose name does not start with the host triplet. If you think this
8958 configuration is useful to you, please write to autoconf@gnu.org." >&5
8959 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8960 whose name does not start with the host triplet. If you think this
8961 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8962 ac_tool_warned=yes ;;
8963 esac
8964 OTOOL=$ac_ct_OTOOL
8966 else
8967 OTOOL="$ac_cv_prog_OTOOL"
8970 if test -n "$ac_tool_prefix"; then
8971 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8972 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8974 $as_echo_n "checking for $ac_word... " >&6; }
8975 if test "${ac_cv_prog_OTOOL64+set}" = set; then
8976 $as_echo_n "(cached) " >&6
8977 else
8978 if test -n "$OTOOL64"; then
8979 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8980 else
8981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8982 for as_dir in $PATH
8984 IFS=$as_save_IFS
8985 test -z "$as_dir" && as_dir=.
8986 for ac_exec_ext in '' $ac_executable_extensions; do
8987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8988 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8989 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 break 2
8992 done
8993 done
8994 IFS=$as_save_IFS
8998 OTOOL64=$ac_cv_prog_OTOOL64
8999 if test -n "$OTOOL64"; then
9000 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9001 $as_echo "$OTOOL64" >&6; }
9002 else
9003 { $as_echo "$as_me:$LINENO: result: no" >&5
9004 $as_echo "no" >&6; }
9009 if test -z "$ac_cv_prog_OTOOL64"; then
9010 ac_ct_OTOOL64=$OTOOL64
9011 # Extract the first word of "otool64", so it can be a program name with args.
9012 set dummy otool64; ac_word=$2
9013 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9014 $as_echo_n "checking for $ac_word... " >&6; }
9015 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9016 $as_echo_n "(cached) " >&6
9017 else
9018 if test -n "$ac_ct_OTOOL64"; then
9019 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9020 else
9021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 for as_dir in $PATH
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9028 ac_cv_prog_ac_ct_OTOOL64="otool64"
9029 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 break 2
9032 done
9033 done
9034 IFS=$as_save_IFS
9038 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9039 if test -n "$ac_ct_OTOOL64"; then
9040 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9041 $as_echo "$ac_ct_OTOOL64" >&6; }
9042 else
9043 { $as_echo "$as_me:$LINENO: result: no" >&5
9044 $as_echo "no" >&6; }
9047 if test "x$ac_ct_OTOOL64" = x; then
9048 OTOOL64=":"
9049 else
9050 case $cross_compiling:$ac_tool_warned in
9051 yes:)
9052 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9053 whose name does not start with the host triplet. If you think this
9054 configuration is useful to you, please write to autoconf@gnu.org." >&5
9055 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9056 whose name does not start with the host triplet. If you think this
9057 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9058 ac_tool_warned=yes ;;
9059 esac
9060 OTOOL64=$ac_ct_OTOOL64
9062 else
9063 OTOOL64="$ac_cv_prog_OTOOL64"
9092 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9093 $as_echo_n "checking for -single_module linker flag... " >&6; }
9094 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9095 $as_echo_n "(cached) " >&6
9096 else
9097 lt_cv_apple_cc_single_mod=no
9098 if test -z "${LT_MULTI_MODULE}"; then
9099 # By default we will add the -single_module flag. You can override
9100 # by either setting the environment variable LT_MULTI_MODULE
9101 # non-empty at configure time, or by adding -multi_module to the
9102 # link flags.
9103 rm -rf libconftest.dylib*
9104 echo "int foo(void){return 1;}" > conftest.c
9105 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9106 -dynamiclib -Wl,-single_module conftest.c" >&5
9107 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9108 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9109 _lt_result=$?
9110 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9111 lt_cv_apple_cc_single_mod=yes
9112 else
9113 cat conftest.err >&5
9115 rm -rf libconftest.dylib*
9116 rm -f conftest.*
9119 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9120 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9121 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9122 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9123 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9124 $as_echo_n "(cached) " >&6
9125 else
9126 lt_cv_ld_exported_symbols_list=no
9127 save_LDFLAGS=$LDFLAGS
9128 echo "_main" > conftest.sym
9129 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9130 cat >conftest.$ac_ext <<_ACEOF
9131 /* confdefs.h. */
9132 _ACEOF
9133 cat confdefs.h >>conftest.$ac_ext
9134 cat >>conftest.$ac_ext <<_ACEOF
9135 /* end confdefs.h. */
9138 main ()
9142 return 0;
9144 _ACEOF
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9147 case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150 esac
9151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9152 $as_echo "$ac_try_echo") >&5
9153 (eval "$ac_link") 2>conftest.er1
9154 ac_status=$?
9155 grep -v '^ *+' conftest.er1 >conftest.err
9156 rm -f conftest.er1
9157 cat conftest.err >&5
9158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } && {
9160 test -z "$ac_c_werror_flag" ||
9161 test ! -s conftest.err
9162 } && test -s conftest$ac_exeext && {
9163 test "$cross_compiling" = yes ||
9164 $as_test_x conftest$ac_exeext
9165 }; then
9166 lt_cv_ld_exported_symbols_list=yes
9167 else
9168 $as_echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 lt_cv_ld_exported_symbols_list=no
9174 rm -rf conftest.dSYM
9175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9176 conftest$ac_exeext conftest.$ac_ext
9177 LDFLAGS="$save_LDFLAGS"
9180 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9181 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9182 case $host_os in
9183 rhapsody* | darwin1.[012])
9184 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9185 darwin1.*)
9186 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9187 darwin*) # darwin 5.x on
9188 # if running on 10.5 or later, the deployment target defaults
9189 # to the OS version, if on x86, and 10.4, the deployment
9190 # target defaults to 10.4. Don't you love it?
9191 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9192 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9193 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9194 10.[012]*)
9195 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9196 10.*)
9197 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9198 esac
9200 esac
9201 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9202 _lt_dar_single_mod='$single_module'
9204 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9205 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9206 else
9207 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9209 if test "$DSYMUTIL" != ":"; then
9210 _lt_dsymutil='~$DSYMUTIL $lib || :'
9211 else
9212 _lt_dsymutil=
9215 esac
9218 for ac_header in dlfcn.h
9220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9221 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9222 $as_echo_n "checking for $ac_header... " >&6; }
9223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9224 $as_echo_n "(cached) " >&6
9225 else
9226 cat >conftest.$ac_ext <<_ACEOF
9227 /* confdefs.h. */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 $ac_includes_default
9234 #include <$ac_header>
9235 _ACEOF
9236 rm -f conftest.$ac_objext
9237 if { (ac_try="$ac_compile"
9238 case "(($ac_try" in
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9241 esac
9242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9243 $as_echo "$ac_try_echo") >&5
9244 (eval "$ac_compile") 2>conftest.er1
9245 ac_status=$?
9246 grep -v '^ *+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest.$ac_objext; then
9254 eval "$as_ac_Header=yes"
9255 else
9256 $as_echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9259 eval "$as_ac_Header=no"
9262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9264 ac_res=`eval 'as_val=${'$as_ac_Header'}
9265 $as_echo "$as_val"'`
9266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9267 $as_echo "$ac_res" >&6; }
9268 if test `eval 'as_val=${'$as_ac_Header'}
9269 $as_echo "$as_val"'` = yes; then
9270 cat >>confdefs.h <<_ACEOF
9271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9272 _ACEOF
9276 done
9280 # Set options
9281 enable_win32_dll=yes
9283 case $host in
9284 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
9285 if test -n "$ac_tool_prefix"; then
9286 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9287 set dummy ${ac_tool_prefix}as; ac_word=$2
9288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9289 $as_echo_n "checking for $ac_word... " >&6; }
9290 if test "${ac_cv_prog_AS+set}" = set; then
9291 $as_echo_n "(cached) " >&6
9292 else
9293 if test -n "$AS"; then
9294 ac_cv_prog_AS="$AS" # Let the user override the test.
9295 else
9296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297 for as_dir in $PATH
9299 IFS=$as_save_IFS
9300 test -z "$as_dir" && as_dir=.
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9303 ac_cv_prog_AS="${ac_tool_prefix}as"
9304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9305 break 2
9307 done
9308 done
9309 IFS=$as_save_IFS
9313 AS=$ac_cv_prog_AS
9314 if test -n "$AS"; then
9315 { $as_echo "$as_me:$LINENO: result: $AS" >&5
9316 $as_echo "$AS" >&6; }
9317 else
9318 { $as_echo "$as_me:$LINENO: result: no" >&5
9319 $as_echo "no" >&6; }
9324 if test -z "$ac_cv_prog_AS"; then
9325 ac_ct_AS=$AS
9326 # Extract the first word of "as", so it can be a program name with args.
9327 set dummy as; ac_word=$2
9328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9329 $as_echo_n "checking for $ac_word... " >&6; }
9330 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
9331 $as_echo_n "(cached) " >&6
9332 else
9333 if test -n "$ac_ct_AS"; then
9334 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9335 else
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9339 IFS=$as_save_IFS
9340 test -z "$as_dir" && as_dir=.
9341 for ac_exec_ext in '' $ac_executable_extensions; do
9342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9343 ac_cv_prog_ac_ct_AS="as"
9344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9345 break 2
9347 done
9348 done
9349 IFS=$as_save_IFS
9353 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9354 if test -n "$ac_ct_AS"; then
9355 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
9356 $as_echo "$ac_ct_AS" >&6; }
9357 else
9358 { $as_echo "$as_me:$LINENO: result: no" >&5
9359 $as_echo "no" >&6; }
9362 if test "x$ac_ct_AS" = x; then
9363 AS="false"
9364 else
9365 case $cross_compiling:$ac_tool_warned in
9366 yes:)
9367 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9368 whose name does not start with the host triplet. If you think this
9369 configuration is useful to you, please write to autoconf@gnu.org." >&5
9370 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9371 whose name does not start with the host triplet. If you think this
9372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9373 ac_tool_warned=yes ;;
9374 esac
9375 AS=$ac_ct_AS
9377 else
9378 AS="$ac_cv_prog_AS"
9381 if test -n "$ac_tool_prefix"; then
9382 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9383 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9385 $as_echo_n "checking for $ac_word... " >&6; }
9386 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
9387 $as_echo_n "(cached) " >&6
9388 else
9389 if test -n "$DLLTOOL"; then
9390 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9391 else
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in $PATH
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9399 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 break 2
9403 done
9404 done
9405 IFS=$as_save_IFS
9409 DLLTOOL=$ac_cv_prog_DLLTOOL
9410 if test -n "$DLLTOOL"; then
9411 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
9412 $as_echo "$DLLTOOL" >&6; }
9413 else
9414 { $as_echo "$as_me:$LINENO: result: no" >&5
9415 $as_echo "no" >&6; }
9420 if test -z "$ac_cv_prog_DLLTOOL"; then
9421 ac_ct_DLLTOOL=$DLLTOOL
9422 # Extract the first word of "dlltool", so it can be a program name with args.
9423 set dummy dlltool; ac_word=$2
9424 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9425 $as_echo_n "checking for $ac_word... " >&6; }
9426 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
9427 $as_echo_n "(cached) " >&6
9428 else
9429 if test -n "$ac_ct_DLLTOOL"; then
9430 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9431 else
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 for as_dir in $PATH
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9439 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9443 done
9444 done
9445 IFS=$as_save_IFS
9449 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9450 if test -n "$ac_ct_DLLTOOL"; then
9451 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
9452 $as_echo "$ac_ct_DLLTOOL" >&6; }
9453 else
9454 { $as_echo "$as_me:$LINENO: result: no" >&5
9455 $as_echo "no" >&6; }
9458 if test "x$ac_ct_DLLTOOL" = x; then
9459 DLLTOOL="false"
9460 else
9461 case $cross_compiling:$ac_tool_warned in
9462 yes:)
9463 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9464 whose name does not start with the host triplet. If you think this
9465 configuration is useful to you, please write to autoconf@gnu.org." >&5
9466 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9467 whose name does not start with the host triplet. If you think this
9468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9469 ac_tool_warned=yes ;;
9470 esac
9471 DLLTOOL=$ac_ct_DLLTOOL
9473 else
9474 DLLTOOL="$ac_cv_prog_DLLTOOL"
9477 if test -n "$ac_tool_prefix"; then
9478 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9479 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9481 $as_echo_n "checking for $ac_word... " >&6; }
9482 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
9483 $as_echo_n "(cached) " >&6
9484 else
9485 if test -n "$OBJDUMP"; then
9486 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9487 else
9488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489 for as_dir in $PATH
9491 IFS=$as_save_IFS
9492 test -z "$as_dir" && as_dir=.
9493 for ac_exec_ext in '' $ac_executable_extensions; do
9494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9495 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9496 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9497 break 2
9499 done
9500 done
9501 IFS=$as_save_IFS
9505 OBJDUMP=$ac_cv_prog_OBJDUMP
9506 if test -n "$OBJDUMP"; then
9507 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9508 $as_echo "$OBJDUMP" >&6; }
9509 else
9510 { $as_echo "$as_me:$LINENO: result: no" >&5
9511 $as_echo "no" >&6; }
9516 if test -z "$ac_cv_prog_OBJDUMP"; then
9517 ac_ct_OBJDUMP=$OBJDUMP
9518 # Extract the first word of "objdump", so it can be a program name with args.
9519 set dummy objdump; ac_word=$2
9520 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9521 $as_echo_n "checking for $ac_word... " >&6; }
9522 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9523 $as_echo_n "(cached) " >&6
9524 else
9525 if test -n "$ac_ct_OBJDUMP"; then
9526 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9527 else
9528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529 for as_dir in $PATH
9531 IFS=$as_save_IFS
9532 test -z "$as_dir" && as_dir=.
9533 for ac_exec_ext in '' $ac_executable_extensions; do
9534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9535 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9537 break 2
9539 done
9540 done
9541 IFS=$as_save_IFS
9545 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9546 if test -n "$ac_ct_OBJDUMP"; then
9547 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9548 $as_echo "$ac_ct_OBJDUMP" >&6; }
9549 else
9550 { $as_echo "$as_me:$LINENO: result: no" >&5
9551 $as_echo "no" >&6; }
9554 if test "x$ac_ct_OBJDUMP" = x; then
9555 OBJDUMP="false"
9556 else
9557 case $cross_compiling:$ac_tool_warned in
9558 yes:)
9559 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9560 whose name does not start with the host triplet. If you think this
9561 configuration is useful to you, please write to autoconf@gnu.org." >&5
9562 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9563 whose name does not start with the host triplet. If you think this
9564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9565 ac_tool_warned=yes ;;
9566 esac
9567 OBJDUMP=$ac_ct_OBJDUMP
9569 else
9570 OBJDUMP="$ac_cv_prog_OBJDUMP"
9574 esac
9576 test -z "$AS" && AS=as
9582 test -z "$DLLTOOL" && DLLTOOL=dlltool
9588 test -z "$OBJDUMP" && OBJDUMP=objdump
9596 enable_dlopen=no
9600 # Check whether --enable-shared was given.
9601 if test "${enable_shared+set}" = set; then
9602 enableval=$enable_shared; p=${PACKAGE-default}
9603 case $enableval in
9604 yes) enable_shared=yes ;;
9605 no) enable_shared=no ;;
9607 enable_shared=no
9608 # Look at the argument we got. We use all the common list separators.
9609 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9610 for pkg in $enableval; do
9611 IFS="$lt_save_ifs"
9612 if test "X$pkg" = "X$p"; then
9613 enable_shared=yes
9615 done
9616 IFS="$lt_save_ifs"
9618 esac
9619 else
9620 enable_shared=yes
9631 # Check whether --enable-static was given.
9632 if test "${enable_static+set}" = set; then
9633 enableval=$enable_static; p=${PACKAGE-default}
9634 case $enableval in
9635 yes) enable_static=yes ;;
9636 no) enable_static=no ;;
9638 enable_static=no
9639 # Look at the argument we got. We use all the common list separators.
9640 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9641 for pkg in $enableval; do
9642 IFS="$lt_save_ifs"
9643 if test "X$pkg" = "X$p"; then
9644 enable_static=yes
9646 done
9647 IFS="$lt_save_ifs"
9649 esac
9650 else
9651 enable_static=yes
9663 # Check whether --with-pic was given.
9664 if test "${with_pic+set}" = set; then
9665 withval=$with_pic; pic_mode="$withval"
9666 else
9667 pic_mode=default
9671 test -z "$pic_mode" && pic_mode=default
9679 # Check whether --enable-fast-install was given.
9680 if test "${enable_fast_install+set}" = set; then
9681 enableval=$enable_fast_install; p=${PACKAGE-default}
9682 case $enableval in
9683 yes) enable_fast_install=yes ;;
9684 no) enable_fast_install=no ;;
9686 enable_fast_install=no
9687 # Look at the argument we got. We use all the common list separators.
9688 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9689 for pkg in $enableval; do
9690 IFS="$lt_save_ifs"
9691 if test "X$pkg" = "X$p"; then
9692 enable_fast_install=yes
9694 done
9695 IFS="$lt_save_ifs"
9697 esac
9698 else
9699 enable_fast_install=yes
9712 # This can be used to rebuild libtool when needed
9713 LIBTOOL_DEPS="$ltmain"
9715 # Always use our own libtool.
9716 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9742 test -z "$LN_S" && LN_S="ln -s"
9757 if test -n "${ZSH_VERSION+set}" ; then
9758 setopt NO_GLOB_SUBST
9761 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
9762 $as_echo_n "checking for objdir... " >&6; }
9763 if test "${lt_cv_objdir+set}" = set; then
9764 $as_echo_n "(cached) " >&6
9765 else
9766 rm -f .libs 2>/dev/null
9767 mkdir .libs 2>/dev/null
9768 if test -d .libs; then
9769 lt_cv_objdir=.libs
9770 else
9771 # MS-DOS does not allow filenames that begin with a dot.
9772 lt_cv_objdir=_libs
9774 rmdir .libs 2>/dev/null
9776 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9777 $as_echo "$lt_cv_objdir" >&6; }
9778 objdir=$lt_cv_objdir
9784 cat >>confdefs.h <<_ACEOF
9785 #define LT_OBJDIR "$lt_cv_objdir/"
9786 _ACEOF
9804 case $host_os in
9805 aix3*)
9806 # AIX sometimes has problems with the GCC collect2 program. For some
9807 # reason, if we set the COLLECT_NAMES environment variable, the problems
9808 # vanish in a puff of smoke.
9809 if test "X${COLLECT_NAMES+set}" != Xset; then
9810 COLLECT_NAMES=
9811 export COLLECT_NAMES
9814 esac
9816 # Sed substitution that helps us do robust quoting. It backslashifies
9817 # metacharacters that are still active within double-quoted strings.
9818 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9820 # Same as above, but do not quote variable references.
9821 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9823 # Sed substitution to delay expansion of an escaped shell variable in a
9824 # double_quote_subst'ed string.
9825 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9827 # Sed substitution to delay expansion of an escaped single quote.
9828 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9830 # Sed substitution to avoid accidental globbing in evaled expressions
9831 no_glob_subst='s/\*/\\\*/g'
9833 # Global variables:
9834 ofile=libtool
9835 can_build_shared=yes
9837 # All known linkers require a `.a' archive for static linking (except MSVC,
9838 # which needs '.lib').
9839 libext=a
9841 with_gnu_ld="$lt_cv_prog_gnu_ld"
9843 old_CC="$CC"
9844 old_CFLAGS="$CFLAGS"
9846 # Set sane defaults for various variables
9847 test -z "$CC" && CC=cc
9848 test -z "$LTCC" && LTCC=$CC
9849 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9850 test -z "$LD" && LD=ld
9851 test -z "$ac_objext" && ac_objext=o
9853 for cc_temp in $compiler""; do
9854 case $cc_temp in
9855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9857 \-*) ;;
9858 *) break;;
9859 esac
9860 done
9861 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9864 # Only perform the check for file, if the check method requires it
9865 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9866 case $deplibs_check_method in
9867 file_magic*)
9868 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9869 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9870 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9871 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9872 $as_echo_n "(cached) " >&6
9873 else
9874 case $MAGIC_CMD in
9875 [\\/*] | ?:[\\/]*)
9876 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9879 lt_save_MAGIC_CMD="$MAGIC_CMD"
9880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9881 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9882 for ac_dir in $ac_dummy; do
9883 IFS="$lt_save_ifs"
9884 test -z "$ac_dir" && ac_dir=.
9885 if test -f $ac_dir/${ac_tool_prefix}file; then
9886 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9887 if test -n "$file_magic_test_file"; then
9888 case $deplibs_check_method in
9889 "file_magic "*)
9890 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9892 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9893 $EGREP "$file_magic_regex" > /dev/null; then
9895 else
9896 cat <<_LT_EOF 1>&2
9898 *** Warning: the command libtool uses to detect shared libraries,
9899 *** $file_magic_cmd, produces output that libtool cannot recognize.
9900 *** The result is that libtool may fail to recognize shared libraries
9901 *** as such. This will affect the creation of libtool libraries that
9902 *** depend on shared libraries, but programs linked with such libtool
9903 *** libraries will work regardless of this problem. Nevertheless, you
9904 *** may want to report the problem to your system manager and/or to
9905 *** bug-libtool@gnu.org
9907 _LT_EOF
9908 fi ;;
9909 esac
9911 break
9913 done
9914 IFS="$lt_save_ifs"
9915 MAGIC_CMD="$lt_save_MAGIC_CMD"
9917 esac
9920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9921 if test -n "$MAGIC_CMD"; then
9922 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9923 $as_echo "$MAGIC_CMD" >&6; }
9924 else
9925 { $as_echo "$as_me:$LINENO: result: no" >&5
9926 $as_echo "no" >&6; }
9933 if test -z "$lt_cv_path_MAGIC_CMD"; then
9934 if test -n "$ac_tool_prefix"; then
9935 { $as_echo "$as_me:$LINENO: checking for file" >&5
9936 $as_echo_n "checking for file... " >&6; }
9937 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9938 $as_echo_n "(cached) " >&6
9939 else
9940 case $MAGIC_CMD in
9941 [\\/*] | ?:[\\/]*)
9942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9945 lt_save_MAGIC_CMD="$MAGIC_CMD"
9946 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9947 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9948 for ac_dir in $ac_dummy; do
9949 IFS="$lt_save_ifs"
9950 test -z "$ac_dir" && ac_dir=.
9951 if test -f $ac_dir/file; then
9952 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9953 if test -n "$file_magic_test_file"; then
9954 case $deplibs_check_method in
9955 "file_magic "*)
9956 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9958 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9959 $EGREP "$file_magic_regex" > /dev/null; then
9961 else
9962 cat <<_LT_EOF 1>&2
9964 *** Warning: the command libtool uses to detect shared libraries,
9965 *** $file_magic_cmd, produces output that libtool cannot recognize.
9966 *** The result is that libtool may fail to recognize shared libraries
9967 *** as such. This will affect the creation of libtool libraries that
9968 *** depend on shared libraries, but programs linked with such libtool
9969 *** libraries will work regardless of this problem. Nevertheless, you
9970 *** may want to report the problem to your system manager and/or to
9971 *** bug-libtool@gnu.org
9973 _LT_EOF
9974 fi ;;
9975 esac
9977 break
9979 done
9980 IFS="$lt_save_ifs"
9981 MAGIC_CMD="$lt_save_MAGIC_CMD"
9983 esac
9986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9987 if test -n "$MAGIC_CMD"; then
9988 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9989 $as_echo "$MAGIC_CMD" >&6; }
9990 else
9991 { $as_echo "$as_me:$LINENO: result: no" >&5
9992 $as_echo "no" >&6; }
9996 else
9997 MAGIC_CMD=:
10003 esac
10005 # Use C for the default configuration in the libtool script
10007 lt_save_CC="$CC"
10008 ac_ext=c
10009 ac_cpp='$CPP $CPPFLAGS'
10010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10015 # Source file extension for C test sources.
10016 ac_ext=c
10018 # Object file extension for compiled C test sources.
10019 objext=o
10020 objext=$objext
10022 # Code to be used in simple compile tests
10023 lt_simple_compile_test_code="int some_variable = 0;"
10025 # Code to be used in simple link tests
10026 lt_simple_link_test_code='int main(){return(0);}'
10034 # If no C compiler was specified, use CC.
10035 LTCC=${LTCC-"$CC"}
10037 # If no C compiler flags were specified, use CFLAGS.
10038 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10040 # Allow CC to be a program name with arguments.
10041 compiler=$CC
10043 # Save the default compiler, since it gets overwritten when the other
10044 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10045 compiler_DEFAULT=$CC
10047 # save warnings/boilerplate of simple test code
10048 ac_outfile=conftest.$ac_objext
10049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10051 _lt_compiler_boilerplate=`cat conftest.err`
10052 $RM conftest*
10054 ac_outfile=conftest.$ac_objext
10055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10057 _lt_linker_boilerplate=`cat conftest.err`
10058 $RM -r conftest*
10061 if test -n "$compiler"; then
10063 lt_prog_compiler_no_builtin_flag=
10065 if test "$GCC" = yes; then
10066 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10068 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10069 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10070 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10071 $as_echo_n "(cached) " >&6
10072 else
10073 lt_cv_prog_compiler_rtti_exceptions=no
10074 ac_outfile=conftest.$ac_objext
10075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10076 lt_compiler_flag="-fno-rtti -fno-exceptions"
10077 # Insert the option either (1) after the last *FLAGS variable, or
10078 # (2) before a word containing "conftest.", or (3) at the end.
10079 # Note that $ac_compile itself does not contain backslashes and begins
10080 # with a dollar sign (not a hyphen), so the echo should work correctly.
10081 # The option is referenced via a variable to avoid confusing sed.
10082 lt_compile=`echo "$ac_compile" | $SED \
10083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10085 -e 's:$: $lt_compiler_flag:'`
10086 (eval echo "\"\$as_me:10086: $lt_compile\"" >&5)
10087 (eval "$lt_compile" 2>conftest.err)
10088 ac_status=$?
10089 cat conftest.err >&5
10090 echo "$as_me:10090: \$? = $ac_status" >&5
10091 if (exit $ac_status) && test -s "$ac_outfile"; then
10092 # The compiler can only warn and ignore the option if not recognized
10093 # So say no if there are warnings other than the usual output.
10094 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10096 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10097 lt_cv_prog_compiler_rtti_exceptions=yes
10100 $RM conftest*
10103 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10104 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10106 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10107 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10108 else
10119 lt_prog_compiler_wl=
10120 lt_prog_compiler_pic=
10121 lt_prog_compiler_static=
10123 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10124 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10126 if test "$GCC" = yes; then
10127 lt_prog_compiler_wl='-Wl,'
10128 lt_prog_compiler_static='-static'
10130 case $host_os in
10131 aix*)
10132 # All AIX code is PIC.
10133 if test "$host_cpu" = ia64; then
10134 # AIX 5 now supports IA64 processor
10135 lt_prog_compiler_static='-Bstatic'
10139 amigaos*)
10140 case $host_cpu in
10141 powerpc)
10142 # see comment about AmigaOS4 .so support
10143 lt_prog_compiler_pic='-fPIC'
10145 m68k)
10146 # FIXME: we need at least 68020 code to build shared libraries, but
10147 # adding the `-m68020' flag to GCC prevents building anything better,
10148 # like `-m68040'.
10149 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10151 esac
10154 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10155 # PIC is the default for these OSes.
10158 mingw* | cygwin* | pw32* | os2*)
10159 # This hack is so that the source file can tell whether it is being
10160 # built for inclusion in a dll (and should export symbols for example).
10161 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10162 # (--disable-auto-import) libraries
10163 lt_prog_compiler_pic='-DDLL_EXPORT'
10166 darwin* | rhapsody*)
10167 # PIC is the default on this platform
10168 # Common symbols not allowed in MH_DYLIB files
10169 lt_prog_compiler_pic='-fno-common'
10172 hpux*)
10173 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10174 # not for PA HP-UX.
10175 case $host_cpu in
10176 hppa*64*|ia64*)
10177 # +Z the default
10180 lt_prog_compiler_pic='-fPIC'
10182 esac
10185 interix[3-9]*)
10186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10187 # Instead, we relocate shared libraries at runtime.
10190 msdosdjgpp*)
10191 # Just because we use GCC doesn't mean we suddenly get shared libraries
10192 # on systems that don't support them.
10193 lt_prog_compiler_can_build_shared=no
10194 enable_shared=no
10197 *nto* | *qnx*)
10198 # QNX uses GNU C++, but need to define -shared option too, otherwise
10199 # it will coredump.
10200 lt_prog_compiler_pic='-fPIC -shared'
10203 sysv4*MP*)
10204 if test -d /usr/nec; then
10205 lt_prog_compiler_pic=-Kconform_pic
10210 lt_prog_compiler_pic='-fPIC'
10212 esac
10213 else
10214 # PORTME Check for flag to pass linker flags through the system compiler.
10215 case $host_os in
10216 aix*)
10217 lt_prog_compiler_wl='-Wl,'
10218 if test "$host_cpu" = ia64; then
10219 # AIX 5 now supports IA64 processor
10220 lt_prog_compiler_static='-Bstatic'
10221 else
10222 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10226 mingw* | cygwin* | pw32* | os2*)
10227 # This hack is so that the source file can tell whether it is being
10228 # built for inclusion in a dll (and should export symbols for example).
10229 lt_prog_compiler_pic='-DDLL_EXPORT'
10232 hpux9* | hpux10* | hpux11*)
10233 lt_prog_compiler_wl='-Wl,'
10234 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10235 # not for PA HP-UX.
10236 case $host_cpu in
10237 hppa*64*|ia64*)
10238 # +Z the default
10241 lt_prog_compiler_pic='+Z'
10243 esac
10244 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10245 lt_prog_compiler_static='${wl}-a ${wl}archive'
10248 irix5* | irix6* | nonstopux*)
10249 lt_prog_compiler_wl='-Wl,'
10250 # PIC (with -KPIC) is the default.
10251 lt_prog_compiler_static='-non_shared'
10254 linux* | k*bsd*-gnu)
10255 case $cc_basename in
10256 icc* | ecc* | ifort*)
10257 lt_prog_compiler_wl='-Wl,'
10258 lt_prog_compiler_pic='-KPIC'
10259 lt_prog_compiler_static='-static'
10261 pgcc* | pgf77* | pgf90* | pgf95*)
10262 # Portland Group compilers (*not* the Pentium gcc compiler,
10263 # which looks to be a dead project)
10264 lt_prog_compiler_wl='-Wl,'
10265 lt_prog_compiler_pic='-fpic'
10266 lt_prog_compiler_static='-Bstatic'
10268 ccc*)
10269 lt_prog_compiler_wl='-Wl,'
10270 # All Alpha code is PIC.
10271 lt_prog_compiler_static='-non_shared'
10273 xl*)
10274 # IBM XL C 8.0/Fortran 10.1 on PPC
10275 lt_prog_compiler_wl='-Wl,'
10276 lt_prog_compiler_pic='-qpic'
10277 lt_prog_compiler_static='-qstaticlink'
10280 case `$CC -V 2>&1 | sed 5q` in
10281 *Sun\ C*)
10282 # Sun C 5.9
10283 lt_prog_compiler_pic='-KPIC'
10284 lt_prog_compiler_static='-Bstatic'
10285 lt_prog_compiler_wl='-Wl,'
10287 *Sun\ F*)
10288 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10289 lt_prog_compiler_pic='-KPIC'
10290 lt_prog_compiler_static='-Bstatic'
10291 lt_prog_compiler_wl=''
10293 esac
10295 esac
10298 newsos6)
10299 lt_prog_compiler_pic='-KPIC'
10300 lt_prog_compiler_static='-Bstatic'
10303 *nto* | *qnx*)
10304 # QNX uses GNU C++, but need to define -shared option too, otherwise
10305 # it will coredump.
10306 lt_prog_compiler_pic='-fPIC -shared'
10309 osf3* | osf4* | osf5*)
10310 lt_prog_compiler_wl='-Wl,'
10311 # All OSF/1 code is PIC.
10312 lt_prog_compiler_static='-non_shared'
10315 rdos*)
10316 lt_prog_compiler_static='-non_shared'
10319 solaris*)
10320 lt_prog_compiler_pic='-KPIC'
10321 lt_prog_compiler_static='-Bstatic'
10322 case $cc_basename in
10323 f77* | f90* | f95*)
10324 lt_prog_compiler_wl='-Qoption ld ';;
10326 lt_prog_compiler_wl='-Wl,';;
10327 esac
10330 sunos4*)
10331 lt_prog_compiler_wl='-Qoption ld '
10332 lt_prog_compiler_pic='-PIC'
10333 lt_prog_compiler_static='-Bstatic'
10336 sysv4 | sysv4.2uw2* | sysv4.3*)
10337 lt_prog_compiler_wl='-Wl,'
10338 lt_prog_compiler_pic='-KPIC'
10339 lt_prog_compiler_static='-Bstatic'
10342 sysv4*MP*)
10343 if test -d /usr/nec ;then
10344 lt_prog_compiler_pic='-Kconform_pic'
10345 lt_prog_compiler_static='-Bstatic'
10349 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10350 lt_prog_compiler_wl='-Wl,'
10351 lt_prog_compiler_pic='-KPIC'
10352 lt_prog_compiler_static='-Bstatic'
10355 unicos*)
10356 lt_prog_compiler_wl='-Wl,'
10357 lt_prog_compiler_can_build_shared=no
10360 uts4*)
10361 lt_prog_compiler_pic='-pic'
10362 lt_prog_compiler_static='-Bstatic'
10366 lt_prog_compiler_can_build_shared=no
10368 esac
10371 case $host_os in
10372 # For platforms which do not support PIC, -DPIC is meaningless:
10373 *djgpp*)
10374 lt_prog_compiler_pic=
10377 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10379 esac
10380 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10381 $as_echo "$lt_prog_compiler_pic" >&6; }
10389 # Check to make sure the PIC flag actually works.
10391 if test -n "$lt_prog_compiler_pic"; then
10392 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10393 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10394 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10395 $as_echo_n "(cached) " >&6
10396 else
10397 lt_cv_prog_compiler_pic_works=no
10398 ac_outfile=conftest.$ac_objext
10399 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10400 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10401 # Insert the option either (1) after the last *FLAGS variable, or
10402 # (2) before a word containing "conftest.", or (3) at the end.
10403 # Note that $ac_compile itself does not contain backslashes and begins
10404 # with a dollar sign (not a hyphen), so the echo should work correctly.
10405 # The option is referenced via a variable to avoid confusing sed.
10406 lt_compile=`echo "$ac_compile" | $SED \
10407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10409 -e 's:$: $lt_compiler_flag:'`
10410 (eval echo "\"\$as_me:10410: $lt_compile\"" >&5)
10411 (eval "$lt_compile" 2>conftest.err)
10412 ac_status=$?
10413 cat conftest.err >&5
10414 echo "$as_me:10414: \$? = $ac_status" >&5
10415 if (exit $ac_status) && test -s "$ac_outfile"; then
10416 # The compiler can only warn and ignore the option if not recognized
10417 # So say no if there are warnings other than the usual output.
10418 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10421 lt_cv_prog_compiler_pic_works=yes
10424 $RM conftest*
10427 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10428 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10430 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10431 case $lt_prog_compiler_pic in
10432 "" | " "*) ;;
10433 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10434 esac
10435 else
10436 lt_prog_compiler_pic=
10437 lt_prog_compiler_can_build_shared=no
10448 # Check to make sure the static flag actually works.
10450 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10451 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10452 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10453 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10454 $as_echo_n "(cached) " >&6
10455 else
10456 lt_cv_prog_compiler_static_works=no
10457 save_LDFLAGS="$LDFLAGS"
10458 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10459 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10461 # The linker can only warn and ignore the option if not recognized
10462 # So say no if there are warnings
10463 if test -s conftest.err; then
10464 # Append any errors to the config.log.
10465 cat conftest.err 1>&5
10466 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10468 if diff conftest.exp conftest.er2 >/dev/null; then
10469 lt_cv_prog_compiler_static_works=yes
10471 else
10472 lt_cv_prog_compiler_static_works=yes
10475 $RM -r conftest*
10476 LDFLAGS="$save_LDFLAGS"
10479 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10480 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10482 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10484 else
10485 lt_prog_compiler_static=
10494 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10495 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10496 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10497 $as_echo_n "(cached) " >&6
10498 else
10499 lt_cv_prog_compiler_c_o=no
10500 $RM -r conftest 2>/dev/null
10501 mkdir conftest
10502 cd conftest
10503 mkdir out
10504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10506 lt_compiler_flag="-o out/conftest2.$ac_objext"
10507 # Insert the option either (1) after the last *FLAGS variable, or
10508 # (2) before a word containing "conftest.", or (3) at the end.
10509 # Note that $ac_compile itself does not contain backslashes and begins
10510 # with a dollar sign (not a hyphen), so the echo should work correctly.
10511 lt_compile=`echo "$ac_compile" | $SED \
10512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10514 -e 's:$: $lt_compiler_flag:'`
10515 (eval echo "\"\$as_me:10515: $lt_compile\"" >&5)
10516 (eval "$lt_compile" 2>out/conftest.err)
10517 ac_status=$?
10518 cat out/conftest.err >&5
10519 echo "$as_me:10519: \$? = $ac_status" >&5
10520 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10521 then
10522 # The compiler can only warn and ignore the option if not recognized
10523 # So say no if there are warnings
10524 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10525 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10526 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10527 lt_cv_prog_compiler_c_o=yes
10530 chmod u+w . 2>&5
10531 $RM conftest*
10532 # SGI C++ compiler will create directory out/ii_files/ for
10533 # template instantiation
10534 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10535 $RM out/* && rmdir out
10536 cd ..
10537 $RM -r conftest
10538 $RM conftest*
10541 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10542 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10549 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10550 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10551 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10552 $as_echo_n "(cached) " >&6
10553 else
10554 lt_cv_prog_compiler_c_o=no
10555 $RM -r conftest 2>/dev/null
10556 mkdir conftest
10557 cd conftest
10558 mkdir out
10559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10561 lt_compiler_flag="-o out/conftest2.$ac_objext"
10562 # Insert the option either (1) after the last *FLAGS variable, or
10563 # (2) before a word containing "conftest.", or (3) at the end.
10564 # Note that $ac_compile itself does not contain backslashes and begins
10565 # with a dollar sign (not a hyphen), so the echo should work correctly.
10566 lt_compile=`echo "$ac_compile" | $SED \
10567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10569 -e 's:$: $lt_compiler_flag:'`
10570 (eval echo "\"\$as_me:10570: $lt_compile\"" >&5)
10571 (eval "$lt_compile" 2>out/conftest.err)
10572 ac_status=$?
10573 cat out/conftest.err >&5
10574 echo "$as_me:10574: \$? = $ac_status" >&5
10575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10576 then
10577 # The compiler can only warn and ignore the option if not recognized
10578 # So say no if there are warnings
10579 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10582 lt_cv_prog_compiler_c_o=yes
10585 chmod u+w . 2>&5
10586 $RM conftest*
10587 # SGI C++ compiler will create directory out/ii_files/ for
10588 # template instantiation
10589 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10590 $RM out/* && rmdir out
10591 cd ..
10592 $RM -r conftest
10593 $RM conftest*
10596 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10597 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10602 hard_links="nottested"
10603 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10604 # do not overwrite the value of need_locks provided by the user
10605 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10606 $as_echo_n "checking if we can lock with hard links... " >&6; }
10607 hard_links=yes
10608 $RM conftest*
10609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10610 touch conftest.a
10611 ln conftest.a conftest.b 2>&5 || hard_links=no
10612 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10613 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10614 $as_echo "$hard_links" >&6; }
10615 if test "$hard_links" = no; then
10616 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10617 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10618 need_locks=warn
10620 else
10621 need_locks=no
10629 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10630 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10632 runpath_var=
10633 allow_undefined_flag=
10634 always_export_symbols=no
10635 archive_cmds=
10636 archive_expsym_cmds=
10637 compiler_needs_object=no
10638 enable_shared_with_static_runtimes=no
10639 export_dynamic_flag_spec=
10640 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10641 hardcode_automatic=no
10642 hardcode_direct=no
10643 hardcode_direct_absolute=no
10644 hardcode_libdir_flag_spec=
10645 hardcode_libdir_flag_spec_ld=
10646 hardcode_libdir_separator=
10647 hardcode_minus_L=no
10648 hardcode_shlibpath_var=unsupported
10649 inherit_rpath=no
10650 link_all_deplibs=unknown
10651 module_cmds=
10652 module_expsym_cmds=
10653 old_archive_from_new_cmds=
10654 old_archive_from_expsyms_cmds=
10655 thread_safe_flag_spec=
10656 whole_archive_flag_spec=
10657 # include_expsyms should be a list of space-separated symbols to be *always*
10658 # included in the symbol list
10659 include_expsyms=
10660 # exclude_expsyms can be an extended regexp of symbols to exclude
10661 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10662 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10663 # as well as any symbol that contains `d'.
10664 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10665 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10666 # platforms (ab)use it in PIC code, but their linkers get confused if
10667 # the symbol is explicitly referenced. Since portable code cannot
10668 # rely on this symbol name, it's probably fine to never include it in
10669 # preloaded symbol tables.
10670 # Exclude shared library initialization/finalization symbols.
10671 extract_expsyms_cmds=
10673 case $host_os in
10674 cygwin* | mingw* | pw32*)
10675 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10676 # When not using gcc, we currently assume that we are using
10677 # Microsoft Visual C++.
10678 if test "$GCC" != yes; then
10679 with_gnu_ld=no
10682 interix*)
10683 # we just hope/assume this is gcc and not c89 (= MSVC++)
10684 with_gnu_ld=yes
10686 openbsd*)
10687 with_gnu_ld=no
10689 esac
10691 ld_shlibs=yes
10692 if test "$with_gnu_ld" = yes; then
10693 # If archive_cmds runs LD, not CC, wlarc should be empty
10694 wlarc='${wl}'
10696 # Set some defaults for GNU ld with shared library support. These
10697 # are reset later if shared libraries are not supported. Putting them
10698 # here allows them to be overridden if necessary.
10699 runpath_var=LD_RUN_PATH
10700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10701 export_dynamic_flag_spec='${wl}--export-dynamic'
10702 # ancient GNU ld didn't support --whole-archive et. al.
10703 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10704 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10705 else
10706 whole_archive_flag_spec=
10708 supports_anon_versioning=no
10709 case `$LD -v 2>&1` in
10710 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10713 *\ 2.11.*) ;; # other 2.11 versions
10714 *) supports_anon_versioning=yes ;;
10715 esac
10717 # See if GNU ld supports shared libraries.
10718 case $host_os in
10719 aix[3-9]*)
10720 # On AIX/PPC, the GNU linker is very broken
10721 if test "$host_cpu" != ia64; then
10722 ld_shlibs=no
10723 cat <<_LT_EOF 1>&2
10725 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10726 *** to be unable to reliably create shared libraries on AIX.
10727 *** Therefore, libtool is disabling shared libraries support. If you
10728 *** really care for shared libraries, you may want to modify your PATH
10729 *** so that a non-GNU linker is found, and then restart.
10731 _LT_EOF
10735 amigaos*)
10736 case $host_cpu in
10737 powerpc)
10738 # see comment about AmigaOS4 .so support
10739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10740 archive_expsym_cmds=''
10742 m68k)
10743 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10744 hardcode_libdir_flag_spec='-L$libdir'
10745 hardcode_minus_L=yes
10747 esac
10750 beos*)
10751 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10752 allow_undefined_flag=unsupported
10753 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10754 # support --undefined. This deserves some investigation. FIXME
10755 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10756 else
10757 ld_shlibs=no
10761 cygwin* | mingw* | pw32*)
10762 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10763 # as there is no search path for DLLs.
10764 hardcode_libdir_flag_spec='-L$libdir'
10765 allow_undefined_flag=unsupported
10766 always_export_symbols=no
10767 enable_shared_with_static_runtimes=yes
10768 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10770 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10772 # If the export-symbols file already is a .def file (1st line
10773 # is EXPORTS), use it as is; otherwise, prepend...
10774 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10775 cp $export_symbols $output_objdir/$soname.def;
10776 else
10777 echo EXPORTS > $output_objdir/$soname.def;
10778 cat $export_symbols >> $output_objdir/$soname.def;
10780 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10781 else
10782 ld_shlibs=no
10786 interix[3-9]*)
10787 hardcode_direct=no
10788 hardcode_shlibpath_var=no
10789 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10790 export_dynamic_flag_spec='${wl}-E'
10791 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10792 # Instead, shared libraries are loaded at an image base (0x10000000 by
10793 # default) and relocated if they conflict, which is a slow very memory
10794 # consuming and fragmenting process. To avoid this, we pick a random,
10795 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10796 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10797 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10798 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10801 gnu* | linux* | tpf* | k*bsd*-gnu)
10802 tmp_diet=no
10803 if test "$host_os" = linux-dietlibc; then
10804 case $cc_basename in
10805 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10806 esac
10808 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10809 && test "$tmp_diet" = no
10810 then
10811 tmp_addflag=
10812 tmp_sharedflag='-shared'
10813 case $cc_basename,$host_cpu in
10814 pgcc*) # Portland Group C compiler
10815 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10816 tmp_addflag=' $pic_flag'
10818 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10819 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10820 tmp_addflag=' $pic_flag -Mnomain' ;;
10821 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10822 tmp_addflag=' -i_dynamic' ;;
10823 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10824 tmp_addflag=' -i_dynamic -nofor_main' ;;
10825 ifc* | ifort*) # Intel Fortran compiler
10826 tmp_addflag=' -nofor_main' ;;
10827 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10828 tmp_sharedflag='-qmkshrobj'
10829 tmp_addflag= ;;
10830 esac
10831 case `$CC -V 2>&1 | sed 5q` in
10832 *Sun\ C*) # Sun C 5.9
10833 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10834 compiler_needs_object=yes
10835 tmp_sharedflag='-G' ;;
10836 *Sun\ F*) # Sun Fortran 8.3
10837 tmp_sharedflag='-G' ;;
10838 esac
10839 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10841 if test "x$supports_anon_versioning" = xyes; then
10842 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10843 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10844 echo "local: *; };" >> $output_objdir/$libname.ver~
10845 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10848 case $cc_basename in
10849 xlf*)
10850 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10851 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10852 hardcode_libdir_flag_spec=
10853 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10854 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10855 if test "x$supports_anon_versioning" = xyes; then
10856 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10858 echo "local: *; };" >> $output_objdir/$libname.ver~
10859 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10862 esac
10863 else
10864 ld_shlibs=no
10868 netbsd*)
10869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10870 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10871 wlarc=
10872 else
10873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10878 solaris*)
10879 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10880 ld_shlibs=no
10881 cat <<_LT_EOF 1>&2
10883 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10884 *** create shared libraries on Solaris systems. Therefore, libtool
10885 *** is disabling shared libraries support. We urge you to upgrade GNU
10886 *** binutils to release 2.9.1 or newer. Another option is to modify
10887 *** your PATH or compiler configuration so that the native linker is
10888 *** used, and then restart.
10890 _LT_EOF
10891 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10894 else
10895 ld_shlibs=no
10899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10900 case `$LD -v 2>&1` in
10901 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10902 ld_shlibs=no
10903 cat <<_LT_EOF 1>&2
10905 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10906 *** reliably create shared libraries on SCO systems. Therefore, libtool
10907 *** is disabling shared libraries support. We urge you to upgrade GNU
10908 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10909 *** your PATH or compiler configuration so that the native linker is
10910 *** used, and then restart.
10912 _LT_EOF
10915 # For security reasons, it is highly recommended that you always
10916 # use absolute paths for naming shared libraries, and exclude the
10917 # DT_RUNPATH tag from executables and libraries. But doing so
10918 # requires that you compile everything twice, which is a pain.
10919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10922 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10923 else
10924 ld_shlibs=no
10927 esac
10930 sunos4*)
10931 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10932 wlarc=
10933 hardcode_direct=yes
10934 hardcode_shlibpath_var=no
10938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10941 else
10942 ld_shlibs=no
10945 esac
10947 if test "$ld_shlibs" = no; then
10948 runpath_var=
10949 hardcode_libdir_flag_spec=
10950 export_dynamic_flag_spec=
10951 whole_archive_flag_spec=
10953 else
10954 # PORTME fill in a description of your system's linker (not GNU ld)
10955 case $host_os in
10956 aix3*)
10957 allow_undefined_flag=unsupported
10958 always_export_symbols=yes
10959 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10960 # Note: this linker hardcodes the directories in LIBPATH if there
10961 # are no directories specified by -L.
10962 hardcode_minus_L=yes
10963 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10964 # Neither direct hardcoding nor static linking is supported with a
10965 # broken collect2.
10966 hardcode_direct=unsupported
10970 aix[4-9]*)
10971 if test "$host_cpu" = ia64; then
10972 # On IA64, the linker does run time linking by default, so we don't
10973 # have to do anything special.
10974 aix_use_runtimelinking=no
10975 exp_sym_flag='-Bexport'
10976 no_entry_flag=""
10977 else
10978 # If we're using GNU nm, then we don't want the "-C" option.
10979 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10980 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10981 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10982 else
10983 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10985 aix_use_runtimelinking=no
10987 # Test if we are trying to use run time linking or normal
10988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10989 # need to do runtime linking.
10990 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10991 for ld_flag in $LDFLAGS; do
10992 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10993 aix_use_runtimelinking=yes
10994 break
10996 done
10998 esac
11000 exp_sym_flag='-bexport'
11001 no_entry_flag='-bnoentry'
11004 # When large executables or shared objects are built, AIX ld can
11005 # have problems creating the table of contents. If linking a library
11006 # or program results in "error TOC overflow" add -mminimal-toc to
11007 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11008 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11010 archive_cmds=''
11011 hardcode_direct=yes
11012 hardcode_direct_absolute=yes
11013 hardcode_libdir_separator=':'
11014 link_all_deplibs=yes
11015 file_list_spec='${wl}-f,'
11017 if test "$GCC" = yes; then
11018 case $host_os in aix4.[012]|aix4.[012].*)
11019 # We only want to do this on AIX 4.2 and lower, the check
11020 # below for broken collect2 doesn't work under 4.3+
11021 collect2name=`${CC} -print-prog-name=collect2`
11022 if test -f "$collect2name" &&
11023 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11024 then
11025 # We have reworked collect2
11027 else
11028 # We have old collect2
11029 hardcode_direct=unsupported
11030 # It fails to find uninstalled libraries when the uninstalled
11031 # path is not listed in the libpath. Setting hardcode_minus_L
11032 # to unsupported forces relinking
11033 hardcode_minus_L=yes
11034 hardcode_libdir_flag_spec='-L$libdir'
11035 hardcode_libdir_separator=
11038 esac
11039 shared_flag='-shared'
11040 if test "$aix_use_runtimelinking" = yes; then
11041 shared_flag="$shared_flag "'${wl}-G'
11043 else
11044 # not using gcc
11045 if test "$host_cpu" = ia64; then
11046 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11047 # chokes on -Wl,-G. The following line is correct:
11048 shared_flag='-G'
11049 else
11050 if test "$aix_use_runtimelinking" = yes; then
11051 shared_flag='${wl}-G'
11052 else
11053 shared_flag='${wl}-bM:SRE'
11058 # It seems that -bexpall does not export symbols beginning with
11059 # underscore (_), so it is better to generate a list of symbols to export.
11060 always_export_symbols=yes
11061 if test "$aix_use_runtimelinking" = yes; then
11062 # Warning - without using the other runtime loading flags (-brtl),
11063 # -berok will link without error, but may produce a broken library.
11064 allow_undefined_flag='-berok'
11065 # Determine the default libpath from the value encoded in an
11066 # empty executable.
11067 cat >conftest.$ac_ext <<_ACEOF
11068 /* confdefs.h. */
11069 _ACEOF
11070 cat confdefs.h >>conftest.$ac_ext
11071 cat >>conftest.$ac_ext <<_ACEOF
11072 /* end confdefs.h. */
11075 main ()
11079 return 0;
11081 _ACEOF
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (ac_try="$ac_link"
11084 case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11087 esac
11088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11089 $as_echo "$ac_try_echo") >&5
11090 (eval "$ac_link") 2>conftest.er1
11091 ac_status=$?
11092 grep -v '^ *+' conftest.er1 >conftest.err
11093 rm -f conftest.er1
11094 cat conftest.err >&5
11095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } && {
11097 test -z "$ac_c_werror_flag" ||
11098 test ! -s conftest.err
11099 } && test -s conftest$ac_exeext && {
11100 test "$cross_compiling" = yes ||
11101 $as_test_x conftest$ac_exeext
11102 }; then
11104 lt_aix_libpath_sed='
11105 /Import File Strings/,/^$/ {
11106 /^0/ {
11107 s/^0 *\(.*\)$/\1/
11111 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11112 # Check for a 64-bit object if we didn't find anything.
11113 if test -z "$aix_libpath"; then
11114 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11116 else
11117 $as_echo "$as_me: failed program was:" >&5
11118 sed 's/^/| /' conftest.$ac_ext >&5
11123 rm -rf conftest.dSYM
11124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11125 conftest$ac_exeext conftest.$ac_ext
11126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11128 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11129 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11130 else
11131 if test "$host_cpu" = ia64; then
11132 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11133 allow_undefined_flag="-z nodefs"
11134 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11135 else
11136 # Determine the default libpath from the value encoded in an
11137 # empty executable.
11138 cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h. */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11146 main ()
11150 return 0;
11152 _ACEOF
11153 rm -f conftest.$ac_objext conftest$ac_exeext
11154 if { (ac_try="$ac_link"
11155 case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11158 esac
11159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11160 $as_echo "$ac_try_echo") >&5
11161 (eval "$ac_link") 2>conftest.er1
11162 ac_status=$?
11163 grep -v '^ *+' conftest.er1 >conftest.err
11164 rm -f conftest.er1
11165 cat conftest.err >&5
11166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } && {
11168 test -z "$ac_c_werror_flag" ||
11169 test ! -s conftest.err
11170 } && test -s conftest$ac_exeext && {
11171 test "$cross_compiling" = yes ||
11172 $as_test_x conftest$ac_exeext
11173 }; then
11175 lt_aix_libpath_sed='
11176 /Import File Strings/,/^$/ {
11177 /^0/ {
11178 s/^0 *\(.*\)$/\1/
11182 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11183 # Check for a 64-bit object if we didn't find anything.
11184 if test -z "$aix_libpath"; then
11185 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11187 else
11188 $as_echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.$ac_ext >&5
11194 rm -rf conftest.dSYM
11195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11196 conftest$ac_exeext conftest.$ac_ext
11197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11199 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11200 # Warning - without using the other run time loading flags,
11201 # -berok will link without error, but may produce a broken library.
11202 no_undefined_flag=' ${wl}-bernotok'
11203 allow_undefined_flag=' ${wl}-berok'
11204 # Exported symbols can be pulled into shared objects from archives
11205 whole_archive_flag_spec='$convenience'
11206 archive_cmds_need_lc=yes
11207 # This is similar to how AIX traditionally builds its shared libraries.
11208 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11213 amigaos*)
11214 case $host_cpu in
11215 powerpc)
11216 # see comment about AmigaOS4 .so support
11217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11218 archive_expsym_cmds=''
11220 m68k)
11221 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11222 hardcode_libdir_flag_spec='-L$libdir'
11223 hardcode_minus_L=yes
11225 esac
11228 bsdi[45]*)
11229 export_dynamic_flag_spec=-rdynamic
11232 cygwin* | mingw* | pw32*)
11233 # When not using gcc, we currently assume that we are using
11234 # Microsoft Visual C++.
11235 # hardcode_libdir_flag_spec is actually meaningless, as there is
11236 # no search path for DLLs.
11237 hardcode_libdir_flag_spec=' '
11238 allow_undefined_flag=unsupported
11239 # Tell ltmain to make .lib files, not .a files.
11240 libext=lib
11241 # Tell ltmain to make .dll files, not .so files.
11242 shrext_cmds=".dll"
11243 # FIXME: Setting linknames here is a bad hack.
11244 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11245 # The linker will automatically build a .lib file if we build a DLL.
11246 old_archive_from_new_cmds='true'
11247 # FIXME: Should let the user specify the lib program.
11248 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11249 fix_srcfile_path='`cygpath -w "$srcfile"`'
11250 enable_shared_with_static_runtimes=yes
11253 darwin* | rhapsody*)
11256 archive_cmds_need_lc=no
11257 hardcode_direct=no
11258 hardcode_automatic=yes
11259 hardcode_shlibpath_var=unsupported
11260 whole_archive_flag_spec=''
11261 link_all_deplibs=yes
11262 allow_undefined_flag="$_lt_dar_allow_undefined"
11263 if test "$GCC" = "yes"; then
11264 output_verbose_link_cmd=echo
11265 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11266 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11267 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11268 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11270 else
11271 ld_shlibs=no
11276 dgux*)
11277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11278 hardcode_libdir_flag_spec='-L$libdir'
11279 hardcode_shlibpath_var=no
11282 freebsd1*)
11283 ld_shlibs=no
11286 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11287 # support. Future versions do this automatically, but an explicit c++rt0.o
11288 # does not break anything, and helps significantly (at the cost of a little
11289 # extra space).
11290 freebsd2.2*)
11291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11292 hardcode_libdir_flag_spec='-R$libdir'
11293 hardcode_direct=yes
11294 hardcode_shlibpath_var=no
11297 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11298 freebsd2*)
11299 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11300 hardcode_direct=yes
11301 hardcode_minus_L=yes
11302 hardcode_shlibpath_var=no
11305 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11306 freebsd* | dragonfly*)
11307 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11308 hardcode_libdir_flag_spec='-R$libdir'
11309 hardcode_direct=yes
11310 hardcode_shlibpath_var=no
11313 hpux9*)
11314 if test "$GCC" = yes; then
11315 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11316 else
11317 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11319 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11320 hardcode_libdir_separator=:
11321 hardcode_direct=yes
11323 # hardcode_minus_L: Not really in the search PATH,
11324 # but as the default location of the library.
11325 hardcode_minus_L=yes
11326 export_dynamic_flag_spec='${wl}-E'
11329 hpux10*)
11330 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11331 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11332 else
11333 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11335 if test "$with_gnu_ld" = no; then
11336 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11337 hardcode_libdir_flag_spec_ld='+b $libdir'
11338 hardcode_libdir_separator=:
11339 hardcode_direct=yes
11340 hardcode_direct_absolute=yes
11341 export_dynamic_flag_spec='${wl}-E'
11342 # hardcode_minus_L: Not really in the search PATH,
11343 # but as the default location of the library.
11344 hardcode_minus_L=yes
11348 hpux11*)
11349 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11350 case $host_cpu in
11351 hppa*64*)
11352 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11354 ia64*)
11355 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11358 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11360 esac
11361 else
11362 case $host_cpu in
11363 hppa*64*)
11364 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11366 ia64*)
11367 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11370 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11372 esac
11374 if test "$with_gnu_ld" = no; then
11375 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11376 hardcode_libdir_separator=:
11378 case $host_cpu in
11379 hppa*64*|ia64*)
11380 hardcode_direct=no
11381 hardcode_shlibpath_var=no
11384 hardcode_direct=yes
11385 hardcode_direct_absolute=yes
11386 export_dynamic_flag_spec='${wl}-E'
11388 # hardcode_minus_L: Not really in the search PATH,
11389 # but as the default location of the library.
11390 hardcode_minus_L=yes
11392 esac
11396 irix5* | irix6* | nonstopux*)
11397 if test "$GCC" = yes; then
11398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11399 # Try to use the -exported_symbol ld option, if it does not
11400 # work, assume that -exports_file does not work either and
11401 # implicitly export all symbols.
11402 save_LDFLAGS="$LDFLAGS"
11403 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11404 cat >conftest.$ac_ext <<_ACEOF
11405 int foo(void) {}
11406 _ACEOF
11407 rm -f conftest.$ac_objext conftest$ac_exeext
11408 if { (ac_try="$ac_link"
11409 case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11412 esac
11413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11414 $as_echo "$ac_try_echo") >&5
11415 (eval "$ac_link") 2>conftest.er1
11416 ac_status=$?
11417 grep -v '^ *+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } && {
11422 test -z "$ac_c_werror_flag" ||
11423 test ! -s conftest.err
11424 } && test -s conftest$ac_exeext && {
11425 test "$cross_compiling" = yes ||
11426 $as_test_x conftest$ac_exeext
11427 }; then
11428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11430 else
11431 $as_echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11437 rm -rf conftest.dSYM
11438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11439 conftest$ac_exeext conftest.$ac_ext
11440 LDFLAGS="$save_LDFLAGS"
11441 else
11442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11443 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11445 archive_cmds_need_lc='no'
11446 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11447 hardcode_libdir_separator=:
11448 inherit_rpath=yes
11449 link_all_deplibs=yes
11452 netbsd*)
11453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11454 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11455 else
11456 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11458 hardcode_libdir_flag_spec='-R$libdir'
11459 hardcode_direct=yes
11460 hardcode_shlibpath_var=no
11463 newsos6)
11464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11465 hardcode_direct=yes
11466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11467 hardcode_libdir_separator=:
11468 hardcode_shlibpath_var=no
11471 *nto* | *qnx*)
11474 openbsd*)
11475 if test -f /usr/libexec/ld.so; then
11476 hardcode_direct=yes
11477 hardcode_shlibpath_var=no
11478 hardcode_direct_absolute=yes
11479 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11480 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11481 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11482 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11483 export_dynamic_flag_spec='${wl}-E'
11484 else
11485 case $host_os in
11486 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11488 hardcode_libdir_flag_spec='-R$libdir'
11491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11492 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11494 esac
11496 else
11497 ld_shlibs=no
11501 os2*)
11502 hardcode_libdir_flag_spec='-L$libdir'
11503 hardcode_minus_L=yes
11504 allow_undefined_flag=unsupported
11505 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11506 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11509 osf3*)
11510 if test "$GCC" = yes; then
11511 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11512 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11513 else
11514 allow_undefined_flag=' -expect_unresolved \*'
11515 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11517 archive_cmds_need_lc='no'
11518 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11519 hardcode_libdir_separator=:
11522 osf4* | osf5*) # as osf3* with the addition of -msym flag
11523 if test "$GCC" = yes; then
11524 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11525 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11527 else
11528 allow_undefined_flag=' -expect_unresolved \*'
11529 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11530 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11531 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11533 # Both c and cxx compiler support -rpath directly
11534 hardcode_libdir_flag_spec='-rpath $libdir'
11536 archive_cmds_need_lc='no'
11537 hardcode_libdir_separator=:
11540 solaris*)
11541 no_undefined_flag=' -z defs'
11542 if test "$GCC" = yes; then
11543 wlarc='${wl}'
11544 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11545 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11546 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11547 else
11548 case `$CC -V 2>&1` in
11549 *"Compilers 5.0"*)
11550 wlarc=''
11551 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11552 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11553 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11556 wlarc='${wl}'
11557 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11558 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11559 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11561 esac
11563 hardcode_libdir_flag_spec='-R$libdir'
11564 hardcode_shlibpath_var=no
11565 case $host_os in
11566 solaris2.[0-5] | solaris2.[0-5].*) ;;
11568 # The compiler driver will combine and reorder linker options,
11569 # but understands `-z linker_flag'. GCC discards it without `$wl',
11570 # but is careful enough not to reorder.
11571 # Supported since Solaris 2.6 (maybe 2.5.1?)
11572 if test "$GCC" = yes; then
11573 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11574 else
11575 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11578 esac
11579 link_all_deplibs=yes
11582 sunos4*)
11583 if test "x$host_vendor" = xsequent; then
11584 # Use $CC to link under sequent, because it throws in some extra .o
11585 # files that make .init and .fini sections work.
11586 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11587 else
11588 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11590 hardcode_libdir_flag_spec='-L$libdir'
11591 hardcode_direct=yes
11592 hardcode_minus_L=yes
11593 hardcode_shlibpath_var=no
11596 sysv4)
11597 case $host_vendor in
11598 sni)
11599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11600 hardcode_direct=yes # is this really true???
11602 siemens)
11603 ## LD is ld it makes a PLAMLIB
11604 ## CC just makes a GrossModule.
11605 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11606 reload_cmds='$CC -r -o $output$reload_objs'
11607 hardcode_direct=no
11609 motorola)
11610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11611 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11613 esac
11614 runpath_var='LD_RUN_PATH'
11615 hardcode_shlibpath_var=no
11618 sysv4.3*)
11619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11620 hardcode_shlibpath_var=no
11621 export_dynamic_flag_spec='-Bexport'
11624 sysv4*MP*)
11625 if test -d /usr/nec; then
11626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11627 hardcode_shlibpath_var=no
11628 runpath_var=LD_RUN_PATH
11629 hardcode_runpath_var=yes
11630 ld_shlibs=yes
11634 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11635 no_undefined_flag='${wl}-z,text'
11636 archive_cmds_need_lc=no
11637 hardcode_shlibpath_var=no
11638 runpath_var='LD_RUN_PATH'
11640 if test "$GCC" = yes; then
11641 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11642 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11643 else
11644 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11645 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11649 sysv5* | sco3.2v5* | sco5v6*)
11650 # Note: We can NOT use -z defs as we might desire, because we do not
11651 # link with -lc, and that would cause any symbols used from libc to
11652 # always be unresolved, which means just about no library would
11653 # ever link correctly. If we're not using GNU ld we use -z text
11654 # though, which does catch some bad symbols but isn't as heavy-handed
11655 # as -z defs.
11656 no_undefined_flag='${wl}-z,text'
11657 allow_undefined_flag='${wl}-z,nodefs'
11658 archive_cmds_need_lc=no
11659 hardcode_shlibpath_var=no
11660 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11661 hardcode_libdir_separator=':'
11662 link_all_deplibs=yes
11663 export_dynamic_flag_spec='${wl}-Bexport'
11664 runpath_var='LD_RUN_PATH'
11666 if test "$GCC" = yes; then
11667 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11668 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11669 else
11670 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11671 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11675 uts4*)
11676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11677 hardcode_libdir_flag_spec='-L$libdir'
11678 hardcode_shlibpath_var=no
11682 ld_shlibs=no
11684 esac
11686 if test x$host_vendor = xsni; then
11687 case $host in
11688 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11689 export_dynamic_flag_spec='${wl}-Blargedynsym'
11691 esac
11695 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11696 $as_echo "$ld_shlibs" >&6; }
11697 test "$ld_shlibs" = no && can_build_shared=no
11699 with_gnu_ld=$with_gnu_ld
11716 # Do we need to explicitly link libc?
11718 case "x$archive_cmds_need_lc" in
11719 x|xyes)
11720 # Assume -lc should be added
11721 archive_cmds_need_lc=yes
11723 if test "$enable_shared" = yes && test "$GCC" = yes; then
11724 case $archive_cmds in
11725 *'~'*)
11726 # FIXME: we may have to deal with multi-command sequences.
11728 '$CC '*)
11729 # Test whether the compiler implicitly links with -lc since on some
11730 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11731 # to ld, don't add -lc before -lgcc.
11732 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11733 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11734 $RM conftest*
11735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11738 (eval $ac_compile) 2>&5
11739 ac_status=$?
11740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } 2>conftest.err; then
11742 soname=conftest
11743 lib=conftest
11744 libobjs=conftest.$ac_objext
11745 deplibs=
11746 wl=$lt_prog_compiler_wl
11747 pic_flag=$lt_prog_compiler_pic
11748 compiler_flags=-v
11749 linker_flags=-v
11750 verstring=
11751 output_objdir=.
11752 libname=conftest
11753 lt_save_allow_undefined_flag=$allow_undefined_flag
11754 allow_undefined_flag=
11755 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11756 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11757 ac_status=$?
11758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }
11760 then
11761 archive_cmds_need_lc=no
11762 else
11763 archive_cmds_need_lc=yes
11765 allow_undefined_flag=$lt_save_allow_undefined_flag
11766 else
11767 cat conftest.err 1>&5
11769 $RM conftest*
11770 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11771 $as_echo "$archive_cmds_need_lc" >&6; }
11773 esac
11776 esac
11934 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11935 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11937 if test "$GCC" = yes; then
11938 case $host_os in
11939 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11940 *) lt_awk_arg="/^libraries:/" ;;
11941 esac
11942 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11943 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11944 # if the path contains ";" then we assume it to be the separator
11945 # otherwise default to the standard path separator (i.e. ":") - it is
11946 # assumed that no part of a normal pathname contains ";" but that should
11947 # okay in the real world where ";" in dirpaths is itself problematic.
11948 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11949 else
11950 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11952 # Ok, now we have the path, separated by spaces, we can step through it
11953 # and add multilib dir if necessary.
11954 lt_tmp_lt_search_path_spec=
11955 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11956 for lt_sys_path in $lt_search_path_spec; do
11957 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11958 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11959 else
11960 test -d "$lt_sys_path" && \
11961 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11963 done
11964 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11965 BEGIN {RS=" "; FS="/|\n";} {
11966 lt_foo="";
11967 lt_count=0;
11968 for (lt_i = NF; lt_i > 0; lt_i--) {
11969 if ($lt_i != "" && $lt_i != ".") {
11970 if ($lt_i == "..") {
11971 lt_count++;
11972 } else {
11973 if (lt_count == 0) {
11974 lt_foo="/" $lt_i lt_foo;
11975 } else {
11976 lt_count--;
11981 if (lt_foo != "") { lt_freq[lt_foo]++; }
11982 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11984 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11985 else
11986 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11988 library_names_spec=
11989 libname_spec='lib$name'
11990 soname_spec=
11991 shrext_cmds=".so"
11992 postinstall_cmds=
11993 postuninstall_cmds=
11994 finish_cmds=
11995 finish_eval=
11996 shlibpath_var=
11997 shlibpath_overrides_runpath=unknown
11998 version_type=none
11999 dynamic_linker="$host_os ld.so"
12000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12001 need_lib_prefix=unknown
12002 hardcode_into_libs=no
12004 # when you set need_version to no, make sure it does not cause -set_version
12005 # flags to be left without arguments
12006 need_version=unknown
12008 case $host_os in
12009 aix3*)
12010 version_type=linux
12011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12012 shlibpath_var=LIBPATH
12014 # AIX 3 has no versioning support, so we append a major version to the name.
12015 soname_spec='${libname}${release}${shared_ext}$major'
12018 aix[4-9]*)
12019 version_type=linux
12020 need_lib_prefix=no
12021 need_version=no
12022 hardcode_into_libs=yes
12023 if test "$host_cpu" = ia64; then
12024 # AIX 5 supports IA64
12025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12026 shlibpath_var=LD_LIBRARY_PATH
12027 else
12028 # With GCC up to 2.95.x, collect2 would create an import file
12029 # for dependence libraries. The import file would start with
12030 # the line `#! .'. This would cause the generated library to
12031 # depend on `.', always an invalid library. This was fixed in
12032 # development snapshots of GCC prior to 3.0.
12033 case $host_os in
12034 aix4 | aix4.[01] | aix4.[01].*)
12035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12036 echo ' yes '
12037 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12039 else
12040 can_build_shared=no
12043 esac
12044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12045 # soname into executable. Probably we can add versioning support to
12046 # collect2, so additional links can be useful in future.
12047 if test "$aix_use_runtimelinking" = yes; then
12048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12049 # instead of lib<name>.a to let people know that these are not
12050 # typical AIX shared libraries.
12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12052 else
12053 # We preserve .a as extension for shared libraries through AIX4.2
12054 # and later when we are not doing run time linking.
12055 library_names_spec='${libname}${release}.a $libname.a'
12056 soname_spec='${libname}${release}${shared_ext}$major'
12058 shlibpath_var=LIBPATH
12062 amigaos*)
12063 case $host_cpu in
12064 powerpc)
12065 # Since July 2007 AmigaOS4 officially supports .so libraries.
12066 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12069 m68k)
12070 library_names_spec='$libname.ixlibrary $libname.a'
12071 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12072 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12074 esac
12077 beos*)
12078 library_names_spec='${libname}${shared_ext}'
12079 dynamic_linker="$host_os ld.so"
12080 shlibpath_var=LIBRARY_PATH
12083 bsdi[45]*)
12084 version_type=linux
12085 need_version=no
12086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12087 soname_spec='${libname}${release}${shared_ext}$major'
12088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12089 shlibpath_var=LD_LIBRARY_PATH
12090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12092 # the default ld.so.conf also contains /usr/contrib/lib and
12093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12094 # libtool to hard-code these into programs
12097 cygwin* | mingw* | pw32*)
12098 version_type=windows
12099 shrext_cmds=".dll"
12100 need_version=no
12101 need_lib_prefix=no
12103 case $GCC,$host_os in
12104 yes,cygwin* | yes,mingw* | yes,pw32*)
12105 library_names_spec='$libname.dll.a'
12106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12107 postinstall_cmds='base_file=`basename \${file}`~
12108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12109 dldir=$destdir/`dirname \$dlpath`~
12110 test -d \$dldir || mkdir -p \$dldir~
12111 $install_prog $dir/$dlname \$dldir/$dlname~
12112 chmod a+x \$dldir/$dlname~
12113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12117 dlpath=$dir/\$dldll~
12118 $RM \$dlpath'
12119 shlibpath_overrides_runpath=yes
12121 case $host_os in
12122 cygwin*)
12123 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12124 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12125 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12127 mingw*)
12128 # MinGW DLLs use traditional 'lib' prefix
12129 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12130 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12131 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12132 # It is most probably a Windows format PATH printed by
12133 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12134 # path with ; separators, and with drive letters. We can handle the
12135 # drive letters (cygwin fileutils understands them), so leave them,
12136 # especially as we might pass files found there to a mingw objdump,
12137 # which wouldn't understand a cygwinified path. Ahh.
12138 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12139 else
12140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12143 pw32*)
12144 # pw32 DLLs use 'pw' prefix rather than 'lib'
12145 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12147 esac
12151 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12153 esac
12154 dynamic_linker='Win32 ld.exe'
12155 # FIXME: first we should search . and the directory the executable is in
12156 shlibpath_var=PATH
12159 darwin* | rhapsody*)
12160 dynamic_linker="$host_os dyld"
12161 version_type=darwin
12162 need_lib_prefix=no
12163 need_version=no
12164 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12165 soname_spec='${libname}${release}${major}$shared_ext'
12166 shlibpath_overrides_runpath=yes
12167 shlibpath_var=DYLD_LIBRARY_PATH
12168 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12170 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12171 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12174 dgux*)
12175 version_type=linux
12176 need_lib_prefix=no
12177 need_version=no
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12179 soname_spec='${libname}${release}${shared_ext}$major'
12180 shlibpath_var=LD_LIBRARY_PATH
12183 freebsd1*)
12184 dynamic_linker=no
12187 freebsd* | dragonfly*)
12188 # DragonFly does not have aout. When/if they implement a new
12189 # versioning mechanism, adjust this.
12190 if test -x /usr/bin/objformat; then
12191 objformat=`/usr/bin/objformat`
12192 else
12193 case $host_os in
12194 freebsd[123]*) objformat=aout ;;
12195 *) objformat=elf ;;
12196 esac
12198 version_type=freebsd-$objformat
12199 case $version_type in
12200 freebsd-elf*)
12201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12202 need_version=no
12203 need_lib_prefix=no
12205 freebsd-*)
12206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12207 need_version=yes
12209 esac
12210 shlibpath_var=LD_LIBRARY_PATH
12211 case $host_os in
12212 freebsd2*)
12213 shlibpath_overrides_runpath=yes
12215 freebsd3.[01]* | freebsdelf3.[01]*)
12216 shlibpath_overrides_runpath=yes
12217 hardcode_into_libs=yes
12219 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12220 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12221 shlibpath_overrides_runpath=no
12222 hardcode_into_libs=yes
12224 *) # from 4.6 on, and DragonFly
12225 shlibpath_overrides_runpath=yes
12226 hardcode_into_libs=yes
12228 esac
12231 gnu*)
12232 version_type=linux
12233 need_lib_prefix=no
12234 need_version=no
12235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12236 soname_spec='${libname}${release}${shared_ext}$major'
12237 shlibpath_var=LD_LIBRARY_PATH
12238 hardcode_into_libs=yes
12241 hpux9* | hpux10* | hpux11*)
12242 # Give a soname corresponding to the major version so that dld.sl refuses to
12243 # link against other versions.
12244 version_type=sunos
12245 need_lib_prefix=no
12246 need_version=no
12247 case $host_cpu in
12248 ia64*)
12249 shrext_cmds='.so'
12250 hardcode_into_libs=yes
12251 dynamic_linker="$host_os dld.so"
12252 shlibpath_var=LD_LIBRARY_PATH
12253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12255 soname_spec='${libname}${release}${shared_ext}$major'
12256 if test "X$HPUX_IA64_MODE" = X32; then
12257 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12258 else
12259 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12263 hppa*64*)
12264 shrext_cmds='.sl'
12265 hardcode_into_libs=yes
12266 dynamic_linker="$host_os dld.sl"
12267 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12270 soname_spec='${libname}${release}${shared_ext}$major'
12271 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12275 shrext_cmds='.sl'
12276 dynamic_linker="$host_os dld.sl"
12277 shlibpath_var=SHLIB_PATH
12278 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12280 soname_spec='${libname}${release}${shared_ext}$major'
12282 esac
12283 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12284 postinstall_cmds='chmod 555 $lib'
12287 interix[3-9]*)
12288 version_type=linux
12289 need_lib_prefix=no
12290 need_version=no
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12292 soname_spec='${libname}${release}${shared_ext}$major'
12293 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12294 shlibpath_var=LD_LIBRARY_PATH
12295 shlibpath_overrides_runpath=no
12296 hardcode_into_libs=yes
12299 irix5* | irix6* | nonstopux*)
12300 case $host_os in
12301 nonstopux*) version_type=nonstopux ;;
12303 if test "$lt_cv_prog_gnu_ld" = yes; then
12304 version_type=linux
12305 else
12306 version_type=irix
12307 fi ;;
12308 esac
12309 need_lib_prefix=no
12310 need_version=no
12311 soname_spec='${libname}${release}${shared_ext}$major'
12312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12313 case $host_os in
12314 irix5* | nonstopux*)
12315 libsuff= shlibsuff=
12318 case $LD in # libtool.m4 will add one of these switches to LD
12319 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12320 libsuff= shlibsuff= libmagic=32-bit;;
12321 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12322 libsuff=32 shlibsuff=N32 libmagic=N32;;
12323 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12324 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12325 *) libsuff= shlibsuff= libmagic=never-match;;
12326 esac
12328 esac
12329 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12330 shlibpath_overrides_runpath=no
12331 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12332 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12333 hardcode_into_libs=yes
12336 # No shared lib support for Linux oldld, aout, or coff.
12337 linux*oldld* | linux*aout* | linux*coff*)
12338 dynamic_linker=no
12341 # This must be Linux ELF.
12342 linux* | k*bsd*-gnu)
12343 version_type=linux
12344 need_lib_prefix=no
12345 need_version=no
12346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12347 soname_spec='${libname}${release}${shared_ext}$major'
12348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12349 shlibpath_var=LD_LIBRARY_PATH
12350 shlibpath_overrides_runpath=no
12351 # Some binutils ld are patched to set DT_RUNPATH
12352 save_LDFLAGS=$LDFLAGS
12353 save_libdir=$libdir
12354 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12355 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12356 cat >conftest.$ac_ext <<_ACEOF
12357 /* confdefs.h. */
12358 _ACEOF
12359 cat confdefs.h >>conftest.$ac_ext
12360 cat >>conftest.$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12364 main ()
12368 return 0;
12370 _ACEOF
12371 rm -f conftest.$ac_objext conftest$ac_exeext
12372 if { (ac_try="$ac_link"
12373 case "(($ac_try" in
12374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375 *) ac_try_echo=$ac_try;;
12376 esac
12377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12378 $as_echo "$ac_try_echo") >&5
12379 (eval "$ac_link") 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } && {
12386 test -z "$ac_c_werror_flag" ||
12387 test ! -s conftest.err
12388 } && test -s conftest$ac_exeext && {
12389 test "$cross_compiling" = yes ||
12390 $as_test_x conftest$ac_exeext
12391 }; then
12392 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
12393 shlibpath_overrides_runpath=yes
12396 else
12397 $as_echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12403 rm -rf conftest.dSYM
12404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12405 conftest$ac_exeext conftest.$ac_ext
12406 LDFLAGS=$save_LDFLAGS
12407 libdir=$save_libdir
12409 # This implies no fast_install, which is unacceptable.
12410 # Some rework will be needed to allow for fast_install
12411 # before this can be enabled.
12412 hardcode_into_libs=yes
12414 # Append ld.so.conf contents to the search path
12415 if test -f /etc/ld.so.conf; then
12416 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12417 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12420 # We used to test for /lib/ld.so.1 and disable shared libraries on
12421 # powerpc, because MkLinux only supported shared libraries with the
12422 # GNU dynamic linker. Since this was broken with cross compilers,
12423 # most powerpc-linux boxes support dynamic linking these days and
12424 # people can always --disable-shared, the test was removed, and we
12425 # assume the GNU/Linux dynamic linker is in use.
12426 dynamic_linker='GNU/Linux ld.so'
12429 netbsd*)
12430 version_type=sunos
12431 need_lib_prefix=no
12432 need_version=no
12433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12436 dynamic_linker='NetBSD (a.out) ld.so'
12437 else
12438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12439 soname_spec='${libname}${release}${shared_ext}$major'
12440 dynamic_linker='NetBSD ld.elf_so'
12442 shlibpath_var=LD_LIBRARY_PATH
12443 shlibpath_overrides_runpath=yes
12444 hardcode_into_libs=yes
12447 newsos6)
12448 version_type=linux
12449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12450 shlibpath_var=LD_LIBRARY_PATH
12451 shlibpath_overrides_runpath=yes
12454 *nto* | *qnx*)
12455 version_type=qnx
12456 need_lib_prefix=no
12457 need_version=no
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 shlibpath_var=LD_LIBRARY_PATH
12461 shlibpath_overrides_runpath=no
12462 hardcode_into_libs=yes
12463 dynamic_linker='ldqnx.so'
12466 openbsd*)
12467 version_type=sunos
12468 sys_lib_dlsearch_path_spec="/usr/lib"
12469 need_lib_prefix=no
12470 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12471 case $host_os in
12472 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12473 *) need_version=no ;;
12474 esac
12475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12477 shlibpath_var=LD_LIBRARY_PATH
12478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12479 case $host_os in
12480 openbsd2.[89] | openbsd2.[89].*)
12481 shlibpath_overrides_runpath=no
12484 shlibpath_overrides_runpath=yes
12486 esac
12487 else
12488 shlibpath_overrides_runpath=yes
12492 os2*)
12493 libname_spec='$name'
12494 shrext_cmds=".dll"
12495 need_lib_prefix=no
12496 library_names_spec='$libname${shared_ext} $libname.a'
12497 dynamic_linker='OS/2 ld.exe'
12498 shlibpath_var=LIBPATH
12501 osf3* | osf4* | osf5*)
12502 version_type=osf
12503 need_lib_prefix=no
12504 need_version=no
12505 soname_spec='${libname}${release}${shared_ext}$major'
12506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12507 shlibpath_var=LD_LIBRARY_PATH
12508 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12509 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12512 rdos*)
12513 dynamic_linker=no
12516 solaris*)
12517 version_type=linux
12518 need_lib_prefix=no
12519 need_version=no
12520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12521 soname_spec='${libname}${release}${shared_ext}$major'
12522 shlibpath_var=LD_LIBRARY_PATH
12523 shlibpath_overrides_runpath=yes
12524 hardcode_into_libs=yes
12525 # ldd complains unless libraries are executable
12526 postinstall_cmds='chmod +x $lib'
12529 sunos4*)
12530 version_type=sunos
12531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12532 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12533 shlibpath_var=LD_LIBRARY_PATH
12534 shlibpath_overrides_runpath=yes
12535 if test "$with_gnu_ld" = yes; then
12536 need_lib_prefix=no
12538 need_version=yes
12541 sysv4 | sysv4.3*)
12542 version_type=linux
12543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12544 soname_spec='${libname}${release}${shared_ext}$major'
12545 shlibpath_var=LD_LIBRARY_PATH
12546 case $host_vendor in
12547 sni)
12548 shlibpath_overrides_runpath=no
12549 need_lib_prefix=no
12550 runpath_var=LD_RUN_PATH
12552 siemens)
12553 need_lib_prefix=no
12555 motorola)
12556 need_lib_prefix=no
12557 need_version=no
12558 shlibpath_overrides_runpath=no
12559 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12561 esac
12564 sysv4*MP*)
12565 if test -d /usr/nec ;then
12566 version_type=linux
12567 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12568 soname_spec='$libname${shared_ext}.$major'
12569 shlibpath_var=LD_LIBRARY_PATH
12573 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12574 version_type=freebsd-elf
12575 need_lib_prefix=no
12576 need_version=no
12577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12578 soname_spec='${libname}${release}${shared_ext}$major'
12579 shlibpath_var=LD_LIBRARY_PATH
12580 shlibpath_overrides_runpath=yes
12581 hardcode_into_libs=yes
12582 if test "$with_gnu_ld" = yes; then
12583 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12584 else
12585 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12586 case $host_os in
12587 sco3.2v5*)
12588 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12590 esac
12592 sys_lib_dlsearch_path_spec='/usr/lib'
12595 tpf*)
12596 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12597 version_type=linux
12598 need_lib_prefix=no
12599 need_version=no
12600 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12601 shlibpath_var=LD_LIBRARY_PATH
12602 shlibpath_overrides_runpath=no
12603 hardcode_into_libs=yes
12606 uts4*)
12607 version_type=linux
12608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12609 soname_spec='${libname}${release}${shared_ext}$major'
12610 shlibpath_var=LD_LIBRARY_PATH
12614 dynamic_linker=no
12616 esac
12617 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12618 $as_echo "$dynamic_linker" >&6; }
12619 test "$dynamic_linker" = no && can_build_shared=no
12621 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12622 if test "$GCC" = yes; then
12623 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12626 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12627 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12629 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12630 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12719 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12720 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12721 hardcode_action=
12722 if test -n "$hardcode_libdir_flag_spec" ||
12723 test -n "$runpath_var" ||
12724 test "X$hardcode_automatic" = "Xyes" ; then
12726 # We can hardcode non-existent directories.
12727 if test "$hardcode_direct" != no &&
12728 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12729 # have to relink, otherwise we might link with an installed library
12730 # when we should be linking with a yet-to-be-installed one
12731 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12732 test "$hardcode_minus_L" != no; then
12733 # Linking always hardcodes the temporary library directory.
12734 hardcode_action=relink
12735 else
12736 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12737 hardcode_action=immediate
12739 else
12740 # We cannot hardcode anything, or else we can only hardcode existing
12741 # directories.
12742 hardcode_action=unsupported
12744 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12745 $as_echo "$hardcode_action" >&6; }
12747 if test "$hardcode_action" = relink ||
12748 test "$inherit_rpath" = yes; then
12749 # Fast installation is not supported
12750 enable_fast_install=no
12751 elif test "$shlibpath_overrides_runpath" = yes ||
12752 test "$enable_shared" = no; then
12753 # Fast installation is not necessary
12754 enable_fast_install=needless
12762 if test "x$enable_dlopen" != xyes; then
12763 enable_dlopen=unknown
12764 enable_dlopen_self=unknown
12765 enable_dlopen_self_static=unknown
12766 else
12767 lt_cv_dlopen=no
12768 lt_cv_dlopen_libs=
12770 case $host_os in
12771 beos*)
12772 lt_cv_dlopen="load_add_on"
12773 lt_cv_dlopen_libs=
12774 lt_cv_dlopen_self=yes
12777 mingw* | pw32*)
12778 lt_cv_dlopen="LoadLibrary"
12779 lt_cv_dlopen_libs=
12782 cygwin*)
12783 lt_cv_dlopen="dlopen"
12784 lt_cv_dlopen_libs=
12787 darwin*)
12788 # if libdl is installed we need to link against it
12789 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12790 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12792 $as_echo_n "(cached) " >&6
12793 else
12794 ac_check_lib_save_LIBS=$LIBS
12795 LIBS="-ldl $LIBS"
12796 cat >conftest.$ac_ext <<_ACEOF
12797 /* confdefs.h. */
12798 _ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12803 /* Override any GCC internal prototype to avoid an error.
12804 Use char because int might match the return type of a GCC
12805 builtin and then its argument prototype would still apply. */
12806 #ifdef __cplusplus
12807 extern "C"
12808 #endif
12809 char dlopen ();
12811 main ()
12813 return dlopen ();
12815 return 0;
12817 _ACEOF
12818 rm -f conftest.$ac_objext conftest$ac_exeext
12819 if { (ac_try="$ac_link"
12820 case "(($ac_try" in
12821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12822 *) ac_try_echo=$ac_try;;
12823 esac
12824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12825 $as_echo "$ac_try_echo") >&5
12826 (eval "$ac_link") 2>conftest.er1
12827 ac_status=$?
12828 grep -v '^ *+' conftest.er1 >conftest.err
12829 rm -f conftest.er1
12830 cat conftest.err >&5
12831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } && {
12833 test -z "$ac_c_werror_flag" ||
12834 test ! -s conftest.err
12835 } && test -s conftest$ac_exeext && {
12836 test "$cross_compiling" = yes ||
12837 $as_test_x conftest$ac_exeext
12838 }; then
12839 ac_cv_lib_dl_dlopen=yes
12840 else
12841 $as_echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 ac_cv_lib_dl_dlopen=no
12847 rm -rf conftest.dSYM
12848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12849 conftest$ac_exeext conftest.$ac_ext
12850 LIBS=$ac_check_lib_save_LIBS
12852 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12853 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12854 if test $ac_cv_lib_dl_dlopen = yes; then
12855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12856 else
12858 lt_cv_dlopen="dyld"
12859 lt_cv_dlopen_libs=
12860 lt_cv_dlopen_self=yes
12867 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12868 $as_echo_n "checking for shl_load... " >&6; }
12869 if test "${ac_cv_func_shl_load+set}" = set; then
12870 $as_echo_n "(cached) " >&6
12871 else
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h. */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12880 #define shl_load innocuous_shl_load
12882 /* System header to define __stub macros and hopefully few prototypes,
12883 which can conflict with char shl_load (); below.
12884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12885 <limits.h> exists even on freestanding compilers. */
12887 #ifdef __STDC__
12888 # include <limits.h>
12889 #else
12890 # include <assert.h>
12891 #endif
12893 #undef shl_load
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 char shl_load ();
12902 /* The GNU C library defines this for functions which it implements
12903 to always fail with ENOSYS. Some functions are actually named
12904 something starting with __ and the normal name is an alias. */
12905 #if defined __stub_shl_load || defined __stub___shl_load
12906 choke me
12907 #endif
12910 main ()
12912 return shl_load ();
12914 return 0;
12916 _ACEOF
12917 rm -f conftest.$ac_objext conftest$ac_exeext
12918 if { (ac_try="$ac_link"
12919 case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12922 esac
12923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12924 $as_echo "$ac_try_echo") >&5
12925 (eval "$ac_link") 2>conftest.er1
12926 ac_status=$?
12927 grep -v '^ *+' conftest.er1 >conftest.err
12928 rm -f conftest.er1
12929 cat conftest.err >&5
12930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } && {
12932 test -z "$ac_c_werror_flag" ||
12933 test ! -s conftest.err
12934 } && test -s conftest$ac_exeext && {
12935 test "$cross_compiling" = yes ||
12936 $as_test_x conftest$ac_exeext
12937 }; then
12938 ac_cv_func_shl_load=yes
12939 else
12940 $as_echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12943 ac_cv_func_shl_load=no
12946 rm -rf conftest.dSYM
12947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12948 conftest$ac_exeext conftest.$ac_ext
12950 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12951 $as_echo "$ac_cv_func_shl_load" >&6; }
12952 if test $ac_cv_func_shl_load = yes; then
12953 lt_cv_dlopen="shl_load"
12954 else
12955 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12956 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12957 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12958 $as_echo_n "(cached) " >&6
12959 else
12960 ac_check_lib_save_LIBS=$LIBS
12961 LIBS="-ldld $LIBS"
12962 cat >conftest.$ac_ext <<_ACEOF
12963 /* confdefs.h. */
12964 _ACEOF
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12969 /* Override any GCC internal prototype to avoid an error.
12970 Use char because int might match the return type of a GCC
12971 builtin and then its argument prototype would still apply. */
12972 #ifdef __cplusplus
12973 extern "C"
12974 #endif
12975 char shl_load ();
12977 main ()
12979 return shl_load ();
12981 return 0;
12983 _ACEOF
12984 rm -f conftest.$ac_objext conftest$ac_exeext
12985 if { (ac_try="$ac_link"
12986 case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989 esac
12990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12991 $as_echo "$ac_try_echo") >&5
12992 (eval "$ac_link") 2>conftest.er1
12993 ac_status=$?
12994 grep -v '^ *+' conftest.er1 >conftest.err
12995 rm -f conftest.er1
12996 cat conftest.err >&5
12997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } && {
12999 test -z "$ac_c_werror_flag" ||
13000 test ! -s conftest.err
13001 } && test -s conftest$ac_exeext && {
13002 test "$cross_compiling" = yes ||
13003 $as_test_x conftest$ac_exeext
13004 }; then
13005 ac_cv_lib_dld_shl_load=yes
13006 else
13007 $as_echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13010 ac_cv_lib_dld_shl_load=no
13013 rm -rf conftest.dSYM
13014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13015 conftest$ac_exeext conftest.$ac_ext
13016 LIBS=$ac_check_lib_save_LIBS
13018 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13019 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13020 if test $ac_cv_lib_dld_shl_load = yes; then
13021 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13022 else
13023 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
13024 $as_echo_n "checking for dlopen... " >&6; }
13025 if test "${ac_cv_func_dlopen+set}" = set; then
13026 $as_echo_n "(cached) " >&6
13027 else
13028 cat >conftest.$ac_ext <<_ACEOF
13029 /* confdefs.h. */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13034 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13036 #define dlopen innocuous_dlopen
13038 /* System header to define __stub macros and hopefully few prototypes,
13039 which can conflict with char dlopen (); below.
13040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13041 <limits.h> exists even on freestanding compilers. */
13043 #ifdef __STDC__
13044 # include <limits.h>
13045 #else
13046 # include <assert.h>
13047 #endif
13049 #undef dlopen
13051 /* Override any GCC internal prototype to avoid an error.
13052 Use char because int might match the return type of a GCC
13053 builtin and then its argument prototype would still apply. */
13054 #ifdef __cplusplus
13055 extern "C"
13056 #endif
13057 char dlopen ();
13058 /* The GNU C library defines this for functions which it implements
13059 to always fail with ENOSYS. Some functions are actually named
13060 something starting with __ and the normal name is an alias. */
13061 #if defined __stub_dlopen || defined __stub___dlopen
13062 choke me
13063 #endif
13066 main ()
13068 return dlopen ();
13070 return 0;
13072 _ACEOF
13073 rm -f conftest.$ac_objext conftest$ac_exeext
13074 if { (ac_try="$ac_link"
13075 case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13078 esac
13079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13080 $as_echo "$ac_try_echo") >&5
13081 (eval "$ac_link") 2>conftest.er1
13082 ac_status=$?
13083 grep -v '^ *+' conftest.er1 >conftest.err
13084 rm -f conftest.er1
13085 cat conftest.err >&5
13086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } && {
13088 test -z "$ac_c_werror_flag" ||
13089 test ! -s conftest.err
13090 } && test -s conftest$ac_exeext && {
13091 test "$cross_compiling" = yes ||
13092 $as_test_x conftest$ac_exeext
13093 }; then
13094 ac_cv_func_dlopen=yes
13095 else
13096 $as_echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13099 ac_cv_func_dlopen=no
13102 rm -rf conftest.dSYM
13103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13104 conftest$ac_exeext conftest.$ac_ext
13106 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13107 $as_echo "$ac_cv_func_dlopen" >&6; }
13108 if test $ac_cv_func_dlopen = yes; then
13109 lt_cv_dlopen="dlopen"
13110 else
13111 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13112 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13113 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13114 $as_echo_n "(cached) " >&6
13115 else
13116 ac_check_lib_save_LIBS=$LIBS
13117 LIBS="-ldl $LIBS"
13118 cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h. */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13125 /* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
13128 #ifdef __cplusplus
13129 extern "C"
13130 #endif
13131 char dlopen ();
13133 main ()
13135 return dlopen ();
13137 return 0;
13139 _ACEOF
13140 rm -f conftest.$ac_objext conftest$ac_exeext
13141 if { (ac_try="$ac_link"
13142 case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145 esac
13146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13147 $as_echo "$ac_try_echo") >&5
13148 (eval "$ac_link") 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } && {
13155 test -z "$ac_c_werror_flag" ||
13156 test ! -s conftest.err
13157 } && test -s conftest$ac_exeext && {
13158 test "$cross_compiling" = yes ||
13159 $as_test_x conftest$ac_exeext
13160 }; then
13161 ac_cv_lib_dl_dlopen=yes
13162 else
13163 $as_echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ac_cv_lib_dl_dlopen=no
13169 rm -rf conftest.dSYM
13170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13171 conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_lib_save_LIBS
13174 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13175 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13176 if test $ac_cv_lib_dl_dlopen = yes; then
13177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13178 else
13179 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13180 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13181 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13182 $as_echo_n "(cached) " >&6
13183 else
13184 ac_check_lib_save_LIBS=$LIBS
13185 LIBS="-lsvld $LIBS"
13186 cat >conftest.$ac_ext <<_ACEOF
13187 /* confdefs.h. */
13188 _ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13193 /* Override any GCC internal prototype to avoid an error.
13194 Use char because int might match the return type of a GCC
13195 builtin and then its argument prototype would still apply. */
13196 #ifdef __cplusplus
13197 extern "C"
13198 #endif
13199 char dlopen ();
13201 main ()
13203 return dlopen ();
13205 return 0;
13207 _ACEOF
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (ac_try="$ac_link"
13210 case "(($ac_try" in
13211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13213 esac
13214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13215 $as_echo "$ac_try_echo") >&5
13216 (eval "$ac_link") 2>conftest.er1
13217 ac_status=$?
13218 grep -v '^ *+' conftest.er1 >conftest.err
13219 rm -f conftest.er1
13220 cat conftest.err >&5
13221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } && {
13223 test -z "$ac_c_werror_flag" ||
13224 test ! -s conftest.err
13225 } && test -s conftest$ac_exeext && {
13226 test "$cross_compiling" = yes ||
13227 $as_test_x conftest$ac_exeext
13228 }; then
13229 ac_cv_lib_svld_dlopen=yes
13230 else
13231 $as_echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13234 ac_cv_lib_svld_dlopen=no
13237 rm -rf conftest.dSYM
13238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13239 conftest$ac_exeext conftest.$ac_ext
13240 LIBS=$ac_check_lib_save_LIBS
13242 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13243 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13244 if test $ac_cv_lib_svld_dlopen = yes; then
13245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13246 else
13247 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13248 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13249 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13250 $as_echo_n "(cached) " >&6
13251 else
13252 ac_check_lib_save_LIBS=$LIBS
13253 LIBS="-ldld $LIBS"
13254 cat >conftest.$ac_ext <<_ACEOF
13255 /* confdefs.h. */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h. */
13261 /* Override any GCC internal prototype to avoid an error.
13262 Use char because int might match the return type of a GCC
13263 builtin and then its argument prototype would still apply. */
13264 #ifdef __cplusplus
13265 extern "C"
13266 #endif
13267 char dld_link ();
13269 main ()
13271 return dld_link ();
13273 return 0;
13275 _ACEOF
13276 rm -f conftest.$ac_objext conftest$ac_exeext
13277 if { (ac_try="$ac_link"
13278 case "(($ac_try" in
13279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280 *) ac_try_echo=$ac_try;;
13281 esac
13282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13283 $as_echo "$ac_try_echo") >&5
13284 (eval "$ac_link") 2>conftest.er1
13285 ac_status=$?
13286 grep -v '^ *+' conftest.er1 >conftest.err
13287 rm -f conftest.er1
13288 cat conftest.err >&5
13289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } && {
13291 test -z "$ac_c_werror_flag" ||
13292 test ! -s conftest.err
13293 } && test -s conftest$ac_exeext && {
13294 test "$cross_compiling" = yes ||
13295 $as_test_x conftest$ac_exeext
13296 }; then
13297 ac_cv_lib_dld_dld_link=yes
13298 else
13299 $as_echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13302 ac_cv_lib_dld_dld_link=no
13305 rm -rf conftest.dSYM
13306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13307 conftest$ac_exeext conftest.$ac_ext
13308 LIBS=$ac_check_lib_save_LIBS
13310 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13311 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13312 if test $ac_cv_lib_dld_dld_link = yes; then
13313 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13332 esac
13334 if test "x$lt_cv_dlopen" != xno; then
13335 enable_dlopen=yes
13336 else
13337 enable_dlopen=no
13340 case $lt_cv_dlopen in
13341 dlopen)
13342 save_CPPFLAGS="$CPPFLAGS"
13343 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13345 save_LDFLAGS="$LDFLAGS"
13346 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13348 save_LIBS="$LIBS"
13349 LIBS="$lt_cv_dlopen_libs $LIBS"
13351 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13352 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13353 if test "${lt_cv_dlopen_self+set}" = set; then
13354 $as_echo_n "(cached) " >&6
13355 else
13356 if test "$cross_compiling" = yes; then :
13357 lt_cv_dlopen_self=cross
13358 else
13359 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13360 lt_status=$lt_dlunknown
13361 cat > conftest.$ac_ext <<_LT_EOF
13362 #line 13362 "configure"
13363 #include "confdefs.h"
13365 #if HAVE_DLFCN_H
13366 #include <dlfcn.h>
13367 #endif
13369 #include <stdio.h>
13371 #ifdef RTLD_GLOBAL
13372 # define LT_DLGLOBAL RTLD_GLOBAL
13373 #else
13374 # ifdef DL_GLOBAL
13375 # define LT_DLGLOBAL DL_GLOBAL
13376 # else
13377 # define LT_DLGLOBAL 0
13378 # endif
13379 #endif
13381 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13382 find out it does not work in some platform. */
13383 #ifndef LT_DLLAZY_OR_NOW
13384 # ifdef RTLD_LAZY
13385 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13386 # else
13387 # ifdef DL_LAZY
13388 # define LT_DLLAZY_OR_NOW DL_LAZY
13389 # else
13390 # ifdef RTLD_NOW
13391 # define LT_DLLAZY_OR_NOW RTLD_NOW
13392 # else
13393 # ifdef DL_NOW
13394 # define LT_DLLAZY_OR_NOW DL_NOW
13395 # else
13396 # define LT_DLLAZY_OR_NOW 0
13397 # endif
13398 # endif
13399 # endif
13400 # endif
13401 #endif
13403 #ifdef __cplusplus
13404 extern "C" void exit (int);
13405 #endif
13407 void fnord() { int i=42;}
13408 int main ()
13410 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13411 int status = $lt_dlunknown;
13413 if (self)
13415 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13416 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13417 /* dlclose (self); */
13419 else
13420 puts (dlerror ());
13422 exit (status);
13424 _LT_EOF
13425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13426 (eval $ac_link) 2>&5
13427 ac_status=$?
13428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13430 (./conftest; exit; ) >&5 2>/dev/null
13431 lt_status=$?
13432 case x$lt_status in
13433 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13434 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13435 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13436 esac
13437 else :
13438 # compilation failed
13439 lt_cv_dlopen_self=no
13442 rm -fr conftest*
13446 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13447 $as_echo "$lt_cv_dlopen_self" >&6; }
13449 if test "x$lt_cv_dlopen_self" = xyes; then
13450 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13451 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13452 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13453 if test "${lt_cv_dlopen_self_static+set}" = set; then
13454 $as_echo_n "(cached) " >&6
13455 else
13456 if test "$cross_compiling" = yes; then :
13457 lt_cv_dlopen_self_static=cross
13458 else
13459 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13460 lt_status=$lt_dlunknown
13461 cat > conftest.$ac_ext <<_LT_EOF
13462 #line 13462 "configure"
13463 #include "confdefs.h"
13465 #if HAVE_DLFCN_H
13466 #include <dlfcn.h>
13467 #endif
13469 #include <stdio.h>
13471 #ifdef RTLD_GLOBAL
13472 # define LT_DLGLOBAL RTLD_GLOBAL
13473 #else
13474 # ifdef DL_GLOBAL
13475 # define LT_DLGLOBAL DL_GLOBAL
13476 # else
13477 # define LT_DLGLOBAL 0
13478 # endif
13479 #endif
13481 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13482 find out it does not work in some platform. */
13483 #ifndef LT_DLLAZY_OR_NOW
13484 # ifdef RTLD_LAZY
13485 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13486 # else
13487 # ifdef DL_LAZY
13488 # define LT_DLLAZY_OR_NOW DL_LAZY
13489 # else
13490 # ifdef RTLD_NOW
13491 # define LT_DLLAZY_OR_NOW RTLD_NOW
13492 # else
13493 # ifdef DL_NOW
13494 # define LT_DLLAZY_OR_NOW DL_NOW
13495 # else
13496 # define LT_DLLAZY_OR_NOW 0
13497 # endif
13498 # endif
13499 # endif
13500 # endif
13501 #endif
13503 #ifdef __cplusplus
13504 extern "C" void exit (int);
13505 #endif
13507 void fnord() { int i=42;}
13508 int main ()
13510 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13511 int status = $lt_dlunknown;
13513 if (self)
13515 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13516 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13517 /* dlclose (self); */
13519 else
13520 puts (dlerror ());
13522 exit (status);
13524 _LT_EOF
13525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13526 (eval $ac_link) 2>&5
13527 ac_status=$?
13528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13530 (./conftest; exit; ) >&5 2>/dev/null
13531 lt_status=$?
13532 case x$lt_status in
13533 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13534 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13535 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13536 esac
13537 else :
13538 # compilation failed
13539 lt_cv_dlopen_self_static=no
13542 rm -fr conftest*
13546 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13547 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13550 CPPFLAGS="$save_CPPFLAGS"
13551 LDFLAGS="$save_LDFLAGS"
13552 LIBS="$save_LIBS"
13554 esac
13556 case $lt_cv_dlopen_self in
13557 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13558 *) enable_dlopen_self=unknown ;;
13559 esac
13561 case $lt_cv_dlopen_self_static in
13562 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13563 *) enable_dlopen_self_static=unknown ;;
13564 esac
13583 striplib=
13584 old_striplib=
13585 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13586 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13587 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13588 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13589 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13590 { $as_echo "$as_me:$LINENO: result: yes" >&5
13591 $as_echo "yes" >&6; }
13592 else
13593 # FIXME - insert some real tests, host_os isn't really good enough
13594 case $host_os in
13595 darwin*)
13596 if test -n "$STRIP" ; then
13597 striplib="$STRIP -x"
13598 old_striplib="$STRIP -S"
13599 { $as_echo "$as_me:$LINENO: result: yes" >&5
13600 $as_echo "yes" >&6; }
13601 else
13602 { $as_echo "$as_me:$LINENO: result: no" >&5
13603 $as_echo "no" >&6; }
13607 { $as_echo "$as_me:$LINENO: result: no" >&5
13608 $as_echo "no" >&6; }
13610 esac
13624 # Report which library types will actually be built
13625 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13626 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13627 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13628 $as_echo "$can_build_shared" >&6; }
13630 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13631 $as_echo_n "checking whether to build shared libraries... " >&6; }
13632 test "$can_build_shared" = "no" && enable_shared=no
13634 # On AIX, shared libraries and static libraries use the same namespace, and
13635 # are all built from PIC.
13636 case $host_os in
13637 aix3*)
13638 test "$enable_shared" = yes && enable_static=no
13639 if test -n "$RANLIB"; then
13640 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13641 postinstall_cmds='$RANLIB $lib'
13645 aix[4-9]*)
13646 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13647 test "$enable_shared" = yes && enable_static=no
13650 esac
13651 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13652 $as_echo "$enable_shared" >&6; }
13654 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13655 $as_echo_n "checking whether to build static libraries... " >&6; }
13656 # Make sure either enable_shared or enable_static is yes.
13657 test "$enable_shared" = yes || enable_static=yes
13658 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13659 $as_echo "$enable_static" >&6; }
13665 ac_ext=c
13666 ac_cpp='$CPP $CPPFLAGS'
13667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13671 CC="$lt_save_CC"
13685 ac_config_commands="$ac_config_commands libtool"
13690 # Only expand once:
13699 # configuration file -- stay in 8.3 limit
13701 # since #undef doesn't survive in configuration header files we replace
13702 # `/undef' with `#undef' after creating the output file
13704 ac_config_headers="$ac_config_headers ftconfig.h:ftconfig.in"
13707 # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
13708 # and `builds/unix/unix-cc.mk' that will be used by the build system
13710 ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in freetype-config freetype2.pc:freetype2.in"
13713 # re-generate the Jamfile to use libtool now
13715 # AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in])
13717 cat >confcache <<\_ACEOF
13718 # This file is a shell script that caches the results of configure
13719 # tests run on this system so they can be shared between configure
13720 # scripts and configure runs, see configure's option --config-cache.
13721 # It is not useful on other systems. If it contains results you don't
13722 # want to keep, you may remove or edit it.
13724 # config.status only pays attention to the cache file if you give it
13725 # the --recheck option to rerun configure.
13727 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13728 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13729 # following values.
13731 _ACEOF
13733 # The following way of writing the cache mishandles newlines in values,
13734 # but we know of no workaround that is simple, portable, and efficient.
13735 # So, we kill variables containing newlines.
13736 # Ultrix sh set writes to stderr and can't be redirected directly,
13737 # and sets the high bit in the cache file unless we assign to the vars.
13739 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13740 eval ac_val=\$$ac_var
13741 case $ac_val in #(
13742 *${as_nl}*)
13743 case $ac_var in #(
13744 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13745 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13746 esac
13747 case $ac_var in #(
13748 _ | IFS | as_nl) ;; #(
13749 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13750 *) $as_unset $ac_var ;;
13751 esac ;;
13752 esac
13753 done
13755 (set) 2>&1 |
13756 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13757 *${as_nl}ac_space=\ *)
13758 # `set' does not quote correctly, so add quotes (double-quote
13759 # substitution turns \\\\ into \\, and sed turns \\ into \).
13760 sed -n \
13761 "s/'/'\\\\''/g;
13762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13763 ;; #(
13765 # `set' quotes correctly as required by POSIX, so do not add quotes.
13766 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13768 esac |
13769 sort
13771 sed '
13772 /^ac_cv_env_/b end
13773 t clear
13774 :clear
13775 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13776 t end
13777 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13778 :end' >>confcache
13779 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13780 if test -w "$cache_file"; then
13781 test "x$cache_file" != "x/dev/null" &&
13782 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13783 $as_echo "$as_me: updating cache $cache_file" >&6;}
13784 cat confcache >$cache_file
13785 else
13786 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13787 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13790 rm -f confcache
13792 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13793 # Let make expand exec_prefix.
13794 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13796 DEFS=-DHAVE_CONFIG_H
13798 ac_libobjs=
13799 ac_ltlibobjs=
13800 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13801 # 1. Remove the extension, and $U if already installed.
13802 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13803 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13804 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13805 # will be set to the directory where LIBOBJS objects are built.
13806 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13807 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13808 done
13809 LIBOBJS=$ac_libobjs
13811 LTLIBOBJS=$ac_ltlibobjs
13815 : ${CONFIG_STATUS=./config.status}
13816 ac_write_fail=0
13817 ac_clean_files_save=$ac_clean_files
13818 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13819 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13820 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13821 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13822 #! $SHELL
13823 # Generated by $as_me.
13824 # Run this file to recreate the current configuration.
13825 # Compiler output produced by configure, useful for debugging
13826 # configure, is in config.log if it exists.
13828 debug=false
13829 ac_cs_recheck=false
13830 ac_cs_silent=false
13831 SHELL=\${CONFIG_SHELL-$SHELL}
13832 _ACEOF
13834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13835 ## --------------------- ##
13836 ## M4sh Initialization. ##
13837 ## --------------------- ##
13839 # Be more Bourne compatible
13840 DUALCASE=1; export DUALCASE # for MKS sh
13841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13842 emulate sh
13843 NULLCMD=:
13844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13845 # is contrary to our usage. Disable this feature.
13846 alias -g '${1+"$@"}'='"$@"'
13847 setopt NO_GLOB_SUBST
13848 else
13849 case `(set -o) 2>/dev/null` in
13850 *posix*) set -o posix ;;
13851 esac
13858 # PATH needs CR
13859 # Avoid depending upon Character Ranges.
13860 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13861 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13862 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13863 as_cr_digits='0123456789'
13864 as_cr_alnum=$as_cr_Letters$as_cr_digits
13866 as_nl='
13868 export as_nl
13869 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13870 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13871 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13872 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13873 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13874 as_echo='printf %s\n'
13875 as_echo_n='printf %s'
13876 else
13877 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13878 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13879 as_echo_n='/usr/ucb/echo -n'
13880 else
13881 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13882 as_echo_n_body='eval
13883 arg=$1;
13884 case $arg in
13885 *"$as_nl"*)
13886 expr "X$arg" : "X\\(.*\\)$as_nl";
13887 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13888 esac;
13889 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13891 export as_echo_n_body
13892 as_echo_n='sh -c $as_echo_n_body as_echo'
13894 export as_echo_body
13895 as_echo='sh -c $as_echo_body as_echo'
13898 # The user is always right.
13899 if test "${PATH_SEPARATOR+set}" != set; then
13900 PATH_SEPARATOR=:
13901 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13902 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13903 PATH_SEPARATOR=';'
13907 # Support unset when possible.
13908 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13909 as_unset=unset
13910 else
13911 as_unset=false
13915 # IFS
13916 # We need space, tab and new line, in precisely that order. Quoting is
13917 # there to prevent editors from complaining about space-tab.
13918 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13919 # splitting by setting IFS to empty value.)
13920 IFS=" "" $as_nl"
13922 # Find who we are. Look in the path if we contain no directory separator.
13923 case $0 in
13924 *[\\/]* ) as_myself=$0 ;;
13925 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $PATH
13928 IFS=$as_save_IFS
13929 test -z "$as_dir" && as_dir=.
13930 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13931 done
13932 IFS=$as_save_IFS
13935 esac
13936 # We did not find ourselves, most probably we were run as `sh COMMAND'
13937 # in which case we are not to be found in the path.
13938 if test "x$as_myself" = x; then
13939 as_myself=$0
13941 if test ! -f "$as_myself"; then
13942 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13943 { (exit 1); exit 1; }
13946 # Work around bugs in pre-3.0 UWIN ksh.
13947 for as_var in ENV MAIL MAILPATH
13948 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13949 done
13950 PS1='$ '
13951 PS2='> '
13952 PS4='+ '
13954 # NLS nuisances.
13955 LC_ALL=C
13956 export LC_ALL
13957 LANGUAGE=C
13958 export LANGUAGE
13960 # Required to use basename.
13961 if expr a : '\(a\)' >/dev/null 2>&1 &&
13962 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13963 as_expr=expr
13964 else
13965 as_expr=false
13968 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13969 as_basename=basename
13970 else
13971 as_basename=false
13975 # Name of the executable.
13976 as_me=`$as_basename -- "$0" ||
13977 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13978 X"$0" : 'X\(//\)$' \| \
13979 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13980 $as_echo X/"$0" |
13981 sed '/^.*\/\([^/][^/]*\)\/*$/{
13982 s//\1/
13985 /^X\/\(\/\/\)$/{
13986 s//\1/
13989 /^X\/\(\/\).*/{
13990 s//\1/
13993 s/.*/./; q'`
13995 # CDPATH.
13996 $as_unset CDPATH
14000 as_lineno_1=$LINENO
14001 as_lineno_2=$LINENO
14002 test "x$as_lineno_1" != "x$as_lineno_2" &&
14003 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14005 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14006 # uniformly replaced by the line number. The first 'sed' inserts a
14007 # line-number line after each line using $LINENO; the second 'sed'
14008 # does the real work. The second script uses 'N' to pair each
14009 # line-number line with the line containing $LINENO, and appends
14010 # trailing '-' during substitution so that $LINENO is not a special
14011 # case at line end.
14012 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14013 # scripts with optimization help from Paolo Bonzini. Blame Lee
14014 # E. McMahon (1931-1989) for sed's syntax. :-)
14015 sed -n '
14017 /[$]LINENO/=
14018 ' <$as_myself |
14019 sed '
14020 s/[$]LINENO.*/&-/
14021 t lineno
14023 :lineno
14025 :loop
14026 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14027 t loop
14028 s/-\n.*//
14029 ' >$as_me.lineno &&
14030 chmod +x "$as_me.lineno" ||
14031 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14032 { (exit 1); exit 1; }; }
14034 # Don't try to exec as it changes $[0], causing all sort of problems
14035 # (the dirname of $[0] is not the place where we might find the
14036 # original and so on. Autoconf is especially sensitive to this).
14037 . "./$as_me.lineno"
14038 # Exit status is that of the last command.
14039 exit
14043 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14044 as_dirname=dirname
14045 else
14046 as_dirname=false
14049 ECHO_C= ECHO_N= ECHO_T=
14050 case `echo -n x` in
14051 -n*)
14052 case `echo 'x\c'` in
14053 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14054 *) ECHO_C='\c';;
14055 esac;;
14057 ECHO_N='-n';;
14058 esac
14059 if expr a : '\(a\)' >/dev/null 2>&1 &&
14060 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14061 as_expr=expr
14062 else
14063 as_expr=false
14066 rm -f conf$$ conf$$.exe conf$$.file
14067 if test -d conf$$.dir; then
14068 rm -f conf$$.dir/conf$$.file
14069 else
14070 rm -f conf$$.dir
14071 mkdir conf$$.dir 2>/dev/null
14073 if (echo >conf$$.file) 2>/dev/null; then
14074 if ln -s conf$$.file conf$$ 2>/dev/null; then
14075 as_ln_s='ln -s'
14076 # ... but there are two gotchas:
14077 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14078 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14079 # In both cases, we have to default to `cp -p'.
14080 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14081 as_ln_s='cp -p'
14082 elif ln conf$$.file conf$$ 2>/dev/null; then
14083 as_ln_s=ln
14084 else
14085 as_ln_s='cp -p'
14087 else
14088 as_ln_s='cp -p'
14090 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14091 rmdir conf$$.dir 2>/dev/null
14093 if mkdir -p . 2>/dev/null; then
14094 as_mkdir_p=:
14095 else
14096 test -d ./-p && rmdir ./-p
14097 as_mkdir_p=false
14100 if test -x / >/dev/null 2>&1; then
14101 as_test_x='test -x'
14102 else
14103 if ls -dL / >/dev/null 2>&1; then
14104 as_ls_L_option=L
14105 else
14106 as_ls_L_option=
14108 as_test_x='
14109 eval sh -c '\''
14110 if test -d "$1"; then
14111 test -d "$1/.";
14112 else
14113 case $1 in
14114 -*)set "./$1";;
14115 esac;
14116 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14117 ???[sx]*):;;*)false;;esac;fi
14118 '\'' sh
14121 as_executable_p=$as_test_x
14123 # Sed expression to map a string onto a valid CPP name.
14124 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14126 # Sed expression to map a string onto a valid variable name.
14127 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14130 exec 6>&1
14132 # Save the log message, to keep $[0] and so on meaningful, and to
14133 # report actual input values of CONFIG_FILES etc. instead of their
14134 # values after options handling.
14135 ac_log="
14136 This file was extended by FreeType $as_me 2.3.7, which was
14137 generated by GNU Autoconf 2.62. Invocation command line was
14139 CONFIG_FILES = $CONFIG_FILES
14140 CONFIG_HEADERS = $CONFIG_HEADERS
14141 CONFIG_LINKS = $CONFIG_LINKS
14142 CONFIG_COMMANDS = $CONFIG_COMMANDS
14143 $ $0 $@
14145 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14148 _ACEOF
14150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14151 # Files that config.status was made for.
14152 config_files="$ac_config_files"
14153 config_headers="$ac_config_headers"
14154 config_commands="$ac_config_commands"
14156 _ACEOF
14158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14159 ac_cs_usage="\
14160 \`$as_me' instantiates files from templates according to the
14161 current configuration.
14163 Usage: $0 [OPTIONS] [FILE]...
14165 -h, --help print this help, then exit
14166 -V, --version print version number and configuration settings, then exit
14167 -q, --quiet do not print progress messages
14168 -d, --debug don't remove temporary files
14169 --recheck update $as_me by reconfiguring in the same conditions
14170 --file=FILE[:TEMPLATE]
14171 instantiate the configuration file FILE
14172 --header=FILE[:TEMPLATE]
14173 instantiate the configuration header FILE
14175 Configuration files:
14176 $config_files
14178 Configuration headers:
14179 $config_headers
14181 Configuration commands:
14182 $config_commands
14184 Report bugs to <bug-autoconf@gnu.org>."
14186 _ACEOF
14187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14188 ac_cs_version="\\
14189 FreeType config.status 2.3.7
14190 configured by $0, generated by GNU Autoconf 2.62,
14191 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14193 Copyright (C) 2008 Free Software Foundation, Inc.
14194 This config.status script is free software; the Free Software Foundation
14195 gives unlimited permission to copy, distribute and modify it."
14197 ac_pwd='$ac_pwd'
14198 srcdir='$srcdir'
14199 INSTALL='$INSTALL'
14200 test -n "\$AWK" || AWK=awk
14201 _ACEOF
14203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14204 # The default lists apply if the user does not specify any file.
14205 ac_need_defaults=:
14206 while test $# != 0
14208 case $1 in
14209 --*=*)
14210 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14211 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14212 ac_shift=:
14215 ac_option=$1
14216 ac_optarg=$2
14217 ac_shift=shift
14219 esac
14221 case $ac_option in
14222 # Handling of the options.
14223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14224 ac_cs_recheck=: ;;
14225 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14226 $as_echo "$ac_cs_version"; exit ;;
14227 --debug | --debu | --deb | --de | --d | -d )
14228 debug=: ;;
14229 --file | --fil | --fi | --f )
14230 $ac_shift
14231 case $ac_optarg in
14232 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14233 esac
14234 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14235 ac_need_defaults=false;;
14236 --header | --heade | --head | --hea )
14237 $ac_shift
14238 case $ac_optarg in
14239 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14240 esac
14241 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14242 ac_need_defaults=false;;
14243 --he | --h)
14244 # Conflict between --help and --header
14245 { $as_echo "$as_me: error: ambiguous option: $1
14246 Try \`$0 --help' for more information." >&2
14247 { (exit 1); exit 1; }; };;
14248 --help | --hel | -h )
14249 $as_echo "$ac_cs_usage"; exit ;;
14250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14251 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14252 ac_cs_silent=: ;;
14254 # This is an error.
14255 -*) { $as_echo "$as_me: error: unrecognized option: $1
14256 Try \`$0 --help' for more information." >&2
14257 { (exit 1); exit 1; }; } ;;
14259 *) ac_config_targets="$ac_config_targets $1"
14260 ac_need_defaults=false ;;
14262 esac
14263 shift
14264 done
14266 ac_configure_extra_args=
14268 if $ac_cs_silent; then
14269 exec 6>/dev/null
14270 ac_configure_extra_args="$ac_configure_extra_args --silent"
14273 _ACEOF
14274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14275 if \$ac_cs_recheck; then
14276 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14277 shift
14278 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14279 CONFIG_SHELL='$SHELL'
14280 export CONFIG_SHELL
14281 exec "\$@"
14284 _ACEOF
14285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14286 exec 5>>config.log
14288 echo
14289 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14290 ## Running $as_me. ##
14291 _ASBOX
14292 $as_echo "$ac_log"
14293 } >&5
14295 _ACEOF
14296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14298 # INIT-COMMANDS
14302 # The HP-UX ksh and POSIX shell print the target directory to stdout
14303 # if CDPATH is set.
14304 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14306 sed_quote_subst='$sed_quote_subst'
14307 double_quote_subst='$double_quote_subst'
14308 delay_variable_subst='$delay_variable_subst'
14309 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14310 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14311 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14312 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14313 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14314 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14315 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14316 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14317 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14318 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14319 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14320 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14321 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14322 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14323 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14324 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14325 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14326 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14327 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14328 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14329 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14330 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14331 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14332 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14333 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14334 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14335 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14336 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14337 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14338 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14339 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14340 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14341 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14342 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14343 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14344 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14345 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14346 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14347 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14348 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14349 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14350 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14351 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14352 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14353 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14354 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14355 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14356 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14357 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14358 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14359 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14360 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14361 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14362 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14363 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14364 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14365 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14366 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14367 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14368 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14369 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14370 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14371 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14372 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14373 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14374 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14375 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14376 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14377 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14378 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14379 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14380 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14381 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14382 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14383 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14384 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14385 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14386 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14387 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14388 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14389 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14390 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14391 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14392 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14393 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14394 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14395 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14396 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14397 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14398 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14399 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14400 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14401 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14402 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14403 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14404 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14405 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14406 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14407 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14408 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14409 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14410 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14411 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14412 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14413 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14414 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14415 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14416 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14417 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14418 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14419 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14420 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14421 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14422 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14423 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14424 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14425 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14426 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14427 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14428 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14430 LTCC='$LTCC'
14431 LTCFLAGS='$LTCFLAGS'
14432 compiler='$compiler_DEFAULT'
14434 # Quote evaled strings.
14435 for var in SED \
14436 GREP \
14437 EGREP \
14438 FGREP \
14439 LD \
14440 NM \
14441 LN_S \
14442 lt_SP2NL \
14443 lt_NL2SP \
14444 reload_flag \
14445 deplibs_check_method \
14446 file_magic_cmd \
14447 AR \
14448 AR_FLAGS \
14449 STRIP \
14450 RANLIB \
14451 CC \
14452 CFLAGS \
14453 compiler \
14454 lt_cv_sys_global_symbol_pipe \
14455 lt_cv_sys_global_symbol_to_cdecl \
14456 lt_cv_sys_global_symbol_to_c_name_address \
14457 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14458 SHELL \
14459 ECHO \
14460 lt_prog_compiler_no_builtin_flag \
14461 lt_prog_compiler_wl \
14462 lt_prog_compiler_pic \
14463 lt_prog_compiler_static \
14464 lt_cv_prog_compiler_c_o \
14465 need_locks \
14466 DSYMUTIL \
14467 NMEDIT \
14468 LIPO \
14469 OTOOL \
14470 OTOOL64 \
14471 shrext_cmds \
14472 export_dynamic_flag_spec \
14473 whole_archive_flag_spec \
14474 compiler_needs_object \
14475 with_gnu_ld \
14476 allow_undefined_flag \
14477 no_undefined_flag \
14478 hardcode_libdir_flag_spec \
14479 hardcode_libdir_flag_spec_ld \
14480 hardcode_libdir_separator \
14481 fix_srcfile_path \
14482 exclude_expsyms \
14483 include_expsyms \
14484 file_list_spec \
14485 variables_saved_for_relink \
14486 libname_spec \
14487 library_names_spec \
14488 soname_spec \
14489 finish_eval \
14490 old_striplib \
14491 striplib; do
14492 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14493 *[\\\\\\\`\\"\\\$]*)
14494 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14497 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14499 esac
14500 done
14502 # Double-quote double-evaled strings.
14503 for var in reload_cmds \
14504 old_postinstall_cmds \
14505 old_postuninstall_cmds \
14506 old_archive_cmds \
14507 extract_expsyms_cmds \
14508 old_archive_from_new_cmds \
14509 old_archive_from_expsyms_cmds \
14510 archive_cmds \
14511 archive_expsym_cmds \
14512 module_cmds \
14513 module_expsym_cmds \
14514 export_symbols_cmds \
14515 prelink_cmds \
14516 postinstall_cmds \
14517 postuninstall_cmds \
14518 finish_cmds \
14519 sys_lib_search_path_spec \
14520 sys_lib_dlsearch_path_spec; do
14521 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14522 *[\\\\\\\`\\"\\\$]*)
14523 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14526 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14528 esac
14529 done
14531 # Fix-up fallback echo if it was mangled by the above quoting rules.
14532 case \$lt_ECHO in
14533 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14535 esac
14537 ac_aux_dir='$ac_aux_dir'
14538 xsi_shell='$xsi_shell'
14539 lt_shell_append='$lt_shell_append'
14541 # See if we are running on zsh, and set the options which allow our
14542 # commands through without removal of \ escapes INIT.
14543 if test -n "\${ZSH_VERSION+set}" ; then
14544 setopt NO_GLOB_SUBST
14548 PACKAGE='$PACKAGE'
14549 VERSION='$VERSION'
14550 TIMESTAMP='$TIMESTAMP'
14551 RM='$RM'
14552 ofile='$ofile'
14557 _ACEOF
14559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14561 # Handling of arguments.
14562 for ac_config_target in $ac_config_targets
14564 case $ac_config_target in
14565 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14566 "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h:ftconfig.in" ;;
14567 "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
14568 "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
14569 "freetype-config") CONFIG_FILES="$CONFIG_FILES freetype-config" ;;
14570 "freetype2.pc") CONFIG_FILES="$CONFIG_FILES freetype2.pc:freetype2.in" ;;
14572 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14573 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14574 { (exit 1); exit 1; }; };;
14575 esac
14576 done
14579 # If the user did not use the arguments to specify the items to instantiate,
14580 # then the envvar interface is used. Set only those that are not.
14581 # We use the long form for the default assignment because of an extremely
14582 # bizarre bug on SunOS 4.1.3.
14583 if $ac_need_defaults; then
14584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14586 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14589 # Have a temporary directory for convenience. Make it in the build tree
14590 # simply because there is no reason against having it here, and in addition,
14591 # creating and moving files from /tmp can sometimes cause problems.
14592 # Hook for its removal unless debugging.
14593 # Note that there is a small window in which the directory will not be cleaned:
14594 # after its creation but before its name has been assigned to `$tmp'.
14595 $debug ||
14597 tmp=
14598 trap 'exit_status=$?
14599 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14601 trap '{ (exit 1); exit 1; }' 1 2 13 15
14603 # Create a (secure) tmp directory for tmp files.
14606 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14607 test -n "$tmp" && test -d "$tmp"
14608 } ||
14610 tmp=./conf$$-$RANDOM
14611 (umask 077 && mkdir "$tmp")
14612 } ||
14614 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14615 { (exit 1); exit 1; }
14618 # Set up the scripts for CONFIG_FILES section.
14619 # No need to generate them if there are no CONFIG_FILES.
14620 # This happens for instance with `./config.status config.h'.
14621 if test -n "$CONFIG_FILES"; then
14624 ac_cr=' '
14625 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14626 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14627 ac_cs_awk_cr='\\r'
14628 else
14629 ac_cs_awk_cr=$ac_cr
14632 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14633 _ACEOF
14637 echo "cat >conf$$subs.awk <<_ACEOF" &&
14638 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14639 echo "_ACEOF"
14640 } >conf$$subs.sh ||
14641 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14642 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14643 { (exit 1); exit 1; }; }
14644 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14645 ac_delim='%!_!# '
14646 for ac_last_try in false false false false false :; do
14647 . ./conf$$subs.sh ||
14648 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14649 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14650 { (exit 1); exit 1; }; }
14652 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14653 break
14654 elif $ac_last_try; then
14655 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14656 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14657 { (exit 1); exit 1; }; }
14658 else
14659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14661 done
14662 rm -f conf$$subs.sh
14664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14665 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14666 _ACEOF
14667 sed -n '
14669 s/^/S["/; s/!.*/"]=/
14672 s/^[^!]*!//
14673 :repl
14674 t repl
14675 s/'"$ac_delim"'$//
14676 t delim
14679 s/\(.\{148\}\).*/\1/
14680 t more1
14681 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14684 b repl
14685 :more1
14686 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14689 s/.\{148\}//
14690 t nl
14691 :delim
14693 s/\(.\{148\}\).*/\1/
14694 t more2
14695 s/["\\]/\\&/g; s/^/"/; s/$/"/
14698 :more2
14699 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14702 s/.\{148\}//
14703 t delim
14704 ' <conf$$subs.awk | sed '
14705 /^[^""]/{
14707 s/\n//
14709 ' >>$CONFIG_STATUS || ac_write_fail=1
14710 rm -f conf$$subs.awk
14711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14712 _ACAWK
14713 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14714 for (key in S) S_is_set[key] = 1
14715 FS = "\a"
14719 line = $ 0
14720 nfields = split(line, field, "@")
14721 substed = 0
14722 len = length(field[1])
14723 for (i = 2; i < nfields; i++) {
14724 key = field[i]
14725 keylen = length(key)
14726 if (S_is_set[key]) {
14727 value = S[key]
14728 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14729 len += length(value) + length(field[++i])
14730 substed = 1
14731 } else
14732 len += 1 + keylen
14735 print line
14738 _ACAWK
14739 _ACEOF
14740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14741 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14742 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14743 else
14745 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14746 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14747 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14748 { (exit 1); exit 1; }; }
14749 _ACEOF
14751 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14752 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14753 # trailing colons and then remove the whole line if VPATH becomes empty
14754 # (actually we leave an empty line to preserve line numbers).
14755 if test "x$srcdir" = x.; then
14756 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14757 s/:*\$(srcdir):*/:/
14758 s/:*\${srcdir}:*/:/
14759 s/:*@srcdir@:*/:/
14760 s/^\([^=]*=[ ]*\):*/\1/
14761 s/:*$//
14762 s/^[^=]*=[ ]*$//
14766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14767 fi # test -n "$CONFIG_FILES"
14769 # Set up the scripts for CONFIG_HEADERS section.
14770 # No need to generate them if there are no CONFIG_HEADERS.
14771 # This happens for instance with `./config.status Makefile'.
14772 if test -n "$CONFIG_HEADERS"; then
14773 cat >"$tmp/defines.awk" <<\_ACAWK ||
14774 BEGIN {
14775 _ACEOF
14777 # Transform confdefs.h into an awk script `defines.awk', embedded as
14778 # here-document in config.status, that substitutes the proper values into
14779 # config.h.in to produce config.h.
14781 # Create a delimiter string that does not exist in confdefs.h, to ease
14782 # handling of long lines.
14783 ac_delim='%!_!# '
14784 for ac_last_try in false false :; do
14785 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14786 if test -z "$ac_t"; then
14787 break
14788 elif $ac_last_try; then
14789 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14790 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14791 { (exit 1); exit 1; }; }
14792 else
14793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14795 done
14797 # For the awk script, D is an array of macro values keyed by name,
14798 # likewise P contains macro parameters if any. Preserve backslash
14799 # newline sequences.
14801 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14802 sed -n '
14803 s/.\{148\}/&'"$ac_delim"'/g
14804 t rset
14805 :rset
14806 s/^[ ]*#[ ]*define[ ][ ]*/ /
14807 t def
14809 :def
14810 s/\\$//
14811 t bsnl
14812 s/["\\]/\\&/g
14813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14814 D["\1"]=" \3"/p
14815 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14817 :bsnl
14818 s/["\\]/\\&/g
14819 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14820 D["\1"]=" \3\\\\\\n"\\/p
14821 t cont
14822 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14823 t cont
14825 :cont
14827 s/.\{148\}/&'"$ac_delim"'/g
14828 t clear
14829 :clear
14830 s/\\$//
14831 t bsnlc
14832 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14834 :bsnlc
14835 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14836 b cont
14837 ' <confdefs.h | sed '
14838 s/'"$ac_delim"'/"\\\
14839 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14842 for (key in D) D_is_set[key] = 1
14843 FS = "\a"
14845 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14846 line = \$ 0
14847 split(line, arg, " ")
14848 if (arg[1] == "#") {
14849 defundef = arg[2]
14850 mac1 = arg[3]
14851 } else {
14852 defundef = substr(arg[1], 2)
14853 mac1 = arg[2]
14855 split(mac1, mac2, "(") #)
14856 macro = mac2[1]
14857 if (D_is_set[macro]) {
14858 # Preserve the white space surrounding the "#".
14859 prefix = substr(line, 1, index(line, defundef) - 1)
14860 print prefix "define", macro P[macro] D[macro]
14861 next
14862 } else {
14863 # Replace #undef with comments. This is necessary, for example,
14864 # in the case of _POSIX_SOURCE, which is predefined and required
14865 # on some systems where configure will not decide to define it.
14866 if (defundef == "undef") {
14867 print "/*", line, "*/"
14868 next
14872 { print }
14873 _ACAWK
14874 _ACEOF
14875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14876 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14877 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14878 { (exit 1); exit 1; }; }
14879 fi # test -n "$CONFIG_HEADERS"
14882 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14883 shift
14884 for ac_tag
14886 case $ac_tag in
14887 :[FHLC]) ac_mode=$ac_tag; continue;;
14888 esac
14889 case $ac_mode$ac_tag in
14890 :[FHL]*:*);;
14891 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14892 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14893 { (exit 1); exit 1; }; };;
14894 :[FH]-) ac_tag=-:-;;
14895 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14896 esac
14897 ac_save_IFS=$IFS
14898 IFS=:
14899 set x $ac_tag
14900 IFS=$ac_save_IFS
14901 shift
14902 ac_file=$1
14903 shift
14905 case $ac_mode in
14906 :L) ac_source=$1;;
14907 :[FH])
14908 ac_file_inputs=
14909 for ac_f
14911 case $ac_f in
14912 -) ac_f="$tmp/stdin";;
14913 *) # Look for the file first in the build tree, then in the source tree
14914 # (if the path is not absolute). The absolute path cannot be DOS-style,
14915 # because $ac_f cannot contain `:'.
14916 test -f "$ac_f" ||
14917 case $ac_f in
14918 [\\/$]*) false;;
14919 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14920 esac ||
14921 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14922 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14923 { (exit 1); exit 1; }; };;
14924 esac
14925 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14926 ac_file_inputs="$ac_file_inputs '$ac_f'"
14927 done
14929 # Let's still pretend it is `configure' which instantiates (i.e., don't
14930 # use $as_me), people would be surprised to read:
14931 # /* config.h. Generated by config.status. */
14932 configure_input='Generated from '`
14933 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14934 `' by configure.'
14935 if test x"$ac_file" != x-; then
14936 configure_input="$ac_file. $configure_input"
14937 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14938 $as_echo "$as_me: creating $ac_file" >&6;}
14940 # Neutralize special characters interpreted by sed in replacement strings.
14941 case $configure_input in #(
14942 *\&* | *\|* | *\\* )
14943 ac_sed_conf_input=`$as_echo "$configure_input" |
14944 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14945 *) ac_sed_conf_input=$configure_input;;
14946 esac
14948 case $ac_tag in
14949 *:-:* | *:-) cat >"$tmp/stdin" \
14950 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14951 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14952 { (exit 1); exit 1; }; } ;;
14953 esac
14955 esac
14957 ac_dir=`$as_dirname -- "$ac_file" ||
14958 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14959 X"$ac_file" : 'X\(//\)[^/]' \| \
14960 X"$ac_file" : 'X\(//\)$' \| \
14961 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14962 $as_echo X"$ac_file" |
14963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14964 s//\1/
14967 /^X\(\/\/\)[^/].*/{
14968 s//\1/
14971 /^X\(\/\/\)$/{
14972 s//\1/
14975 /^X\(\/\).*/{
14976 s//\1/
14979 s/.*/./; q'`
14980 { as_dir="$ac_dir"
14981 case $as_dir in #(
14982 -*) as_dir=./$as_dir;;
14983 esac
14984 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14985 as_dirs=
14986 while :; do
14987 case $as_dir in #(
14988 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14989 *) as_qdir=$as_dir;;
14990 esac
14991 as_dirs="'$as_qdir' $as_dirs"
14992 as_dir=`$as_dirname -- "$as_dir" ||
14993 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14994 X"$as_dir" : 'X\(//\)[^/]' \| \
14995 X"$as_dir" : 'X\(//\)$' \| \
14996 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14997 $as_echo X"$as_dir" |
14998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14999 s//\1/
15002 /^X\(\/\/\)[^/].*/{
15003 s//\1/
15006 /^X\(\/\/\)$/{
15007 s//\1/
15010 /^X\(\/\).*/{
15011 s//\1/
15014 s/.*/./; q'`
15015 test -d "$as_dir" && break
15016 done
15017 test -z "$as_dirs" || eval "mkdir $as_dirs"
15018 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15019 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15020 { (exit 1); exit 1; }; }; }
15021 ac_builddir=.
15023 case "$ac_dir" in
15024 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15026 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15027 # A ".." for each directory in $ac_dir_suffix.
15028 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15029 case $ac_top_builddir_sub in
15030 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15031 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15032 esac ;;
15033 esac
15034 ac_abs_top_builddir=$ac_pwd
15035 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15036 # for backward compatibility:
15037 ac_top_builddir=$ac_top_build_prefix
15039 case $srcdir in
15040 .) # We are building in place.
15041 ac_srcdir=.
15042 ac_top_srcdir=$ac_top_builddir_sub
15043 ac_abs_top_srcdir=$ac_pwd ;;
15044 [\\/]* | ?:[\\/]* ) # Absolute name.
15045 ac_srcdir=$srcdir$ac_dir_suffix;
15046 ac_top_srcdir=$srcdir
15047 ac_abs_top_srcdir=$srcdir ;;
15048 *) # Relative name.
15049 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15050 ac_top_srcdir=$ac_top_build_prefix$srcdir
15051 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15052 esac
15053 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15056 case $ac_mode in
15059 # CONFIG_FILE
15062 case $INSTALL in
15063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15064 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15065 esac
15066 _ACEOF
15068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15069 # If the template does not know about datarootdir, expand it.
15070 # FIXME: This hack should be removed a few years after 2.60.
15071 ac_datarootdir_hack=; ac_datarootdir_seen=
15073 ac_sed_dataroot='
15074 /datarootdir/ {
15078 /@datadir@/p
15079 /@docdir@/p
15080 /@infodir@/p
15081 /@localedir@/p
15082 /@mandir@/p
15084 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15085 *datarootdir*) ac_datarootdir_seen=yes;;
15086 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15087 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15088 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15089 _ACEOF
15090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15091 ac_datarootdir_hack='
15092 s&@datadir@&$datadir&g
15093 s&@docdir@&$docdir&g
15094 s&@infodir@&$infodir&g
15095 s&@localedir@&$localedir&g
15096 s&@mandir@&$mandir&g
15097 s&\\\${datarootdir}&$datarootdir&g' ;;
15098 esac
15099 _ACEOF
15101 # Neutralize VPATH when `$srcdir' = `.'.
15102 # Shell code in configure.ac might set extrasub.
15103 # FIXME: do we really want to maintain this feature?
15104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15105 ac_sed_extra="$ac_vpsub
15106 $extrasub
15107 _ACEOF
15108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15111 s|@configure_input@|$ac_sed_conf_input|;t t
15112 s&@top_builddir@&$ac_top_builddir_sub&;t t
15113 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15114 s&@srcdir@&$ac_srcdir&;t t
15115 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15116 s&@top_srcdir@&$ac_top_srcdir&;t t
15117 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15118 s&@builddir@&$ac_builddir&;t t
15119 s&@abs_builddir@&$ac_abs_builddir&;t t
15120 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15121 s&@INSTALL@&$ac_INSTALL&;t t
15122 $ac_datarootdir_hack
15124 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15125 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15126 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15127 { (exit 1); exit 1; }; }
15129 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15130 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15131 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15132 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15133 which seems to be undefined. Please make sure it is defined." >&5
15134 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15135 which seems to be undefined. Please make sure it is defined." >&2;}
15137 rm -f "$tmp/stdin"
15138 case $ac_file in
15139 -) cat "$tmp/out" && rm -f "$tmp/out";;
15140 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15141 esac \
15142 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15143 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15144 { (exit 1); exit 1; }; }
15148 # CONFIG_HEADER
15150 if test x"$ac_file" != x-; then
15152 $as_echo "/* $configure_input */" \
15153 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15154 } >"$tmp/config.h" \
15155 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15156 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15157 { (exit 1); exit 1; }; }
15158 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15159 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15160 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15161 else
15162 rm -f "$ac_file"
15163 mv "$tmp/config.h" "$ac_file" \
15164 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15165 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15166 { (exit 1); exit 1; }; }
15168 else
15169 $as_echo "/* $configure_input */" \
15170 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15171 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15172 $as_echo "$as_me: error: could not create -" >&2;}
15173 { (exit 1); exit 1; }; }
15177 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15178 $as_echo "$as_me: executing $ac_file commands" >&6;}
15180 esac
15183 case $ac_file$ac_mode in
15184 "libtool":C)
15186 # See if we are running on zsh, and set the options which allow our
15187 # commands through without removal of \ escapes.
15188 if test -n "${ZSH_VERSION+set}" ; then
15189 setopt NO_GLOB_SUBST
15192 cfgfile="${ofile}T"
15193 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15194 $RM "$cfgfile"
15196 cat <<_LT_EOF >> "$cfgfile"
15197 #! $SHELL
15199 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15200 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15201 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15202 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15204 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15205 # 2006, 2007, 2008 Free Software Foundation, Inc.
15206 # Written by Gordon Matzigkeit, 1996
15208 # This file is part of GNU Libtool.
15210 # GNU Libtool is free software; you can redistribute it and/or
15211 # modify it under the terms of the GNU General Public License as
15212 # published by the Free Software Foundation; either version 2 of
15213 # the License, or (at your option) any later version.
15215 # As a special exception to the GNU General Public License,
15216 # if you distribute this file as part of a program or library that
15217 # is built using GNU Libtool, you may include this file under the
15218 # same distribution terms that you use for the rest of that program.
15220 # GNU Libtool is distributed in the hope that it will be useful,
15221 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15222 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15223 # GNU General Public License for more details.
15225 # You should have received a copy of the GNU General Public License
15226 # along with GNU Libtool; see the file COPYING. If not, a copy
15227 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15228 # obtained by writing to the Free Software Foundation, Inc.,
15229 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15232 # The names of the tagged configurations supported by this script.
15233 available_tags=""
15235 # ### BEGIN LIBTOOL CONFIG
15237 # Which release of libtool.m4 was used?
15238 macro_version=$macro_version
15239 macro_revision=$macro_revision
15241 # Assembler program.
15242 AS=$AS
15244 # DLL creation program.
15245 DLLTOOL=$DLLTOOL
15247 # Object dumper program.
15248 OBJDUMP=$OBJDUMP
15250 # Whether or not to build shared libraries.
15251 build_libtool_libs=$enable_shared
15253 # Whether or not to build static libraries.
15254 build_old_libs=$enable_static
15256 # What type of objects to build.
15257 pic_mode=$pic_mode
15259 # Whether or not to optimize for fast installation.
15260 fast_install=$enable_fast_install
15262 # The host system.
15263 host_alias=$host_alias
15264 host=$host
15265 host_os=$host_os
15267 # The build system.
15268 build_alias=$build_alias
15269 build=$build
15270 build_os=$build_os
15272 # A sed program that does not truncate output.
15273 SED=$lt_SED
15275 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15276 Xsed="\$SED -e 1s/^X//"
15278 # A grep program that handles long lines.
15279 GREP=$lt_GREP
15281 # An ERE matcher.
15282 EGREP=$lt_EGREP
15284 # A literal string matcher.
15285 FGREP=$lt_FGREP
15287 # A BSD- or MS-compatible name lister.
15288 NM=$lt_NM
15290 # Whether we need soft or hard links.
15291 LN_S=$lt_LN_S
15293 # What is the maximum length of a command?
15294 max_cmd_len=$max_cmd_len
15296 # Object file suffix (normally "o").
15297 objext=$ac_objext
15299 # Executable file suffix (normally "").
15300 exeext=$exeext
15302 # whether the shell understands "unset".
15303 lt_unset=$lt_unset
15305 # turn spaces into newlines.
15306 SP2NL=$lt_lt_SP2NL
15308 # turn newlines into spaces.
15309 NL2SP=$lt_lt_NL2SP
15311 # How to create reloadable object files.
15312 reload_flag=$lt_reload_flag
15313 reload_cmds=$lt_reload_cmds
15315 # Method to check whether dependent libraries are shared objects.
15316 deplibs_check_method=$lt_deplibs_check_method
15318 # Command to use when deplibs_check_method == "file_magic".
15319 file_magic_cmd=$lt_file_magic_cmd
15321 # The archiver.
15322 AR=$lt_AR
15323 AR_FLAGS=$lt_AR_FLAGS
15325 # A symbol stripping program.
15326 STRIP=$lt_STRIP
15328 # Commands used to install an old-style archive.
15329 RANLIB=$lt_RANLIB
15330 old_postinstall_cmds=$lt_old_postinstall_cmds
15331 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15333 # A C compiler.
15334 LTCC=$lt_CC
15336 # LTCC compiler flags.
15337 LTCFLAGS=$lt_CFLAGS
15339 # Take the output of nm and produce a listing of raw symbols and C names.
15340 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15342 # Transform the output of nm in a proper C declaration.
15343 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15345 # Transform the output of nm in a C name address pair.
15346 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15348 # Transform the output of nm in a C name address pair when lib prefix is needed.
15349 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15351 # The name of the directory that contains temporary libtool files.
15352 objdir=$objdir
15354 # Shell to use when invoking shell scripts.
15355 SHELL=$lt_SHELL
15357 # An echo program that does not interpret backslashes.
15358 ECHO=$lt_ECHO
15360 # Used to examine libraries when file_magic_cmd begins with "file".
15361 MAGIC_CMD=$MAGIC_CMD
15363 # Must we lock files when doing compilation?
15364 need_locks=$lt_need_locks
15366 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15367 DSYMUTIL=$lt_DSYMUTIL
15369 # Tool to change global to local symbols on Mac OS X.
15370 NMEDIT=$lt_NMEDIT
15372 # Tool to manipulate fat objects and archives on Mac OS X.
15373 LIPO=$lt_LIPO
15375 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15376 OTOOL=$lt_OTOOL
15378 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15379 OTOOL64=$lt_OTOOL64
15381 # Old archive suffix (normally "a").
15382 libext=$libext
15384 # Shared library suffix (normally ".so").
15385 shrext_cmds=$lt_shrext_cmds
15387 # The commands to extract the exported symbol list from a shared archive.
15388 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15390 # Variables whose values should be saved in libtool wrapper scripts and
15391 # restored at link time.
15392 variables_saved_for_relink=$lt_variables_saved_for_relink
15394 # Do we need the "lib" prefix for modules?
15395 need_lib_prefix=$need_lib_prefix
15397 # Do we need a version for libraries?
15398 need_version=$need_version
15400 # Library versioning type.
15401 version_type=$version_type
15403 # Shared library runtime path variable.
15404 runpath_var=$runpath_var
15406 # Shared library path variable.
15407 shlibpath_var=$shlibpath_var
15409 # Is shlibpath searched before the hard-coded library search path?
15410 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15412 # Format of library name prefix.
15413 libname_spec=$lt_libname_spec
15415 # List of archive names. First name is the real one, the rest are links.
15416 # The last name is the one that the linker finds with -lNAME
15417 library_names_spec=$lt_library_names_spec
15419 # The coded name of the library, if different from the real name.
15420 soname_spec=$lt_soname_spec
15422 # Command to use after installation of a shared archive.
15423 postinstall_cmds=$lt_postinstall_cmds
15425 # Command to use after uninstallation of a shared archive.
15426 postuninstall_cmds=$lt_postuninstall_cmds
15428 # Commands used to finish a libtool library installation in a directory.
15429 finish_cmds=$lt_finish_cmds
15431 # As "finish_cmds", except a single script fragment to be evaled but
15432 # not shown.
15433 finish_eval=$lt_finish_eval
15435 # Whether we should hardcode library paths into libraries.
15436 hardcode_into_libs=$hardcode_into_libs
15438 # Compile-time system search path for libraries.
15439 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15441 # Run-time system search path for libraries.
15442 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15444 # Whether dlopen is supported.
15445 dlopen_support=$enable_dlopen
15447 # Whether dlopen of programs is supported.
15448 dlopen_self=$enable_dlopen_self
15450 # Whether dlopen of statically linked programs is supported.
15451 dlopen_self_static=$enable_dlopen_self_static
15453 # Commands to strip libraries.
15454 old_striplib=$lt_old_striplib
15455 striplib=$lt_striplib
15458 # The linker used to build libraries.
15459 LD=$lt_LD
15461 # Commands used to build an old-style archive.
15462 old_archive_cmds=$lt_old_archive_cmds
15464 # A language specific compiler.
15465 CC=$lt_compiler
15467 # Is the compiler the GNU compiler?
15468 with_gcc=$GCC
15470 # Compiler flag to turn off builtin functions.
15471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15473 # How to pass a linker flag through the compiler.
15474 wl=$lt_lt_prog_compiler_wl
15476 # Additional compiler flags for building library objects.
15477 pic_flag=$lt_lt_prog_compiler_pic
15479 # Compiler flag to prevent dynamic linking.
15480 link_static_flag=$lt_lt_prog_compiler_static
15482 # Does compiler simultaneously support -c and -o options?
15483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15485 # Whether or not to add -lc for building shared libraries.
15486 build_libtool_need_lc=$archive_cmds_need_lc
15488 # Whether or not to disallow shared libs when runtime libs are static.
15489 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15491 # Compiler flag to allow reflexive dlopens.
15492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15494 # Compiler flag to generate shared objects directly from archives.
15495 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15497 # Whether the compiler copes with passing no objects directly.
15498 compiler_needs_object=$lt_compiler_needs_object
15500 # Create an old-style archive from a shared archive.
15501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15503 # Create a temporary old-style archive to link instead of a shared archive.
15504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15506 # Commands used to build a shared archive.
15507 archive_cmds=$lt_archive_cmds
15508 archive_expsym_cmds=$lt_archive_expsym_cmds
15510 # Commands used to build a loadable module if different from building
15511 # a shared archive.
15512 module_cmds=$lt_module_cmds
15513 module_expsym_cmds=$lt_module_expsym_cmds
15515 # Whether we are building with GNU ld or not.
15516 with_gnu_ld=$lt_with_gnu_ld
15518 # Flag that allows shared libraries with undefined symbols to be built.
15519 allow_undefined_flag=$lt_allow_undefined_flag
15521 # Flag that enforces no undefined symbols.
15522 no_undefined_flag=$lt_no_undefined_flag
15524 # Flag to hardcode \$libdir into a binary during linking.
15525 # This must work even if \$libdir does not exist
15526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15528 # If ld is used when linking, flag to hardcode \$libdir into a binary
15529 # during linking. This must work even if \$libdir does not exist.
15530 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15532 # Whether we need a single "-rpath" flag with a separated argument.
15533 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15535 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15536 # DIR into the resulting binary.
15537 hardcode_direct=$hardcode_direct
15539 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15540 # DIR into the resulting binary and the resulting library dependency is
15541 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15542 # library is relocated.
15543 hardcode_direct_absolute=$hardcode_direct_absolute
15545 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15546 # into the resulting binary.
15547 hardcode_minus_L=$hardcode_minus_L
15549 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15550 # into the resulting binary.
15551 hardcode_shlibpath_var=$hardcode_shlibpath_var
15553 # Set to "yes" if building a shared library automatically hardcodes DIR
15554 # into the library and all subsequent libraries and executables linked
15555 # against it.
15556 hardcode_automatic=$hardcode_automatic
15558 # Set to yes if linker adds runtime paths of dependent libraries
15559 # to runtime path list.
15560 inherit_rpath=$inherit_rpath
15562 # Whether libtool must link a program against all its dependency libraries.
15563 link_all_deplibs=$link_all_deplibs
15565 # Fix the shell variable \$srcfile for the compiler.
15566 fix_srcfile_path=$lt_fix_srcfile_path
15568 # Set to "yes" if exported symbols are required.
15569 always_export_symbols=$always_export_symbols
15571 # The commands to list exported symbols.
15572 export_symbols_cmds=$lt_export_symbols_cmds
15574 # Symbols that should not be listed in the preloaded symbols.
15575 exclude_expsyms=$lt_exclude_expsyms
15577 # Symbols that must always be exported.
15578 include_expsyms=$lt_include_expsyms
15580 # Commands necessary for linking programs (against libraries) with templates.
15581 prelink_cmds=$lt_prelink_cmds
15583 # Specify filename containing input files.
15584 file_list_spec=$lt_file_list_spec
15586 # How to hardcode a shared library path into an executable.
15587 hardcode_action=$hardcode_action
15589 # ### END LIBTOOL CONFIG
15591 _LT_EOF
15593 case $host_os in
15594 aix3*)
15595 cat <<\_LT_EOF >> "$cfgfile"
15596 # AIX sometimes has problems with the GCC collect2 program. For some
15597 # reason, if we set the COLLECT_NAMES environment variable, the problems
15598 # vanish in a puff of smoke.
15599 if test "X${COLLECT_NAMES+set}" != Xset; then
15600 COLLECT_NAMES=
15601 export COLLECT_NAMES
15603 _LT_EOF
15605 esac
15608 ltmain="$ac_aux_dir/ltmain.sh"
15611 # We use sed instead of cat because bash on DJGPP gets confused if
15612 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15613 # text mode, it properly converts lines to CR/LF. This bash problem
15614 # is reportedly fixed, but why not run on old versions too?
15615 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15616 || (rm -f "$cfgfile"; exit 1)
15618 case $xsi_shell in
15619 yes)
15620 cat << \_LT_EOF >> "$cfgfile"
15622 # func_dirname file append nondir_replacement
15623 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15624 # otherwise set result to NONDIR_REPLACEMENT.
15625 func_dirname ()
15627 case ${1} in
15628 */*) func_dirname_result="${1%/*}${2}" ;;
15629 * ) func_dirname_result="${3}" ;;
15630 esac
15633 # func_basename file
15634 func_basename ()
15636 func_basename_result="${1##*/}"
15639 # func_dirname_and_basename file append nondir_replacement
15640 # perform func_basename and func_dirname in a single function
15641 # call:
15642 # dirname: Compute the dirname of FILE. If nonempty,
15643 # add APPEND to the result, otherwise set result
15644 # to NONDIR_REPLACEMENT.
15645 # value returned in "$func_dirname_result"
15646 # basename: Compute filename of FILE.
15647 # value retuned in "$func_basename_result"
15648 # Implementation must be kept synchronized with func_dirname
15649 # and func_basename. For efficiency, we do not delegate to
15650 # those functions but instead duplicate the functionality here.
15651 func_dirname_and_basename ()
15653 case ${1} in
15654 */*) func_dirname_result="${1%/*}${2}" ;;
15655 * ) func_dirname_result="${3}" ;;
15656 esac
15657 func_basename_result="${1##*/}"
15660 # func_stripname prefix suffix name
15661 # strip PREFIX and SUFFIX off of NAME.
15662 # PREFIX and SUFFIX must not contain globbing or regex special
15663 # characters, hashes, percent signs, but SUFFIX may contain a leading
15664 # dot (in which case that matches only a dot).
15665 func_stripname ()
15667 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15668 # positional parameters, so assign one to ordinary parameter first.
15669 func_stripname_result=${3}
15670 func_stripname_result=${func_stripname_result#"${1}"}
15671 func_stripname_result=${func_stripname_result%"${2}"}
15674 # func_opt_split
15675 func_opt_split ()
15677 func_opt_split_opt=${1%%=*}
15678 func_opt_split_arg=${1#*=}
15681 # func_lo2o object
15682 func_lo2o ()
15684 case ${1} in
15685 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15686 *) func_lo2o_result=${1} ;;
15687 esac
15690 # func_xform libobj-or-source
15691 func_xform ()
15693 func_xform_result=${1%.*}.lo
15696 # func_arith arithmetic-term...
15697 func_arith ()
15699 func_arith_result=$(( $* ))
15702 # func_len string
15703 # STRING may not start with a hyphen.
15704 func_len ()
15706 func_len_result=${#1}
15709 _LT_EOF
15711 *) # Bourne compatible functions.
15712 cat << \_LT_EOF >> "$cfgfile"
15714 # func_dirname file append nondir_replacement
15715 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15716 # otherwise set result to NONDIR_REPLACEMENT.
15717 func_dirname ()
15719 # Extract subdirectory from the argument.
15720 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15721 if test "X$func_dirname_result" = "X${1}"; then
15722 func_dirname_result="${3}"
15723 else
15724 func_dirname_result="$func_dirname_result${2}"
15728 # func_basename file
15729 func_basename ()
15731 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15735 # func_stripname prefix suffix name
15736 # strip PREFIX and SUFFIX off of NAME.
15737 # PREFIX and SUFFIX must not contain globbing or regex special
15738 # characters, hashes, percent signs, but SUFFIX may contain a leading
15739 # dot (in which case that matches only a dot).
15740 # func_strip_suffix prefix name
15741 func_stripname ()
15743 case ${2} in
15744 .*) func_stripname_result=`$ECHO "X${3}" \
15745 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15746 *) func_stripname_result=`$ECHO "X${3}" \
15747 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15748 esac
15751 # sed scripts:
15752 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15753 my_sed_long_arg='1s/^-[^=]*=//'
15755 # func_opt_split
15756 func_opt_split ()
15758 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15759 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15762 # func_lo2o object
15763 func_lo2o ()
15765 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15768 # func_xform libobj-or-source
15769 func_xform ()
15771 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15774 # func_arith arithmetic-term...
15775 func_arith ()
15777 func_arith_result=`expr "$@"`
15780 # func_len string
15781 # STRING may not start with a hyphen.
15782 func_len ()
15784 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15787 _LT_EOF
15788 esac
15790 case $lt_shell_append in
15791 yes)
15792 cat << \_LT_EOF >> "$cfgfile"
15794 # func_append var value
15795 # Append VALUE to the end of shell variable VAR.
15796 func_append ()
15798 eval "$1+=\$2"
15800 _LT_EOF
15803 cat << \_LT_EOF >> "$cfgfile"
15805 # func_append var value
15806 # Append VALUE to the end of shell variable VAR.
15807 func_append ()
15809 eval "$1=\$$1\$2"
15812 _LT_EOF
15814 esac
15817 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15818 || (rm -f "$cfgfile"; exit 1)
15820 mv -f "$cfgfile" "$ofile" ||
15821 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15822 chmod +x "$ofile"
15825 "ftconfig.h":H) mv ftconfig.h ftconfig.tmp
15826 sed 's|/undef|#undef|' < ftconfig.tmp > ftconfig.h
15827 rm ftconfig.tmp ;;
15829 esac
15830 done # for ac_tag
15833 { (exit 0); exit 0; }
15834 _ACEOF
15835 chmod +x $CONFIG_STATUS
15836 ac_clean_files=$ac_clean_files_save
15838 test $ac_write_fail = 0 ||
15839 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15840 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15841 { (exit 1); exit 1; }; }
15844 # configure is writing to config.log, and then calls config.status.
15845 # config.status does its own redirection, appending to config.log.
15846 # Unfortunately, on DOS this fails, as config.log is still kept open
15847 # by configure, so config.status won't be able to write to it; its
15848 # output is simply discarded. So we exec the FD to /dev/null,
15849 # effectively closing config.log, so it can be properly (re)opened and
15850 # appended to by config.status. When coming back to configure, we
15851 # need to make the FD available again.
15852 if test "$no_create" != yes; then
15853 ac_cs_success=:
15854 ac_config_status_args=
15855 test "$silent" = yes &&
15856 ac_config_status_args="$ac_config_status_args --quiet"
15857 exec 5>/dev/null
15858 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15859 exec 5>>config.log
15860 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15861 # would make configure fail if this is the last instruction.
15862 $ac_cs_success || { (exit 1); exit 1; }
15864 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15865 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15866 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
15870 # end of configure.raw