Changed the entire file structure to remove the .c includes from cairo.c
[phpCairo.git] / src / cairo / configure
blobde991eb727d0cd198b34d09ba351d7fc699df597
1 #! /bin/sh
5 # Forbidden tokens and exceptions.
9 # Actually reserved by M4sh.
11 # All the M4sugar macros start with `m4_', except `dnl' kept as is
12 # for sake of simplicity.
16 # _m4_divert_diversion should be defined:
17 # Guess values for system-dependent variables and create Makefiles.
18 # Generated by GNU Autoconf 2.61.
20 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
22 # This configure script is free software; the Free Software Foundation
23 # gives unlimited permission to copy, distribute and modify it.
24 ## --------------------- ##
25 ## M4sh Initialization. ##
26 ## --------------------- ##
28 # Be more Bourne compatible
29 DUALCASE=1; export DUALCASE # for MKS sh
30 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31 emulate sh
32 NULLCMD=:
33 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34 # is contrary to our usage. Disable this feature.
35 alias -g '${1+"$@"}'='"$@"'
36 setopt NO_GLOB_SUBST
37 else
38 case `(set -o) 2>/dev/null` in
39 *posix*) set -o posix ;;
40 esac
47 # PATH needs CR
48 # Avoid depending upon Character Ranges.
49 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52 as_cr_digits='0123456789'
53 as_cr_alnum=$as_cr_Letters$as_cr_digits
55 # The user is always right.
56 if test "${PATH_SEPARATOR+set}" != set; then
57 echo "#! /bin/sh" >conf$$.sh
58 echo "exit 0" >>conf$$.sh
59 chmod +x conf$$.sh
60 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
61 PATH_SEPARATOR=';'
62 else
63 PATH_SEPARATOR=:
65 rm -f conf$$.sh
68 # Support unset when possible.
69 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
70 as_unset=unset
71 else
72 as_unset=false
76 # IFS
77 # We need space, tab and new line, in precisely that order. Quoting is
78 # there to prevent editors from complaining about space-tab.
79 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
80 # splitting by setting IFS to empty value.)
81 as_nl='
83 IFS=" "" $as_nl"
85 # Find who we are. Look in the path if we contain no directory separator.
86 case $0 in
87 *[\\/]* ) as_myself=$0 ;;
88 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
89 for as_dir in $PATH
91 IFS=$as_save_IFS
92 test -z "$as_dir" && as_dir=.
93 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
94 done
95 IFS=$as_save_IFS
98 esac
99 # We did not find ourselves, most probably we were run as `sh COMMAND'
100 # in which case we are not to be found in the path.
101 if test "x$as_myself" = x; then
102 as_myself=$0
104 if test ! -f "$as_myself"; then
105 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
106 { (exit 1); exit 1; }
109 # Work around bugs in pre-3.0 UWIN ksh.
110 for as_var in ENV MAIL MAILPATH
111 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 done
113 PS1='$ '
114 PS2='> '
115 PS4='+ '
117 # NLS nuisances.
118 for as_var in \
119 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
120 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
121 LC_TELEPHONE LC_TIME
123 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
124 eval $as_var=C; export $as_var
125 else
126 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
128 done
130 # Required to use basename.
131 if expr a : '\(a\)' >/dev/null 2>&1 &&
132 test "X`expr 00001 : '.*\(...\)'`" = X001; then
133 as_expr=expr
134 else
135 as_expr=false
138 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
139 as_basename=basename
140 else
141 as_basename=false
145 # Name of the executable.
146 as_me=`$as_basename -- "$0" ||
147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
148 X"$0" : 'X\(//\)$' \| \
149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
150 echo X/"$0" |
151 sed '/^.*\/\([^/][^/]*\)\/*$/{
152 s//\1/
155 /^X\/\(\/\/\)$/{
156 s//\1/
159 /^X\/\(\/\).*/{
160 s//\1/
163 s/.*/./; q'`
165 # CDPATH.
166 $as_unset CDPATH
169 if test "x$CONFIG_SHELL" = x; then
170 if (eval ":") 2>/dev/null; then
171 as_have_required=yes
172 else
173 as_have_required=no
176 if test $as_have_required = yes && (eval ":
177 (as_func_return () {
178 (exit \$1)
180 as_func_success () {
181 as_func_return 0
183 as_func_failure () {
184 as_func_return 1
186 as_func_ret_success () {
187 return 0
189 as_func_ret_failure () {
190 return 1
193 exitcode=0
194 if as_func_success; then
196 else
197 exitcode=1
198 echo as_func_success failed.
201 if as_func_failure; then
202 exitcode=1
203 echo as_func_failure succeeded.
206 if as_func_ret_success; then
208 else
209 exitcode=1
210 echo as_func_ret_success failed.
213 if as_func_ret_failure; then
214 exitcode=1
215 echo as_func_ret_failure succeeded.
218 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
220 else
221 exitcode=1
222 echo positional parameters were not saved.
225 test \$exitcode = 0) || { (exit 1); exit 1; }
228 as_lineno_1=\$LINENO
229 as_lineno_2=\$LINENO
230 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
231 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
232 ") 2> /dev/null; then
234 else
235 as_candidate_shells=
236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
237 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
239 IFS=$as_save_IFS
240 test -z "$as_dir" && as_dir=.
241 case $as_dir in
243 for as_base in sh bash ksh sh5; do
244 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
245 done;;
246 esac
247 done
248 IFS=$as_save_IFS
251 for as_shell in $as_candidate_shells $SHELL; do
252 # Try only shells that exist, to save several forks.
253 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
254 { ("$as_shell") 2> /dev/null <<\_ASEOF
255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
256 emulate sh
257 NULLCMD=:
258 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
259 # is contrary to our usage. Disable this feature.
260 alias -g '${1+"$@"}'='"$@"'
261 setopt NO_GLOB_SUBST
262 else
263 case `(set -o) 2>/dev/null` in
264 *posix*) set -o posix ;;
265 esac
271 _ASEOF
272 }; then
273 CONFIG_SHELL=$as_shell
274 as_have_required=yes
275 if { "$as_shell" 2> /dev/null <<\_ASEOF
276 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
277 emulate sh
278 NULLCMD=:
279 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
280 # is contrary to our usage. Disable this feature.
281 alias -g '${1+"$@"}'='"$@"'
282 setopt NO_GLOB_SUBST
283 else
284 case `(set -o) 2>/dev/null` in
285 *posix*) set -o posix ;;
286 esac
292 (as_func_return () {
293 (exit $1)
295 as_func_success () {
296 as_func_return 0
298 as_func_failure () {
299 as_func_return 1
301 as_func_ret_success () {
302 return 0
304 as_func_ret_failure () {
305 return 1
308 exitcode=0
309 if as_func_success; then
311 else
312 exitcode=1
313 echo as_func_success failed.
316 if as_func_failure; then
317 exitcode=1
318 echo as_func_failure succeeded.
321 if as_func_ret_success; then
323 else
324 exitcode=1
325 echo as_func_ret_success failed.
328 if as_func_ret_failure; then
329 exitcode=1
330 echo as_func_ret_failure succeeded.
333 if ( set x; as_func_ret_success y && test x = "$1" ); then
335 else
336 exitcode=1
337 echo positional parameters were not saved.
340 test $exitcode = 0) || { (exit 1); exit 1; }
343 as_lineno_1=$LINENO
344 as_lineno_2=$LINENO
345 test "x$as_lineno_1" != "x$as_lineno_2" &&
346 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
348 _ASEOF
349 }; then
350 break
355 done
357 if test "x$CONFIG_SHELL" != x; then
358 for as_var in BASH_ENV ENV
359 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
360 done
361 export CONFIG_SHELL
362 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
366 if test $as_have_required = no; then
367 echo This script requires a shell more modern than all the
368 echo shells that I found on your system. Please install a
369 echo modern shell, or manually run the script under such a
370 echo shell if you do have one.
371 { (exit 1); exit 1; }
381 (eval "as_func_return () {
382 (exit \$1)
384 as_func_success () {
385 as_func_return 0
387 as_func_failure () {
388 as_func_return 1
390 as_func_ret_success () {
391 return 0
393 as_func_ret_failure () {
394 return 1
397 exitcode=0
398 if as_func_success; then
400 else
401 exitcode=1
402 echo as_func_success failed.
405 if as_func_failure; then
406 exitcode=1
407 echo as_func_failure succeeded.
410 if as_func_ret_success; then
412 else
413 exitcode=1
414 echo as_func_ret_success failed.
417 if as_func_ret_failure; then
418 exitcode=1
419 echo as_func_ret_failure succeeded.
422 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
424 else
425 exitcode=1
426 echo positional parameters were not saved.
429 test \$exitcode = 0") || {
430 echo No shell found that supports shell functions.
431 echo Please tell autoconf@gnu.org about your system,
432 echo including any error possibly output before this
433 echo message
438 as_lineno_1=$LINENO
439 as_lineno_2=$LINENO
440 test "x$as_lineno_1" != "x$as_lineno_2" &&
441 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
443 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
444 # uniformly replaced by the line number. The first 'sed' inserts a
445 # line-number line after each line using $LINENO; the second 'sed'
446 # does the real work. The second script uses 'N' to pair each
447 # line-number line with the line containing $LINENO, and appends
448 # trailing '-' during substitution so that $LINENO is not a special
449 # case at line end.
450 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
451 # scripts with optimization help from Paolo Bonzini. Blame Lee
452 # E. McMahon (1931-1989) for sed's syntax. :-)
453 sed -n '
455 /[$]LINENO/=
456 ' <$as_myself |
457 sed '
458 s/[$]LINENO.*/&-/
459 t lineno
461 :lineno
463 :loop
464 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
465 t loop
466 s/-\n.*//
467 ' >$as_me.lineno &&
468 chmod +x "$as_me.lineno" ||
469 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
470 { (exit 1); exit 1; }; }
472 # Don't try to exec as it changes $[0], causing all sort of problems
473 # (the dirname of $[0] is not the place where we might find the
474 # original and so on. Autoconf is especially sensitive to this).
475 . "./$as_me.lineno"
476 # Exit status is that of the last command.
477 exit
481 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
482 as_dirname=dirname
483 else
484 as_dirname=false
487 ECHO_C= ECHO_N= ECHO_T=
488 case `echo -n x` in
489 -n*)
490 case `echo 'x\c'` in
491 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
492 *) ECHO_C='\c';;
493 esac;;
495 ECHO_N='-n';;
496 esac
498 if expr a : '\(a\)' >/dev/null 2>&1 &&
499 test "X`expr 00001 : '.*\(...\)'`" = X001; then
500 as_expr=expr
501 else
502 as_expr=false
505 rm -f conf$$ conf$$.exe conf$$.file
506 if test -d conf$$.dir; then
507 rm -f conf$$.dir/conf$$.file
508 else
509 rm -f conf$$.dir
510 mkdir conf$$.dir
512 echo >conf$$.file
513 if ln -s conf$$.file conf$$ 2>/dev/null; then
514 as_ln_s='ln -s'
515 # ... but there are two gotchas:
516 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
517 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
518 # In both cases, we have to default to `cp -p'.
519 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
520 as_ln_s='cp -p'
521 elif ln conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s=ln
523 else
524 as_ln_s='cp -p'
526 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
527 rmdir conf$$.dir 2>/dev/null
529 if mkdir -p . 2>/dev/null; then
530 as_mkdir_p=:
531 else
532 test -d ./-p && rmdir ./-p
533 as_mkdir_p=false
536 if test -x / >/dev/null 2>&1; then
537 as_test_x='test -x'
538 else
539 if ls -dL / >/dev/null 2>&1; then
540 as_ls_L_option=L
541 else
542 as_ls_L_option=
544 as_test_x='
545 eval sh -c '\''
546 if test -d "$1"; then
547 test -d "$1/.";
548 else
549 case $1 in
550 -*)set "./$1";;
551 esac;
552 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
553 ???[sx]*):;;*)false;;esac;fi
554 '\'' sh
557 as_executable_p=$as_test_x
559 # Sed expression to map a string onto a valid CPP name.
560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562 # Sed expression to map a string onto a valid variable name.
563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 # Check that we are running under the correct shell.
569 SHELL=${CONFIG_SHELL-/bin/sh}
571 case X$ECHO in
572 X*--fallback-echo)
573 # Remove one level of quotation (which was required for Make).
574 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
576 esac
578 echo=${ECHO-echo}
579 if test "X$1" = X--no-reexec; then
580 # Discard the --no-reexec flag, and continue.
581 shift
582 elif test "X$1" = X--fallback-echo; then
583 # Avoid inline document here, it may be left over
585 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
586 # Yippee, $echo works!
588 else
589 # Restart under the correct shell.
590 exec $SHELL "$0" --no-reexec ${1+"$@"}
593 if test "X$1" = X--fallback-echo; then
594 # used as fallback echo
595 shift
596 cat <<EOF
599 exit 0
602 # The HP-UX ksh and POSIX shell print the target directory to stdout
603 # if CDPATH is set.
604 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
606 if test -z "$ECHO"; then
607 if test "X${echo_test_string+set}" != Xset; then
608 # find a string as large as possible, as long as the shell can cope with it
609 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
610 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
611 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
612 echo_test_string=`eval $cmd` &&
613 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
614 then
615 break
617 done
620 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
624 else
625 # The Solaris, AIX, and Digital Unix default echo programs unquote
626 # backslashes. This makes it impossible to quote backslashes using
627 # echo "$something" | sed 's/\\/\\\\/g'
629 # So, first we look for a working echo in the user's PATH.
631 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
632 for dir in $PATH /usr/ucb; do
633 IFS="$lt_save_ifs"
634 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
635 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 echo="$dir/echo"
639 break
641 done
642 IFS="$lt_save_ifs"
644 if test "X$echo" = Xecho; then
645 # We didn't find a better echo, so look for alternatives.
646 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # This shell has a builtin print -r that does the trick.
650 echo='print -r'
651 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
652 test "X$CONFIG_SHELL" != X/bin/ksh; then
653 # If we have ksh, try running configure again with it.
654 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
655 export ORIGINAL_CONFIG_SHELL
656 CONFIG_SHELL=/bin/ksh
657 export CONFIG_SHELL
658 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
659 else
660 # Try using printf.
661 echo='printf %s\n'
662 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
663 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 # Cool, printf works
667 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
668 test "X$echo_testing_string" = 'X\t' &&
669 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
672 export CONFIG_SHELL
673 SHELL="$CONFIG_SHELL"
674 export SHELL
675 echo="$CONFIG_SHELL $0 --fallback-echo"
676 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 echo="$CONFIG_SHELL $0 --fallback-echo"
681 else
682 # maybe with a smaller string...
683 prev=:
685 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
686 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
687 then
688 break
690 prev="$cmd"
691 done
693 if test "$prev" != 'sed 50q "$0"'; then
694 echo_test_string=`eval $prev`
695 export echo_test_string
696 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
697 else
698 # Oops. We lost completely, so just stick with echo.
699 echo=echo
707 # Copy echo and quote the copy suitably for passing to libtool from
708 # the Makefile, instead of quoting the original, which is used later.
709 ECHO=$echo
710 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
711 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
717 tagnames=${tagnames+${tagnames},}CXX
719 exec 7<&0 </dev/null 6>&1
721 # Name of the host.
722 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
723 # so uname gets run too.
724 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
727 # Initializations.
729 ac_default_prefix=/usr/local
730 ac_clean_files=
731 ac_config_libobj_dir=.
732 LIBOBJS=
733 cross_compiling=no
734 subdirs=
735 MFLAGS=
736 MAKEFLAGS=
737 SHELL=${CONFIG_SHELL-/bin/sh}
739 # Identity of this package.
740 PACKAGE_NAME=
741 PACKAGE_TARNAME=
742 PACKAGE_VERSION=
743 PACKAGE_STRING=
744 PACKAGE_BUGREPORT=
746 ac_unique_file="config.m4"
747 # Factoring default headers for most tests.
748 ac_includes_default="\
749 #include <stdio.h>
750 #ifdef HAVE_SYS_TYPES_H
751 # include <sys/types.h>
752 #endif
753 #ifdef HAVE_SYS_STAT_H
754 # include <sys/stat.h>
755 #endif
756 #ifdef STDC_HEADERS
757 # include <stdlib.h>
758 # include <stddef.h>
759 #else
760 # ifdef HAVE_STDLIB_H
761 # include <stdlib.h>
762 # endif
763 #endif
764 #ifdef HAVE_STRING_H
765 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
766 # include <memory.h>
767 # endif
768 # include <string.h>
769 #endif
770 #ifdef HAVE_STRINGS_H
771 # include <strings.h>
772 #endif
773 #ifdef HAVE_INTTYPES_H
774 # include <inttypes.h>
775 #endif
776 #ifdef HAVE_STDINT_H
777 # include <stdint.h>
778 #endif
779 #ifdef HAVE_UNISTD_H
780 # include <unistd.h>
781 #endif"
783 ac_subst_vars='SHELL
784 PATH_SEPARATOR
785 PACKAGE_NAME
786 PACKAGE_TARNAME
787 PACKAGE_VERSION
788 PACKAGE_STRING
789 PACKAGE_BUGREPORT
790 exec_prefix
791 prefix
792 program_transform_name
793 bindir
794 sbindir
795 libexecdir
796 datarootdir
797 datadir
798 sysconfdir
799 sharedstatedir
800 localstatedir
801 includedir
802 oldincludedir
803 docdir
804 infodir
805 htmldir
806 dvidir
807 pdfdir
808 psdir
809 libdir
810 localedir
811 mandir
812 DEFS
813 ECHO_C
814 ECHO_N
815 ECHO_T
816 LIBS
817 build_alias
818 host_alias
819 target_alias
820 GREP
821 EGREP
823 CONFIGURE_COMMAND
824 CONFIGURE_OPTIONS
826 CFLAGS
827 LDFLAGS
828 CPPFLAGS
829 ac_ct_CC
830 EXEEXT
831 OBJEXT
832 build
833 build_cpu
834 build_vendor
835 build_os
836 host
837 host_cpu
838 host_vendor
839 host_os
840 target
841 target_cpu
842 target_vendor
843 target_os
844 SHLIB_SUFFIX_NAME
845 SHLIB_DL_SUFFIX_NAME
846 RE2C
848 LN_S
849 ECHO
851 RANLIB
852 STRIP
854 CXXCPP
855 LIBTOOL
856 LIBOBJS
857 LTLIBOBJS'
858 ac_subst_files=''
859 ac_precious_vars='build_alias
860 host_alias
861 target_alias
863 CFLAGS
864 LDFLAGS
865 LIBS
866 CPPFLAGS
868 CXXCPP'
871 # Initialize some variables set by options.
872 ac_init_help=
873 ac_init_version=false
874 # The variables have the same names as the options, with
875 # dashes changed to underlines.
876 cache_file=/dev/null
877 exec_prefix=NONE
878 no_create=
879 no_recursion=
880 prefix=NONE
881 program_prefix=NONE
882 program_suffix=NONE
883 program_transform_name=s,x,x,
884 silent=
885 site=
886 srcdir=
887 verbose=
888 x_includes=NONE
889 x_libraries=NONE
891 # Installation directory options.
892 # These are left unexpanded so users can "make install exec_prefix=/foo"
893 # and all the variables that are supposed to be based on exec_prefix
894 # by default will actually change.
895 # Use braces instead of parens because sh, perl, etc. also accept them.
896 # (The list follows the same order as the GNU Coding Standards.)
897 bindir='${exec_prefix}/bin'
898 sbindir='${exec_prefix}/sbin'
899 libexecdir='${exec_prefix}/libexec'
900 datarootdir='${prefix}/share'
901 datadir='${datarootdir}'
902 sysconfdir='${prefix}/etc'
903 sharedstatedir='${prefix}/com'
904 localstatedir='${prefix}/var'
905 includedir='${prefix}/include'
906 oldincludedir='/usr/include'
907 docdir='${datarootdir}/doc/${PACKAGE}'
908 infodir='${datarootdir}/info'
909 htmldir='${docdir}'
910 dvidir='${docdir}'
911 pdfdir='${docdir}'
912 psdir='${docdir}'
913 libdir='${exec_prefix}/lib'
914 localedir='${datarootdir}/locale'
915 mandir='${datarootdir}/man'
917 ac_prev=
918 ac_dashdash=
919 for ac_option
921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
923 eval $ac_prev=\$ac_option
924 ac_prev=
925 continue
928 case $ac_option in
929 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 *) ac_optarg=yes ;;
931 esac
933 # Accept the important Cygnus configure options, so we can diagnose typos.
935 case $ac_dashdash$ac_option in
937 ac_dashdash=yes ;;
939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 ac_prev=bindir ;;
941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942 bindir=$ac_optarg ;;
944 -build | --build | --buil | --bui | --bu)
945 ac_prev=build_alias ;;
946 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947 build_alias=$ac_optarg ;;
949 -cache-file | --cache-file | --cache-fil | --cache-fi \
950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951 ac_prev=cache_file ;;
952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954 cache_file=$ac_optarg ;;
956 --config-cache | -C)
957 cache_file=config.cache ;;
959 -datadir | --datadir | --datadi | --datad)
960 ac_prev=datadir ;;
961 -datadir=* | --datadir=* | --datadi=* | --datad=*)
962 datadir=$ac_optarg ;;
964 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965 | --dataroo | --dataro | --datar)
966 ac_prev=datarootdir ;;
967 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969 datarootdir=$ac_optarg ;;
971 -disable-* | --disable-*)
972 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
975 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
976 { (exit 1); exit 1; }; }
977 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
978 eval enable_$ac_feature=no ;;
980 -docdir | --docdir | --docdi | --doc | --do)
981 ac_prev=docdir ;;
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 docdir=$ac_optarg ;;
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 ac_prev=dvidir ;;
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 dvidir=$ac_optarg ;;
990 -enable-* | --enable-*)
991 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
994 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
995 { (exit 1); exit 1; }; }
996 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
997 eval enable_$ac_feature=\$ac_optarg ;;
999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001 | --exec | --exe | --ex)
1002 ac_prev=exec_prefix ;;
1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1005 | --exec=* | --exe=* | --ex=*)
1006 exec_prefix=$ac_optarg ;;
1008 -gas | --gas | --ga | --g)
1009 # Obsolete; use --with-gas.
1010 with_gas=yes ;;
1012 -help | --help | --hel | --he | -h)
1013 ac_init_help=long ;;
1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1015 ac_init_help=recursive ;;
1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1017 ac_init_help=short ;;
1019 -host | --host | --hos | --ho)
1020 ac_prev=host_alias ;;
1021 -host=* | --host=* | --hos=* | --ho=*)
1022 host_alias=$ac_optarg ;;
1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 ac_prev=htmldir ;;
1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 | --ht=*)
1028 htmldir=$ac_optarg ;;
1030 -includedir | --includedir | --includedi | --included | --include \
1031 | --includ | --inclu | --incl | --inc)
1032 ac_prev=includedir ;;
1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1034 | --includ=* | --inclu=* | --incl=* | --inc=*)
1035 includedir=$ac_optarg ;;
1037 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 ac_prev=infodir ;;
1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1040 infodir=$ac_optarg ;;
1042 -libdir | --libdir | --libdi | --libd)
1043 ac_prev=libdir ;;
1044 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1045 libdir=$ac_optarg ;;
1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1048 | --libexe | --libex | --libe)
1049 ac_prev=libexecdir ;;
1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1051 | --libexe=* | --libex=* | --libe=*)
1052 libexecdir=$ac_optarg ;;
1054 -localedir | --localedir | --localedi | --localed | --locale)
1055 ac_prev=localedir ;;
1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1057 localedir=$ac_optarg ;;
1059 -localstatedir | --localstatedir | --localstatedi | --localstated \
1060 | --localstate | --localstat | --localsta | --localst | --locals)
1061 ac_prev=localstatedir ;;
1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1064 localstatedir=$ac_optarg ;;
1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 ac_prev=mandir ;;
1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1069 mandir=$ac_optarg ;;
1071 -nfp | --nfp | --nf)
1072 # Obsolete; use --without-fp.
1073 with_fp=no ;;
1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1076 | --no-cr | --no-c | -n)
1077 no_create=yes ;;
1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1081 no_recursion=yes ;;
1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1085 | --oldin | --oldi | --old | --ol | --o)
1086 ac_prev=oldincludedir ;;
1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1090 oldincludedir=$ac_optarg ;;
1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 ac_prev=prefix ;;
1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1095 prefix=$ac_optarg ;;
1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1098 | --program-pre | --program-pr | --program-p)
1099 ac_prev=program_prefix ;;
1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1102 program_prefix=$ac_optarg ;;
1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1105 | --program-suf | --program-su | --program-s)
1106 ac_prev=program_suffix ;;
1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1109 program_suffix=$ac_optarg ;;
1111 -program-transform-name | --program-transform-name \
1112 | --program-transform-nam | --program-transform-na \
1113 | --program-transform-n | --program-transform- \
1114 | --program-transform | --program-transfor \
1115 | --program-transfo | --program-transf \
1116 | --program-trans | --program-tran \
1117 | --progr-tra | --program-tr | --program-t)
1118 ac_prev=program_transform_name ;;
1119 -program-transform-name=* | --program-transform-name=* \
1120 | --program-transform-nam=* | --program-transform-na=* \
1121 | --program-transform-n=* | --program-transform-=* \
1122 | --program-transform=* | --program-transfor=* \
1123 | --program-transfo=* | --program-transf=* \
1124 | --program-trans=* | --program-tran=* \
1125 | --progr-tra=* | --program-tr=* | --program-t=*)
1126 program_transform_name=$ac_optarg ;;
1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 ac_prev=pdfdir ;;
1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1131 pdfdir=$ac_optarg ;;
1133 -psdir | --psdir | --psdi | --psd | --ps)
1134 ac_prev=psdir ;;
1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1136 psdir=$ac_optarg ;;
1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1139 | -silent | --silent | --silen | --sile | --sil)
1140 silent=yes ;;
1142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 ac_prev=sbindir ;;
1144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 | --sbi=* | --sb=*)
1146 sbindir=$ac_optarg ;;
1148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1150 | --sharedst | --shareds | --shared | --share | --shar \
1151 | --sha | --sh)
1152 ac_prev=sharedstatedir ;;
1153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 | --sha=* | --sh=*)
1157 sharedstatedir=$ac_optarg ;;
1159 -site | --site | --sit)
1160 ac_prev=site ;;
1161 -site=* | --site=* | --sit=*)
1162 site=$ac_optarg ;;
1164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 ac_prev=srcdir ;;
1166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1167 srcdir=$ac_optarg ;;
1169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1170 | --syscon | --sysco | --sysc | --sys | --sy)
1171 ac_prev=sysconfdir ;;
1172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1174 sysconfdir=$ac_optarg ;;
1176 -target | --target | --targe | --targ | --tar | --ta | --t)
1177 ac_prev=target_alias ;;
1178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1179 target_alias=$ac_optarg ;;
1181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1182 verbose=yes ;;
1184 -version | --version | --versio | --versi | --vers | -V)
1185 ac_init_version=: ;;
1187 -with-* | --with-*)
1188 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid package name: $ac_package" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1194 eval with_$ac_package=\$ac_optarg ;;
1196 -without-* | --without-*)
1197 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 { echo "$as_me: error: invalid package name: $ac_package" >&2
1201 { (exit 1); exit 1; }; }
1202 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1203 eval with_$ac_package=no ;;
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) { echo "$as_me: error: unrecognized option: $ac_option
1224 Try \`$0 --help' for more information." >&2
1225 { (exit 1); exit 1; }; }
1228 *=*)
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1232 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1233 { (exit 1); exit 1; }; }
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1245 esac
1246 done
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 { echo "$as_me: error: missing argument to $ac_option" >&2
1251 { (exit 1); exit 1; }; }
1254 # Be sure to have absolute directory names.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1260 eval ac_val=\$$ac_var
1261 case $ac_val in
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 esac
1265 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1266 { (exit 1); exit 1; }; }
1267 done
1269 # There might be people who depend on the old broken behavior: `$host'
1270 # used to hold the argument of --host etc.
1271 # FIXME: To remove some day.
1272 build=$build_alias
1273 host=$host_alias
1274 target=$target_alias
1276 # FIXME: To remove some day.
1277 if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
1280 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290 test "$silent" = yes && exec 6>/dev/null
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 { echo "$as_me: error: Working directory cannot be determined" >&2
1297 { (exit 1); exit 1; }; }
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 { echo "$as_me: error: pwd does not report name of working directory" >&2
1300 { (exit 1); exit 1; }; }
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$0" ||
1308 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$0" : 'X\(//\)[^/]' \| \
1310 X"$0" : 'X\(//\)$' \| \
1311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1312 echo X"$0" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1321 /^X\(\/\/\)$/{
1322 s//\1/
1325 /^X\(\/\).*/{
1326 s//\1/
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1334 else
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1340 { (exit 1); exit 1; }; }
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1345 { (exit 1); exit 1; }; }
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1365 # Report the --help message.
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures this package to adapt to many kinds of systems.
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1378 Defaults for the options are specified in brackets.
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1402 For better control, use the options below.
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1426 cat <<\_ACEOF
1428 System types:
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 --target=TARGET configure for building compilers for TARGET [HOST]
1432 _ACEOF
1435 if test -n "$ac_init_help"; then
1437 cat <<\_ACEOF
1439 Optional Features:
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --with-cairo Enable Cairo support
1443 --enable-shared=PKGS build shared libraries default=yes
1444 --enable-static=PKGS build static libraries default=yes
1445 --enable-fast-install=PKGS optimize for fast installation default=yes
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-libdir=NAME Look for libraries in .../NAME rather than .../lib
1452 --with-php-config=PATH Path to php-config php-config
1453 --with-gnu-ld assume the C compiler uses GNU ld default=no
1454 --with-pic try to use only PIC/non-PIC objects default=use both
1455 --with-tags=TAGS include additional configurations automatic
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CPP C preprocessor
1467 CXXCPP C++ preprocessor
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 _ACEOF
1473 ac_status=$?
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" || continue
1480 ac_builddir=.
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1498 case $srcdir in
1499 .) # We are building in place.
1500 ac_srcdir=.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1522 else
1523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 fi || ac_status=$?
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1526 done
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1531 cat <<\_ACEOF
1532 configure
1533 generated by GNU Autoconf 2.61
1535 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1536 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1539 _ACEOF
1540 exit
1542 cat >config.log <<_ACEOF
1543 This file contains any messages produced by compilers while
1544 running configure, to aid debugging if configure makes a mistake.
1546 It was created by $as_me, which was
1547 generated by GNU Autoconf 2.61. Invocation command line was
1549 $ $0 $@
1551 _ACEOF
1552 exec 5>>config.log
1554 cat <<_ASUNAME
1555 ## --------- ##
1556 ## Platform. ##
1557 ## --------- ##
1559 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1560 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1561 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1562 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1563 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1565 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1566 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1568 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1569 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1570 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1571 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1572 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1573 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1574 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1576 _ASUNAME
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 for as_dir in $PATH
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 echo "PATH: $as_dir"
1584 done
1585 IFS=$as_save_IFS
1587 } >&5
1589 cat >&5 <<_ACEOF
1592 ## ----------- ##
1593 ## Core tests. ##
1594 ## ----------- ##
1596 _ACEOF
1599 # Keep a trace of the command line.
1600 # Strip out --no-create and --no-recursion so they do not pile up.
1601 # Strip out --silent because we don't want to record it for future runs.
1602 # Also quote any args containing shell meta-characters.
1603 # Make two passes to allow for proper duplicate-argument suppression.
1604 ac_configure_args=
1605 ac_configure_args0=
1606 ac_configure_args1=
1607 ac_must_keep_next=false
1608 for ac_pass in 1 2
1610 for ac_arg
1612 case $ac_arg in
1613 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1615 | -silent | --silent | --silen | --sile | --sil)
1616 continue ;;
1617 *\'*)
1618 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1619 esac
1620 case $ac_pass in
1621 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1623 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1624 if test $ac_must_keep_next = true; then
1625 ac_must_keep_next=false # Got value, back to normal.
1626 else
1627 case $ac_arg in
1628 *=* | --config-cache | -C | -disable-* | --disable-* \
1629 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1630 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1631 | -with-* | --with-* | -without-* | --without-* | --x)
1632 case "$ac_configure_args0 " in
1633 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1634 esac
1636 -* ) ac_must_keep_next=true ;;
1637 esac
1639 ac_configure_args="$ac_configure_args '$ac_arg'"
1641 esac
1642 done
1643 done
1644 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1645 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1647 # When interrupted or exit'd, cleanup temporary files, and complete
1648 # config.log. We remove comments because anyway the quotes in there
1649 # would cause problems or look ugly.
1650 # WARNING: Use '\'' to represent an apostrophe within the trap.
1651 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1652 trap 'exit_status=$?
1653 # Save into config.log some information that might help in debugging.
1655 echo
1657 cat <<\_ASBOX
1658 ## ---------------- ##
1659 ## Cache variables. ##
1660 ## ---------------- ##
1661 _ASBOX
1662 echo
1663 # The following way of writing the cache mishandles newlines in values,
1665 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1666 eval ac_val=\$$ac_var
1667 case $ac_val in #(
1668 *${as_nl}*)
1669 case $ac_var in #(
1670 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1671 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1672 esac
1673 case $ac_var in #(
1674 _ | IFS | as_nl) ;; #(
1675 *) $as_unset $ac_var ;;
1676 esac ;;
1677 esac
1678 done
1679 (set) 2>&1 |
1680 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1681 *${as_nl}ac_space=\ *)
1682 sed -n \
1683 "s/'\''/'\''\\\\'\'''\''/g;
1684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1685 ;; #(
1687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1689 esac |
1690 sort
1692 echo
1694 cat <<\_ASBOX
1695 ## ----------------- ##
1696 ## Output variables. ##
1697 ## ----------------- ##
1698 _ASBOX
1699 echo
1700 for ac_var in $ac_subst_vars
1702 eval ac_val=\$$ac_var
1703 case $ac_val in
1704 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1705 esac
1706 echo "$ac_var='\''$ac_val'\''"
1707 done | sort
1708 echo
1710 if test -n "$ac_subst_files"; then
1711 cat <<\_ASBOX
1712 ## ------------------- ##
1713 ## File substitutions. ##
1714 ## ------------------- ##
1715 _ASBOX
1716 echo
1717 for ac_var in $ac_subst_files
1719 eval ac_val=\$$ac_var
1720 case $ac_val in
1721 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1722 esac
1723 echo "$ac_var='\''$ac_val'\''"
1724 done | sort
1725 echo
1728 if test -s confdefs.h; then
1729 cat <<\_ASBOX
1730 ## ----------- ##
1731 ## confdefs.h. ##
1732 ## ----------- ##
1733 _ASBOX
1734 echo
1735 cat confdefs.h
1736 echo
1738 test "$ac_signal" != 0 &&
1739 echo "$as_me: caught signal $ac_signal"
1740 echo "$as_me: exit $exit_status"
1741 } >&5
1742 rm -f core *.core core.conftest.* &&
1743 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1744 exit $exit_status
1746 for ac_signal in 1 2 13 15; do
1747 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1748 done
1749 ac_signal=0
1751 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1752 rm -f -r conftest* confdefs.h
1754 # Predefined preprocessor variables.
1756 cat >>confdefs.h <<_ACEOF
1757 #define PACKAGE_NAME "$PACKAGE_NAME"
1758 _ACEOF
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1763 _ACEOF
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1768 _ACEOF
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_STRING "$PACKAGE_STRING"
1773 _ACEOF
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1778 _ACEOF
1781 # Let the site file select an alternate cache file if it wants to.
1782 # Prefer explicitly selected file to automatically selected ones.
1783 if test -n "$CONFIG_SITE"; then
1784 set x "$CONFIG_SITE"
1785 elif test "x$prefix" != xNONE; then
1786 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1787 else
1788 set x "$ac_default_prefix/share/config.site" \
1789 "$ac_default_prefix/etc/config.site"
1791 shift
1792 for ac_site_file
1794 if test -r "$ac_site_file"; then
1795 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1796 echo "$as_me: loading site script $ac_site_file" >&6;}
1797 sed 's/^/| /' "$ac_site_file" >&5
1798 . "$ac_site_file"
1800 done
1802 if test -r "$cache_file"; then
1803 # Some versions of bash will fail to source /dev/null (special
1804 # files actually), so we avoid doing that.
1805 if test -f "$cache_file"; then
1806 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1807 echo "$as_me: loading cache $cache_file" >&6;}
1808 case $cache_file in
1809 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1810 *) . "./$cache_file";;
1811 esac
1813 else
1814 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1815 echo "$as_me: creating cache $cache_file" >&6;}
1816 >$cache_file
1819 # Check that the precious variables saved in the cache have kept the same
1820 # value.
1821 ac_cache_corrupted=false
1822 for ac_var in $ac_precious_vars; do
1823 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1824 eval ac_new_set=\$ac_env_${ac_var}_set
1825 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1826 eval ac_new_val=\$ac_env_${ac_var}_value
1827 case $ac_old_set,$ac_new_set in
1828 set,)
1829 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1830 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1831 ac_cache_corrupted=: ;;
1832 ,set)
1833 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1835 ac_cache_corrupted=: ;;
1836 ,);;
1838 if test "x$ac_old_val" != "x$ac_new_val"; then
1839 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1840 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1841 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1842 echo "$as_me: former value: $ac_old_val" >&2;}
1843 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1844 echo "$as_me: current value: $ac_new_val" >&2;}
1845 ac_cache_corrupted=:
1846 fi;;
1847 esac
1848 # Pass precious variables to config.status.
1849 if test "$ac_new_set" = set; then
1850 case $ac_new_val in
1851 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1852 *) ac_arg=$ac_var=$ac_new_val ;;
1853 esac
1854 case " $ac_configure_args " in
1855 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1856 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1857 esac
1859 done
1860 if $ac_cache_corrupted; then
1861 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1862 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1863 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1864 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1865 { (exit 1); exit 1; }; }
1884 ac_ext=c
1885 ac_cpp='$CPP $CPPFLAGS'
1886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1892 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
1893 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
1894 if test "${ac_cv_path_GREP+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897 # Extract the first word of "grep ggrep" to use in msg output
1898 if test -z "$GREP"; then
1899 set dummy grep ggrep; ac_prog_name=$2
1900 if test "${ac_cv_path_GREP+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903 ac_path_GREP_found=false
1904 # Loop through the user's path and test for each of PROGNAME-LIST
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1908 IFS=$as_save_IFS
1909 test -z "$as_dir" && as_dir=.
1910 for ac_prog in grep ggrep; do
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1913 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
1914 # Check for GNU ac_path_GREP and select it if it is found.
1915 # Check for GNU $ac_path_GREP
1916 case `"$ac_path_GREP" --version 2>&1` in
1917 *GNU*)
1918 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
1920 ac_count=0
1921 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
1922 while :
1924 cat "conftest.in" "conftest.in" >"conftest.tmp"
1925 mv "conftest.tmp" "conftest.in"
1926 cp "conftest.in" "conftest.nl"
1927 echo 'GREP' >> "conftest.nl"
1928 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
1929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1930 ac_count=`expr $ac_count + 1`
1931 if test $ac_count -gt ${ac_path_GREP_max-0}; then
1932 # Best one so far, save it but keep looking for a better one
1933 ac_cv_path_GREP="$ac_path_GREP"
1934 ac_path_GREP_max=$ac_count
1936 # 10*(2^10) chars as input seems more than enough
1937 test $ac_count -gt 10 && break
1938 done
1939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1940 esac
1943 $ac_path_GREP_found && break 3
1944 done
1945 done
1947 done
1948 IFS=$as_save_IFS
1953 GREP="$ac_cv_path_GREP"
1954 if test -z "$GREP"; then
1955 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
1956 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
1957 { (exit 1); exit 1; }; }
1960 else
1961 ac_cv_path_GREP=$GREP
1966 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
1967 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
1968 GREP="$ac_cv_path_GREP"
1971 { echo "$as_me:$LINENO: checking for egrep" >&5
1972 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
1973 if test "${ac_cv_path_EGREP+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1977 then ac_cv_path_EGREP="$GREP -E"
1978 else
1979 # Extract the first word of "egrep" to use in msg output
1980 if test -z "$EGREP"; then
1981 set dummy egrep; ac_prog_name=$2
1982 if test "${ac_cv_path_EGREP+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985 ac_path_EGREP_found=false
1986 # Loop through the user's path and test for each of PROGNAME-LIST
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_prog in egrep; do
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1995 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
1996 # Check for GNU ac_path_EGREP and select it if it is found.
1997 # Check for GNU $ac_path_EGREP
1998 case `"$ac_path_EGREP" --version 2>&1` in
1999 *GNU*)
2000 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2002 ac_count=0
2003 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2004 while :
2006 cat "conftest.in" "conftest.in" >"conftest.tmp"
2007 mv "conftest.tmp" "conftest.in"
2008 cp "conftest.in" "conftest.nl"
2009 echo 'EGREP' >> "conftest.nl"
2010 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2012 ac_count=`expr $ac_count + 1`
2013 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2014 # Best one so far, save it but keep looking for a better one
2015 ac_cv_path_EGREP="$ac_path_EGREP"
2016 ac_path_EGREP_max=$ac_count
2018 # 10*(2^10) chars as input seems more than enough
2019 test $ac_count -gt 10 && break
2020 done
2021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2022 esac
2025 $ac_path_EGREP_found && break 3
2026 done
2027 done
2029 done
2030 IFS=$as_save_IFS
2035 EGREP="$ac_cv_path_EGREP"
2036 if test -z "$EGREP"; then
2037 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2038 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2039 { (exit 1); exit 1; }; }
2042 else
2043 ac_cv_path_EGREP=$EGREP
2049 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
2050 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
2051 EGREP="$ac_cv_path_EGREP"
2054 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2055 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
2056 if test "${lt_cv_path_SED+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059 # Loop through the user's path and test for sed and gsed.
2060 # Then use that list of sed's as ones to test for truncation.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for lt_ac_prog in sed gsed; do
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2069 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2071 done
2072 done
2073 done
2074 lt_ac_max=0
2075 lt_ac_count=0
2076 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2077 # along with /bin/sed that truncates output.
2078 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2079 test ! -f $lt_ac_sed && continue
2080 cat /dev/null > conftest.in
2081 lt_ac_count=0
2082 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2083 # Check for GNU sed and select it if it is found.
2084 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2085 lt_cv_path_SED=$lt_ac_sed
2086 break
2088 while true; do
2089 cat conftest.in conftest.in >conftest.tmp
2090 mv conftest.tmp conftest.in
2091 cp conftest.in conftest.nl
2092 echo >>conftest.nl
2093 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2094 cmp -s conftest.out conftest.nl || break
2095 # 10000 chars as input seems more than enough
2096 test $lt_ac_count -gt 10 && break
2097 lt_ac_count=`expr $lt_ac_count + 1`
2098 if test $lt_ac_count -gt $lt_ac_max; then
2099 lt_ac_max=$lt_ac_count
2100 lt_cv_path_SED=$lt_ac_sed
2102 done
2103 done
2107 SED=$lt_cv_path_SED
2108 { echo "$as_me:$LINENO: result: $SED" >&5
2109 echo "${ECHO_T}$SED" >&6; }
2116 PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP"
2122 PHP_VAR_SUBST="$PHP_VAR_SUBST SED"
2126 test -f config.nice && mv config.nice config.nice.old
2127 rm -f config.nice.old
2128 cat >config.nice<<EOF
2129 #! /bin/sh
2131 # Created by configure
2135 for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
2136 eval val=\$$var
2137 if test -n "$val"; then
2138 echo "$var='$val' \\" >> config.nice
2140 done
2142 echo "'$0' \\" >> config.nice
2143 if test `expr -- $0 : "'.*"` = 0; then
2144 CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
2145 else
2146 CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
2148 for arg in $ac_configure_args; do
2149 if test `expr -- $arg : "'.*"` = 0; then
2150 if test `expr -- $arg : "--.*"` = 0; then
2151 break;
2153 echo "'$arg' \\" >> config.nice
2154 CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '$arg'"
2155 else
2156 if test `expr -- $arg : "'--.*"` = 0; then
2157 break;
2159 echo "$arg \\" >> config.nice
2160 CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $arg"
2162 done
2163 echo '"$@"' >> config.nice
2164 chmod +x config.nice
2165 CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS"
2168 PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND"
2174 PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS"
2180 abs_srcdir=`(cd $srcdir && pwd)`
2181 abs_builddir=`pwd`
2183 ac_ext=c
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188 if test -n "$ac_tool_prefix"; then
2189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2193 if test "${ac_cv_prog_CC+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196 if test -n "$CC"; then
2197 ac_cv_prog_CC="$CC" # Let the user override the test.
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 break 2
2210 done
2211 done
2212 IFS=$as_save_IFS
2216 CC=$ac_cv_prog_CC
2217 if test -n "$CC"; then
2218 { echo "$as_me:$LINENO: result: $CC" >&5
2219 echo "${ECHO_T}$CC" >&6; }
2220 else
2221 { echo "$as_me:$LINENO: result: no" >&5
2222 echo "${ECHO_T}no" >&6; }
2227 if test -z "$ac_cv_prog_CC"; then
2228 ac_ct_CC=$CC
2229 # Extract the first word of "gcc", so it can be a program name with args.
2230 set dummy gcc; ac_word=$2
2231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2234 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236 if test -n "$ac_ct_CC"; then
2237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 ac_cv_prog_ac_ct_CC="gcc"
2247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248 break 2
2250 done
2251 done
2252 IFS=$as_save_IFS
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6; }
2260 else
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2265 if test "x$ac_ct_CC" = x; then
2266 CC=""
2267 else
2268 case $cross_compiling:$ac_tool_warned in
2269 yes:)
2270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2271 whose name does not start with the host triplet. If you think this
2272 configuration is useful to you, please write to autoconf@gnu.org." >&5
2273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2274 whose name does not start with the host triplet. If you think this
2275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2276 ac_tool_warned=yes ;;
2277 esac
2278 CC=$ac_ct_CC
2280 else
2281 CC="$ac_cv_prog_CC"
2284 if test -z "$CC"; then
2285 if test -n "$ac_tool_prefix"; then
2286 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}cc; ac_word=$2
2288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2290 if test "${ac_cv_prog_CC+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293 if test -n "$CC"; then
2294 ac_cv_prog_CC="$CC" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_CC="${ac_tool_prefix}cc"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 break 2
2307 done
2308 done
2309 IFS=$as_save_IFS
2313 CC=$ac_cv_prog_CC
2314 if test -n "$CC"; then
2315 { echo "$as_me:$LINENO: result: $CC" >&5
2316 echo "${ECHO_T}$CC" >&6; }
2317 else
2318 { echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6; }
2325 if test -z "$CC"; then
2326 # Extract the first word of "cc", so it can be a program name with args.
2327 set dummy cc; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2335 else
2336 ac_prog_rejected=no
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2345 ac_prog_rejected=yes
2346 continue
2348 ac_cv_prog_CC="cc"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 break 2
2352 done
2353 done
2354 IFS=$as_save_IFS
2356 if test $ac_prog_rejected = yes; then
2357 # We found a bogon in the path, so make sure we never use it.
2358 set dummy $ac_cv_prog_CC
2359 shift
2360 if test $# != 0; then
2361 # We chose a different compiler from the bogus one.
2362 # However, it has the same basename, so the bogon will be chosen
2363 # first if we set CC to just the basename; use the full file name.
2364 shift
2365 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2370 CC=$ac_cv_prog_CC
2371 if test -n "$CC"; then
2372 { echo "$as_me:$LINENO: result: $CC" >&5
2373 echo "${ECHO_T}$CC" >&6; }
2374 else
2375 { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2381 if test -z "$CC"; then
2382 if test -n "$ac_tool_prefix"; then
2383 for ac_prog in cl.exe
2385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 else
2392 if test -n "$CC"; then
2393 ac_cv_prog_CC="$CC" # Let the user override the test.
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404 break 2
2406 done
2407 done
2408 IFS=$as_save_IFS
2412 CC=$ac_cv_prog_CC
2413 if test -n "$CC"; then
2414 { echo "$as_me:$LINENO: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6; }
2416 else
2417 { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2422 test -n "$CC" && break
2423 done
2425 if test -z "$CC"; then
2426 ac_ct_CC=$CC
2427 for ac_prog in cl.exe
2429 # Extract the first word of "$ac_prog", so it can be a program name with args.
2430 set dummy $ac_prog; ac_word=$2
2431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436 if test -n "$ac_ct_CC"; then
2437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2438 else
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 for as_dir in $PATH
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_ac_ct_CC="$ac_prog"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2450 done
2451 done
2452 IFS=$as_save_IFS
2456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2457 if test -n "$ac_ct_CC"; then
2458 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2459 echo "${ECHO_T}$ac_ct_CC" >&6; }
2460 else
2461 { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2466 test -n "$ac_ct_CC" && break
2467 done
2469 if test "x$ac_ct_CC" = x; then
2470 CC=""
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473 yes:)
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet. If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet. If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned=yes ;;
2481 esac
2482 CC=$ac_ct_CC
2489 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2490 See \`config.log' for more details." >&5
2491 echo "$as_me: error: no acceptable C compiler found in \$PATH
2492 See \`config.log' for more details." >&2;}
2493 { (exit 1); exit 1; }; }
2495 # Provide some information about the compiler.
2496 echo "$as_me:$LINENO: checking for C compiler version" >&5
2497 ac_compiler=`set X $ac_compile; echo $2`
2498 { (ac_try="$ac_compiler --version >&5"
2499 case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502 esac
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_compiler --version >&5") 2>&5
2505 ac_status=$?
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }
2508 { (ac_try="$ac_compiler -v >&5"
2509 case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512 esac
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514 (eval "$ac_compiler -v >&5") 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }
2518 { (ac_try="$ac_compiler -V >&5"
2519 case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_compiler -V >&5") 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }
2529 cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h. */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2537 main ()
2541 return 0;
2543 _ACEOF
2544 ac_clean_files_save=$ac_clean_files
2545 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2546 # Try to create an executable without -o first, disregard a.out.
2547 # It will help us diagnose broken compilers, and finding out an intuition
2548 # of exeext.
2549 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2550 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2551 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2553 # List of possible output files, starting from the most likely.
2554 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2555 # only as a last resort. b.out is created by i960 compilers.
2556 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2558 # The IRIX 6 linker writes into existing files which may not be
2559 # executable, retaining their permissions. Remove them first so a
2560 # subsequent execution test works.
2561 ac_rmfiles=
2562 for ac_file in $ac_files
2564 case $ac_file in
2565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2566 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2567 esac
2568 done
2569 rm -f $ac_rmfiles
2571 if { (ac_try="$ac_link_default"
2572 case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_link_default") 2>&5
2578 ac_status=$?
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; then
2581 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2582 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2583 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2584 # so that the user can short-circuit this test for compilers unknown to
2585 # Autoconf.
2586 for ac_file in $ac_files ''
2588 test -f "$ac_file" || continue
2589 case $ac_file in
2590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2592 [ab].out )
2593 # We found the default executable, but exeext='' is most
2594 # certainly right.
2595 break;;
2596 *.* )
2597 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2598 then :; else
2599 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2601 # We set ac_cv_exeext here because the later test for it is not
2602 # safe: cross compilers may not add the suffix if given an `-o'
2603 # argument, so we may need to know it at that point already.
2604 # Even if this section looks crufty: it has the advantage of
2605 # actually working.
2606 break;;
2608 break;;
2609 esac
2610 done
2611 test "$ac_cv_exeext" = no && ac_cv_exeext=
2613 else
2614 ac_file=''
2617 { echo "$as_me:$LINENO: result: $ac_file" >&5
2618 echo "${ECHO_T}$ac_file" >&6; }
2619 if test -z "$ac_file"; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2623 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: C compiler cannot create executables
2626 See \`config.log' for more details." >&2;}
2627 { (exit 77); exit 77; }; }
2630 ac_exeext=$ac_cv_exeext
2632 # Check that the compiler produces executables we can run. If not, either
2633 # the compiler is broken, or we cross compile.
2634 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2635 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2636 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2637 # If not cross compiling, check that we can run a simple program.
2638 if test "$cross_compiling" != yes; then
2639 if { ac_try='./$ac_file'
2640 { (case "(($ac_try" in
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2643 esac
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_try") 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 cross_compiling=no
2650 else
2651 if test "$cross_compiling" = maybe; then
2652 cross_compiling=yes
2653 else
2654 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2655 If you meant to cross compile, use \`--host'.
2656 See \`config.log' for more details." >&5
2657 echo "$as_me: error: cannot run C compiled programs.
2658 If you meant to cross compile, use \`--host'.
2659 See \`config.log' for more details." >&2;}
2660 { (exit 1); exit 1; }; }
2664 { echo "$as_me:$LINENO: result: yes" >&5
2665 echo "${ECHO_T}yes" >&6; }
2667 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2668 ac_clean_files=$ac_clean_files_save
2669 # Check that the compiler produces executables we can run. If not, either
2670 # the compiler is broken, or we cross compile.
2671 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2672 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2673 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2674 echo "${ECHO_T}$cross_compiling" >&6; }
2676 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2677 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2678 if { (ac_try="$ac_link"
2679 case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682 esac
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_link") 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; then
2688 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2689 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2690 # work properly (i.e., refer to `conftest.exe'), while it won't with
2691 # `rm'.
2692 for ac_file in conftest.exe conftest conftest.*; do
2693 test -f "$ac_file" || continue
2694 case $ac_file in
2695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2696 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2697 break;;
2698 * ) break;;
2699 esac
2700 done
2701 else
2702 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2703 See \`config.log' for more details." >&5
2704 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2705 See \`config.log' for more details." >&2;}
2706 { (exit 1); exit 1; }; }
2709 rm -f conftest$ac_cv_exeext
2710 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2711 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2713 rm -f conftest.$ac_ext
2714 EXEEXT=$ac_cv_exeext
2715 ac_exeext=$EXEEXT
2716 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2717 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2718 if test "${ac_cv_objext+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721 cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h. */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2729 main ()
2733 return 0;
2735 _ACEOF
2736 rm -f conftest.o conftest.obj
2737 if { (ac_try="$ac_compile"
2738 case "(($ac_try" in
2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740 *) ac_try_echo=$ac_try;;
2741 esac
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compile") 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; then
2747 for ac_file in conftest.o conftest.obj conftest.*; do
2748 test -f "$ac_file" || continue;
2749 case $ac_file in
2750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2751 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2752 break;;
2753 esac
2754 done
2755 else
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2759 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2760 See \`config.log' for more details." >&5
2761 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2762 See \`config.log' for more details." >&2;}
2763 { (exit 1); exit 1; }; }
2766 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2768 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2769 echo "${ECHO_T}$ac_cv_objext" >&6; }
2770 OBJEXT=$ac_cv_objext
2771 ac_objext=$OBJEXT
2772 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2773 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2774 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 cat >conftest.$ac_ext <<_ACEOF
2778 /* confdefs.h. */
2779 _ACEOF
2780 cat confdefs.h >>conftest.$ac_ext
2781 cat >>conftest.$ac_ext <<_ACEOF
2782 /* end confdefs.h. */
2785 main ()
2787 #ifndef __GNUC__
2788 choke me
2789 #endif
2792 return 0;
2794 _ACEOF
2795 rm -f conftest.$ac_objext
2796 if { (ac_try="$ac_compile"
2797 case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800 esac
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_compile") 2>conftest.er1
2803 ac_status=$?
2804 grep -v '^ *+' conftest.er1 >conftest.err
2805 rm -f conftest.er1
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } && {
2809 test -z "$ac_c_werror_flag" ||
2810 test ! -s conftest.err
2811 } && test -s conftest.$ac_objext; then
2812 ac_compiler_gnu=yes
2813 else
2814 echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2817 ac_compiler_gnu=no
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2824 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2825 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2826 GCC=`test $ac_compiler_gnu = yes && echo yes`
2827 ac_test_CFLAGS=${CFLAGS+set}
2828 ac_save_CFLAGS=$CFLAGS
2829 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2830 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_cc_g+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 ac_save_c_werror_flag=$ac_c_werror_flag
2835 ac_c_werror_flag=yes
2836 ac_cv_prog_cc_g=no
2837 CFLAGS="-g"
2838 cat >conftest.$ac_ext <<_ACEOF
2839 /* confdefs.h. */
2840 _ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2846 main ()
2850 return 0;
2852 _ACEOF
2853 rm -f conftest.$ac_objext
2854 if { (ac_try="$ac_compile"
2855 case "(($ac_try" in
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2858 esac
2859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2860 (eval "$ac_compile") 2>conftest.er1
2861 ac_status=$?
2862 grep -v '^ *+' conftest.er1 >conftest.err
2863 rm -f conftest.er1
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } && {
2867 test -z "$ac_c_werror_flag" ||
2868 test ! -s conftest.err
2869 } && test -s conftest.$ac_objext; then
2870 ac_cv_prog_cc_g=yes
2871 else
2872 echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2875 CFLAGS=""
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2884 main ()
2888 return 0;
2890 _ACEOF
2891 rm -f conftest.$ac_objext
2892 if { (ac_try="$ac_compile"
2893 case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compile") 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } && {
2905 test -z "$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 } && test -s conftest.$ac_objext; then
2909 else
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2913 ac_c_werror_flag=$ac_save_c_werror_flag
2914 CFLAGS="-g"
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2923 main ()
2927 return 0;
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } && {
2944 test -z "$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.$ac_objext; then
2947 ac_cv_prog_cc_g=yes
2948 else
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962 ac_c_werror_flag=$ac_save_c_werror_flag
2964 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2966 if test "$ac_test_CFLAGS" = set; then
2967 CFLAGS=$ac_save_CFLAGS
2968 elif test $ac_cv_prog_cc_g = yes; then
2969 if test "$GCC" = yes; then
2970 CFLAGS="-g -O2"
2971 else
2972 CFLAGS="-g"
2974 else
2975 if test "$GCC" = yes; then
2976 CFLAGS="-O2"
2977 else
2978 CFLAGS=
2981 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2982 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cc_c89+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 ac_cv_prog_cc_c89=no
2987 ac_save_CC=$CC
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h. */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2994 #include <stdarg.h>
2995 #include <stdio.h>
2996 #include <sys/types.h>
2997 #include <sys/stat.h>
2998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2999 struct buf { int x; };
3000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3001 static char *e (p, i)
3002 char **p;
3003 int i;
3005 return p[i];
3007 static char *f (char * (*g) (char **, int), char **p, ...)
3009 char *s;
3010 va_list v;
3011 va_start (v,p);
3012 s = g (p, va_arg (v,int));
3013 va_end (v);
3014 return s;
3017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3018 function prototypes and stuff, but not '\xHH' hex character constants.
3019 These don't provoke an error unfortunately, instead are silently treated
3020 as 'x'. The following induces an error, until -std is added to get
3021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3022 array size at least. It's necessary to write '\x00'==0 to get something
3023 that's true only with -std. */
3024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3027 inside strings and character constants. */
3028 #define FOO(x) 'x'
3029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3031 int test (int i, double x);
3032 struct s1 {int (*f) (int a);};
3033 struct s2 {int (*f) (double a);};
3034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3035 int argc;
3036 char **argv;
3038 main ()
3040 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3042 return 0;
3044 _ACEOF
3045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3048 CC="$ac_save_CC $ac_arg"
3049 rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3051 case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054 esac
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compile") 2>conftest.er1
3057 ac_status=$?
3058 grep -v '^ *+' conftest.er1 >conftest.err
3059 rm -f conftest.er1
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } && {
3063 test -z "$ac_c_werror_flag" ||
3064 test ! -s conftest.err
3065 } && test -s conftest.$ac_objext; then
3066 ac_cv_prog_cc_c89=$ac_arg
3067 else
3068 echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3074 rm -f core conftest.err conftest.$ac_objext
3075 test "x$ac_cv_prog_cc_c89" != "xno" && break
3076 done
3077 rm -f conftest.$ac_ext
3078 CC=$ac_save_CC
3081 # AC_CACHE_VAL
3082 case "x$ac_cv_prog_cc_c89" in
3084 { echo "$as_me:$LINENO: result: none needed" >&5
3085 echo "${ECHO_T}none needed" >&6; } ;;
3086 xno)
3087 { echo "$as_me:$LINENO: result: unsupported" >&5
3088 echo "${ECHO_T}unsupported" >&6; } ;;
3090 CC="$CC $ac_cv_prog_cc_c89"
3091 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3092 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3093 esac
3096 ac_ext=c
3097 ac_cpp='$CPP $CPPFLAGS'
3098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102 if test "x$CC" != xcc; then
3103 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3104 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3105 else
3106 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3107 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3109 set dummy $CC; ac_cc=`echo $2 |
3110 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3111 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 cat >conftest.$ac_ext <<_ACEOF
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3122 main ()
3126 return 0;
3128 _ACEOF
3129 # Make sure it works both with $CC and with simple cc.
3130 # We do the test twice because some compilers refuse to overwrite an
3131 # existing .o file with -o, though they will create one.
3132 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3133 rm -f conftest2.*
3134 if { (case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_try") 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
3143 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); };
3152 then
3153 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3154 if test "x$CC" != xcc; then
3155 # Test first that cc exists at all.
3156 if { ac_try='cc -c conftest.$ac_ext >&5'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3166 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3167 rm -f conftest2.*
3168 if { (case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_try") 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_try") 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); };
3186 then
3187 # cc works too.
3189 else
3190 # cc exists but doesn't like -o.
3191 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3195 else
3196 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3198 rm -f core conftest*
3201 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3202 { echo "$as_me:$LINENO: result: yes" >&5
3203 echo "${ECHO_T}yes" >&6; }
3204 else
3205 { echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6; }
3208 cat >>confdefs.h <<\_ACEOF
3209 #define NO_MINUS_C_MINUS_O 1
3210 _ACEOF
3216 php_with_libdir=lib
3218 { echo "$as_me:$LINENO: checking for system library directory" >&5
3219 echo $ECHO_N "checking for system library directory... $ECHO_C" >&6; }
3221 # Check whether --with-libdir was given.
3222 if test "${with_libdir+set}" = set; then
3223 withval=$with_libdir; PHP_LIBDIR=$withval
3224 else
3226 PHP_LIBDIR=lib
3228 if test "$PHP_ENABLE_ALL" && test "no" = "yes"; then
3229 PHP_LIBDIR=$PHP_ENABLE_ALL
3235 ext_output=$PHP_LIBDIR
3236 { echo "$as_me:$LINENO: result: $ext_output" >&5
3237 echo "${ECHO_T}$ext_output" >&6; }
3244 { echo "$as_me:$LINENO: checking if compiler supports -R" >&5
3245 echo $ECHO_N "checking if compiler supports -R... $ECHO_C" >&6; }
3246 if test "${php_cv_cc_dashr+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3250 SAVE_LIBS=$LIBS
3251 LIBS="-R /usr/$PHP_LIBDIR $LIBS"
3252 cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3260 main ()
3264 return 0;
3266 _ACEOF
3267 rm -f conftest.$ac_objext conftest$ac_exeext
3268 if { (ac_try="$ac_link"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_link") 2>conftest.er1
3275 ac_status=$?
3276 grep -v '^ *+' conftest.er1 >conftest.err
3277 rm -f conftest.er1
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } && {
3281 test -z "$ac_c_werror_flag" ||
3282 test ! -s conftest.err
3283 } && test -s conftest$ac_exeext &&
3284 $as_test_x conftest$ac_exeext; then
3285 php_cv_cc_dashr=yes
3286 else
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 php_cv_cc_dashr=no
3293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3294 conftest$ac_exeext conftest.$ac_ext
3295 LIBS=$SAVE_LIBS
3298 { echo "$as_me:$LINENO: result: $php_cv_cc_dashr" >&5
3299 echo "${ECHO_T}$php_cv_cc_dashr" >&6; }
3300 if test $php_cv_cc_dashr = "yes"; then
3301 ld_runpath_switch=-R
3302 else
3303 { echo "$as_me:$LINENO: checking if compiler supports -Wl,-rpath," >&5
3304 echo $ECHO_N "checking if compiler supports -Wl,-rpath,... $ECHO_C" >&6; }
3305 if test "${php_cv_cc_rpath+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3309 SAVE_LIBS=$LIBS
3310 LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS"
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h. */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3319 main ()
3323 return 0;
3325 _ACEOF
3326 rm -f conftest.$ac_objext conftest$ac_exeext
3327 if { (ac_try="$ac_link"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_link") 2>conftest.er1
3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } && {
3340 test -z "$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3342 } && test -s conftest$ac_exeext &&
3343 $as_test_x conftest$ac_exeext; then
3344 php_cv_cc_rpath=yes
3345 else
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 php_cv_cc_rpath=no
3352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3353 conftest$ac_exeext conftest.$ac_ext
3354 LIBS=$SAVE_LIBS
3357 { echo "$as_me:$LINENO: result: $php_cv_cc_rpath" >&5
3358 echo "${ECHO_T}$php_cv_cc_rpath" >&6; }
3359 if test $php_cv_cc_rpath = "yes"; then
3360 ld_runpath_switch=-Wl,-rpath,
3361 else
3362 ld_runpath_switch=-L
3365 if test "$PHP_RPATH" = "no"; then
3366 ld_runpath_switch=
3369 ac_aux_dir=
3370 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3371 if test -f "$ac_dir/install-sh"; then
3372 ac_aux_dir=$ac_dir
3373 ac_install_sh="$ac_aux_dir/install-sh -c"
3374 break
3375 elif test -f "$ac_dir/install.sh"; then
3376 ac_aux_dir=$ac_dir
3377 ac_install_sh="$ac_aux_dir/install.sh -c"
3378 break
3379 elif test -f "$ac_dir/shtool"; then
3380 ac_aux_dir=$ac_dir
3381 ac_install_sh="$ac_aux_dir/shtool install -c"
3382 break
3384 done
3385 if test -z "$ac_aux_dir"; then
3386 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3387 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3388 { (exit 1); exit 1; }; }
3391 # These three variables are undocumented and unsupported,
3392 # and are intended to be withdrawn in a future Autoconf release.
3393 # They can cause serious problems if a builder's source tree is in a directory
3394 # whose full name contains unusual characters.
3395 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3396 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3397 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3400 # Make sure we can run config.sub.
3401 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3402 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3403 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3404 { (exit 1); exit 1; }; }
3406 { echo "$as_me:$LINENO: checking build system type" >&5
3407 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3408 if test "${ac_cv_build+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 ac_build_alias=$build_alias
3412 test "x$ac_build_alias" = x &&
3413 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3414 test "x$ac_build_alias" = x &&
3415 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3417 { (exit 1); exit 1; }; }
3418 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3419 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3420 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3421 { (exit 1); exit 1; }; }
3424 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3425 echo "${ECHO_T}$ac_cv_build" >&6; }
3426 case $ac_cv_build in
3427 *-*-*) ;;
3428 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3429 echo "$as_me: error: invalid value of canonical build" >&2;}
3430 { (exit 1); exit 1; }; };;
3431 esac
3432 build=$ac_cv_build
3433 ac_save_IFS=$IFS; IFS='-'
3434 set x $ac_cv_build
3435 shift
3436 build_cpu=$1
3437 build_vendor=$2
3438 shift; shift
3439 # Remember, the first character of IFS is used to create $*,
3440 # except with old shells:
3441 build_os=$*
3442 IFS=$ac_save_IFS
3443 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3446 { echo "$as_me:$LINENO: checking host system type" >&5
3447 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3448 if test "${ac_cv_host+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451 if test "x$host_alias" = x; then
3452 ac_cv_host=$ac_cv_build
3453 else
3454 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3455 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3456 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3457 { (exit 1); exit 1; }; }
3461 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3462 echo "${ECHO_T}$ac_cv_host" >&6; }
3463 case $ac_cv_host in
3464 *-*-*) ;;
3465 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3466 echo "$as_me: error: invalid value of canonical host" >&2;}
3467 { (exit 1); exit 1; }; };;
3468 esac
3469 host=$ac_cv_host
3470 ac_save_IFS=$IFS; IFS='-'
3471 set x $ac_cv_host
3472 shift
3473 host_cpu=$1
3474 host_vendor=$2
3475 shift; shift
3476 # Remember, the first character of IFS is used to create $*,
3477 # except with old shells:
3478 host_os=$*
3479 IFS=$ac_save_IFS
3480 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3483 { echo "$as_me:$LINENO: checking target system type" >&5
3484 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3485 if test "${ac_cv_target+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 if test "x$target_alias" = x; then
3489 ac_cv_target=$ac_cv_host
3490 else
3491 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3492 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3493 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3494 { (exit 1); exit 1; }; }
3498 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3499 echo "${ECHO_T}$ac_cv_target" >&6; }
3500 case $ac_cv_target in
3501 *-*-*) ;;
3502 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3503 echo "$as_me: error: invalid value of canonical target" >&2;}
3504 { (exit 1); exit 1; }; };;
3505 esac
3506 target=$ac_cv_target
3507 ac_save_IFS=$IFS; IFS='-'
3508 set x $ac_cv_target
3509 shift
3510 target_cpu=$1
3511 target_vendor=$2
3512 shift; shift
3513 # Remember, the first character of IFS is used to create $*,
3514 # except with old shells:
3515 target_os=$*
3516 IFS=$ac_save_IFS
3517 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3520 # The aliases save the names the user supplied, while $host etc.
3521 # will get canonicalized.
3522 test -n "$target_alias" &&
3523 test "$program_prefix$program_suffix$program_transform_name" = \
3524 NONENONEs,x,x, &&
3525 program_prefix=${target_alias}-
3527 if test -z "$host_alias" && test -n "$host"; then
3528 host_alias=$host
3530 if test -z "$host_alias"; then
3531 { { echo "$as_me:$LINENO: error: host_alias is not set!" >&5
3532 echo "$as_me: error: host_alias is not set!" >&2;}
3533 { (exit 1); exit 1; }; }
3539 PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME"
3545 PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME"
3549 SHLIB_SUFFIX_NAME=so
3550 SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
3551 case $host_alias in
3552 *hpux*)
3553 SHLIB_SUFFIX_NAME=sl
3554 SHLIB_DL_SUFFIX_NAME=sl
3556 *darwin*)
3557 SHLIB_SUFFIX_NAME=dylib
3558 SHLIB_DL_SUFFIX_NAME=so
3560 esac
3564 php_with_php_config=php-config
3568 # Check whether --with-php-config was given.
3569 if test "${with_php_config+set}" = set; then
3570 withval=$with_php_config; PHP_PHP_CONFIG=$withval
3571 else
3573 PHP_PHP_CONFIG=php-config
3575 if test "$PHP_ENABLE_ALL" && test "no" = "yes"; then
3576 PHP_PHP_CONFIG=$PHP_ENABLE_ALL
3582 ext_output=$PHP_PHP_CONFIG
3588 PHP_CONFIG=$PHP_PHP_CONFIG
3589 prefix=`$PHP_CONFIG --prefix 2>/dev/null`
3590 phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
3591 INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
3592 EXTENSION_DIR=`$PHP_CONFIG --extension-dir 2>/dev/null`
3593 PHP_EXECUTABLE=`$PHP_CONFIG --php-binary 2>/dev/null`
3595 if test -z "$prefix"; then
3596 { { echo "$as_me:$LINENO: error: Cannot find php-config. Please use --with-php-config=PATH" >&5
3597 echo "$as_me: error: Cannot find php-config. Please use --with-php-config=PATH" >&2;}
3598 { (exit 1); exit 1; }; }
3601 php_shtool=$srcdir/build/shtool
3603 test -d include || $php_shtool mkdir include
3604 > Makefile.objects
3605 > Makefile.fragments
3606 pattern=define
3607 $EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null
3610 { echo "$as_me:$LINENO: checking for PHP prefix" >&5
3611 echo $ECHO_N "checking for PHP prefix... $ECHO_C" >&6; }
3612 { echo "$as_me:$LINENO: result: $prefix" >&5
3613 echo "${ECHO_T}$prefix" >&6; }
3614 { echo "$as_me:$LINENO: checking for PHP includes" >&5
3615 echo $ECHO_N "checking for PHP includes... $ECHO_C" >&6; }
3616 { echo "$as_me:$LINENO: result: $INCLUDES" >&5
3617 echo "${ECHO_T}$INCLUDES" >&6; }
3618 { echo "$as_me:$LINENO: checking for PHP extension directory" >&5
3619 echo $ECHO_N "checking for PHP extension directory... $ECHO_C" >&6; }
3620 { echo "$as_me:$LINENO: result: $EXTENSION_DIR" >&5
3621 echo "${ECHO_T}$EXTENSION_DIR" >&6; }
3622 { echo "$as_me:$LINENO: checking for PHP installed headers prefix" >&5
3623 echo $ECHO_N "checking for PHP installed headers prefix... $ECHO_C" >&6; }
3624 { echo "$as_me:$LINENO: result: $phpincludedir" >&5
3625 echo "${ECHO_T}$phpincludedir" >&6; }
3629 OVERALL_TARGET=php
3630 php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
3631 php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
3632 php_c_post=
3633 php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
3634 php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
3635 php_cxx_post=
3636 php_lo=lo
3638 case $with_pic in
3639 yes) pic_setting='-prefer-pic';;
3640 no) pic_setting='-prefer-non-pic';;
3641 esac
3643 shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
3644 shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
3645 shared_c_post=
3646 shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
3647 shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
3648 shared_cxx_post=
3649 shared_lo=lo
3651 php_build_target=program
3653 OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
3654 php_build_target=shared
3656 php_c_pre=$shared_c_pre
3657 php_c_meta=$shared_c_meta
3658 php_c_post=$shared_c_post
3659 php_cxx_pre=$shared_cxx_pre
3660 php_cxx_meta=$shared_cxx_meta
3661 php_cxx_post=$shared_cxx_post
3662 php_lo=$shared_lo
3666 # Extract the first word of "re2c", so it can be a program name with args.
3667 set dummy re2c; ac_word=$2
3668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3670 if test "${ac_cv_prog_RE2C+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 if test -n "$RE2C"; then
3674 ac_cv_prog_RE2C="$RE2C" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_RE2C="re2c"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3687 done
3688 done
3689 IFS=$as_save_IFS
3693 RE2C=$ac_cv_prog_RE2C
3694 if test -n "$RE2C"; then
3695 { echo "$as_me:$LINENO: result: $RE2C" >&5
3696 echo "${ECHO_T}$RE2C" >&6; }
3697 else
3698 { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3703 if test -n "$RE2C"; then
3704 { echo "$as_me:$LINENO: checking for re2c version" >&5
3705 echo $ECHO_N "checking for re2c version... $ECHO_C" >&6; }
3706 if test "${php_cv_re2c_version+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3710 re2c_vernum=`re2c --vernum 2>/dev/null`
3711 if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1200"; then
3712 php_cv_re2c_version=invalid
3713 else
3714 php_cv_re2c_version="`re2c --version | cut -d ' ' -f 2 2>/dev/null` (ok)"
3718 { echo "$as_me:$LINENO: result: $php_cv_re2c_version" >&5
3719 echo "${ECHO_T}$php_cv_re2c_version" >&6; }
3721 case $php_cv_re2c_version in
3722 ""|invalid)
3723 { echo "$as_me:$LINENO: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers." >&5
3724 echo "$as_me: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers." >&2;}
3725 RE2C="exit 0;"
3727 esac
3729 PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C"
3733 for ac_prog in gawk nawk awk mawk
3735 # Extract the first word of "$ac_prog", so it can be a program name with args.
3736 set dummy $ac_prog; ac_word=$2
3737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3739 if test "${ac_cv_prog_AWK+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 if test -n "$AWK"; then
3743 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 as_dummy="/usr/xpg4/bin/:$PATH"
3747 for as_dir in $as_dummy
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3753 ac_cv_prog_AWK="$ac_prog"
3754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3757 done
3758 done
3759 IFS=$as_save_IFS
3763 AWK=$ac_cv_prog_AWK
3764 if test -n "$AWK"; then
3765 { echo "$as_me:$LINENO: result: $AWK" >&5
3766 echo "${ECHO_T}$AWK" >&6; }
3767 else
3768 { echo "$as_me:$LINENO: result: no" >&5
3769 echo "${ECHO_T}no" >&6; }
3773 test -n "$AWK" && break
3774 done
3775 test -n "$AWK" || AWK="bork"
3777 case "$AWK" in
3778 *mawk)
3779 { echo "$as_me:$LINENO: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5
3780 echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;}
3782 *gawk)
3784 bork)
3785 { { echo "$as_me:$LINENO: error: Could not find awk; Install GNU awk" >&5
3786 echo "$as_me: error: Could not find awk; Install GNU awk" >&2;}
3787 { (exit 1); exit 1; }; }
3790 { echo "$as_me:$LINENO: checking if $AWK is broken" >&5
3791 echo $ECHO_N "checking if $AWK is broken... $ECHO_C" >&6; }
3792 if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then
3793 { echo "$as_me:$LINENO: result: yes" >&5
3794 echo "${ECHO_T}yes" >&6; }
3795 { { echo "$as_me:$LINENO: error: You should install GNU awk" >&5
3796 echo "$as_me: error: You should install GNU awk" >&2;}
3797 { (exit 1); exit 1; }; }
3798 else
3799 { echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6; }
3803 esac
3805 PHP_VAR_SUBST="$PHP_VAR_SUBST AWK"
3811 php_enable_cairo=no
3813 { echo "$as_me:$LINENO: checking whether to enable Cairo functions" >&5
3814 echo $ECHO_N "checking whether to enable Cairo functions... $ECHO_C" >&6; }
3815 # Check whether --enable-cairo was given.
3816 if test "${enable_cairo+set}" = set; then
3817 enableval=$enable_cairo; PHP_CAIRO=$enableval
3818 else
3820 PHP_CAIRO=no
3822 if test "$PHP_ENABLE_ALL" && test "yes" = "yes"; then
3823 PHP_CAIRO=$PHP_ENABLE_ALL
3830 ext_output="yes, shared"
3831 ext_shared=yes
3832 case $PHP_CAIRO in
3833 shared,*)
3834 PHP_CAIRO=`echo "$PHP_CAIRO"|$SED 's/^shared,//'`
3836 shared)
3837 PHP_CAIRO=yes
3840 ext_output=no
3841 ext_shared=no
3844 ext_output=yes
3845 ext_shared=no
3847 esac
3850 ext_output="yes, shared"
3851 ext_shared=yes
3852 test "$PHP_CAIRO" = "no" && PHP_CAIRO=yes
3855 { echo "$as_me:$LINENO: result: $ext_output" >&5
3856 echo "${ECHO_T}$ext_output" >&6; }
3861 if test "$PHP_CAIRO" != "no"; then
3862 export OLD_CPPFLAGS="$CPPFLAGS"
3863 export CPPFLAGS="$CPPFLAGS $INCLUDES -DHAVE_CAIRO"
3865 { echo "$as_me:$LINENO: checking PHP version" >&5
3866 echo $ECHO_N "checking PHP version... $ECHO_C" >&6; }
3867 cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h. */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873 #include <php_version.h>
3875 main ()
3878 #if PHP_VERSION_ID < 50000
3879 #error this extension requires at least PHP version 5.0.0
3880 #endif
3883 return 0;
3885 _ACEOF
3886 rm -f conftest.$ac_objext
3887 if { (ac_try="$ac_compile"
3888 case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3893 (eval "$ac_compile") 2>conftest.er1
3894 ac_status=$?
3895 grep -v '^ *+' conftest.er1 >conftest.err
3896 rm -f conftest.er1
3897 cat conftest.err >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } && {
3900 test -z "$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3902 } && test -s conftest.$ac_objext; then
3903 { echo "$as_me:$LINENO: result: ok" >&5
3904 echo "${ECHO_T}ok" >&6; }
3905 else
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3909 { { echo "$as_me:$LINENO: error: need at least PHP 5.0.0" >&5
3910 echo "$as_me: error: need at least PHP 5.0.0" >&2;}
3911 { (exit 1); exit 1; }; }
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 export CPPFLAGS="$OLD_CPPFLAGS"
3920 PHP_VAR_SUBST="$PHP_VAR_SUBST CAIRO_SHARED_LIBADD"
3923 cat >>confdefs.h <<\_ACEOF
3924 #define HAVE_CAIRO 1
3925 _ACEOF
3929 ext_builddir=.
3930 ext_srcdir=$abs_srcdir
3932 ac_extra=
3934 if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
3935 PHP_CAIRO_SHARED=no
3938 case "" in
3939 "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
3940 /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
3941 *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
3942 esac
3946 b_c_pre=$php_c_pre
3947 b_cxx_pre=$php_cxx_pre
3948 b_c_meta=$php_c_meta
3949 b_cxx_meta=$php_cxx_meta
3950 b_c_post=$php_c_post
3951 b_cxx_post=$php_cxx_post
3952 b_lo=$php_lo
3955 old_IFS=$IFS
3956 for ac_src in cairo.c ; do
3958 IFS=.
3959 set $ac_src
3960 ac_obj=$1
3961 IFS=$old_IFS
3963 PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
3965 case $ac_src in
3966 *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
3967 *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
3968 *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
3969 *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
3970 esac
3972 cat >>Makefile.objects<<EOF
3973 $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
3974 $ac_comp
3976 done
3979 EXT_STATIC="$EXT_STATIC cairo"
3980 if test "$ext_shared" != "nocli"; then
3981 EXT_CLI_STATIC="$EXT_CLI_STATIC cairo"
3983 else
3984 if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
3985 PHP_CAIRO_SHARED=yes
3987 case "" in
3988 "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
3989 /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
3990 *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
3991 esac
3995 b_c_pre=$shared_c_pre
3996 b_cxx_pre=$shared_cxx_pre
3997 b_c_meta=$shared_c_meta
3998 b_cxx_meta=$shared_cxx_meta
3999 b_c_post=$shared_c_post
4000 b_cxx_post=$shared_cxx_post
4001 b_lo=$shared_lo
4004 old_IFS=$IFS
4005 for ac_src in cairo.c ; do
4007 IFS=.
4008 set $ac_src
4009 ac_obj=$1
4010 IFS=$old_IFS
4012 shared_objects_cairo="$shared_objects_cairo $ac_bdir$ac_obj.lo"
4014 case $ac_src in
4015 *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4016 *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4017 *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4018 *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
4019 esac
4021 cat >>Makefile.objects<<EOF
4022 $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
4023 $ac_comp
4025 done
4027 case $host_alias in
4028 *netware*)
4030 install_modules="install-modules"
4032 case $host_alias in
4033 *aix*)
4034 suffix=so
4035 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpcairo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_cairo) $(PHPCAIRO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpcairo.so '$ext_builddir'/phpcairo.so'
4037 *netware*)
4038 suffix=nlm
4039 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_cairo) -L$(top_builddir)/netware -lphp5lib $(CAIRO_SHARED_LIBADD)'
4042 suffix=la
4043 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_cairo) $(PHPCAIRO_SHARED_LIBADD)'
4045 esac
4047 PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpcairo.$suffix"
4049 PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_cairo"
4051 cat >>Makefile.objects<<EOF
4052 \$(phplibdir)/phpcairo.$suffix: $ext_builddir/phpcairo.$suffix
4053 \$(LIBTOOL) --mode=install cp $ext_builddir/phpcairo.$suffix \$(phplibdir)
4055 $ext_builddir/phpcairo.$suffix: \$(shared_objects_cairo) \$(PHPCAIRO_SHARED_DEPENDENCIES)
4056 $link_cmd
4063 install_modules="install-modules"
4065 case $host_alias in
4066 *aix*)
4067 suffix=so
4068 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/cairo.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_cairo) $(CAIRO_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/cairo.so '$ext_builddir'/cairo.so'
4070 *netware*)
4071 suffix=nlm
4072 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_cairo) -L$(top_builddir)/netware -lphp5lib $(RO_SHARED_LIBADD)'
4075 suffix=la
4076 link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_cairo) $(CAIRO_SHARED_LIBADD)'
4078 esac
4080 PHP_MODULES="$PHP_MODULES \$(phplibdir)/cairo.$suffix"
4082 PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_cairo"
4084 cat >>Makefile.objects<<EOF
4085 \$(phplibdir)/cairo.$suffix: $ext_builddir/cairo.$suffix
4086 \$(LIBTOOL) --mode=install cp $ext_builddir/cairo.$suffix \$(phplibdir)
4088 $ext_builddir/cairo.$suffix: \$(shared_objects_cairo) \$(CAIRO_SHARED_DEPENDENCIES)
4089 $link_cmd
4094 esac
4096 cat >>confdefs.h <<_ACEOF
4097 #define COMPILE_DL_CAIRO 1
4098 _ACEOF
4103 if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
4104 PHP_CAIRO_SHARED=no
4105 if test "$PHP_SAPI" = "cgi"; then
4108 case "" in
4109 "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
4110 /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
4111 *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
4112 esac
4116 b_c_pre=$php_c_pre
4117 b_cxx_pre=$php_cxx_pre
4118 b_c_meta=$php_c_meta
4119 b_cxx_meta=$php_cxx_meta
4120 b_c_post=$php_c_post
4121 b_cxx_post=$php_cxx_post
4122 b_lo=$php_lo
4125 old_IFS=$IFS
4126 for ac_src in cairo.c ; do
4128 IFS=.
4129 set $ac_src
4130 ac_obj=$1
4131 IFS=$old_IFS
4133 PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
4135 case $ac_src in
4136 *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4137 *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4138 *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4139 *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
4140 esac
4142 cat >>Makefile.objects<<EOF
4143 $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
4144 $ac_comp
4146 done
4149 EXT_STATIC="$EXT_STATIC cairo"
4150 else
4153 case "" in
4154 "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
4155 /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
4156 *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
4157 esac
4161 b_c_pre=$php_c_pre
4162 b_cxx_pre=$php_cxx_pre
4163 b_c_meta=$php_c_meta
4164 b_cxx_meta=$php_cxx_meta
4165 b_c_post=$php_c_post
4166 b_cxx_post=$php_cxx_post
4167 b_lo=$php_lo
4170 old_IFS=$IFS
4171 for ac_src in cairo.c ; do
4173 IFS=.
4174 set $ac_src
4175 ac_obj=$1
4176 IFS=$old_IFS
4178 PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
4180 case $ac_src in
4181 *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4182 *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4183 *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
4184 *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
4185 esac
4187 cat >>Makefile.objects<<EOF
4188 $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
4189 $ac_comp
4191 done
4195 EXT_CLI_STATIC="$EXT_CLI_STATIC cairo"
4199 BUILD_DIR="$BUILD_DIR $ext_builddir"
4203 if test "$ext_builddir" = "."; then
4204 PHP_PECL_EXTENSION=cairo
4206 PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
4211 { echo "$as_me:$LINENO: checking for pkg-config" >&5
4212 echo $ECHO_N "checking for pkg-config... $ECHO_C" >&6; }
4213 if test ! -f "$PKG_CONFIG"; then
4214 PKG_CONFIG=`which pkg-config`
4216 if test -f "$PKG_CONFIG"; then
4217 { echo "$as_me:$LINENO: result: found" >&5
4218 echo "${ECHO_T}found" >&6; }
4219 { echo "$as_me:$LINENO: checking for cairo" >&5
4220 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
4222 if $PKG_CONFIG --exists cairo; then
4223 { echo "$as_me:$LINENO: result: found" >&5
4224 echo "${ECHO_T}found" >&6; }
4225 LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs cairo`"
4226 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags cairo`"
4228 cat >>confdefs.h <<\_ACEOF
4229 #define HAVE_CAIRO 1
4230 _ACEOF
4232 else
4233 { echo "$as_me:$LINENO: result: not found" >&5
4234 echo "${ECHO_T}not found" >&6; }
4235 { { echo "$as_me:$LINENO: error: Ooops ! no cairo detected in the system" >&5
4236 echo "$as_me: error: Ooops ! no cairo detected in the system" >&2;}
4237 { (exit 1); exit 1; }; }
4239 else
4240 { echo "$as_me:$LINENO: result: not found" >&5
4241 echo "${ECHO_T}not found" >&6; }
4242 { { echo "$as_me:$LINENO: error: Ooops ! no pkg-config found .... " >&5
4243 echo "$as_me: error: Ooops ! no pkg-config found .... " >&2;}
4244 { (exit 1); exit 1; }; }
4250 enable_static=no
4251 enable_shared=yes
4255 # Check whether --enable-shared was given.
4256 if test "${enable_shared+set}" = set; then
4257 enableval=$enable_shared; p=${PACKAGE-default}
4258 case $enableval in
4259 yes) enable_shared=yes ;;
4260 no) enable_shared=no ;;
4262 enable_shared=no
4263 # Look at the argument we got. We use all the common list separators.
4264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4265 for pkg in $enableval; do
4266 IFS="$lt_save_ifs"
4267 if test "X$pkg" = "X$p"; then
4268 enable_shared=yes
4270 done
4271 IFS="$lt_save_ifs"
4273 esac
4274 else
4275 enable_shared=yes
4279 # Check whether --enable-static was given.
4280 if test "${enable_static+set}" = set; then
4281 enableval=$enable_static; p=${PACKAGE-default}
4282 case $enableval in
4283 yes) enable_static=yes ;;
4284 no) enable_static=no ;;
4286 enable_static=no
4287 # Look at the argument we got. We use all the common list separators.
4288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4289 for pkg in $enableval; do
4290 IFS="$lt_save_ifs"
4291 if test "X$pkg" = "X$p"; then
4292 enable_static=yes
4294 done
4295 IFS="$lt_save_ifs"
4297 esac
4298 else
4299 enable_static=yes
4303 # Check whether --enable-fast-install was given.
4304 if test "${enable_fast_install+set}" = set; then
4305 enableval=$enable_fast_install; p=${PACKAGE-default}
4306 case $enableval in
4307 yes) enable_fast_install=yes ;;
4308 no) enable_fast_install=no ;;
4310 enable_fast_install=no
4311 # Look at the argument we got. We use all the common list separators.
4312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4313 for pkg in $enableval; do
4314 IFS="$lt_save_ifs"
4315 if test "X$pkg" = "X$p"; then
4316 enable_fast_install=yes
4318 done
4319 IFS="$lt_save_ifs"
4321 esac
4322 else
4323 enable_fast_install=yes
4328 # Check whether --with-gnu-ld was given.
4329 if test "${with_gnu_ld+set}" = set; then
4330 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4331 else
4332 with_gnu_ld=no
4335 ac_prog=ld
4336 if test "$GCC" = yes; then
4337 # Check if gcc -print-prog-name=ld gives a path.
4338 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4339 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4340 case $host in
4341 *-*-mingw*)
4342 # gcc leaves a trailing carriage return which upsets mingw
4343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4346 esac
4347 case $ac_prog in
4348 # Accept absolute paths.
4349 [\\/]* | ?:[\\/]*)
4350 re_direlt='/[^/][^/]*/\.\./'
4351 # Canonicalize the pathname of ld
4352 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4353 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4354 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4355 done
4356 test -z "$LD" && LD="$ac_prog"
4359 # If it fails, then pretend we aren't using GCC.
4360 ac_prog=ld
4363 # If it is relative, then search for the first ld in PATH.
4364 with_gnu_ld=unknown
4366 esac
4367 elif test "$with_gnu_ld" = yes; then
4368 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4369 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4370 else
4371 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4372 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4374 if test "${lt_cv_path_LD+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377 if test -z "$LD"; then
4378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4379 for ac_dir in $PATH; do
4380 IFS="$lt_save_ifs"
4381 test -z "$ac_dir" && ac_dir=.
4382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4383 lt_cv_path_LD="$ac_dir/$ac_prog"
4384 # Check to see if the program is GNU ld. I'd rather use --version,
4385 # but apparently some variants of GNU ld only accept -v.
4386 # Break only if it was the GNU/non-GNU ld that we prefer.
4387 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4388 *GNU* | *'with BFD'*)
4389 test "$with_gnu_ld" != no && break
4392 test "$with_gnu_ld" != yes && break
4394 esac
4396 done
4397 IFS="$lt_save_ifs"
4398 else
4399 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4403 LD="$lt_cv_path_LD"
4404 if test -n "$LD"; then
4405 { echo "$as_me:$LINENO: result: $LD" >&5
4406 echo "${ECHO_T}$LD" >&6; }
4407 else
4408 { echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6; }
4411 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4412 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4413 { (exit 1); exit 1; }; }
4414 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4415 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4416 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4420 case `$LD -v 2>&1 </dev/null` in
4421 *GNU* | *'with BFD'*)
4422 lt_cv_prog_gnu_ld=yes
4425 lt_cv_prog_gnu_ld=no
4427 esac
4429 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4430 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4431 with_gnu_ld=$lt_cv_prog_gnu_ld
4434 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4435 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4436 if test "${lt_cv_ld_reload_flag+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 lt_cv_ld_reload_flag='-r'
4441 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4442 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4443 reload_flag=$lt_cv_ld_reload_flag
4444 case $reload_flag in
4445 "" | " "*) ;;
4446 *) reload_flag=" $reload_flag" ;;
4447 esac
4448 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4449 case $host_os in
4450 darwin*)
4451 if test "$GCC" = yes; then
4452 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4453 else
4454 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4457 esac
4459 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4460 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4461 if test "${lt_cv_path_NM+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 else
4464 if test -n "$NM"; then
4465 # Let the user override the test.
4466 lt_cv_path_NM="$NM"
4467 else
4468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4469 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4470 IFS="$lt_save_ifs"
4471 test -z "$ac_dir" && ac_dir=.
4472 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4473 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4474 # Check to see if the nm accepts a BSD-compat flag.
4475 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4476 # nm: unknown option "B" ignored
4477 # Tru64's nm complains that /dev/null is an invalid object file
4478 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4479 */dev/null* | *'Invalid file or object type'*)
4480 lt_cv_path_NM="$tmp_nm -B"
4481 break
4484 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4485 */dev/null*)
4486 lt_cv_path_NM="$tmp_nm -p"
4487 break
4490 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4491 continue # so that we can try to find one that supports BSD flags
4493 esac
4494 esac
4496 done
4497 IFS="$lt_save_ifs"
4498 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4501 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4502 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4503 NM="$lt_cv_path_NM"
4505 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4506 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4507 LN_S=$as_ln_s
4508 if test "$LN_S" = "ln -s"; then
4509 { echo "$as_me:$LINENO: result: yes" >&5
4510 echo "${ECHO_T}yes" >&6; }
4511 else
4512 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4513 echo "${ECHO_T}no, using $LN_S" >&6; }
4516 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4517 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4518 if test "${lt_cv_deplibs_check_method+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 lt_cv_file_magic_cmd='$MAGIC_CMD'
4522 lt_cv_file_magic_test_file=
4523 lt_cv_deplibs_check_method='unknown'
4524 # Need to set the preceding variable on all platforms that support
4525 # interlibrary dependencies.
4526 # 'none' -- dependencies not supported.
4527 # `unknown' -- same as none, but documents that we really don't know.
4528 # 'pass_all' -- all dependencies passed with no checks.
4529 # 'test_compile' -- check by making test program.
4530 # 'file_magic [[regex]]' -- check by looking for files in library path
4531 # which responds to the $file_magic_cmd with a given extended regex.
4532 # If you have `file' or equivalent on your system and you're not sure
4533 # whether `pass_all' will *always* work, you probably want this one.
4535 case $host_os in
4536 aix4* | aix5*)
4537 lt_cv_deplibs_check_method=pass_all
4540 beos*)
4541 lt_cv_deplibs_check_method=pass_all
4544 bsdi[45]*)
4545 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4546 lt_cv_file_magic_cmd='/usr/bin/file -L'
4547 lt_cv_file_magic_test_file=/shlib/libc.so
4550 cygwin*)
4551 # func_win32_libid is a shell function defined in ltmain.sh
4552 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4553 lt_cv_file_magic_cmd='func_win32_libid'
4556 mingw* | pw32*)
4557 # Base MSYS/MinGW do not provide the 'file' command needed by
4558 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4559 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4560 lt_cv_file_magic_cmd='$OBJDUMP -f'
4563 darwin* | rhapsody*)
4564 lt_cv_deplibs_check_method=pass_all
4567 freebsd* | kfreebsd*-gnu | dragonfly*)
4568 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4569 case $host_cpu in
4570 i*86 )
4571 # Not sure whether the presence of OpenBSD here was a mistake.
4572 # Let's accept both of them until this is cleared up.
4573 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4574 lt_cv_file_magic_cmd=/usr/bin/file
4575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4577 esac
4578 else
4579 lt_cv_deplibs_check_method=pass_all
4583 gnu*)
4584 lt_cv_deplibs_check_method=pass_all
4587 hpux10.20* | hpux11*)
4588 lt_cv_file_magic_cmd=/usr/bin/file
4589 case $host_cpu in
4590 ia64*)
4591 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4592 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4594 hppa*64*)
4595 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]'
4596 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4599 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4600 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4602 esac
4605 irix5* | irix6* | nonstopux*)
4606 case $LD in
4607 *-32|*"-32 ") libmagic=32-bit;;
4608 *-n32|*"-n32 ") libmagic=N32;;
4609 *-64|*"-64 ") libmagic=64-bit;;
4610 *) libmagic=never-match;;
4611 esac
4612 lt_cv_deplibs_check_method=pass_all
4615 # This must be Linux ELF.
4616 linux*)
4617 lt_cv_deplibs_check_method=pass_all
4620 netbsd*)
4621 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4623 else
4624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4628 newos6*)
4629 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4630 lt_cv_file_magic_cmd=/usr/bin/file
4631 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4634 nto-qnx*)
4635 lt_cv_deplibs_check_method=unknown
4638 openbsd*)
4639 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4641 else
4642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4646 osf3* | osf4* | osf5*)
4647 lt_cv_deplibs_check_method=pass_all
4650 sco3.2v5*)
4651 lt_cv_deplibs_check_method=pass_all
4654 solaris*)
4655 lt_cv_deplibs_check_method=pass_all
4658 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4659 case $host_vendor in
4660 motorola)
4661 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]'
4662 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4664 ncr)
4665 lt_cv_deplibs_check_method=pass_all
4667 sequent)
4668 lt_cv_file_magic_cmd='/bin/file'
4669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4671 sni)
4672 lt_cv_file_magic_cmd='/bin/file'
4673 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4674 lt_cv_file_magic_test_file=/lib/libc.so
4676 siemens)
4677 lt_cv_deplibs_check_method=pass_all
4679 esac
4682 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4683 lt_cv_deplibs_check_method=pass_all
4685 esac
4688 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4689 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4690 file_magic_cmd=$lt_cv_file_magic_cmd
4691 deplibs_check_method=$lt_cv_deplibs_check_method
4692 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4697 # If no C compiler was specified, use CC.
4698 LTCC=${LTCC-"$CC"}
4700 # Allow CC to be a program name with arguments.
4701 compiler=$CC
4703 #AC_ARG_ENABLE([libtool-lock],
4704 #[ --disable-libtool-lock avoid locking (might break parallel builds)])
4705 #test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4707 # Some flags need to be propagated to the compiler or linker for good
4708 # libtool support.
4709 case $host in
4710 ia64-*-hpux*)
4711 # Find out which ABI we are using.
4712 echo 'int i;' > conftest.$ac_ext
4713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4714 (eval $ac_compile) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; then
4718 case `/usr/bin/file conftest.$ac_objext` in
4719 *ELF-32*)
4720 HPUX_IA64_MODE="32"
4722 *ELF-64*)
4723 HPUX_IA64_MODE="64"
4725 esac
4727 rm -rf conftest*
4729 *-*-irix6*)
4730 # Find out which ABI we are using.
4731 echo '#line 4731 "configure"' > conftest.$ac_ext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; then
4737 if test "$lt_cv_prog_gnu_ld" = yes; then
4738 case `/usr/bin/file conftest.$ac_objext` in
4739 *32-bit*)
4740 LD="${LD-ld} -melf32bsmip"
4742 *N32*)
4743 LD="${LD-ld} -melf32bmipn32"
4745 *64-bit*)
4746 LD="${LD-ld} -melf64bmip"
4748 esac
4749 else
4750 case `/usr/bin/file conftest.$ac_objext` in
4751 *32-bit*)
4752 LD="${LD-ld} -32"
4754 *N32*)
4755 LD="${LD-ld} -n32"
4757 *64-bit*)
4758 LD="${LD-ld} -64"
4760 esac
4763 rm -rf conftest*
4766 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4767 # Find out which ABI we are using.
4768 echo 'int i;' > conftest.$ac_ext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>&5
4771 ac_status=$?
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; then
4774 case `/usr/bin/file conftest.o` in
4775 *32-bit*)
4776 case $host in
4777 x86_64-*linux*)
4778 LD="${LD-ld} -m elf_i386"
4780 ppc64-*linux*|powerpc64-*linux*)
4781 LD="${LD-ld} -m elf32ppclinux"
4783 s390x-*linux*)
4784 LD="${LD-ld} -m elf_s390"
4786 sparc64-*linux*)
4787 LD="${LD-ld} -m elf32_sparc"
4789 esac
4791 *64-bit*)
4792 case $host in
4793 x86_64-*linux*)
4794 LD="${LD-ld} -m elf_x86_64"
4796 ppc*-*linux*|powerpc*-*linux*)
4797 LD="${LD-ld} -m elf64ppc"
4799 s390*-*linux*)
4800 LD="${LD-ld} -m elf64_s390"
4802 sparc*-*linux*)
4803 LD="${LD-ld} -m elf64_sparc"
4805 esac
4807 esac
4809 rm -rf conftest*
4812 *-*-sco3.2v5*)
4813 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4814 SAVE_CFLAGS="$CFLAGS"
4815 CFLAGS="$CFLAGS -belf"
4816 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4817 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4818 if test "${lt_cv_cc_needs_belf+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4822 ac_ext=c
4823 ac_cpp='$CPP $CPPFLAGS'
4824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4836 main ()
4840 return 0;
4842 _ACEOF
4843 rm -f conftest.$ac_objext conftest$ac_exeext
4844 if { (ac_try="$ac_link"
4845 case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848 esac
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_link") 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } && {
4857 test -z "$ac_c_werror_flag" ||
4858 test ! -s conftest.err
4859 } && test -s conftest$ac_exeext &&
4860 $as_test_x conftest$ac_exeext; then
4861 lt_cv_cc_needs_belf=yes
4862 else
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 lt_cv_cc_needs_belf=no
4869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4870 conftest$ac_exeext conftest.$ac_ext
4871 ac_ext=c
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4879 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4880 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4881 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4882 CFLAGS="$SAVE_CFLAGS"
4886 esac
4888 need_locks="$enable_libtool_lock"
4891 ac_ext=c
4892 ac_cpp='$CPP $CPPFLAGS'
4893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4896 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4897 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4898 # On Suns, sometimes $CPP names a directory.
4899 if test -n "$CPP" && test -d "$CPP"; then
4900 CPP=
4902 if test -z "$CPP"; then
4903 if test "${ac_cv_prog_CPP+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906 # Double quotes because CPP needs to be expanded
4907 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4909 ac_preproc_ok=false
4910 for ac_c_preproc_warn_flag in '' yes
4912 # Use a header file that comes with gcc, so configuring glibc
4913 # with a fresh cross-compiler works.
4914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4915 # <limits.h> exists even on freestanding compilers.
4916 # On the NeXT, cc -E runs the code through the compiler's parser,
4917 # not just through cpp. "Syntax error" is here to catch this case.
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924 #ifdef __STDC__
4925 # include <limits.h>
4926 #else
4927 # include <assert.h>
4928 #endif
4929 Syntax error
4930 _ACEOF
4931 if { (ac_try="$ac_cpp conftest.$ac_ext"
4932 case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935 esac
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4938 ac_status=$?
4939 grep -v '^ *+' conftest.er1 >conftest.err
4940 rm -f conftest.er1
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } >/dev/null && {
4944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4945 test ! -s conftest.err
4946 }; then
4948 else
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4952 # Broken: fails on valid input.
4953 continue
4956 rm -f conftest.err conftest.$ac_ext
4958 # OK, works on sane cases. Now check whether nonexistent headers
4959 # can be detected and how.
4960 cat >conftest.$ac_ext <<_ACEOF
4961 /* confdefs.h. */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 #include <ac_nonexistent.h>
4967 _ACEOF
4968 if { (ac_try="$ac_cpp conftest.$ac_ext"
4969 case "(($ac_try" in
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4972 esac
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4975 ac_status=$?
4976 grep -v '^ *+' conftest.er1 >conftest.err
4977 rm -f conftest.er1
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } >/dev/null && {
4981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4982 test ! -s conftest.err
4983 }; then
4984 # Broken: success on invalid input.
4985 continue
4986 else
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4990 # Passes both tests.
4991 ac_preproc_ok=:
4992 break
4995 rm -f conftest.err conftest.$ac_ext
4997 done
4998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4999 rm -f conftest.err conftest.$ac_ext
5000 if $ac_preproc_ok; then
5001 break
5004 done
5005 ac_cv_prog_CPP=$CPP
5008 CPP=$ac_cv_prog_CPP
5009 else
5010 ac_cv_prog_CPP=$CPP
5012 { echo "$as_me:$LINENO: result: $CPP" >&5
5013 echo "${ECHO_T}$CPP" >&6; }
5014 ac_preproc_ok=false
5015 for ac_c_preproc_warn_flag in '' yes
5017 # Use a header file that comes with gcc, so configuring glibc
5018 # with a fresh cross-compiler works.
5019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5020 # <limits.h> exists even on freestanding compilers.
5021 # On the NeXT, cc -E runs the code through the compiler's parser,
5022 # not just through cpp. "Syntax error" is here to catch this case.
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h. */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 #ifdef __STDC__
5030 # include <limits.h>
5031 #else
5032 # include <assert.h>
5033 #endif
5034 Syntax error
5035 _ACEOF
5036 if { (ac_try="$ac_cpp conftest.$ac_ext"
5037 case "(($ac_try" in
5038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5039 *) ac_try_echo=$ac_try;;
5040 esac
5041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5043 ac_status=$?
5044 grep -v '^ *+' conftest.er1 >conftest.err
5045 rm -f conftest.er1
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } >/dev/null && {
5049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5050 test ! -s conftest.err
5051 }; then
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 # Broken: fails on valid input.
5058 continue
5061 rm -f conftest.err conftest.$ac_ext
5063 # OK, works on sane cases. Now check whether nonexistent headers
5064 # can be detected and how.
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #include <ac_nonexistent.h>
5072 _ACEOF
5073 if { (ac_try="$ac_cpp conftest.$ac_ext"
5074 case "(($ac_try" in
5075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5076 *) ac_try_echo=$ac_try;;
5077 esac
5078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev/null && {
5086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5088 }; then
5089 # Broken: success on invalid input.
5090 continue
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 # Passes both tests.
5096 ac_preproc_ok=:
5097 break
5100 rm -f conftest.err conftest.$ac_ext
5102 done
5103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5104 rm -f conftest.err conftest.$ac_ext
5105 if $ac_preproc_ok; then
5107 else
5108 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details." >&5
5110 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5111 See \`config.log' for more details." >&2;}
5112 { (exit 1); exit 1; }; }
5115 ac_ext=c
5116 ac_cpp='$CPP $CPPFLAGS'
5117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5124 if test "${ac_cv_header_stdc+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127 cat >conftest.$ac_ext <<_ACEOF
5128 /* confdefs.h. */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 #include <stdlib.h>
5134 #include <stdarg.h>
5135 #include <string.h>
5136 #include <float.h>
5139 main ()
5143 return 0;
5145 _ACEOF
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5148 case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_objext; then
5163 ac_cv_header_stdc=yes
5164 else
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 ac_cv_header_stdc=no
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 if test $ac_cv_header_stdc = yes; then
5174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5175 cat >conftest.$ac_ext <<_ACEOF
5176 /* confdefs.h. */
5177 _ACEOF
5178 cat confdefs.h >>conftest.$ac_ext
5179 cat >>conftest.$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 #include <string.h>
5183 _ACEOF
5184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5185 $EGREP "memchr" >/dev/null 2>&1; then
5187 else
5188 ac_cv_header_stdc=no
5190 rm -f conftest*
5194 if test $ac_cv_header_stdc = yes; then
5195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5196 cat >conftest.$ac_ext <<_ACEOF
5197 /* confdefs.h. */
5198 _ACEOF
5199 cat confdefs.h >>conftest.$ac_ext
5200 cat >>conftest.$ac_ext <<_ACEOF
5201 /* end confdefs.h. */
5202 #include <stdlib.h>
5204 _ACEOF
5205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5206 $EGREP "free" >/dev/null 2>&1; then
5208 else
5209 ac_cv_header_stdc=no
5211 rm -f conftest*
5215 if test $ac_cv_header_stdc = yes; then
5216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5217 if test "$cross_compiling" = yes; then
5219 else
5220 cat >conftest.$ac_ext <<_ACEOF
5221 /* confdefs.h. */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 #include <ctype.h>
5227 #include <stdlib.h>
5228 #if ((' ' & 0x0FF) == 0x020)
5229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5231 #else
5232 # define ISLOWER(c) \
5233 (('a' <= (c) && (c) <= 'i') \
5234 || ('j' <= (c) && (c) <= 'r') \
5235 || ('s' <= (c) && (c) <= 'z'))
5236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5237 #endif
5239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5241 main ()
5243 int i;
5244 for (i = 0; i < 256; i++)
5245 if (XOR (islower (i), ISLOWER (i))
5246 || toupper (i) != TOUPPER (i))
5247 return 2;
5248 return 0;
5250 _ACEOF
5251 rm -f conftest$ac_exeext
5252 if { (ac_try="$ac_link"
5253 case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_link") 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5262 { (case "(($ac_try" in
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5265 esac
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_try") 2>&5
5268 ac_status=$?
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5272 else
5273 echo "$as_me: program exited with status $ac_status" >&5
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5277 ( exit $ac_status )
5278 ac_cv_header_stdc=no
5280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5286 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5287 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5288 if test $ac_cv_header_stdc = yes; then
5290 cat >>confdefs.h <<\_ACEOF
5291 #define STDC_HEADERS 1
5292 _ACEOF
5296 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5306 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5307 inttypes.h stdint.h unistd.h
5309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 cat >conftest.$ac_ext <<_ACEOF
5316 /* confdefs.h. */
5317 _ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 $ac_includes_default
5323 #include <$ac_header>
5324 _ACEOF
5325 rm -f conftest.$ac_objext
5326 if { (ac_try="$ac_compile"
5327 case "(($ac_try" in
5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329 *) ac_try_echo=$ac_try;;
5330 esac
5331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5332 (eval "$ac_compile") 2>conftest.er1
5333 ac_status=$?
5334 grep -v '^ *+' conftest.er1 >conftest.err
5335 rm -f conftest.er1
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } && {
5339 test -z "$ac_c_werror_flag" ||
5340 test ! -s conftest.err
5341 } && test -s conftest.$ac_objext; then
5342 eval "$as_ac_Header=yes"
5343 else
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5347 eval "$as_ac_Header=no"
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352 ac_res=`eval echo '${'$as_ac_Header'}'`
5353 { echo "$as_me:$LINENO: result: $ac_res" >&5
5354 echo "${ECHO_T}$ac_res" >&6; }
5355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5356 cat >>confdefs.h <<_ACEOF
5357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5358 _ACEOF
5362 done
5366 for ac_header in dlfcn.h
5368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 ac_res=`eval echo '${'$as_ac_Header'}'`
5376 { echo "$as_me:$LINENO: result: $ac_res" >&5
5377 echo "${ECHO_T}$ac_res" >&6; }
5378 else
5379 # Is the header compilable?
5380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5382 cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h. */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5389 #include <$ac_header>
5390 _ACEOF
5391 rm -f conftest.$ac_objext
5392 if { (ac_try="$ac_compile"
5393 case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_compile") 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } && {
5405 test -z "$ac_c_werror_flag" ||
5406 test ! -s conftest.err
5407 } && test -s conftest.$ac_objext; then
5408 ac_header_compiler=yes
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 ac_header_compiler=no
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5418 echo "${ECHO_T}$ac_header_compiler" >&6; }
5420 # Is the header present?
5421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5423 cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h. */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h. */
5429 #include <$ac_header>
5430 _ACEOF
5431 if { (ac_try="$ac_cpp conftest.$ac_ext"
5432 case "(($ac_try" in
5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434 *) ac_try_echo=$ac_try;;
5435 esac
5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5438 ac_status=$?
5439 grep -v '^ *+' conftest.er1 >conftest.err
5440 rm -f conftest.er1
5441 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } >/dev/null && {
5444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5445 test ! -s conftest.err
5446 }; then
5447 ac_header_preproc=yes
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 sed 's/^/| /' conftest.$ac_ext >&5
5452 ac_header_preproc=no
5455 rm -f conftest.err conftest.$ac_ext
5456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5457 echo "${ECHO_T}$ac_header_preproc" >&6; }
5459 # So? What about this header?
5460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5461 yes:no: )
5462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5466 ac_header_preproc=yes
5468 no:yes:* )
5469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5483 esac
5484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489 eval "$as_ac_Header=\$ac_header_preproc"
5491 ac_res=`eval echo '${'$as_ac_Header'}'`
5492 { echo "$as_me:$LINENO: result: $ac_res" >&5
5493 echo "${ECHO_T}$ac_res" >&6; }
5496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5497 cat >>confdefs.h <<_ACEOF
5498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5499 _ACEOF
5503 done
5508 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5509 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5510 (test "X$CXX" != "Xg++"))) ; then
5511 ac_ext=cpp
5512 ac_cpp='$CXXCPP $CPPFLAGS'
5513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5516 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5517 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5518 if test -z "$CXXCPP"; then
5519 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 # Double quotes because CXXCPP needs to be expanded
5523 for CXXCPP in "$CXX -E" "/lib/cpp"
5525 ac_preproc_ok=false
5526 for ac_cxx_preproc_warn_flag in '' yes
5528 # Use a header file that comes with gcc, so configuring glibc
5529 # with a fresh cross-compiler works.
5530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5531 # <limits.h> exists even on freestanding compilers.
5532 # On the NeXT, cc -E runs the code through the compiler's parser,
5533 # not just through cpp. "Syntax error" is here to catch this case.
5534 cat >conftest.$ac_ext <<_ACEOF
5535 /* confdefs.h. */
5536 _ACEOF
5537 cat confdefs.h >>conftest.$ac_ext
5538 cat >>conftest.$ac_ext <<_ACEOF
5539 /* end confdefs.h. */
5540 #ifdef __STDC__
5541 # include <limits.h>
5542 #else
5543 # include <assert.h>
5544 #endif
5545 Syntax error
5546 _ACEOF
5547 if { (ac_try="$ac_cpp conftest.$ac_ext"
5548 case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551 esac
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5554 ac_status=$?
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } >/dev/null && {
5560 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5561 test ! -s conftest.err
5562 }; then
5564 else
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5568 # Broken: fails on valid input.
5569 continue
5572 rm -f conftest.err conftest.$ac_ext
5574 # OK, works on sane cases. Now check whether nonexistent headers
5575 # can be detected and how.
5576 cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h. */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 #include <ac_nonexistent.h>
5583 _ACEOF
5584 if { (ac_try="$ac_cpp conftest.$ac_ext"
5585 case "(($ac_try" in
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5588 esac
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5591 ac_status=$?
5592 grep -v '^ *+' conftest.er1 >conftest.err
5593 rm -f conftest.er1
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } >/dev/null && {
5597 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5598 test ! -s conftest.err
5599 }; then
5600 # Broken: success on invalid input.
5601 continue
5602 else
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 # Passes both tests.
5607 ac_preproc_ok=:
5608 break
5611 rm -f conftest.err conftest.$ac_ext
5613 done
5614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5615 rm -f conftest.err conftest.$ac_ext
5616 if $ac_preproc_ok; then
5617 break
5620 done
5621 ac_cv_prog_CXXCPP=$CXXCPP
5624 CXXCPP=$ac_cv_prog_CXXCPP
5625 else
5626 ac_cv_prog_CXXCPP=$CXXCPP
5628 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5629 echo "${ECHO_T}$CXXCPP" >&6; }
5630 ac_preproc_ok=false
5631 for ac_cxx_preproc_warn_flag in '' yes
5633 # Use a header file that comes with gcc, so configuring glibc
5634 # with a fresh cross-compiler works.
5635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5636 # <limits.h> exists even on freestanding compilers.
5637 # On the NeXT, cc -E runs the code through the compiler's parser,
5638 # not just through cpp. "Syntax error" is here to catch this case.
5639 cat >conftest.$ac_ext <<_ACEOF
5640 /* confdefs.h. */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5645 #ifdef __STDC__
5646 # include <limits.h>
5647 #else
5648 # include <assert.h>
5649 #endif
5650 Syntax error
5651 _ACEOF
5652 if { (ac_try="$ac_cpp conftest.$ac_ext"
5653 case "(($ac_try" in
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5656 esac
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5659 ac_status=$?
5660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } >/dev/null && {
5665 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5666 test ! -s conftest.err
5667 }; then
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5673 # Broken: fails on valid input.
5674 continue
5677 rm -f conftest.err conftest.$ac_ext
5679 # OK, works on sane cases. Now check whether nonexistent headers
5680 # can be detected and how.
5681 cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h. */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 #include <ac_nonexistent.h>
5688 _ACEOF
5689 if { (ac_try="$ac_cpp conftest.$ac_ext"
5690 case "(($ac_try" in
5691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692 *) ac_try_echo=$ac_try;;
5693 esac
5694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } >/dev/null && {
5702 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5703 test ! -s conftest.err
5704 }; then
5705 # Broken: success on invalid input.
5706 continue
5707 else
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5711 # Passes both tests.
5712 ac_preproc_ok=:
5713 break
5716 rm -f conftest.err conftest.$ac_ext
5718 done
5719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5720 rm -f conftest.err conftest.$ac_ext
5721 if $ac_preproc_ok; then
5723 else
5724 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5725 See \`config.log' for more details." >&5
5726 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5727 See \`config.log' for more details." >&2;}
5728 { (exit 1); exit 1; }; }
5731 ac_ext=cpp
5732 ac_cpp='$CXXCPP $CPPFLAGS'
5733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5741 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5743 # find the maximum length of command line arguments
5744 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5745 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5746 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5750 teststring="ABCD"
5752 case $build_os in
5753 msdosdjgpp*)
5754 # On DJGPP, this test can blow up pretty badly due to problems in libc
5755 # (any single argument exceeding 2000 bytes causes a buffer overrun
5756 # during glob expansion). Even if it were fixed, the result of this
5757 # check would be larger than it should be.
5758 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5761 gnu*)
5762 # Under GNU Hurd, this test is not required because there is
5763 # no limit to the length of command line arguments.
5764 # Libtool will interpret -1 as no limit whatsoever
5765 lt_cv_sys_max_cmd_len=-1;
5768 cygwin* | mingw*)
5769 # On Win9x/ME, this test blows up -- it succeeds, but takes
5770 # about 5 minutes as the teststring grows exponentially.
5771 # Worse, since 9x/ME are not pre-emptively multitasking,
5772 # you end up with a "frozen" computer, even though with patience
5773 # the test eventually succeeds (with a max line length of 256k).
5774 # Instead, let's just punt: use the minimum linelength reported by
5775 # all of the supported platforms: 8192 (on NT/2K/XP).
5776 lt_cv_sys_max_cmd_len=8192;
5779 amigaos*)
5780 # On AmigaOS with pdksh, this test takes hours, literally.
5781 # So we just punt and use a minimum line length of 8192.
5782 lt_cv_sys_max_cmd_len=8192;
5785 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5786 # This has been around since 386BSD, at least. Likely further.
5787 if test -x /sbin/sysctl; then
5788 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5789 elif test -x /usr/sbin/sysctl; then
5790 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5791 else
5792 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5794 # And add a safety zone
5795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5798 osf*)
5799 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5800 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5801 # nice to cause kernel panics so lets avoid the loop below.
5802 # First set a reasonable default.
5803 lt_cv_sys_max_cmd_len=16384
5805 if test -x /sbin/sysconfig; then
5806 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5807 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5808 esac
5812 # If test is not a shell built-in, we'll probably end up computing a
5813 # maximum length that is only half of the actual maximum length, but
5814 # we can't tell.
5815 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5816 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5817 = "XX$teststring") >/dev/null 2>&1 &&
5818 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5819 lt_cv_sys_max_cmd_len=$new_result &&
5820 test $i != 17 # 1/2 MB should be enough
5822 i=`expr $i + 1`
5823 teststring=$teststring$teststring
5824 done
5825 teststring=
5826 # Add a significant safety factor because C++ compilers can tack on massive
5827 # amounts of additional arguments before passing them to the linker.
5828 # It appears as though 1/2 is a usable value.
5829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5831 esac
5835 if test -n $lt_cv_sys_max_cmd_len ; then
5836 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5837 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5838 else
5839 { echo "$as_me:$LINENO: result: none" >&5
5840 echo "${ECHO_T}none" >&6; }
5846 # Check for command to grab the raw symbol name followed by C symbol from nm.
5847 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5848 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5849 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5853 # These are sane defaults that work on at least a few old systems.
5854 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5856 # Character class describing NM global symbol codes.
5857 symcode='[BCDEGRST]'
5859 # Regexp to match symbols that can be accessed directly from C.
5860 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5862 # Transform an extracted symbol line into a proper C declaration
5863 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5865 # Transform an extracted symbol line into symbol name and symbol address
5866 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5868 # Define system-specific variables.
5869 case $host_os in
5870 aix*)
5871 symcode='[BCDT]'
5873 cygwin* | mingw* | pw32*)
5874 symcode='[ABCDGISTW]'
5876 hpux*) # Its linker distinguishes data from code symbols
5877 if test "$host_cpu" = ia64; then
5878 symcode='[ABCDEGRST]'
5880 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5881 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5883 linux*)
5884 if test "$host_cpu" = ia64; then
5885 symcode='[ABCDGIRSTW]'
5886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5887 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5890 irix* | nonstopux*)
5891 symcode='[BCDEGRST]'
5893 osf*)
5894 symcode='[BCDEGQRST]'
5896 solaris* | sysv5*)
5897 symcode='[BDRT]'
5899 sysv4)
5900 symcode='[DFNSTU]'
5902 esac
5904 # Handle CRLF in mingw tool chain
5905 opt_cr=
5906 case $build_os in
5907 mingw*)
5908 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5910 esac
5912 # If we're using GNU nm, then use its standard symbol codes.
5913 case `$NM -V 2>&1` in
5914 *GNU* | *'with BFD'*)
5915 symcode='[ABCDGIRSTW]' ;;
5916 esac
5918 # Try without a prefix undercore, then with it.
5919 for ac_symprfx in "" "_"; do
5921 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5922 symxfrm="\\1 $ac_symprfx\\2 \\2"
5924 # Write the raw and C identifiers.
5925 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5927 # Check to see that the pipe works correctly.
5928 pipe_works=no
5930 rm -f conftest*
5931 cat > conftest.$ac_ext <<EOF
5932 #ifdef __cplusplus
5933 extern "C" {
5934 #endif
5935 char nm_test_var;
5936 void nm_test_func(){}
5937 #ifdef __cplusplus
5939 #endif
5940 int main(){nm_test_var='a';nm_test_func();return(0);}
5943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5944 (eval $ac_compile) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; then
5948 # Now try to grab the symbols.
5949 nlist=conftest.nm
5950 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5951 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && test -s "$nlist"; then
5955 # Try sorting and uniquifying the output.
5956 if sort "$nlist" | uniq > "$nlist"T; then
5957 mv -f "$nlist"T "$nlist"
5958 else
5959 rm -f "$nlist"T
5962 # Make sure that we snagged all the symbols we need.
5963 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5964 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5965 cat <<EOF > conftest.$ac_ext
5966 #ifdef __cplusplus
5967 extern "C" {
5968 #endif
5971 # Now generate the symbol file.
5972 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5974 cat <<EOF >> conftest.$ac_ext
5975 #if defined (__STDC__) && __STDC__
5976 # define lt_ptr_t void *
5977 #else
5978 # define lt_ptr_t char *
5979 # define const
5980 #endif
5982 /* The mapping between symbol names and symbols. */
5983 const struct {
5984 const char *name;
5985 lt_ptr_t address;
5987 lt_preloaded_symbols[] =
5990 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5991 cat <<\EOF >> conftest.$ac_ext
5992 {0, (lt_ptr_t) 0}
5995 #ifdef __cplusplus
5997 #endif
5999 # Now try linking the two files.
6000 mv conftest.$ac_objext conftstm.$ac_objext
6001 lt_save_LIBS="$LIBS"
6002 lt_save_CFLAGS="$CFLAGS"
6003 LIBS="conftstm.$ac_objext"
6004 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006 (eval $ac_link) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6010 pipe_works=yes
6012 LIBS="$lt_save_LIBS"
6013 CFLAGS="$lt_save_CFLAGS"
6014 else
6015 echo "cannot find nm_test_func in $nlist" >&5
6017 else
6018 echo "cannot find nm_test_var in $nlist" >&5
6020 else
6021 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6023 else
6024 echo "$progname: failed program was:" >&5
6025 cat conftest.$ac_ext >&5
6027 rm -f conftest* conftst*
6029 # Do not use the global_symbol_pipe unless it works.
6030 if test "$pipe_works" = yes; then
6031 break
6032 else
6033 lt_cv_sys_global_symbol_pipe=
6035 done
6039 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6040 lt_cv_sys_global_symbol_to_cdecl=
6042 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6043 { echo "$as_me:$LINENO: result: failed" >&5
6044 echo "${ECHO_T}failed" >&6; }
6045 else
6046 { echo "$as_me:$LINENO: result: ok" >&5
6047 echo "${ECHO_T}ok" >&6; }
6050 { echo "$as_me:$LINENO: checking for objdir" >&5
6051 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6052 if test "${lt_cv_objdir+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 rm -f .libs 2>/dev/null
6056 mkdir .libs 2>/dev/null
6057 if test -d .libs; then
6058 lt_cv_objdir=.libs
6059 else
6060 # MS-DOS does not allow filenames that begin with a dot.
6061 lt_cv_objdir=_libs
6063 rmdir .libs 2>/dev/null
6065 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6066 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6067 objdir=$lt_cv_objdir
6073 case $host_os in
6074 aix3*)
6075 # AIX sometimes has problems with the GCC collect2 program. For some
6076 # reason, if we set the COLLECT_NAMES environment variable, the problems
6077 # vanish in a puff of smoke.
6078 if test "X${COLLECT_NAMES+set}" != Xset; then
6079 COLLECT_NAMES=
6080 export COLLECT_NAMES
6083 esac
6085 # Sed substitution that helps us do robust quoting. It backslashifies
6086 # metacharacters that are still active within double-quoted strings.
6087 Xsed='sed -e 1s/^X//'
6088 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6090 # Same as above, but do not quote variable references.
6091 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6093 # Sed substitution to delay expansion of an escaped shell variable in a
6094 # double_quote_subst'ed string.
6095 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6097 # Sed substitution to avoid accidental globbing in evaled expressions
6098 no_glob_subst='s/\*/\\\*/g'
6100 # Constants:
6101 rm="rm -f"
6103 # Global variables:
6104 default_ofile=libtool
6105 can_build_shared=yes
6107 # All known linkers require a `.a' archive for static linking (except MSVC,
6108 # which needs '.lib').
6109 libext=a
6110 ltmain="$ac_aux_dir/ltmain.sh"
6111 ofile="$default_ofile"
6112 with_gnu_ld="$lt_cv_prog_gnu_ld"
6114 if test -n "$ac_tool_prefix"; then
6115 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6116 set dummy ${ac_tool_prefix}ar; ac_word=$2
6117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6119 if test "${ac_cv_prog_AR+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 if test -n "$AR"; then
6123 ac_cv_prog_AR="$AR" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_prog_AR="${ac_tool_prefix}ar"
6133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6136 done
6137 done
6138 IFS=$as_save_IFS
6142 AR=$ac_cv_prog_AR
6143 if test -n "$AR"; then
6144 { echo "$as_me:$LINENO: result: $AR" >&5
6145 echo "${ECHO_T}$AR" >&6; }
6146 else
6147 { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6153 if test -z "$ac_cv_prog_AR"; then
6154 ac_ct_AR=$AR
6155 # Extract the first word of "ar", so it can be a program name with args.
6156 set dummy ar; ac_word=$2
6157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6159 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 else
6162 if test -n "$ac_ct_AR"; then
6163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172 ac_cv_prog_ac_ct_AR="ar"
6173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6176 done
6177 done
6178 IFS=$as_save_IFS
6182 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6183 if test -n "$ac_ct_AR"; then
6184 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6185 echo "${ECHO_T}$ac_ct_AR" >&6; }
6186 else
6187 { echo "$as_me:$LINENO: result: no" >&5
6188 echo "${ECHO_T}no" >&6; }
6191 if test "x$ac_ct_AR" = x; then
6192 AR="false"
6193 else
6194 case $cross_compiling:$ac_tool_warned in
6195 yes:)
6196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6197 whose name does not start with the host triplet. If you think this
6198 configuration is useful to you, please write to autoconf@gnu.org." >&5
6199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6200 whose name does not start with the host triplet. If you think this
6201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6202 ac_tool_warned=yes ;;
6203 esac
6204 AR=$ac_ct_AR
6206 else
6207 AR="$ac_cv_prog_AR"
6210 if test -n "$ac_tool_prefix"; then
6211 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6212 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_RANLIB+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 if test -n "$RANLIB"; then
6219 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 break 2
6232 done
6233 done
6234 IFS=$as_save_IFS
6238 RANLIB=$ac_cv_prog_RANLIB
6239 if test -n "$RANLIB"; then
6240 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6241 echo "${ECHO_T}$RANLIB" >&6; }
6242 else
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6249 if test -z "$ac_cv_prog_RANLIB"; then
6250 ac_ct_RANLIB=$RANLIB
6251 # Extract the first word of "ranlib", so it can be a program name with args.
6252 set dummy ranlib; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258 if test -n "$ac_ct_RANLIB"; then
6259 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_ac_ct_RANLIB="ranlib"
6269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 break 2
6272 done
6273 done
6274 IFS=$as_save_IFS
6278 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6279 if test -n "$ac_ct_RANLIB"; then
6280 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6281 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6282 else
6283 { echo "$as_me:$LINENO: result: no" >&5
6284 echo "${ECHO_T}no" >&6; }
6287 if test "x$ac_ct_RANLIB" = x; then
6288 RANLIB=":"
6289 else
6290 case $cross_compiling:$ac_tool_warned in
6291 yes:)
6292 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6293 whose name does not start with the host triplet. If you think this
6294 configuration is useful to you, please write to autoconf@gnu.org." >&5
6295 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6296 whose name does not start with the host triplet. If you think this
6297 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6298 ac_tool_warned=yes ;;
6299 esac
6300 RANLIB=$ac_ct_RANLIB
6302 else
6303 RANLIB="$ac_cv_prog_RANLIB"
6306 if test -n "$ac_tool_prefix"; then
6307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6308 set dummy ${ac_tool_prefix}strip; ac_word=$2
6309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6311 if test "${ac_cv_prog_STRIP+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314 if test -n "$STRIP"; then
6315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6328 done
6329 done
6330 IFS=$as_save_IFS
6334 STRIP=$ac_cv_prog_STRIP
6335 if test -n "$STRIP"; then
6336 { echo "$as_me:$LINENO: result: $STRIP" >&5
6337 echo "${ECHO_T}$STRIP" >&6; }
6338 else
6339 { echo "$as_me:$LINENO: result: no" >&5
6340 echo "${ECHO_T}no" >&6; }
6345 if test -z "$ac_cv_prog_STRIP"; then
6346 ac_ct_STRIP=$STRIP
6347 # Extract the first word of "strip", so it can be a program name with args.
6348 set dummy strip; ac_word=$2
6349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6351 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 else
6354 if test -n "$ac_ct_STRIP"; then
6355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_ac_ct_STRIP="strip"
6365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6368 done
6369 done
6370 IFS=$as_save_IFS
6374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6375 if test -n "$ac_ct_STRIP"; then
6376 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6377 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6378 else
6379 { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6383 if test "x$ac_ct_STRIP" = x; then
6384 STRIP=":"
6385 else
6386 case $cross_compiling:$ac_tool_warned in
6387 yes:)
6388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6389 whose name does not start with the host triplet. If you think this
6390 configuration is useful to you, please write to autoconf@gnu.org." >&5
6391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6392 whose name does not start with the host triplet. If you think this
6393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6394 ac_tool_warned=yes ;;
6395 esac
6396 STRIP=$ac_ct_STRIP
6398 else
6399 STRIP="$ac_cv_prog_STRIP"
6403 old_CC="$CC"
6404 old_CFLAGS="$CFLAGS"
6406 # Set sane defaults for various variables
6407 test -z "$AR" && AR=ar
6408 test -z "$AR_FLAGS" && AR_FLAGS=cru
6409 test -z "$AS" && AS=as
6410 test -z "$CC" && CC=cc
6411 test -z "$LTCC" && LTCC=$CC
6412 test -z "$DLLTOOL" && DLLTOOL=dlltool
6413 test -z "$LD" && LD=ld
6414 test -z "$LN_S" && LN_S="ln -s"
6415 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6416 test -z "$NM" && NM=nm
6417 test -z "$SED" && SED=sed
6418 test -z "$OBJDUMP" && OBJDUMP=objdump
6419 test -z "$RANLIB" && RANLIB=:
6420 test -z "$STRIP" && STRIP=:
6421 test -z "$ac_objext" && ac_objext=o
6423 # Determine commands to create old-style static archives.
6424 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6425 old_postinstall_cmds='chmod 644 $oldlib'
6426 old_postuninstall_cmds=
6428 if test -n "$RANLIB"; then
6429 case $host_os in
6430 openbsd*)
6431 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6434 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6436 esac
6437 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6440 for cc_temp in $compiler""; do
6441 case $cc_temp in
6442 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6443 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6444 \-*) ;;
6445 *) break;;
6446 esac
6447 done
6448 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6451 # Only perform the check for file, if the check method requires it
6452 case $deplibs_check_method in
6453 file_magic*)
6454 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6455 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6456 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6457 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 case $MAGIC_CMD in
6461 [\\/*] | ?:[\\/]*)
6462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6465 lt_save_MAGIC_CMD="$MAGIC_CMD"
6466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6467 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6468 for ac_dir in $ac_dummy; do
6469 IFS="$lt_save_ifs"
6470 test -z "$ac_dir" && ac_dir=.
6471 if test -f $ac_dir/${ac_tool_prefix}file; then
6472 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6473 if test -n "$file_magic_test_file"; then
6474 case $deplibs_check_method in
6475 "file_magic "*)
6476 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6479 $EGREP "$file_magic_regex" > /dev/null; then
6481 else
6482 cat <<EOF 1>&2
6484 *** Warning: the command libtool uses to detect shared libraries,
6485 *** $file_magic_cmd, produces output that libtool cannot recognize.
6486 *** The result is that libtool may fail to recognize shared libraries
6487 *** as such. This will affect the creation of libtool libraries that
6488 *** depend on shared libraries, but programs linked with such libtool
6489 *** libraries will work regardless of this problem. Nevertheless, you
6490 *** may want to report the problem to your system manager and/or to
6491 *** bug-libtool@gnu.org
6494 fi ;;
6495 esac
6497 break
6499 done
6500 IFS="$lt_save_ifs"
6501 MAGIC_CMD="$lt_save_MAGIC_CMD"
6503 esac
6506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6507 if test -n "$MAGIC_CMD"; then
6508 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6509 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6510 else
6511 { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6515 if test -z "$lt_cv_path_MAGIC_CMD"; then
6516 if test -n "$ac_tool_prefix"; then
6517 { echo "$as_me:$LINENO: checking for file" >&5
6518 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6519 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 case $MAGIC_CMD in
6523 [\\/*] | ?:[\\/]*)
6524 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6527 lt_save_MAGIC_CMD="$MAGIC_CMD"
6528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6529 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6530 for ac_dir in $ac_dummy; do
6531 IFS="$lt_save_ifs"
6532 test -z "$ac_dir" && ac_dir=.
6533 if test -f $ac_dir/file; then
6534 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6535 if test -n "$file_magic_test_file"; then
6536 case $deplibs_check_method in
6537 "file_magic "*)
6538 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6540 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6541 $EGREP "$file_magic_regex" > /dev/null; then
6543 else
6544 cat <<EOF 1>&2
6546 *** Warning: the command libtool uses to detect shared libraries,
6547 *** $file_magic_cmd, produces output that libtool cannot recognize.
6548 *** The result is that libtool may fail to recognize shared libraries
6549 *** as such. This will affect the creation of libtool libraries that
6550 *** depend on shared libraries, but programs linked with such libtool
6551 *** libraries will work regardless of this problem. Nevertheless, you
6552 *** may want to report the problem to your system manager and/or to
6553 *** bug-libtool@gnu.org
6556 fi ;;
6557 esac
6559 break
6561 done
6562 IFS="$lt_save_ifs"
6563 MAGIC_CMD="$lt_save_MAGIC_CMD"
6565 esac
6568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6569 if test -n "$MAGIC_CMD"; then
6570 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6571 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6572 else
6573 { echo "$as_me:$LINENO: result: no" >&5
6574 echo "${ECHO_T}no" >&6; }
6577 else
6578 MAGIC_CMD=:
6584 esac
6586 enable_dlopen=no
6587 enable_win32_dll=no
6589 # Check whether --enable-libtool-lock was given.
6590 if test "${enable_libtool_lock+set}" = set; then
6591 enableval=$enable_libtool_lock;
6594 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6597 # Check whether --with-pic was given.
6598 if test "${with_pic+set}" = set; then
6599 withval=$with_pic; pic_mode="$withval"
6600 else
6601 pic_mode=default
6604 test -z "$pic_mode" && pic_mode=default
6606 # Use C for the default configuration in the libtool script
6607 tagname=
6608 lt_save_CC="$CC"
6610 ac_ext=c
6611 ac_cpp='$CPP $CPPFLAGS'
6612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6617 # Source file extension for C test sources.
6618 ac_ext=c
6620 # Object file extension for compiled C test sources.
6621 objext=o
6622 objext=$objext
6624 # Code to be used in simple compile tests
6625 lt_simple_compile_test_code="int some_variable = 0;\n"
6627 # Code to be used in simple link tests
6628 lt_simple_link_test_code='int main(){return(0);}\n'
6631 # If no C compiler was specified, use CC.
6632 LTCC=${LTCC-"$CC"}
6634 # Allow CC to be a program name with arguments.
6635 compiler=$CC
6638 # save warnings/boilerplate of simple test code
6639 ac_outfile=conftest.$ac_objext
6640 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6641 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6642 _lt_compiler_boilerplate=`cat conftest.err`
6643 $rm conftest*
6645 ac_outfile=conftest.$ac_objext
6646 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6647 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6648 _lt_linker_boilerplate=`cat conftest.err`
6649 $rm conftest*
6653 # Check for any special shared library compilation flags.
6655 lt_prog_cc_shlib=
6656 if test "$GCC" = no; then
6657 case $host_os in
6658 sco3.2v5*)
6659 lt_prog_cc_shlib='-belf'
6661 esac
6663 if test -n "$lt_prog_cc_shlib"; then
6664 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6665 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6666 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6667 else
6668 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6669 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6670 lt_cv_prog_cc_can_build_shared=no
6676 # Check to make sure the static flag actually works.
6678 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6679 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6680 if test "${lt_prog_compiler_static_works+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 lt_prog_compiler_static_works=no
6684 save_LDFLAGS="$LDFLAGS"
6685 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6686 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6687 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6688 # The linker can only warn and ignore the option if not recognized
6689 # So say no if there are warnings
6690 if test -s conftest.err; then
6691 # Append any errors to the config.log.
6692 cat conftest.err 1>&5
6693 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6694 $SED '/^$/d' conftest.err >conftest.er2
6695 if diff conftest.exp conftest.er2 >/dev/null; then
6696 lt_prog_compiler_static_works=yes
6698 else
6699 lt_prog_compiler_static_works=yes
6702 $rm conftest*
6703 LDFLAGS="$save_LDFLAGS"
6706 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6707 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6709 if test x"$lt_prog_compiler_static_works" = xyes; then
6711 else
6712 lt_prog_compiler_static=
6717 ## CAVEAT EMPTOR:
6718 ## There is no encapsulation within the following macros, do not change
6719 ## the running order or otherwise move them around unless you know exactly
6720 ## what you are doing...
6722 lt_prog_compiler_no_builtin_flag=
6724 if test "$GCC" = yes; then
6725 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6728 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6729 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6730 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 lt_cv_prog_compiler_rtti_exceptions=no
6734 ac_outfile=conftest.$ac_objext
6735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6736 lt_compiler_flag="-fno-rtti -fno-exceptions"
6737 # Insert the option either (1) after the last *FLAGS variable, or
6738 # (2) before a word containing "conftest.", or (3) at the end.
6739 # Note that $ac_compile itself does not contain backslashes and begins
6740 # with a dollar sign (not a hyphen), so the echo should work correctly.
6741 # The option is referenced via a variable to avoid confusing sed.
6742 lt_compile=`echo "$ac_compile" | $SED \
6743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6745 -e 's:$: $lt_compiler_flag:'`
6746 (eval echo "\"configure:6746: $lt_compile\"" >&5)
6747 (eval "$lt_compile" 2>conftest.err)
6748 ac_status=$?
6749 cat conftest.err >&5
6750 echo "configure:6750: \$? = $ac_status" >&5
6751 if (exit $ac_status) && test -s "$ac_outfile"; then
6752 # The compiler can only warn and ignore the option if not recognized
6753 # So say no if there are warnings other than the usual output.
6754 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6755 $SED '/^$/d' conftest.err >conftest.er2
6756 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6757 lt_cv_prog_compiler_rtti_exceptions=yes
6760 $rm conftest*
6763 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6764 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6766 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6767 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6768 else
6774 lt_prog_compiler_wl=
6775 lt_prog_compiler_pic=
6776 lt_prog_compiler_static=
6778 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6779 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6781 if test "$GCC" = yes; then
6782 lt_prog_compiler_wl='-Wl,'
6783 lt_prog_compiler_static='-static'
6785 case $host_os in
6786 aix*)
6787 # All AIX code is PIC.
6788 if test "$host_cpu" = ia64; then
6789 # AIX 5 now supports IA64 processor
6790 lt_prog_compiler_static='-Bstatic'
6794 amigaos*)
6795 # FIXME: we need at least 68020 code to build shared libraries, but
6796 # adding the `-m68020' flag to GCC prevents building anything better,
6797 # like `-m68040'.
6798 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6801 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6802 # PIC is the default for these OSes.
6805 mingw* | pw32* | os2*)
6806 # This hack is so that the source file can tell whether it is being
6807 # built for inclusion in a dll (and should export symbols for example).
6808 lt_prog_compiler_pic='-DDLL_EXPORT'
6811 darwin* | rhapsody*)
6812 # PIC is the default on this platform
6813 # Common symbols not allowed in MH_DYLIB files
6814 lt_prog_compiler_pic='-fno-common'
6817 msdosdjgpp*)
6818 # Just because we use GCC doesn't mean we suddenly get shared libraries
6819 # on systems that don't support them.
6820 lt_prog_compiler_can_build_shared=no
6821 enable_shared=no
6824 sysv4*MP*)
6825 if test -d /usr/nec; then
6826 lt_prog_compiler_pic=-Kconform_pic
6830 hpux*)
6831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6832 # not for PA HP-UX.
6833 case $host_cpu in
6834 hppa*64*|ia64*)
6835 # +Z the default
6838 lt_prog_compiler_pic='-fPIC'
6840 esac
6844 lt_prog_compiler_pic='-fPIC'
6846 esac
6847 else
6848 # PORTME Check for flag to pass linker flags through the system compiler.
6849 case $host_os in
6850 aix*)
6851 lt_prog_compiler_wl='-Wl,'
6852 if test "$host_cpu" = ia64; then
6853 # AIX 5 now supports IA64 processor
6854 lt_prog_compiler_static='-Bstatic'
6855 else
6856 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6859 darwin*)
6860 # PIC is the default on this platform
6861 # Common symbols not allowed in MH_DYLIB files
6862 case $cc_basename in
6863 xlc*)
6864 lt_prog_compiler_pic='-qnocommon'
6865 lt_prog_compiler_wl='-Wl,'
6867 esac
6870 mingw* | pw32* | os2*)
6871 # This hack is so that the source file can tell whether it is being
6872 # built for inclusion in a dll (and should export symbols for example).
6873 lt_prog_compiler_pic='-DDLL_EXPORT'
6876 hpux9* | hpux10* | hpux11*)
6877 lt_prog_compiler_wl='-Wl,'
6878 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6879 # not for PA HP-UX.
6880 case $host_cpu in
6881 hppa*64*|ia64*)
6882 # +Z the default
6885 lt_prog_compiler_pic='+Z'
6887 esac
6888 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6889 lt_prog_compiler_static='${wl}-a ${wl}archive'
6892 irix5* | irix6* | nonstopux*)
6893 lt_prog_compiler_wl='-Wl,'
6894 # PIC (with -KPIC) is the default.
6895 lt_prog_compiler_static='-non_shared'
6898 newsos6)
6899 lt_prog_compiler_pic='-KPIC'
6900 lt_prog_compiler_static='-Bstatic'
6903 linux*)
6904 case $cc_basename in
6905 icc* | ecc*)
6906 lt_prog_compiler_wl='-Wl,'
6907 lt_prog_compiler_pic='-KPIC'
6908 lt_prog_compiler_static='-static'
6910 pgcc* | pgf77* | pgf90* | pgf95*)
6911 # Portland Group compilers (*not* the Pentium gcc compiler,
6912 # which looks to be a dead project)
6913 lt_prog_compiler_wl='-Wl,'
6914 lt_prog_compiler_pic='-fpic'
6915 lt_prog_compiler_static='-Bstatic'
6917 ccc*)
6918 lt_prog_compiler_wl='-Wl,'
6919 # All Alpha code is PIC.
6920 lt_prog_compiler_static='-non_shared'
6922 esac
6925 osf3* | osf4* | osf5*)
6926 lt_prog_compiler_wl='-Wl,'
6927 # All OSF/1 code is PIC.
6928 lt_prog_compiler_static='-non_shared'
6931 sco3.2v5*)
6932 lt_prog_compiler_pic='-Kpic'
6933 lt_prog_compiler_static='-dn'
6936 solaris*)
6937 lt_prog_compiler_pic='-KPIC'
6938 lt_prog_compiler_static='-Bstatic'
6939 case $cc_basename in
6940 f77* | f90* | f95*)
6941 lt_prog_compiler_wl='-Qoption ld ';;
6943 lt_prog_compiler_wl='-Wl,';;
6944 esac
6947 sunos4*)
6948 lt_prog_compiler_wl='-Qoption ld '
6949 lt_prog_compiler_pic='-PIC'
6950 lt_prog_compiler_static='-Bstatic'
6953 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6954 lt_prog_compiler_wl='-Wl,'
6955 lt_prog_compiler_pic='-KPIC'
6956 lt_prog_compiler_static='-Bstatic'
6959 sysv4*MP*)
6960 if test -d /usr/nec ;then
6961 lt_prog_compiler_pic='-Kconform_pic'
6962 lt_prog_compiler_static='-Bstatic'
6966 unicos*)
6967 lt_prog_compiler_wl='-Wl,'
6968 lt_prog_compiler_can_build_shared=no
6971 uts4*)
6972 lt_prog_compiler_pic='-pic'
6973 lt_prog_compiler_static='-Bstatic'
6977 lt_prog_compiler_can_build_shared=no
6979 esac
6982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6983 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6986 # Check to make sure the PIC flag actually works.
6988 if test -n "$lt_prog_compiler_pic"; then
6990 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6991 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6992 if test "${lt_prog_compiler_pic_works+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 lt_prog_compiler_pic_works=no
6996 ac_outfile=conftest.$ac_objext
6997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6998 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6999 # Insert the option either (1) after the last *FLAGS variable, or
7000 # (2) before a word containing "conftest.", or (3) at the end.
7001 # Note that $ac_compile itself does not contain backslashes and begins
7002 # with a dollar sign (not a hyphen), so the echo should work correctly.
7003 # The option is referenced via a variable to avoid confusing sed.
7004 lt_compile=`echo "$ac_compile" | $SED \
7005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7007 -e 's:$: $lt_compiler_flag:'`
7008 (eval echo "\"configure:7008: $lt_compile\"" >&5)
7009 (eval "$lt_compile" 2>conftest.err)
7010 ac_status=$?
7011 cat conftest.err >&5
7012 echo "configure:7012: \$? = $ac_status" >&5
7013 if (exit $ac_status) && test -s "$ac_outfile"; then
7014 # The compiler can only warn and ignore the option if not recognized
7015 # So say no if there are warnings other than the usual output.
7016 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7017 $SED '/^$/d' conftest.err >conftest.er2
7018 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7019 lt_prog_compiler_pic_works=yes
7022 $rm conftest*
7025 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7026 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7028 if test x"$lt_prog_compiler_pic_works" = xyes; then
7029 case $lt_prog_compiler_pic in
7030 "" | " "*) ;;
7031 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7032 esac
7033 else
7034 lt_prog_compiler_pic=
7035 lt_prog_compiler_can_build_shared=no
7039 case $host_os in
7040 # For platforms which do not support PIC, -DPIC is meaningless:
7041 *djgpp*)
7042 lt_prog_compiler_pic=
7045 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7047 esac
7049 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7050 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7051 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054 lt_cv_prog_compiler_c_o=no
7055 $rm -r conftest 2>/dev/null
7056 mkdir conftest
7057 cd conftest
7058 mkdir out
7059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7061 lt_compiler_flag="-o out/conftest2.$ac_objext"
7062 # Insert the option either (1) after the last *FLAGS variable, or
7063 # (2) before a word containing "conftest.", or (3) at the end.
7064 # Note that $ac_compile itself does not contain backslashes and begins
7065 # with a dollar sign (not a hyphen), so the echo should work correctly.
7066 lt_compile=`echo "$ac_compile" | $SED \
7067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7069 -e 's:$: $lt_compiler_flag:'`
7070 (eval echo "\"configure:7070: $lt_compile\"" >&5)
7071 (eval "$lt_compile" 2>out/conftest.err)
7072 ac_status=$?
7073 cat out/conftest.err >&5
7074 echo "configure:7074: \$? = $ac_status" >&5
7075 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7076 then
7077 # The compiler can only warn and ignore the option if not recognized
7078 # So say no if there are warnings
7079 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7080 $SED '/^$/d' out/conftest.err >out/conftest.er2
7081 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7082 lt_cv_prog_compiler_c_o=yes
7085 chmod u+w . 2>&5
7086 $rm conftest*
7087 # SGI C++ compiler will create directory out/ii_files/ for
7088 # template instantiation
7089 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7090 $rm out/* && rmdir out
7091 cd ..
7092 rmdir conftest
7093 $rm conftest*
7096 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7097 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7100 hard_links="nottested"
7101 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7102 # do not overwrite the value of need_locks provided by the user
7103 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7104 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7105 hard_links=yes
7106 $rm conftest*
7107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7108 touch conftest.a
7109 ln conftest.a conftest.b 2>&5 || hard_links=no
7110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7111 { echo "$as_me:$LINENO: result: $hard_links" >&5
7112 echo "${ECHO_T}$hard_links" >&6; }
7113 if test "$hard_links" = no; then
7114 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7115 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7116 need_locks=warn
7118 else
7119 need_locks=no
7122 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7123 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7125 runpath_var=
7126 allow_undefined_flag=
7127 enable_shared_with_static_runtimes=no
7128 archive_cmds=
7129 archive_expsym_cmds=
7130 old_archive_From_new_cmds=
7131 old_archive_from_expsyms_cmds=
7132 export_dynamic_flag_spec=
7133 whole_archive_flag_spec=
7134 thread_safe_flag_spec=
7135 hardcode_libdir_flag_spec=
7136 hardcode_libdir_flag_spec_ld=
7137 hardcode_libdir_separator=
7138 hardcode_direct=no
7139 hardcode_minus_L=no
7140 hardcode_shlibpath_var=unsupported
7141 link_all_deplibs=unknown
7142 hardcode_automatic=no
7143 module_cmds=
7144 module_expsym_cmds=
7145 always_export_symbols=no
7146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7147 # include_expsyms should be a list of space-separated symbols to be *always*
7148 # included in the symbol list
7149 include_expsyms=
7150 # exclude_expsyms can be an extended regexp of symbols to exclude
7151 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7152 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7153 # as well as any symbol that contains `d'.
7154 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7155 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7156 # platforms (ab)use it in PIC code, but their linkers get confused if
7157 # the symbol is explicitly referenced. Since portable code cannot
7158 # rely on this symbol name, it's probably fine to never include it in
7159 # preloaded symbol tables.
7160 extract_expsyms_cmds=
7161 # Just being paranoid about ensuring that cc_basename is set.
7162 for cc_temp in $compiler""; do
7163 case $cc_temp in
7164 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7165 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7166 \-*) ;;
7167 *) break;;
7168 esac
7169 done
7170 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7172 case $host_os in
7173 cygwin* | mingw* | pw32*)
7174 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7175 # When not using gcc, we currently assume that we are using
7176 # Microsoft Visual C++.
7177 if test "$GCC" != yes; then
7178 with_gnu_ld=no
7181 openbsd*)
7182 with_gnu_ld=no
7184 esac
7186 ld_shlibs=yes
7187 if test "$with_gnu_ld" = yes; then
7188 # If archive_cmds runs LD, not CC, wlarc should be empty
7189 wlarc='${wl}'
7191 # Set some defaults for GNU ld with shared library support. These
7192 # are reset later if shared libraries are not supported. Putting them
7193 # here allows them to be overridden if necessary.
7194 runpath_var=LD_RUN_PATH
7195 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7196 export_dynamic_flag_spec='${wl}--export-dynamic'
7197 # ancient GNU ld didn't support --whole-archive et. al.
7198 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7199 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7200 else
7201 whole_archive_flag_spec=
7203 supports_anon_versioning=no
7204 case `$LD -v 2>/dev/null` in
7205 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7206 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7207 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7208 *\ 2.11.*) ;; # other 2.11 versions
7209 *) supports_anon_versioning=yes ;;
7210 esac
7212 # See if GNU ld supports shared libraries.
7213 case $host_os in
7214 aix3* | aix4* | aix5*)
7215 # On AIX/PPC, the GNU linker is very broken
7216 if test "$host_cpu" != ia64; then
7217 ld_shlibs=no
7218 cat <<EOF 1>&2
7220 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7221 *** to be unable to reliably create shared libraries on AIX.
7222 *** Therefore, libtool is disabling shared libraries support. If you
7223 *** really care for shared libraries, you may want to modify your PATH
7224 *** so that a non-GNU linker is found, and then restart.
7230 amigaos*)
7231 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)'
7232 hardcode_libdir_flag_spec='-L$libdir'
7233 hardcode_minus_L=yes
7235 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7236 # that the semantics of dynamic libraries on AmigaOS, at least up
7237 # to version 4, is to share data among multiple programs linked
7238 # with the same dynamic library. Since this doesn't match the
7239 # behavior of shared libraries on other platforms, we can't use
7240 # them.
7241 ld_shlibs=no
7244 beos*)
7245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7246 allow_undefined_flag=unsupported
7247 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7248 # support --undefined. This deserves some investigation. FIXME
7249 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7250 else
7251 ld_shlibs=no
7255 cygwin* | mingw* | pw32*)
7256 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7257 # as there is no search path for DLLs.
7258 hardcode_libdir_flag_spec='-L$libdir'
7259 allow_undefined_flag=unsupported
7260 always_export_symbols=no
7261 enable_shared_with_static_runtimes=yes
7262 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7264 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7266 # If the export-symbols file already is a .def file (1st line
7267 # is EXPORTS), use it as is; otherwise, prepend...
7268 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7269 cp $export_symbols $output_objdir/$soname.def;
7270 else
7271 echo EXPORTS > $output_objdir/$soname.def;
7272 cat $export_symbols >> $output_objdir/$soname.def;
7274 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7275 else
7276 ld_shlibs=no
7280 linux*)
7281 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7282 tmp_addflag=
7283 case $cc_basename,$host_cpu in
7284 pgcc*) # Portland Group C compiler
7285 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'
7286 tmp_addflag=' $pic_flag'
7288 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7289 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'
7290 tmp_addflag=' $pic_flag -Mnomain' ;;
7291 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7292 tmp_addflag=' -i_dynamic' ;;
7293 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7294 tmp_addflag=' -i_dynamic -nofor_main' ;;
7295 ifc* | ifort*) # Intel Fortran compiler
7296 tmp_addflag=' -nofor_main' ;;
7297 esac
7298 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7300 if test $supports_anon_versioning = yes; then
7301 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7303 $echo "local: *; };" >> $output_objdir/$libname.ver~
7304 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7306 else
7307 ld_shlibs=no
7311 netbsd*)
7312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7313 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7314 wlarc=
7315 else
7316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7321 solaris* | sysv5*)
7322 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7323 ld_shlibs=no
7324 cat <<EOF 1>&2
7326 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7327 *** create shared libraries on Solaris systems. Therefore, libtool
7328 *** is disabling shared libraries support. We urge you to upgrade GNU
7329 *** binutils to release 2.9.1 or newer. Another option is to modify
7330 *** your PATH or compiler configuration so that the native linker is
7331 *** used, and then restart.
7334 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7337 else
7338 ld_shlibs=no
7342 sunos4*)
7343 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7344 wlarc=
7345 hardcode_direct=yes
7346 hardcode_shlibpath_var=no
7350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7353 else
7354 ld_shlibs=no
7357 esac
7359 if test "$ld_shlibs" = no; then
7360 runpath_var=
7361 hardcode_libdir_flag_spec=
7362 export_dynamic_flag_spec=
7363 whole_archive_flag_spec=
7365 else
7366 # PORTME fill in a description of your system's linker (not GNU ld)
7367 case $host_os in
7368 aix3*)
7369 allow_undefined_flag=unsupported
7370 always_export_symbols=yes
7371 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'
7372 # Note: this linker hardcodes the directories in LIBPATH if there
7373 # are no directories specified by -L.
7374 hardcode_minus_L=yes
7375 if test "$GCC" = yes && test -z "$link_static_flag"; then
7376 # Neither direct hardcoding nor static linking is supported with a
7377 # broken collect2.
7378 hardcode_direct=unsupported
7382 aix4* | aix5*)
7383 if test "$host_cpu" = ia64; then
7384 # On IA64, the linker does run time linking by default, so we don't
7385 # have to do anything special.
7386 aix_use_runtimelinking=no
7387 exp_sym_flag='-Bexport'
7388 no_entry_flag=""
7389 else
7390 # If we're using GNU nm, then we don't want the "-C" option.
7391 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7392 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7393 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'
7394 else
7395 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'
7397 aix_use_runtimelinking=no
7399 # Test if we are trying to use run time linking or normal
7400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7401 # need to do runtime linking.
7402 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7403 for ld_flag in $LDFLAGS; do
7404 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7405 aix_use_runtimelinking=yes
7406 break
7408 done
7409 esac
7411 exp_sym_flag='-bexport'
7412 no_entry_flag='-bnoentry'
7415 # When large executables or shared objects are built, AIX ld can
7416 # have problems creating the table of contents. If linking a library
7417 # or program results in "error TOC overflow" add -mminimal-toc to
7418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7421 archive_cmds=''
7422 hardcode_direct=yes
7423 hardcode_libdir_separator=':'
7424 link_all_deplibs=yes
7426 if test "$GCC" = yes; then
7427 case $host_os in aix4.[012]|aix4.[012].*)
7428 # We only want to do this on AIX 4.2 and lower, the check
7429 # below for broken collect2 doesn't work under 4.3+
7430 collect2name=`${CC} -print-prog-name=collect2`
7431 if test -f "$collect2name" && \
7432 strings "$collect2name" | grep resolve_lib_name >/dev/null
7433 then
7434 # We have reworked collect2
7435 hardcode_direct=yes
7436 else
7437 # We have old collect2
7438 hardcode_direct=unsupported
7439 # It fails to find uninstalled libraries when the uninstalled
7440 # path is not listed in the libpath. Setting hardcode_minus_L
7441 # to unsupported forces relinking
7442 hardcode_minus_L=yes
7443 hardcode_libdir_flag_spec='-L$libdir'
7444 hardcode_libdir_separator=
7446 esac
7447 shared_flag='-shared'
7448 if test "$aix_use_runtimelinking" = yes; then
7449 shared_flag="$shared_flag "'${wl}-G'
7451 else
7452 # not using gcc
7453 if test "$host_cpu" = ia64; then
7454 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7455 # chokes on -Wl,-G. The following line is correct:
7456 shared_flag='-G'
7457 else
7458 if test "$aix_use_runtimelinking" = yes; then
7459 shared_flag='${wl}-G'
7460 else
7461 shared_flag='${wl}-bM:SRE'
7466 # It seems that -bexpall does not export symbols beginning with
7467 # underscore (_), so it is better to generate a list of symbols to export.
7468 always_export_symbols=yes
7469 if test "$aix_use_runtimelinking" = yes; then
7470 # Warning - without using the other runtime loading flags (-brtl),
7471 # -berok will link without error, but may produce a broken library.
7472 allow_undefined_flag='-berok'
7473 # Determine the default libpath from the value encoded in an empty executable.
7475 cat > conftest.$ac_ext <<EOF
7476 #line 7476 "configure"
7477 #include "confdefs.h"
7478 int main() {
7479 ; return 0; }
7481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7482 (eval $ac_link) 2>&5
7483 ac_status=$?
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7487 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7489 # Check for a 64-bit object if we didn't find anything.
7490 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7491 }'`; fi
7492 rm -rf conftest*
7493 else
7494 echo "configure: failed program was:" >&5
7495 cat conftest.$ac_ext >&6
7497 rm -f conftest*
7498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7501 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7502 else
7503 if test "$host_cpu" = ia64; then
7504 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7505 allow_undefined_flag="-z nodefs"
7506 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7507 else
7508 # Determine the default libpath from the value encoded in an empty executable.
7510 cat > conftest.$ac_ext <<EOF
7511 #line 7511 "configure"
7512 #include "confdefs.h"
7513 int main() {
7514 ; return 0; }
7516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7517 (eval $ac_link) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7522 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7524 # Check for a 64-bit object if we didn't find anything.
7525 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7526 }'`; fi
7527 rm -rf conftest*
7528 else
7529 echo "configure: failed program was:" >&5
7530 cat conftest.$ac_ext >&6
7532 rm -f conftest*
7533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7535 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7536 # Warning - without using the other run time loading flags,
7537 # -berok will link without error, but may produce a broken library.
7538 no_undefined_flag=' ${wl}-bernotok'
7539 allow_undefined_flag=' ${wl}-berok'
7540 # -bexpall does not export symbols beginning with underscore (_)
7541 always_export_symbols=yes
7542 # Exported symbols can be pulled into shared objects from archives
7543 whole_archive_flag_spec=' '
7544 archive_cmds_need_lc=yes
7545 # This is similar to how AIX traditionally builds its shared libraries.
7546 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7551 amigaos*)
7552 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)'
7553 hardcode_libdir_flag_spec='-L$libdir'
7554 hardcode_minus_L=yes
7555 # see comment about different semantics on the GNU ld section
7556 ld_shlibs=no
7559 bsdi[45]*)
7560 export_dynamic_flag_spec=-rdynamic
7563 cygwin* | mingw* | pw32*)
7564 # When not using gcc, we currently assume that we are using
7565 # Microsoft Visual C++.
7566 # hardcode_libdir_flag_spec is actually meaningless, as there is
7567 # no search path for DLLs.
7568 hardcode_libdir_flag_spec=' '
7569 allow_undefined_flag=unsupported
7570 # Tell ltmain to make .lib files, not .a files.
7571 libext=lib
7572 # Tell ltmain to make .dll files, not .so files.
7573 shrext_cmds=".dll"
7574 # FIXME: Setting linknames here is a bad hack.
7575 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7576 # The linker will automatically build a .lib file if we build a DLL.
7577 old_archive_From_new_cmds='true'
7578 # FIXME: Should let the user specify the lib program.
7579 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7580 fix_srcfile_path='`cygpath -w "$srcfile"`'
7581 enable_shared_with_static_runtimes=yes
7584 darwin* | rhapsody*)
7585 case $host_os in
7586 rhapsody* | darwin1.[012])
7587 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7589 *) # Darwin 1.3 on
7590 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7591 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7592 else
7593 case ${MACOSX_DEPLOYMENT_TARGET} in
7594 10.[012])
7595 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7597 10.*)
7598 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7600 esac
7603 esac
7604 archive_cmds_need_lc=no
7605 hardcode_direct=no
7606 hardcode_automatic=yes
7607 hardcode_shlibpath_var=unsupported
7608 whole_archive_flag_spec=''
7609 link_all_deplibs=yes
7610 if test "$GCC" = yes ; then
7611 output_verbose_link_cmd='echo'
7612 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7613 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7614 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7615 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7616 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7617 else
7618 case $cc_basename in
7619 xlc*)
7620 output_verbose_link_cmd='echo'
7621 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7622 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7623 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7624 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7625 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7628 ld_shlibs=no
7630 esac
7634 dgux*)
7635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7636 hardcode_libdir_flag_spec='-L$libdir'
7637 hardcode_shlibpath_var=no
7640 freebsd1*)
7641 ld_shlibs=no
7644 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7645 # support. Future versions do this automatically, but an explicit c++rt0.o
7646 # does not break anything, and helps significantly (at the cost of a little
7647 # extra space).
7648 freebsd2.2*)
7649 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7650 hardcode_libdir_flag_spec='-R$libdir'
7651 hardcode_direct=yes
7652 hardcode_shlibpath_var=no
7655 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7656 freebsd2*)
7657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7658 hardcode_direct=yes
7659 hardcode_minus_L=yes
7660 hardcode_shlibpath_var=no
7663 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7664 freebsd* | kfreebsd*-gnu | dragonfly*)
7665 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7666 hardcode_libdir_flag_spec='-R$libdir'
7667 hardcode_direct=yes
7668 hardcode_shlibpath_var=no
7671 hpux9*)
7672 if test "$GCC" = yes; then
7673 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'
7674 else
7675 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'
7677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7678 hardcode_libdir_separator=:
7679 hardcode_direct=yes
7681 # hardcode_minus_L: Not really in the search PATH,
7682 # but as the default location of the library.
7683 hardcode_minus_L=yes
7684 export_dynamic_flag_spec='${wl}-E'
7687 hpux10* | hpux11*)
7688 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7689 case $host_cpu in
7690 hppa*64*|ia64*)
7691 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7694 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7696 esac
7697 else
7698 case $host_cpu in
7699 hppa*64*|ia64*)
7700 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7705 esac
7707 if test "$with_gnu_ld" = no; then
7708 case $host_cpu in
7709 hppa*64*)
7710 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7711 hardcode_libdir_flag_spec_ld='+b $libdir'
7712 hardcode_libdir_separator=:
7713 hardcode_direct=no
7714 hardcode_shlibpath_var=no
7716 ia64*)
7717 hardcode_libdir_flag_spec='-L$libdir'
7718 hardcode_direct=no
7719 hardcode_shlibpath_var=no
7721 # hardcode_minus_L: Not really in the search PATH,
7722 # but as the default location of the library.
7723 hardcode_minus_L=yes
7726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7727 hardcode_libdir_separator=:
7728 hardcode_direct=yes
7729 export_dynamic_flag_spec='${wl}-E'
7731 # hardcode_minus_L: Not really in the search PATH,
7732 # but as the default location of the library.
7733 hardcode_minus_L=yes
7735 esac
7739 irix5* | irix6* | nonstopux*)
7740 if test "$GCC" = yes; then
7741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7742 else
7743 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7744 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7747 hardcode_libdir_separator=:
7748 link_all_deplibs=yes
7751 netbsd*)
7752 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7754 else
7755 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7757 hardcode_libdir_flag_spec='-R$libdir'
7758 hardcode_direct=yes
7759 hardcode_shlibpath_var=no
7762 newsos6)
7763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7764 hardcode_direct=yes
7765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7766 hardcode_libdir_separator=:
7767 hardcode_shlibpath_var=no
7770 openbsd*)
7771 hardcode_direct=yes
7772 hardcode_shlibpath_var=no
7773 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7774 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7775 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7777 export_dynamic_flag_spec='${wl}-E'
7778 else
7779 case $host_os in
7780 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7782 hardcode_libdir_flag_spec='-R$libdir'
7785 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7788 esac
7792 os2*)
7793 hardcode_libdir_flag_spec='-L$libdir'
7794 hardcode_minus_L=yes
7795 allow_undefined_flag=unsupported
7796 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'
7797 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7800 osf3*)
7801 if test "$GCC" = yes; then
7802 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7803 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7804 else
7805 allow_undefined_flag=' -expect_unresolved \*'
7806 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7809 hardcode_libdir_separator=:
7812 osf4* | osf5*) # as osf3* with the addition of -msym flag
7813 if test "$GCC" = yes; then
7814 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7815 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7817 else
7818 allow_undefined_flag=' -expect_unresolved \*'
7819 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7820 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7821 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7823 # Both c and cxx compiler support -rpath directly
7824 hardcode_libdir_flag_spec='-rpath $libdir'
7826 hardcode_libdir_separator=:
7829 sco3.2v5*)
7830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7831 hardcode_shlibpath_var=no
7832 export_dynamic_flag_spec='${wl}-Bexport'
7833 runpath_var=LD_RUN_PATH
7834 hardcode_runpath_var=yes
7837 solaris*)
7838 no_undefined_flag=' -z text'
7839 if test "$GCC" = yes; then
7840 wlarc='${wl}'
7841 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7842 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7843 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7844 else
7845 wlarc=''
7846 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7847 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7848 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7850 hardcode_libdir_flag_spec='-R$libdir'
7851 hardcode_shlibpath_var=no
7852 case $host_os in
7853 solaris2.[0-5] | solaris2.[0-5].*) ;;
7855 # The compiler driver will combine linker options so we
7856 # cannot just pass the convience library names through
7857 # without $wl, iff we do not link with $LD.
7858 # Luckily, gcc supports the same syntax we need for Sun Studio.
7859 # Supported since Solaris 2.6 (maybe 2.5.1?)
7860 case $wlarc in
7862 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7864 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7865 esac ;;
7866 esac
7867 link_all_deplibs=yes
7870 sunos4*)
7871 if test "x$host_vendor" = xsequent; then
7872 # Use $CC to link under sequent, because it throws in some extra .o
7873 # files that make .init and .fini sections work.
7874 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7875 else
7876 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7878 hardcode_libdir_flag_spec='-L$libdir'
7879 hardcode_direct=yes
7880 hardcode_minus_L=yes
7881 hardcode_shlibpath_var=no
7884 sysv4)
7885 case $host_vendor in
7886 sni)
7887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7888 hardcode_direct=yes # is this really true???
7890 siemens)
7891 ## LD is ld it makes a PLAMLIB
7892 ## CC just makes a GrossModule.
7893 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7894 reload_cmds='$CC -r -o $output$reload_objs'
7895 hardcode_direct=no
7897 motorola)
7898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7899 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7901 esac
7902 runpath_var='LD_RUN_PATH'
7903 hardcode_shlibpath_var=no
7906 sysv4.3*)
7907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7908 hardcode_shlibpath_var=no
7909 export_dynamic_flag_spec='-Bexport'
7912 sysv4*MP*)
7913 if test -d /usr/nec; then
7914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7915 hardcode_shlibpath_var=no
7916 runpath_var=LD_RUN_PATH
7917 hardcode_runpath_var=yes
7918 ld_shlibs=yes
7922 sysv4.2uw2*)
7923 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7924 hardcode_direct=yes
7925 hardcode_minus_L=no
7926 hardcode_shlibpath_var=no
7927 hardcode_runpath_var=yes
7928 runpath_var=LD_RUN_PATH
7931 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7932 no_undefined_flag='${wl}-z ${wl}text'
7933 if test "$GCC" = yes; then
7934 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7935 else
7936 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7938 runpath_var='LD_RUN_PATH'
7939 hardcode_shlibpath_var=no
7942 sysv5*)
7943 no_undefined_flag=' -z text'
7944 # $CC -shared without GNU ld will not create a library from C++
7945 # object files and a static libstdc++, better avoid it by now
7946 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7947 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7948 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7949 hardcode_libdir_flag_spec=
7950 hardcode_shlibpath_var=no
7951 runpath_var='LD_RUN_PATH'
7954 uts4*)
7955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7956 hardcode_libdir_flag_spec='-L$libdir'
7957 hardcode_shlibpath_var=no
7961 ld_shlibs=no
7963 esac
7966 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7967 echo "${ECHO_T}$ld_shlibs" >&6; }
7968 test "$ld_shlibs" = no && can_build_shared=no
7970 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7971 if test "$GCC" = yes; then
7972 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7976 # Do we need to explicitly link libc?
7978 case "x$archive_cmds_need_lc" in
7979 x|xyes)
7980 # Assume -lc should be added
7981 archive_cmds_need_lc=yes
7983 if test "$enable_shared" = yes && test "$GCC" = yes; then
7984 case $archive_cmds in
7985 *'~'*)
7986 # FIXME: we may have to deal with multi-command sequences.
7988 '$CC '*)
7989 # Test whether the compiler implicitly links with -lc since on some
7990 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7991 # to ld, don't add -lc before -lgcc.
7992 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7993 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7994 $rm conftest*
7995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998 (eval $ac_compile) 2>&5
7999 ac_status=$?
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } 2>conftest.err; then
8002 soname=conftest
8003 lib=conftest
8004 libobjs=conftest.$ac_objext
8005 deplibs=
8006 wl=$lt_prog_compiler_wl
8007 compiler_flags=-v
8008 linker_flags=-v
8009 verstring=
8010 output_objdir=.
8011 libname=conftest
8012 lt_save_allow_undefined_flag=$allow_undefined_flag
8013 allow_undefined_flag=
8014 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8015 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }
8019 then
8020 archive_cmds_need_lc=no
8021 else
8022 archive_cmds_need_lc=yes
8024 allow_undefined_flag=$lt_save_allow_undefined_flag
8025 else
8026 cat conftest.err 1>&5
8028 $rm conftest*
8029 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8030 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8032 esac
8035 esac
8037 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8038 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8039 library_names_spec=
8040 libname_spec='lib$name'
8041 soname_spec=
8042 shrext_cmds=".so"
8043 postinstall_cmds=
8044 postuninstall_cmds=
8045 finish_cmds=
8046 finish_eval=
8047 shlibpath_var=
8048 shlibpath_overrides_runpath=unknown
8049 version_type=none
8050 dynamic_linker="$host_os ld.so"
8051 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8052 if test "$GCC" = yes; then
8053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8054 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8055 # if the path contains ";" then we assume it to be the separator
8056 # otherwise default to the standard path separator (i.e. ":") - it is
8057 # assumed that no part of a normal pathname contains ";" but that should
8058 # okay in the real world where ";" in dirpaths is itself problematic.
8059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8060 else
8061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8063 else
8064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8066 need_lib_prefix=unknown
8067 hardcode_into_libs=no
8069 # when you set need_version to no, make sure it does not cause -set_version
8070 # flags to be left without arguments
8071 need_version=unknown
8073 case $host_os in
8074 aix3*)
8075 version_type=linux
8076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8077 shlibpath_var=LIBPATH
8079 # AIX 3 has no versioning support, so we append a major version to the name.
8080 soname_spec='${libname}${release}${shared_ext}$major'
8083 aix4* | aix5*)
8084 version_type=linux
8085 need_lib_prefix=no
8086 need_version=no
8087 hardcode_into_libs=yes
8088 if test "$host_cpu" = ia64; then
8089 # AIX 5 supports IA64
8090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8091 shlibpath_var=LD_LIBRARY_PATH
8092 else
8093 # With GCC up to 2.95.x, collect2 would create an import file
8094 # for dependence libraries. The import file would start with
8095 # the line `#! .'. This would cause the generated library to
8096 # depend on `.', always an invalid library. This was fixed in
8097 # development snapshots of GCC prior to 3.0.
8098 case $host_os in
8099 aix4 | aix4.[01] | aix4.[01].*)
8100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8101 echo ' yes '
8102 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8104 else
8105 can_build_shared=no
8108 esac
8109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8110 # soname into executable. Probably we can add versioning support to
8111 # collect2, so additional links can be useful in future.
8112 if test "$aix_use_runtimelinking" = yes; then
8113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8114 # instead of lib<name>.a to let people know that these are not
8115 # typical AIX shared libraries.
8116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8117 else
8118 # We preserve .a as extension for shared libraries through AIX4.2
8119 # and later when we are not doing run time linking.
8120 library_names_spec='${libname}${release}.a $libname.a'
8121 soname_spec='${libname}${release}${shared_ext}$major'
8123 shlibpath_var=LIBPATH
8127 amigaos*)
8128 library_names_spec='$libname.ixlibrary $libname.a'
8129 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8130 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'
8133 beos*)
8134 library_names_spec='${libname}${shared_ext}'
8135 dynamic_linker="$host_os ld.so"
8136 shlibpath_var=LIBRARY_PATH
8139 bsdi[45]*)
8140 version_type=linux
8141 need_version=no
8142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8143 soname_spec='${libname}${release}${shared_ext}$major'
8144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8145 shlibpath_var=LD_LIBRARY_PATH
8146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8148 # the default ld.so.conf also contains /usr/contrib/lib and
8149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8150 # libtool to hard-code these into programs
8153 cygwin* | mingw* | pw32*)
8154 version_type=windows
8155 shrext_cmds=".dll"
8156 need_version=no
8157 need_lib_prefix=no
8159 case $GCC,$host_os in
8160 yes,cygwin* | yes,mingw* | yes,pw32*)
8161 library_names_spec='$libname.dll.a'
8162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8163 postinstall_cmds='base_file=`basename \${file}`~
8164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8165 dldir=$destdir/`dirname \$dlpath`~
8166 test -d \$dldir || mkdir -p \$dldir~
8167 $install_prog $dir/$dlname \$dldir/$dlname~
8168 chmod a+x \$dldir/$dlname'
8169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8170 dlpath=$dir/\$dldll~
8171 $rm \$dlpath'
8172 shlibpath_overrides_runpath=yes
8174 case $host_os in
8175 cygwin*)
8176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8178 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8180 mingw*)
8181 # MinGW DLLs use traditional 'lib' prefix
8182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8184 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8185 # It is most probably a Windows format PATH printed by
8186 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8187 # path with ; separators, and with drive letters. We can handle the
8188 # drive letters (cygwin fileutils understands them), so leave them,
8189 # especially as we might pass files found there to a mingw objdump,
8190 # which wouldn't understand a cygwinified path. Ahh.
8191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8192 else
8193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8196 pw32*)
8197 # pw32 DLLs use 'pw' prefix rather than 'lib'
8198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8200 esac
8204 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8206 esac
8207 dynamic_linker='Win32 ld.exe'
8208 # FIXME: first we should search . and the directory the executable is in
8209 shlibpath_var=PATH
8212 darwin* | rhapsody*)
8213 dynamic_linker="$host_os dyld"
8214 version_type=darwin
8215 need_lib_prefix=no
8216 need_version=no
8217 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8218 soname_spec='${libname}${release}${major}$shared_ext'
8219 shlibpath_overrides_runpath=yes
8220 shlibpath_var=DYLD_LIBRARY_PATH
8221 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8222 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8223 if test "$GCC" = yes; then
8224 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8225 else
8226 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8231 dgux*)
8232 version_type=linux
8233 need_lib_prefix=no
8234 need_version=no
8235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8236 soname_spec='${libname}${release}${shared_ext}$major'
8237 shlibpath_var=LD_LIBRARY_PATH
8240 freebsd1*)
8241 dynamic_linker=no
8244 kfreebsd*-gnu)
8245 version_type=linux
8246 need_lib_prefix=no
8247 need_version=no
8248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8249 soname_spec='${libname}${release}${shared_ext}$major'
8250 shlibpath_var=LD_LIBRARY_PATH
8251 shlibpath_overrides_runpath=no
8252 hardcode_into_libs=yes
8253 dynamic_linker='GNU ld.so'
8256 freebsd* | dragonfly*)
8257 # DragonFly does not have aout. When/if they implement a new
8258 # versioning mechanism, adjust this.
8259 if test -x /usr/bin/objformat; then
8260 objformat=`/usr/bin/objformat`
8261 else
8262 case $host_os in
8263 freebsd[123]*) objformat=aout ;;
8264 *) objformat=elf ;;
8265 esac
8267 version_type=freebsd-$objformat
8268 case $version_type in
8269 freebsd-elf*)
8270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8271 need_version=no
8272 need_lib_prefix=no
8274 freebsd-*)
8275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8276 need_version=yes
8278 esac
8279 shlibpath_var=LD_LIBRARY_PATH
8280 case $host_os in
8281 freebsd2*)
8282 shlibpath_overrides_runpath=yes
8284 freebsd3.[01]* | freebsdelf3.[01]*)
8285 shlibpath_overrides_runpath=yes
8286 hardcode_into_libs=yes
8288 *) # from 3.2 on
8289 shlibpath_overrides_runpath=no
8290 hardcode_into_libs=yes
8292 esac
8295 gnu*)
8296 version_type=linux
8297 need_lib_prefix=no
8298 need_version=no
8299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8300 soname_spec='${libname}${release}${shared_ext}$major'
8301 shlibpath_var=LD_LIBRARY_PATH
8302 hardcode_into_libs=yes
8305 hpux9* | hpux10* | hpux11*)
8306 # Give a soname corresponding to the major version so that dld.sl refuses to
8307 # link against other versions.
8308 version_type=sunos
8309 need_lib_prefix=no
8310 need_version=no
8311 case $host_cpu in
8312 ia64*)
8313 shrext_cmds='.so'
8314 hardcode_into_libs=yes
8315 dynamic_linker="$host_os dld.so"
8316 shlibpath_var=LD_LIBRARY_PATH
8317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8319 soname_spec='${libname}${release}${shared_ext}$major'
8320 if test "X$HPUX_IA64_MODE" = X32; then
8321 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8322 else
8323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8327 hppa*64*)
8328 shrext_cmds='.sl'
8329 hardcode_into_libs=yes
8330 dynamic_linker="$host_os dld.sl"
8331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8334 soname_spec='${libname}${release}${shared_ext}$major'
8335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8339 shrext_cmds='.sl'
8340 dynamic_linker="$host_os dld.sl"
8341 shlibpath_var=SHLIB_PATH
8342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8344 soname_spec='${libname}${release}${shared_ext}$major'
8346 esac
8347 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8348 postinstall_cmds='chmod 555 $lib'
8351 irix5* | irix6* | nonstopux*)
8352 case $host_os in
8353 nonstopux*) version_type=nonstopux ;;
8355 if test "$lt_cv_prog_gnu_ld" = yes; then
8356 version_type=linux
8357 else
8358 version_type=irix
8359 fi ;;
8360 esac
8361 need_lib_prefix=no
8362 need_version=no
8363 soname_spec='${libname}${release}${shared_ext}$major'
8364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8365 case $host_os in
8366 irix5* | nonstopux*)
8367 libsuff= shlibsuff=
8370 case $LD in # libtool.m4 will add one of these switches to LD
8371 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8372 libsuff= shlibsuff= libmagic=32-bit;;
8373 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8374 libsuff=32 shlibsuff=N32 libmagic=N32;;
8375 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8376 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8377 *) libsuff= shlibsuff= libmagic=never-match;;
8378 esac
8380 esac
8381 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8382 shlibpath_overrides_runpath=no
8383 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8384 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8385 hardcode_into_libs=yes
8388 # No shared lib support for Linux oldld, aout, or coff.
8389 linux*oldld* | linux*aout* | linux*coff*)
8390 dynamic_linker=no
8393 # This must be Linux ELF.
8394 linux*)
8395 version_type=linux
8396 need_lib_prefix=no
8397 need_version=no
8398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8399 soname_spec='${libname}${release}${shared_ext}$major'
8400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8401 shlibpath_var=LD_LIBRARY_PATH
8402 shlibpath_overrides_runpath=no
8403 # This implies no fast_install, which is unacceptable.
8404 # Some rework will be needed to allow for fast_install
8405 # before this can be enabled.
8406 hardcode_into_libs=yes
8408 # find out which ABI we are using
8409 libsuff=
8410 case $host_cpu in
8411 x86_64*|s390x*|powerpc64*)
8412 echo '#line 8412 "configure"' > conftest.$ac_ext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8414 (eval $ac_compile) 2>&5
8415 ac_status=$?
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; then
8418 case `/usr/bin/file conftest.$ac_objext` in
8419 *64-bit*)
8420 libsuff=64
8421 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8423 esac
8425 rm -rf conftest*
8427 esac
8429 # Append ld.so.conf contents to the search path
8430 if test -f /etc/ld.so.conf; then
8431 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8432 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8435 # We used to test for /lib/ld.so.1 and disable shared libraries on
8436 # powerpc, because MkLinux only supported shared libraries with the
8437 # GNU dynamic linker. Since this was broken with cross compilers,
8438 # most powerpc-linux boxes support dynamic linking these days and
8439 # people can always --disable-shared, the test was removed, and we
8440 # assume the GNU/Linux dynamic linker is in use.
8441 dynamic_linker='GNU/Linux ld.so'
8444 knetbsd*-gnu)
8445 version_type=linux
8446 need_lib_prefix=no
8447 need_version=no
8448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8449 soname_spec='${libname}${release}${shared_ext}$major'
8450 shlibpath_var=LD_LIBRARY_PATH
8451 shlibpath_overrides_runpath=no
8452 hardcode_into_libs=yes
8453 dynamic_linker='GNU ld.so'
8456 netbsd*)
8457 version_type=sunos
8458 need_lib_prefix=no
8459 need_version=no
8460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8463 dynamic_linker='NetBSD (a.out) ld.so'
8464 else
8465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8466 soname_spec='${libname}${release}${shared_ext}$major'
8467 dynamic_linker='NetBSD ld.elf_so'
8469 shlibpath_var=LD_LIBRARY_PATH
8470 shlibpath_overrides_runpath=yes
8471 hardcode_into_libs=yes
8474 newsos6)
8475 version_type=linux
8476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8477 shlibpath_var=LD_LIBRARY_PATH
8478 shlibpath_overrides_runpath=yes
8481 nto-qnx*)
8482 version_type=linux
8483 need_lib_prefix=no
8484 need_version=no
8485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8486 soname_spec='${libname}${release}${shared_ext}$major'
8487 shlibpath_var=LD_LIBRARY_PATH
8488 shlibpath_overrides_runpath=yes
8491 openbsd*)
8492 version_type=sunos
8493 need_lib_prefix=no
8494 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8495 case $host_os in
8496 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8497 *) need_version=no ;;
8498 esac
8499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8501 shlibpath_var=LD_LIBRARY_PATH
8502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8503 case $host_os in
8504 openbsd2.[89] | openbsd2.[89].*)
8505 shlibpath_overrides_runpath=no
8508 shlibpath_overrides_runpath=yes
8510 esac
8511 else
8512 shlibpath_overrides_runpath=yes
8516 os2*)
8517 libname_spec='$name'
8518 shrext_cmds=".dll"
8519 need_lib_prefix=no
8520 library_names_spec='$libname${shared_ext} $libname.a'
8521 dynamic_linker='OS/2 ld.exe'
8522 shlibpath_var=LIBPATH
8525 osf3* | osf4* | osf5*)
8526 version_type=osf
8527 need_lib_prefix=no
8528 need_version=no
8529 soname_spec='${libname}${release}${shared_ext}$major'
8530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8531 shlibpath_var=LD_LIBRARY_PATH
8532 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8533 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8536 sco3.2v5*)
8537 version_type=osf
8538 soname_spec='${libname}${release}${shared_ext}$major'
8539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8540 shlibpath_var=LD_LIBRARY_PATH
8543 solaris*)
8544 version_type=linux
8545 need_lib_prefix=no
8546 need_version=no
8547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8548 soname_spec='${libname}${release}${shared_ext}$major'
8549 shlibpath_var=LD_LIBRARY_PATH
8550 shlibpath_overrides_runpath=yes
8551 hardcode_into_libs=yes
8552 # ldd complains unless libraries are executable
8553 postinstall_cmds='chmod +x $lib'
8556 sunos4*)
8557 version_type=sunos
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8559 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8560 shlibpath_var=LD_LIBRARY_PATH
8561 shlibpath_overrides_runpath=yes
8562 if test "$with_gnu_ld" = yes; then
8563 need_lib_prefix=no
8565 need_version=yes
8568 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8569 version_type=linux
8570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8571 soname_spec='${libname}${release}${shared_ext}$major'
8572 shlibpath_var=LD_LIBRARY_PATH
8573 case $host_vendor in
8574 sni)
8575 shlibpath_overrides_runpath=no
8576 need_lib_prefix=no
8577 export_dynamic_flag_spec='${wl}-Blargedynsym'
8578 runpath_var=LD_RUN_PATH
8580 siemens)
8581 need_lib_prefix=no
8583 motorola)
8584 need_lib_prefix=no
8585 need_version=no
8586 shlibpath_overrides_runpath=no
8587 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8589 esac
8592 sysv4*MP*)
8593 if test -d /usr/nec ;then
8594 version_type=linux
8595 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8596 soname_spec='$libname${shared_ext}.$major'
8597 shlibpath_var=LD_LIBRARY_PATH
8601 uts4*)
8602 version_type=linux
8603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604 soname_spec='${libname}${release}${shared_ext}$major'
8605 shlibpath_var=LD_LIBRARY_PATH
8609 dynamic_linker=no
8611 esac
8612 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8613 echo "${ECHO_T}$dynamic_linker" >&6; }
8614 test "$dynamic_linker" = no && can_build_shared=no
8616 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8617 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8618 hardcode_action=
8619 if test -n "$hardcode_libdir_flag_spec" || \
8620 test -n "$runpath_var" || \
8621 test "X$hardcode_automatic" = "Xyes" ; then
8623 # We can hardcode non-existant directories.
8624 if test "$hardcode_direct" != no &&
8625 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8626 # have to relink, otherwise we might link with an installed library
8627 # when we should be linking with a yet-to-be-installed one
8628 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8629 test "$hardcode_minus_L" != no; then
8630 # Linking always hardcodes the temporary library directory.
8631 hardcode_action=relink
8632 else
8633 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8634 hardcode_action=immediate
8636 else
8637 # We cannot hardcode anything, or else we can only hardcode existing
8638 # directories.
8639 hardcode_action=unsupported
8641 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8642 echo "${ECHO_T}$hardcode_action" >&6; }
8644 if test "$hardcode_action" = relink; then
8645 # Fast installation is not supported
8646 enable_fast_install=no
8647 elif test "$shlibpath_overrides_runpath" = yes ||
8648 test "$enable_shared" = no; then
8649 # Fast installation is not necessary
8650 enable_fast_install=needless
8653 striplib=
8654 old_striplib=
8655 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8656 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8657 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8658 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8659 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8660 { echo "$as_me:$LINENO: result: yes" >&5
8661 echo "${ECHO_T}yes" >&6; }
8662 else
8663 # FIXME - insert some real tests, host_os isn't really good enough
8664 case $host_os in
8665 darwin*)
8666 if test -n "$STRIP" ; then
8667 striplib="$STRIP -x"
8668 { echo "$as_me:$LINENO: result: yes" >&5
8669 echo "${ECHO_T}yes" >&6; }
8670 else
8671 { echo "$as_me:$LINENO: result: no" >&5
8672 echo "${ECHO_T}no" >&6; }
8676 { echo "$as_me:$LINENO: result: no" >&5
8677 echo "${ECHO_T}no" >&6; }
8679 esac
8682 if test "x$enable_dlopen" != xyes; then
8683 enable_dlopen=unknown
8684 enable_dlopen_self=unknown
8685 enable_dlopen_self_static=unknown
8686 else
8687 lt_cv_dlopen=no
8688 lt_cv_dlopen_libs=
8690 case $host_os in
8691 beos*)
8692 lt_cv_dlopen="load_add_on"
8693 lt_cv_dlopen_libs=
8694 lt_cv_dlopen_self=yes
8697 mingw* | pw32*)
8698 lt_cv_dlopen="LoadLibrary"
8699 lt_cv_dlopen_libs=
8702 cygwin*)
8703 lt_cv_dlopen="dlopen"
8704 lt_cv_dlopen_libs=
8707 darwin*)
8708 # if libdl is installed we need to link against it
8709 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8710 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714 ac_check_lib_save_LIBS=$LIBS
8715 LIBS="-ldl $LIBS"
8716 cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h. */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h. */
8723 /* Override any GCC internal prototype to avoid an error.
8724 Use char because int might match the return type of a GCC
8725 builtin and then its argument prototype would still apply. */
8726 #ifdef __cplusplus
8727 extern "C"
8728 #endif
8729 char dlopen ();
8731 main ()
8733 return dlopen ();
8735 return 0;
8737 _ACEOF
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (ac_try="$ac_link"
8740 case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743 esac
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_link") 2>conftest.er1
8746 ac_status=$?
8747 grep -v '^ *+' conftest.er1 >conftest.err
8748 rm -f conftest.er1
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } && {
8752 test -z "$ac_c_werror_flag" ||
8753 test ! -s conftest.err
8754 } && test -s conftest$ac_exeext &&
8755 $as_test_x conftest$ac_exeext; then
8756 ac_cv_lib_dl_dlopen=yes
8757 else
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8761 ac_cv_lib_dl_dlopen=no
8764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8765 conftest$ac_exeext conftest.$ac_ext
8766 LIBS=$ac_check_lib_save_LIBS
8768 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8770 if test $ac_cv_lib_dl_dlopen = yes; then
8771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8772 else
8774 lt_cv_dlopen="dyld"
8775 lt_cv_dlopen_libs=
8776 lt_cv_dlopen_self=yes
8783 { echo "$as_me:$LINENO: checking for shl_load" >&5
8784 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8785 if test "${ac_cv_func_shl_load+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788 cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h. */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h. */
8794 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8796 #define shl_load innocuous_shl_load
8798 /* System header to define __stub macros and hopefully few prototypes,
8799 which can conflict with char shl_load (); below.
8800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8801 <limits.h> exists even on freestanding compilers. */
8803 #ifdef __STDC__
8804 # include <limits.h>
8805 #else
8806 # include <assert.h>
8807 #endif
8809 #undef shl_load
8811 /* Override any GCC internal prototype to avoid an error.
8812 Use char because int might match the return type of a GCC
8813 builtin and then its argument prototype would still apply. */
8814 #ifdef __cplusplus
8815 extern "C"
8816 #endif
8817 char shl_load ();
8818 /* The GNU C library defines this for functions which it implements
8819 to always fail with ENOSYS. Some functions are actually named
8820 something starting with __ and the normal name is an alias. */
8821 #if defined __stub_shl_load || defined __stub___shl_load
8822 choke me
8823 #endif
8826 main ()
8828 return shl_load ();
8830 return 0;
8832 _ACEOF
8833 rm -f conftest.$ac_objext conftest$ac_exeext
8834 if { (ac_try="$ac_link"
8835 case "(($ac_try" in
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8838 esac
8839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840 (eval "$ac_link") 2>conftest.er1
8841 ac_status=$?
8842 grep -v '^ *+' conftest.er1 >conftest.err
8843 rm -f conftest.er1
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } && {
8847 test -z "$ac_c_werror_flag" ||
8848 test ! -s conftest.err
8849 } && test -s conftest$ac_exeext &&
8850 $as_test_x conftest$ac_exeext; then
8851 ac_cv_func_shl_load=yes
8852 else
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 ac_cv_func_shl_load=no
8859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8860 conftest$ac_exeext conftest.$ac_ext
8862 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8863 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8864 if test $ac_cv_func_shl_load = yes; then
8865 lt_cv_dlopen="shl_load"
8866 else
8867 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8868 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8869 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872 ac_check_lib_save_LIBS=$LIBS
8873 LIBS="-ldld $LIBS"
8874 cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h. */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8881 /* Override any GCC internal prototype to avoid an error.
8882 Use char because int might match the return type of a GCC
8883 builtin and then its argument prototype would still apply. */
8884 #ifdef __cplusplus
8885 extern "C"
8886 #endif
8887 char shl_load ();
8889 main ()
8891 return shl_load ();
8893 return 0;
8895 _ACEOF
8896 rm -f conftest.$ac_objext conftest$ac_exeext
8897 if { (ac_try="$ac_link"
8898 case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8901 esac
8902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_link") 2>conftest.er1
8904 ac_status=$?
8905 grep -v '^ *+' conftest.er1 >conftest.err
8906 rm -f conftest.er1
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } && {
8910 test -z "$ac_c_werror_flag" ||
8911 test ! -s conftest.err
8912 } && test -s conftest$ac_exeext &&
8913 $as_test_x conftest$ac_exeext; then
8914 ac_cv_lib_dld_shl_load=yes
8915 else
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 ac_cv_lib_dld_shl_load=no
8922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8923 conftest$ac_exeext conftest.$ac_ext
8924 LIBS=$ac_check_lib_save_LIBS
8926 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8927 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8928 if test $ac_cv_lib_dld_shl_load = yes; then
8929 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8930 else
8931 { echo "$as_me:$LINENO: checking for dlopen" >&5
8932 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8933 if test "${ac_cv_func_dlopen+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 else
8936 cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h. */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8944 #define dlopen innocuous_dlopen
8946 /* System header to define __stub macros and hopefully few prototypes,
8947 which can conflict with char dlopen (); below.
8948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8949 <limits.h> exists even on freestanding compilers. */
8951 #ifdef __STDC__
8952 # include <limits.h>
8953 #else
8954 # include <assert.h>
8955 #endif
8957 #undef dlopen
8959 /* Override any GCC internal prototype to avoid an error.
8960 Use char because int might match the return type of a GCC
8961 builtin and then its argument prototype would still apply. */
8962 #ifdef __cplusplus
8963 extern "C"
8964 #endif
8965 char dlopen ();
8966 /* The GNU C library defines this for functions which it implements
8967 to always fail with ENOSYS. Some functions are actually named
8968 something starting with __ and the normal name is an alias. */
8969 #if defined __stub_dlopen || defined __stub___dlopen
8970 choke me
8971 #endif
8974 main ()
8976 return dlopen ();
8978 return 0;
8980 _ACEOF
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (ac_try="$ac_link"
8983 case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8986 esac
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_link") 2>conftest.er1
8989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } && {
8995 test -z "$ac_c_werror_flag" ||
8996 test ! -s conftest.err
8997 } && test -s conftest$ac_exeext &&
8998 $as_test_x conftest$ac_exeext; then
8999 ac_cv_func_dlopen=yes
9000 else
9001 echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9004 ac_cv_func_dlopen=no
9007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9008 conftest$ac_exeext conftest.$ac_ext
9010 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9011 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9012 if test $ac_cv_func_dlopen = yes; then
9013 lt_cv_dlopen="dlopen"
9014 else
9015 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9016 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9017 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 else
9020 ac_check_lib_save_LIBS=$LIBS
9021 LIBS="-ldl $LIBS"
9022 cat >conftest.$ac_ext <<_ACEOF
9023 /* confdefs.h. */
9024 _ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9029 /* Override any GCC internal prototype to avoid an error.
9030 Use char because int might match the return type of a GCC
9031 builtin and then its argument prototype would still apply. */
9032 #ifdef __cplusplus
9033 extern "C"
9034 #endif
9035 char dlopen ();
9037 main ()
9039 return dlopen ();
9041 return 0;
9043 _ACEOF
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (ac_try="$ac_link"
9046 case "(($ac_try" in
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9049 esac
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_link") 2>conftest.er1
9052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && {
9058 test -z "$ac_c_werror_flag" ||
9059 test ! -s conftest.err
9060 } && test -s conftest$ac_exeext &&
9061 $as_test_x conftest$ac_exeext; then
9062 ac_cv_lib_dl_dlopen=yes
9063 else
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9067 ac_cv_lib_dl_dlopen=no
9070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9071 conftest$ac_exeext conftest.$ac_ext
9072 LIBS=$ac_check_lib_save_LIBS
9074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9075 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9076 if test $ac_cv_lib_dl_dlopen = yes; then
9077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9078 else
9079 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9080 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9081 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084 ac_check_lib_save_LIBS=$LIBS
9085 LIBS="-lsvld $LIBS"
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9093 /* Override any GCC internal prototype to avoid an error.
9094 Use char because int might match the return type of a GCC
9095 builtin and then its argument prototype would still apply. */
9096 #ifdef __cplusplus
9097 extern "C"
9098 #endif
9099 char dlopen ();
9101 main ()
9103 return dlopen ();
9105 return 0;
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (ac_try="$ac_link"
9110 case "(($ac_try" in
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9113 esac
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_link") 2>conftest.er1
9116 ac_status=$?
9117 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && {
9122 test -z "$ac_c_werror_flag" ||
9123 test ! -s conftest.err
9124 } && test -s conftest$ac_exeext &&
9125 $as_test_x conftest$ac_exeext; then
9126 ac_cv_lib_svld_dlopen=yes
9127 else
9128 echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9131 ac_cv_lib_svld_dlopen=no
9134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9135 conftest$ac_exeext conftest.$ac_ext
9136 LIBS=$ac_check_lib_save_LIBS
9138 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9139 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9140 if test $ac_cv_lib_svld_dlopen = yes; then
9141 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9142 else
9143 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9144 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9145 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 else
9148 ac_check_lib_save_LIBS=$LIBS
9149 LIBS="-ldld $LIBS"
9150 cat >conftest.$ac_ext <<_ACEOF
9151 /* confdefs.h. */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9157 /* Override any GCC internal prototype to avoid an error.
9158 Use char because int might match the return type of a GCC
9159 builtin and then its argument prototype would still apply. */
9160 #ifdef __cplusplus
9161 extern "C"
9162 #endif
9163 char dld_link ();
9165 main ()
9167 return dld_link ();
9169 return 0;
9171 _ACEOF
9172 rm -f conftest.$ac_objext conftest$ac_exeext
9173 if { (ac_try="$ac_link"
9174 case "(($ac_try" in
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9177 esac
9178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_link") 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_c_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest$ac_exeext &&
9189 $as_test_x conftest$ac_exeext; then
9190 ac_cv_lib_dld_dld_link=yes
9191 else
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.$ac_ext >&5
9195 ac_cv_lib_dld_dld_link=no
9198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9199 conftest$ac_exeext conftest.$ac_ext
9200 LIBS=$ac_check_lib_save_LIBS
9202 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9203 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9204 if test $ac_cv_lib_dld_dld_link = yes; then
9205 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9224 esac
9226 if test "x$lt_cv_dlopen" != xno; then
9227 enable_dlopen=yes
9228 else
9229 enable_dlopen=no
9232 case $lt_cv_dlopen in
9233 dlopen)
9234 save_CPPFLAGS="$CPPFLAGS"
9235 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9237 save_LDFLAGS="$LDFLAGS"
9238 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9240 save_LIBS="$LIBS"
9241 LIBS="$lt_cv_dlopen_libs $LIBS"
9243 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9244 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9245 if test "${lt_cv_dlopen_self+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248 if test "$cross_compiling" = yes; then :
9249 lt_cv_dlopen_self=cross
9250 else
9251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9252 lt_status=$lt_dlunknown
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9254 "configure"
9255 #include "confdefs.h"
9257 #if HAVE_DLFCN_H
9258 #include <dlfcn.h>
9259 #endif
9261 #include <stdio.h>
9263 #ifdef RTLD_GLOBAL
9264 # define LT_DLGLOBAL RTLD_GLOBAL
9265 #else
9266 # ifdef DL_GLOBAL
9267 # define LT_DLGLOBAL DL_GLOBAL
9268 # else
9269 # define LT_DLGLOBAL 0
9270 # endif
9271 #endif
9273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9274 find out it does not work in some platform. */
9275 #ifndef LT_DLLAZY_OR_NOW
9276 # ifdef RTLD_LAZY
9277 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9278 # else
9279 # ifdef DL_LAZY
9280 # define LT_DLLAZY_OR_NOW DL_LAZY
9281 # else
9282 # ifdef RTLD_NOW
9283 # define LT_DLLAZY_OR_NOW RTLD_NOW
9284 # else
9285 # ifdef DL_NOW
9286 # define LT_DLLAZY_OR_NOW DL_NOW
9287 # else
9288 # define LT_DLLAZY_OR_NOW 0
9289 # endif
9290 # endif
9291 # endif
9292 # endif
9293 #endif
9295 #ifdef __cplusplus
9296 extern "C" void exit (int);
9297 #endif
9299 void fnord() { int i=42;}
9300 int main ()
9302 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9303 int status = $lt_dlunknown;
9305 if (self)
9307 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9308 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9309 /* dlclose (self); */
9312 exit (status);
9315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9316 (eval $ac_link) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9320 (./conftest; exit; ) >&5 2>/dev/null
9321 lt_status=$?
9322 case x$lt_status in
9323 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9324 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9325 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9326 esac
9327 else :
9328 # compilation failed
9329 lt_cv_dlopen_self=no
9332 rm -fr conftest*
9336 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9337 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9339 if test "x$lt_cv_dlopen_self" = xyes; then
9340 LDFLAGS="$LDFLAGS $link_static_flag"
9341 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9342 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9343 if test "${lt_cv_dlopen_self_static+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346 if test "$cross_compiling" = yes; then :
9347 lt_cv_dlopen_self_static=cross
9348 else
9349 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9350 lt_status=$lt_dlunknown
9351 cat > conftest.$ac_ext <<EOF
9352 #line 9352 "configure"
9353 #include "confdefs.h"
9355 #if HAVE_DLFCN_H
9356 #include <dlfcn.h>
9357 #endif
9359 #include <stdio.h>
9361 #ifdef RTLD_GLOBAL
9362 # define LT_DLGLOBAL RTLD_GLOBAL
9363 #else
9364 # ifdef DL_GLOBAL
9365 # define LT_DLGLOBAL DL_GLOBAL
9366 # else
9367 # define LT_DLGLOBAL 0
9368 # endif
9369 #endif
9371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9372 find out it does not work in some platform. */
9373 #ifndef LT_DLLAZY_OR_NOW
9374 # ifdef RTLD_LAZY
9375 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9376 # else
9377 # ifdef DL_LAZY
9378 # define LT_DLLAZY_OR_NOW DL_LAZY
9379 # else
9380 # ifdef RTLD_NOW
9381 # define LT_DLLAZY_OR_NOW RTLD_NOW
9382 # else
9383 # ifdef DL_NOW
9384 # define LT_DLLAZY_OR_NOW DL_NOW
9385 # else
9386 # define LT_DLLAZY_OR_NOW 0
9387 # endif
9388 # endif
9389 # endif
9390 # endif
9391 #endif
9393 #ifdef __cplusplus
9394 extern "C" void exit (int);
9395 #endif
9397 void fnord() { int i=42;}
9398 int main ()
9400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9401 int status = $lt_dlunknown;
9403 if (self)
9405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9406 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9407 /* dlclose (self); */
9410 exit (status);
9413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9414 (eval $ac_link) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9418 (./conftest; exit; ) >&5 2>/dev/null
9419 lt_status=$?
9420 case x$lt_status in
9421 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9422 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9423 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9424 esac
9425 else :
9426 # compilation failed
9427 lt_cv_dlopen_self_static=no
9430 rm -fr conftest*
9434 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9435 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9438 CPPFLAGS="$save_CPPFLAGS"
9439 LDFLAGS="$save_LDFLAGS"
9440 LIBS="$save_LIBS"
9442 esac
9444 case $lt_cv_dlopen_self in
9445 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9446 *) enable_dlopen_self=unknown ;;
9447 esac
9449 case $lt_cv_dlopen_self_static in
9450 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9451 *) enable_dlopen_self_static=unknown ;;
9452 esac
9456 # Report which librarie types wil actually be built
9457 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9458 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9459 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9460 echo "${ECHO_T}$can_build_shared" >&6; }
9462 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9463 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9464 test "$can_build_shared" = "no" && enable_shared=no
9466 # On AIX, shared libraries and static libraries use the same namespace, and
9467 # are all built from PIC.
9468 case $host_os in
9469 aix3*)
9470 test "$enable_shared" = yes && enable_static=no
9471 if test -n "$RANLIB"; then
9472 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9473 postinstall_cmds='$RANLIB $lib'
9477 aix4* | aix5*)
9478 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9479 test "$enable_shared" = yes && enable_static=no
9482 esac
9483 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9484 echo "${ECHO_T}$enable_shared" >&6; }
9486 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9487 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9488 # Make sure either enable_shared or enable_static is yes.
9489 test "$enable_shared" = yes || enable_static=yes
9490 { echo "$as_me:$LINENO: result: $enable_static" >&5
9491 echo "${ECHO_T}$enable_static" >&6; }
9493 # The else clause should only fire when bootstrapping the
9494 # libtool distribution, otherwise you forgot to ship ltmain.sh
9495 # with your package, and you will get complaints that there are
9496 # no rules to generate ltmain.sh.
9497 if test -f "$ltmain"; then
9498 # See if we are running on zsh, and set the options which allow our commands through
9499 # without removal of \ escapes.
9500 if test -n "${ZSH_VERSION+set}" ; then
9501 setopt NO_GLOB_SUBST
9503 # Now quote all the things that may contain metacharacters while being
9504 # careful not to overquote the AC_SUBSTed values. We take copies of the
9505 # variables and quote the copies for generation of the libtool script.
9506 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9507 SED SHELL STRIP \
9508 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9509 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9510 deplibs_check_method reload_flag reload_cmds need_locks \
9511 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9512 lt_cv_sys_global_symbol_to_c_name_address \
9513 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9514 old_postinstall_cmds old_postuninstall_cmds \
9515 compiler \
9516 CC \
9517 LD \
9518 lt_prog_compiler_wl \
9519 lt_prog_compiler_pic \
9520 lt_prog_compiler_static \
9521 lt_prog_compiler_no_builtin_flag \
9522 export_dynamic_flag_spec \
9523 thread_safe_flag_spec \
9524 whole_archive_flag_spec \
9525 enable_shared_with_static_runtimes \
9526 old_archive_cmds \
9527 old_archive_from_new_cmds \
9528 predep_objects \
9529 postdep_objects \
9530 predeps \
9531 postdeps \
9532 compiler_lib_search_path \
9533 archive_cmds \
9534 archive_expsym_cmds \
9535 postinstall_cmds \
9536 postuninstall_cmds \
9537 old_archive_from_expsyms_cmds \
9538 allow_undefined_flag \
9539 no_undefined_flag \
9540 export_symbols_cmds \
9541 hardcode_libdir_flag_spec \
9542 hardcode_libdir_flag_spec_ld \
9543 hardcode_libdir_separator \
9544 hardcode_automatic \
9545 module_cmds \
9546 module_expsym_cmds \
9547 lt_cv_prog_compiler_c_o \
9548 exclude_expsyms \
9549 include_expsyms; do
9551 case $var in
9552 old_archive_cmds | \
9553 old_archive_from_new_cmds | \
9554 archive_cmds | \
9555 archive_expsym_cmds | \
9556 module_cmds | \
9557 module_expsym_cmds | \
9558 old_archive_from_expsyms_cmds | \
9559 export_symbols_cmds | \
9560 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9561 postinstall_cmds | postuninstall_cmds | \
9562 old_postinstall_cmds | old_postuninstall_cmds | \
9563 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9564 # Double-quote double-evaled strings.
9565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9568 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9570 esac
9571 done
9573 case $lt_echo in
9574 *'\$0 --fallback-echo"')
9575 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9577 esac
9579 cfgfile="${ofile}T"
9580 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9581 $rm -f "$cfgfile"
9582 { echo "$as_me:$LINENO: result:
9583 creating $ofile" >&5
9584 echo "${ECHO_T}
9585 creating $ofile" >&6; }
9587 cat <<__EOF__ >> "$cfgfile"
9588 #! $SHELL
9590 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9591 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9592 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9594 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9595 # Free Software Foundation, Inc.
9597 # This file is part of GNU Libtool:
9598 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9600 # This program is free software; you can redistribute it and/or modify
9601 # it under the terms of the GNU General Public License as published by
9602 # the Free Software Foundation; either version 2 of the License, or
9603 # (at your option) any later version.
9605 # This program is distributed in the hope that it will be useful, but
9606 # WITHOUT ANY WARRANTY; without even the implied warranty of
9607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9608 # General Public License for more details.
9610 # You should have received a copy of the GNU General Public License
9611 # along with this program; if not, write to the Free Software
9612 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9614 # As a special exception to the GNU General Public License, if you
9615 # distribute this file as part of a program that contains a
9616 # configuration script generated by Autoconf, you may include it under
9617 # the same distribution terms that you use for the rest of that program.
9619 # A sed program that does not truncate output.
9620 SED=$lt_SED
9622 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9623 Xsed="$SED -e 1s/^X//"
9625 # The HP-UX ksh and POSIX shell print the target directory to stdout
9626 # if CDPATH is set.
9627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9629 # The names of the tagged configurations supported by this script.
9630 available_tags=
9632 # ### BEGIN LIBTOOL CONFIG
9634 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9636 # Shell to use when invoking shell scripts.
9637 SHELL=$lt_SHELL
9639 # Whether or not to build shared libraries.
9640 build_libtool_libs=$enable_shared
9642 # Whether or not to build static libraries.
9643 build_old_libs=$enable_static
9645 # Whether or not to add -lc for building shared libraries.
9646 build_libtool_need_lc=$archive_cmds_need_lc
9648 # Whether or not to disallow shared libs when runtime libs are static
9649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9651 # Whether or not to optimize for fast installation.
9652 fast_install=$enable_fast_install
9654 # The host system.
9655 host_alias=$host_alias
9656 host=$host
9657 host_os=$host_os
9659 # The build system.
9660 build_alias=$build_alias
9661 build=$build
9662 build_os=$build_os
9664 # An echo program that does not interpret backslashes.
9665 echo=$lt_echo
9667 # The archiver.
9668 AR=$lt_AR
9669 AR_FLAGS=$lt_AR_FLAGS
9671 # A C compiler.
9672 LTCC=$lt_LTCC
9674 # A language-specific compiler.
9675 CC=$lt_compiler
9677 # Is the compiler the GNU C compiler?
9678 with_gcc=$GCC
9680 # An ERE matcher.
9681 EGREP=$lt_EGREP
9683 # The linker used to build libraries.
9684 LD=$lt_LD
9686 # Whether we need hard or soft links.
9687 LN_S=$lt_LN_S
9689 # A BSD-compatible nm program.
9690 NM=$lt_NM
9692 # A symbol stripping program
9693 STRIP=$lt_STRIP
9695 # Used to examine libraries when file_magic_cmd begins "file"
9696 MAGIC_CMD=$MAGIC_CMD
9698 # Used on cygwin: DLL creation program.
9699 DLLTOOL="$DLLTOOL"
9701 # Used on cygwin: object dumper.
9702 OBJDUMP="$OBJDUMP"
9704 # Used on cygwin: assembler.
9705 AS="$AS"
9707 # The name of the directory that contains temporary libtool files.
9708 objdir=$objdir
9710 # How to create reloadable object files.
9711 reload_flag=$lt_reload_flag
9712 reload_cmds=$lt_reload_cmds
9714 # How to pass a linker flag through the compiler.
9715 wl=$lt_lt_prog_compiler_wl
9717 # Object file suffix (normally "o").
9718 objext="$ac_objext"
9720 # Old archive suffix (normally "a").
9721 libext="$libext"
9723 # Shared library suffix (normally ".so").
9724 shrext_cmds='$shrext_cmds'
9726 # Executable file suffix (normally "").
9727 exeext="$exeext"
9729 # Additional compiler flags for building library objects.
9730 pic_flag=$lt_lt_prog_compiler_pic
9731 pic_mode=$pic_mode
9733 # What is the maximum length of a command?
9734 max_cmd_len=$lt_cv_sys_max_cmd_len
9736 # Does compiler simultaneously support -c and -o options?
9737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9739 # Must we lock files when doing compilation?
9740 need_locks=$lt_need_locks
9742 # Do we need the lib prefix for modules?
9743 need_lib_prefix=$need_lib_prefix
9745 # Do we need a version for libraries?
9746 need_version=$need_version
9748 # Whether dlopen is supported.
9749 dlopen_support=$enable_dlopen
9751 # Whether dlopen of programs is supported.
9752 dlopen_self=$enable_dlopen_self
9754 # Whether dlopen of statically linked programs is supported.
9755 dlopen_self_static=$enable_dlopen_self_static
9757 # Compiler flag to prevent dynamic linking.
9758 link_static_flag=$lt_lt_prog_compiler_static
9760 # Compiler flag to turn off builtin functions.
9761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9763 # Compiler flag to allow reflexive dlopens.
9764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9766 # Compiler flag to generate shared objects directly from archives.
9767 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9769 # Compiler flag to generate thread-safe objects.
9770 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9772 # Library versioning type.
9773 version_type=$version_type
9775 # Format of library name prefix.
9776 libname_spec=$lt_libname_spec
9778 # List of archive names. First name is the real one, the rest are links.
9779 # The last name is the one that the linker finds with -lNAME.
9780 library_names_spec=$lt_library_names_spec
9782 # The coded name of the library, if different from the real name.
9783 soname_spec=$lt_soname_spec
9785 # Commands used to build and install an old-style archive.
9786 RANLIB=$lt_RANLIB
9787 old_archive_cmds=$lt_old_archive_cmds
9788 old_postinstall_cmds=$lt_old_postinstall_cmds
9789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9791 # Create an old-style archive from a shared archive.
9792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9794 # Create a temporary old-style archive to link instead of a shared archive.
9795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9797 # Commands used to build and install a shared archive.
9798 archive_cmds=$lt_archive_cmds
9799 archive_expsym_cmds=$lt_archive_expsym_cmds
9800 postinstall_cmds=$lt_postinstall_cmds
9801 postuninstall_cmds=$lt_postuninstall_cmds
9803 # Commands used to build a loadable module (assumed same as above if empty)
9804 module_cmds=$lt_module_cmds
9805 module_expsym_cmds=$lt_module_expsym_cmds
9807 # Commands to strip libraries.
9808 old_striplib=$lt_old_striplib
9809 striplib=$lt_striplib
9811 # Dependencies to place before the objects being linked to create a
9812 # shared library.
9813 predep_objects=$lt_predep_objects
9815 # Dependencies to place after the objects being linked to create a
9816 # shared library.
9817 postdep_objects=$lt_postdep_objects
9819 # Dependencies to place before the objects being linked to create a
9820 # shared library.
9821 predeps=$lt_predeps
9823 # Dependencies to place after the objects being linked to create a
9824 # shared library.
9825 postdeps=$lt_postdeps
9827 # The library search path used internally by the compiler when linking
9828 # a shared library.
9829 compiler_lib_search_path=$lt_compiler_lib_search_path
9831 # Method to check whether dependent libraries are shared objects.
9832 deplibs_check_method=$lt_deplibs_check_method
9834 # Command to use when deplibs_check_method == file_magic.
9835 file_magic_cmd=$lt_file_magic_cmd
9837 # Flag that allows shared libraries with undefined symbols to be built.
9838 allow_undefined_flag=$lt_allow_undefined_flag
9840 # Flag that forces no undefined symbols.
9841 no_undefined_flag=$lt_no_undefined_flag
9843 # Commands used to finish a libtool library installation in a directory.
9844 finish_cmds=$lt_finish_cmds
9846 # Same as above, but a single script fragment to be evaled but not shown.
9847 finish_eval=$lt_finish_eval
9849 # Take the output of nm and produce a listing of raw symbols and C names.
9850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9852 # Transform the output of nm in a proper C declaration
9853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9855 # Transform the output of nm in a C name address pair
9856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9858 # This is the shared library runtime path variable.
9859 runpath_var=$runpath_var
9861 # This is the shared library path variable.
9862 shlibpath_var=$shlibpath_var
9864 # Is shlibpath searched before the hard-coded library search path?
9865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9867 # How to hardcode a shared library path into an executable.
9868 hardcode_action=$hardcode_action
9870 # Whether we should hardcode library paths into libraries.
9871 hardcode_into_libs=$hardcode_into_libs
9873 # Flag to hardcode \$libdir into a binary during linking.
9874 # This must work even if \$libdir does not exist.
9875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9877 # If ld is used when linking, flag to hardcode \$libdir into
9878 # a binary during linking. This must work even if \$libdir does
9879 # not exist.
9880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9882 # Whether we need a single -rpath flag with a separated argument.
9883 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9886 # resulting binary.
9887 hardcode_direct=$hardcode_direct
9889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9890 # resulting binary.
9891 hardcode_minus_L=$hardcode_minus_L
9893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9894 # the resulting binary.
9895 hardcode_shlibpath_var=$hardcode_shlibpath_var
9897 # Set to yes if building a shared library automatically hardcodes DIR into the library
9898 # and all subsequent libraries and executables linked against it.
9899 hardcode_automatic=$hardcode_automatic
9901 # Variables whose values should be saved in libtool wrapper scripts and
9902 # restored at relink time.
9903 variables_saved_for_relink="$variables_saved_for_relink"
9905 # Whether libtool must link a program against all its dependency libraries.
9906 link_all_deplibs=$link_all_deplibs
9908 # Compile-time system search path for libraries
9909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9911 # Run-time system search path for libraries
9912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9914 # Fix the shell variable \$srcfile for the compiler.
9915 fix_srcfile_path="$fix_srcfile_path"
9917 # Set to yes if exported symbols are required.
9918 always_export_symbols=$always_export_symbols
9920 # The commands to list exported symbols.
9921 export_symbols_cmds=$lt_export_symbols_cmds
9923 # The commands to extract the exported symbol list from a shared archive.
9924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9926 # Symbols that should not be listed in the preloaded symbols.
9927 exclude_expsyms=$lt_exclude_expsyms
9929 # Symbols that must always be exported.
9930 include_expsyms=$lt_include_expsyms
9932 # ### END LIBTOOL CONFIG
9934 __EOF__
9937 case $host_os in
9938 aix3*)
9939 cat <<\EOF >> "$cfgfile"
9941 # AIX sometimes has problems with the GCC collect2 program. For some
9942 # reason, if we set the COLLECT_NAMES environment variable, the problems
9943 # vanish in a puff of smoke.
9944 if test "X${COLLECT_NAMES+set}" != Xset; then
9945 COLLECT_NAMES=
9946 export COLLECT_NAMES
9950 esac
9952 # We use sed instead of cat because bash on DJGPP gets confused if
9953 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9954 # text mode, it properly converts lines to CR/LF. This bash problem
9955 # is reportedly fixed, but why not run on old versions too?
9956 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9958 mv -f "$cfgfile" "$ofile" || \
9959 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9960 chmod +x "$ofile"
9962 else
9963 # If there is no Makefile yet, we rely on a make rule to execute
9964 # `config.status --recheck' to rerun these tests and create the
9965 # libtool script then.
9966 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9967 if test -f "$ltmain_in"; then
9968 test -f Makefile && make "$ltmain"
9973 ac_ext=c
9974 ac_cpp='$CPP $CPPFLAGS'
9975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9979 CC="$lt_save_CC"
9982 # Check whether --with-tags was given.
9983 if test "${with_tags+set}" = set; then
9984 withval=$with_tags; tagnames="$withval"
9988 if test -f "$ltmain" && test -n "$tagnames"; then
9989 if test ! -f "${ofile}"; then
9990 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9991 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9994 if test -z "$LTCC"; then
9995 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9996 if test -z "$LTCC"; then
9997 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9998 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9999 else
10000 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10001 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10005 # Extract list of available tagged configurations in $ofile.
10006 # Note that this assumes the entire list is on one line.
10007 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10009 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10010 for tagname in $tagnames; do
10011 IFS="$lt_save_ifs"
10012 # Check whether tagname contains only valid characters
10013 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10014 "") ;;
10015 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10016 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10017 { (exit 1); exit 1; }; }
10019 esac
10021 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10022 then
10023 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10024 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10025 { (exit 1); exit 1; }; }
10028 # Update the list of available tags.
10029 if test -n "$tagname"; then
10030 echo appending configuration tag \"$tagname\" to $ofile
10032 case $tagname in
10033 CXX)
10034 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10035 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10036 (test "X$CXX" != "Xg++"))) ; then
10038 ac_ext=cpp
10039 ac_cpp='$CXXCPP $CPPFLAGS'
10040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10047 archive_cmds_need_lc_CXX=no
10048 allow_undefined_flag_CXX=
10049 always_export_symbols_CXX=no
10050 archive_expsym_cmds_CXX=
10051 export_dynamic_flag_spec_CXX=
10052 hardcode_direct_CXX=no
10053 hardcode_libdir_flag_spec_CXX=
10054 hardcode_libdir_flag_spec_ld_CXX=
10055 hardcode_libdir_separator_CXX=
10056 hardcode_minus_L_CXX=no
10057 hardcode_automatic_CXX=no
10058 module_cmds_CXX=
10059 module_expsym_cmds_CXX=
10060 link_all_deplibs_CXX=unknown
10061 old_archive_cmds_CXX=$old_archive_cmds
10062 no_undefined_flag_CXX=
10063 whole_archive_flag_spec_CXX=
10064 enable_shared_with_static_runtimes_CXX=no
10066 # Dependencies to place before and after the object being linked:
10067 predep_objects_CXX=
10068 postdep_objects_CXX=
10069 predeps_CXX=
10070 postdeps_CXX=
10071 compiler_lib_search_path_CXX=
10073 # Source file extension for C++ test sources.
10074 ac_ext=cpp
10076 # Object file extension for compiled C++ test sources.
10077 objext=o
10078 objext_CXX=$objext
10080 # Code to be used in simple compile tests
10081 lt_simple_compile_test_code="int some_variable = 0;\n"
10083 # Code to be used in simple link tests
10084 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10086 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10088 # If no C compiler was specified, use CC.
10089 LTCC=${LTCC-"$CC"}
10091 # Allow CC to be a program name with arguments.
10092 compiler=$CC
10095 # save warnings/boilerplate of simple test code
10096 ac_outfile=conftest.$ac_objext
10097 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10098 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10099 _lt_compiler_boilerplate=`cat conftest.err`
10100 $rm conftest*
10102 ac_outfile=conftest.$ac_objext
10103 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10104 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10105 _lt_linker_boilerplate=`cat conftest.err`
10106 $rm conftest*
10109 # Allow CC to be a program name with arguments.
10110 lt_save_CC=$CC
10111 lt_save_LD=$LD
10112 lt_save_GCC=$GCC
10113 GCC=$GXX
10114 lt_save_with_gnu_ld=$with_gnu_ld
10115 lt_save_path_LD=$lt_cv_path_LD
10116 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10117 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10118 else
10119 unset lt_cv_prog_gnu_ld
10121 if test -n "${lt_cv_path_LDCXX+set}"; then
10122 lt_cv_path_LD=$lt_cv_path_LDCXX
10123 else
10124 unset lt_cv_path_LD
10126 test -z "${LDCXX+set}" || LD=$LDCXX
10127 CC=${CXX-"c++"}
10128 compiler=$CC
10129 compiler_CXX=$CC
10130 for cc_temp in $compiler""; do
10131 case $cc_temp in
10132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10134 \-*) ;;
10135 *) break;;
10136 esac
10137 done
10138 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10141 # We don't want -fno-exception wen compiling C++ code, so set the
10142 # no_builtin_flag separately
10143 if test "$GXX" = yes; then
10144 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10145 else
10146 lt_prog_compiler_no_builtin_flag_CXX=
10149 if test "$GXX" = yes; then
10150 # Set up default GNU C++ configuration
10153 # Check whether --with-gnu-ld was given.
10154 if test "${with_gnu_ld+set}" = set; then
10155 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10156 else
10157 with_gnu_ld=no
10160 ac_prog=ld
10161 if test "$GCC" = yes; then
10162 # Check if gcc -print-prog-name=ld gives a path.
10163 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10164 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10165 case $host in
10166 *-*-mingw*)
10167 # gcc leaves a trailing carriage return which upsets mingw
10168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10171 esac
10172 case $ac_prog in
10173 # Accept absolute paths.
10174 [\\/]* | ?:[\\/]*)
10175 re_direlt='/[^/][^/]*/\.\./'
10176 # Canonicalize the pathname of ld
10177 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10178 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10179 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10180 done
10181 test -z "$LD" && LD="$ac_prog"
10184 # If it fails, then pretend we aren't using GCC.
10185 ac_prog=ld
10188 # If it is relative, then search for the first ld in PATH.
10189 with_gnu_ld=unknown
10191 esac
10192 elif test "$with_gnu_ld" = yes; then
10193 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10194 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10195 else
10196 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10197 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10199 if test "${lt_cv_path_LD+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202 if test -z "$LD"; then
10203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10204 for ac_dir in $PATH; do
10205 IFS="$lt_save_ifs"
10206 test -z "$ac_dir" && ac_dir=.
10207 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10208 lt_cv_path_LD="$ac_dir/$ac_prog"
10209 # Check to see if the program is GNU ld. I'd rather use --version,
10210 # but apparently some variants of GNU ld only accept -v.
10211 # Break only if it was the GNU/non-GNU ld that we prefer.
10212 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10213 *GNU* | *'with BFD'*)
10214 test "$with_gnu_ld" != no && break
10217 test "$with_gnu_ld" != yes && break
10219 esac
10221 done
10222 IFS="$lt_save_ifs"
10223 else
10224 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10228 LD="$lt_cv_path_LD"
10229 if test -n "$LD"; then
10230 { echo "$as_me:$LINENO: result: $LD" >&5
10231 echo "${ECHO_T}$LD" >&6; }
10232 else
10233 { echo "$as_me:$LINENO: result: no" >&5
10234 echo "${ECHO_T}no" >&6; }
10236 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10237 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10238 { (exit 1); exit 1; }; }
10239 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10240 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10241 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10245 case `$LD -v 2>&1 </dev/null` in
10246 *GNU* | *'with BFD'*)
10247 lt_cv_prog_gnu_ld=yes
10250 lt_cv_prog_gnu_ld=no
10252 esac
10254 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10255 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10256 with_gnu_ld=$lt_cv_prog_gnu_ld
10260 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10261 # archiving commands below assume that GNU ld is being used.
10262 if test "$with_gnu_ld" = yes; then
10263 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10264 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10266 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10269 # If archive_cmds runs LD, not CC, wlarc should be empty
10270 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10271 # investigate it a little bit more. (MM)
10272 wlarc='${wl}'
10274 # ancient GNU ld didn't support --whole-archive et. al.
10275 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10276 grep 'no-whole-archive' > /dev/null; then
10277 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10278 else
10279 whole_archive_flag_spec_CXX=
10281 else
10282 with_gnu_ld=no
10283 wlarc=
10285 # A generic and very simple default shared library creation
10286 # command for GNU C++ for the case where it uses the native
10287 # linker, instead of GNU ld. If possible, this setting should
10288 # overridden to take advantage of the native linker features on
10289 # the platform it is being used on.
10290 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10293 # Commands to make compiler produce verbose output that lists
10294 # what "hidden" libraries, object files and flags are used when
10295 # linking a shared library.
10296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10298 else
10299 GXX=no
10300 with_gnu_ld=no
10301 wlarc=
10304 # PORTME: fill in a description of your system's C++ link characteristics
10305 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10306 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10307 ld_shlibs_CXX=yes
10308 case $host_os in
10309 aix3*)
10310 # FIXME: insert proper C++ library support
10311 ld_shlibs_CXX=no
10313 aix4* | aix5*)
10314 if test "$host_cpu" = ia64; then
10315 # On IA64, the linker does run time linking by default, so we don't
10316 # have to do anything special.
10317 aix_use_runtimelinking=no
10318 exp_sym_flag='-Bexport'
10319 no_entry_flag=""
10320 else
10321 aix_use_runtimelinking=no
10323 # Test if we are trying to use run time linking or normal
10324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10325 # need to do runtime linking.
10326 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10327 for ld_flag in $LDFLAGS; do
10328 case $ld_flag in
10329 *-brtl*)
10330 aix_use_runtimelinking=yes
10331 break
10333 esac
10334 done
10335 esac
10337 exp_sym_flag='-bexport'
10338 no_entry_flag='-bnoentry'
10341 # When large executables or shared objects are built, AIX ld can
10342 # have problems creating the table of contents. If linking a library
10343 # or program results in "error TOC overflow" add -mminimal-toc to
10344 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10345 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10347 archive_cmds_CXX=''
10348 hardcode_direct_CXX=yes
10349 hardcode_libdir_separator_CXX=':'
10350 link_all_deplibs_CXX=yes
10352 if test "$GXX" = yes; then
10353 case $host_os in aix4.[012]|aix4.[012].*)
10354 # We only want to do this on AIX 4.2 and lower, the check
10355 # below for broken collect2 doesn't work under 4.3+
10356 collect2name=`${CC} -print-prog-name=collect2`
10357 if test -f "$collect2name" && \
10358 strings "$collect2name" | grep resolve_lib_name >/dev/null
10359 then
10360 # We have reworked collect2
10361 hardcode_direct_CXX=yes
10362 else
10363 # We have old collect2
10364 hardcode_direct_CXX=unsupported
10365 # It fails to find uninstalled libraries when the uninstalled
10366 # path is not listed in the libpath. Setting hardcode_minus_L
10367 # to unsupported forces relinking
10368 hardcode_minus_L_CXX=yes
10369 hardcode_libdir_flag_spec_CXX='-L$libdir'
10370 hardcode_libdir_separator_CXX=
10372 esac
10373 shared_flag='-shared'
10374 if test "$aix_use_runtimelinking" = yes; then
10375 shared_flag="$shared_flag "'${wl}-G'
10377 else
10378 # not using gcc
10379 if test "$host_cpu" = ia64; then
10380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10381 # chokes on -Wl,-G. The following line is correct:
10382 shared_flag='-G'
10383 else
10384 if test "$aix_use_runtimelinking" = yes; then
10385 shared_flag='${wl}-G'
10386 else
10387 shared_flag='${wl}-bM:SRE'
10392 # It seems that -bexpall does not export symbols beginning with
10393 # underscore (_), so it is better to generate a list of symbols to export.
10394 always_export_symbols_CXX=yes
10395 if test "$aix_use_runtimelinking" = yes; then
10396 # Warning - without using the other runtime loading flags (-brtl),
10397 # -berok will link without error, but may produce a broken library.
10398 allow_undefined_flag_CXX='-berok'
10399 # Determine the default libpath from the value encoded in an empty executable.
10401 cat > conftest.$ac_ext <<EOF
10402 #line 10402 "configure"
10403 #include "confdefs.h"
10404 int main() {
10405 ; return 0; }
10407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408 (eval $ac_link) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10415 # Check for a 64-bit object if we didn't find anything.
10416 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10417 }'`; fi
10418 rm -rf conftest*
10419 else
10420 echo "configure: failed program was:" >&5
10421 cat conftest.$ac_ext >&6
10423 rm -f conftest*
10424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10426 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10428 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10429 else
10430 if test "$host_cpu" = ia64; then
10431 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10432 allow_undefined_flag_CXX="-z nodefs"
10433 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10434 else
10435 # Determine the default libpath from the value encoded in an empty executable.
10437 cat > conftest.$ac_ext <<EOF
10438 #line 10438 "configure"
10439 #include "confdefs.h"
10440 int main() {
10441 ; return 0; }
10443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444 (eval $ac_link) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10451 # Check for a 64-bit object if we didn't find anything.
10452 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10453 }'`; fi
10454 rm -rf conftest*
10455 else
10456 echo "configure: failed program was:" >&5
10457 cat conftest.$ac_ext >&6
10459 rm -f conftest*
10460 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10462 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10463 # Warning - without using the other run time loading flags,
10464 # -berok will link without error, but may produce a broken library.
10465 no_undefined_flag_CXX=' ${wl}-bernotok'
10466 allow_undefined_flag_CXX=' ${wl}-berok'
10467 # -bexpall does not export symbols beginning with underscore (_)
10468 always_export_symbols_CXX=yes
10469 # Exported symbols can be pulled into shared objects from archives
10470 whole_archive_flag_spec_CXX=' '
10471 archive_cmds_need_lc_CXX=yes
10472 # This is similar to how AIX traditionally builds its shared libraries.
10473 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10477 chorus*)
10478 case $cc_basename in
10480 # FIXME: insert proper C++ library support
10481 ld_shlibs_CXX=no
10483 esac
10487 cygwin* | mingw* | pw32*)
10488 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10489 # as there is no search path for DLLs.
10490 hardcode_libdir_flag_spec_CXX='-L$libdir'
10491 allow_undefined_flag_CXX=unsupported
10492 always_export_symbols_CXX=no
10493 enable_shared_with_static_runtimes_CXX=yes
10495 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10496 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10497 # If the export-symbols file already is a .def file (1st line
10498 # is EXPORTS), use it as is; otherwise, prepend...
10499 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10500 cp $export_symbols $output_objdir/$soname.def;
10501 else
10502 echo EXPORTS > $output_objdir/$soname.def;
10503 cat $export_symbols >> $output_objdir/$soname.def;
10505 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10506 else
10507 ld_shlibs_CXX=no
10510 darwin* | rhapsody*)
10511 case $host_os in
10512 rhapsody* | darwin1.[012])
10513 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10515 *) # Darwin 1.3 on
10516 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10517 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10518 else
10519 case ${MACOSX_DEPLOYMENT_TARGET} in
10520 10.[012])
10521 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10523 10.*)
10524 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10526 esac
10529 esac
10530 archive_cmds_need_lc_CXX=no
10531 hardcode_direct_CXX=no
10532 hardcode_automatic_CXX=yes
10533 hardcode_shlibpath_var_CXX=unsupported
10534 whole_archive_flag_spec_CXX=''
10535 link_all_deplibs_CXX=yes
10537 if test "$GXX" = yes ; then
10538 lt_int_apple_cc_single_mod=no
10539 output_verbose_link_cmd='echo'
10540 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10541 lt_int_apple_cc_single_mod=yes
10543 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10544 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10545 else
10546 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10548 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10549 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10550 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10551 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10552 else
10553 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10555 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10556 else
10557 case $cc_basename in
10558 xlc*)
10559 output_verbose_link_cmd='echo'
10560 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10561 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10563 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10564 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10567 ld_shlibs_CXX=no
10569 esac
10573 dgux*)
10574 case $cc_basename in
10575 ec++*)
10576 # FIXME: insert proper C++ library support
10577 ld_shlibs_CXX=no
10579 ghcx*)
10580 # Green Hills C++ Compiler
10581 # FIXME: insert proper C++ library support
10582 ld_shlibs_CXX=no
10585 # FIXME: insert proper C++ library support
10586 ld_shlibs_CXX=no
10588 esac
10590 freebsd[12]*)
10591 # C++ shared libraries reported to be fairly broken before switch to ELF
10592 ld_shlibs_CXX=no
10594 freebsd-elf*)
10595 archive_cmds_need_lc_CXX=no
10597 freebsd* | kfreebsd*-gnu | dragonfly*)
10598 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10599 # conventions
10600 ld_shlibs_CXX=yes
10602 gnu*)
10604 hpux9*)
10605 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10606 hardcode_libdir_separator_CXX=:
10607 export_dynamic_flag_spec_CXX='${wl}-E'
10608 hardcode_direct_CXX=yes
10609 hardcode_minus_L_CXX=yes # Not in the search PATH,
10610 # but as the default
10611 # location of the library.
10613 case $cc_basename in
10614 CC*)
10615 # FIXME: insert proper C++ library support
10616 ld_shlibs_CXX=no
10618 aCC*)
10619 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10620 # Commands to make compiler produce verbose output that lists
10621 # what "hidden" libraries, object files and flags are used when
10622 # linking a shared library.
10624 # There doesn't appear to be a way to prevent this compiler from
10625 # explicitly linking system object files so we need to strip them
10626 # from the output so that they don't get included in the library
10627 # dependencies.
10628 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10631 if test "$GXX" = yes; then
10632 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10633 else
10634 # FIXME: insert proper C++ library support
10635 ld_shlibs_CXX=no
10638 esac
10640 hpux10*|hpux11*)
10641 if test $with_gnu_ld = no; then
10642 case $host_cpu in
10643 hppa*64*)
10644 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10645 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10646 hardcode_libdir_separator_CXX=:
10648 ia64*)
10649 hardcode_libdir_flag_spec_CXX='-L$libdir'
10652 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10653 hardcode_libdir_separator_CXX=:
10654 export_dynamic_flag_spec_CXX='${wl}-E'
10656 esac
10658 case $host_cpu in
10659 hppa*64*)
10660 hardcode_direct_CXX=no
10661 hardcode_shlibpath_var_CXX=no
10663 ia64*)
10664 hardcode_direct_CXX=no
10665 hardcode_shlibpath_var_CXX=no
10666 hardcode_minus_L_CXX=yes # Not in the search PATH,
10667 # but as the default
10668 # location of the library.
10671 hardcode_direct_CXX=yes
10672 hardcode_minus_L_CXX=yes # Not in the search PATH,
10673 # but as the default
10674 # location of the library.
10676 esac
10678 case $cc_basename in
10679 CC*)
10680 # FIXME: insert proper C++ library support
10681 ld_shlibs_CXX=no
10683 aCC*)
10684 case $host_cpu in
10685 hppa*64*|ia64*)
10686 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10689 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10691 esac
10692 # Commands to make compiler produce verbose output that lists
10693 # what "hidden" libraries, object files and flags are used when
10694 # linking a shared library.
10696 # There doesn't appear to be a way to prevent this compiler from
10697 # explicitly linking system object files so we need to strip them
10698 # from the output so that they don't get included in the library
10699 # dependencies.
10700 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10703 if test "$GXX" = yes; then
10704 if test $with_gnu_ld = no; then
10705 case $host_cpu in
10706 ia64*|hppa*64*)
10707 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10710 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10712 esac
10714 else
10715 # FIXME: insert proper C++ library support
10716 ld_shlibs_CXX=no
10719 esac
10721 irix5* | irix6*)
10722 case $cc_basename in
10723 CC*)
10724 # SGI C++
10725 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10727 # Archives containing C++ object files must be created using
10728 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10729 # necessary to make sure instantiated templates are included
10730 # in the archive.
10731 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10734 if test "$GXX" = yes; then
10735 if test "$with_gnu_ld" = no; then
10736 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10737 else
10738 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10741 link_all_deplibs_CXX=yes
10743 esac
10744 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10745 hardcode_libdir_separator_CXX=:
10747 linux*)
10748 case $cc_basename in
10749 KCC*)
10750 # Kuck and Associates, Inc. (KAI) C++ Compiler
10752 # KCC will only create a shared library if the output file
10753 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10754 # to its proper name (with version) after linking.
10755 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10756 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10757 # Commands to make compiler produce verbose output that lists
10758 # what "hidden" libraries, object files and flags are used when
10759 # linking a shared library.
10761 # There doesn't appear to be a way to prevent this compiler from
10762 # explicitly linking system object files so we need to strip them
10763 # from the output so that they don't get included in the library
10764 # dependencies.
10765 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10767 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10768 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10770 # Archives containing C++ object files must be created using
10771 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10772 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10774 icpc*)
10775 # Intel C++
10776 with_gnu_ld=yes
10777 # version 8.0 and above of icpc choke on multiply defined symbols
10778 # if we add $predep_objects and $postdep_objects, however 7.1 and
10779 # earlier do not add the objects themselves.
10780 case `$CC -V 2>&1` in
10781 *"Version 7."*)
10782 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10783 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10785 *) # Version 8.0 or newer
10786 tmp_idyn=
10787 case $host_cpu in
10788 ia64*) tmp_idyn=' -i_dynamic';;
10789 esac
10790 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10791 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10793 esac
10794 archive_cmds_need_lc_CXX=no
10795 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10796 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10797 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10799 pgCC*)
10800 # Portland Group C++ compiler
10801 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10802 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10804 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10806 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10808 cxx*)
10809 # Compaq C++
10810 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10811 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10813 runpath_var=LD_RUN_PATH
10814 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10815 hardcode_libdir_separator_CXX=:
10817 # Commands to make compiler produce verbose output that lists
10818 # what "hidden" libraries, object files and flags are used when
10819 # linking a shared library.
10821 # There doesn't appear to be a way to prevent this compiler from
10822 # explicitly linking system object files so we need to strip them
10823 # from the output so that they don't get included in the library
10824 # dependencies.
10825 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10827 esac
10829 lynxos*)
10830 # FIXME: insert proper C++ library support
10831 ld_shlibs_CXX=no
10833 m88k*)
10834 # FIXME: insert proper C++ library support
10835 ld_shlibs_CXX=no
10837 mvs*)
10838 case $cc_basename in
10839 cxx*)
10840 # FIXME: insert proper C++ library support
10841 ld_shlibs_CXX=no
10844 # FIXME: insert proper C++ library support
10845 ld_shlibs_CXX=no
10847 esac
10849 netbsd*)
10850 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10851 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10852 wlarc=
10853 hardcode_libdir_flag_spec_CXX='-R$libdir'
10854 hardcode_direct_CXX=yes
10855 hardcode_shlibpath_var_CXX=no
10857 # Workaround some broken pre-1.5 toolchains
10858 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10860 openbsd2*)
10861 # C++ shared libraries are fairly broken
10862 ld_shlibs_CXX=no
10864 openbsd*)
10865 hardcode_direct_CXX=yes
10866 hardcode_shlibpath_var_CXX=no
10867 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10868 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10869 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10870 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10871 export_dynamic_flag_spec_CXX='${wl}-E'
10872 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10874 output_verbose_link_cmd='echo'
10876 osf3*)
10877 case $cc_basename in
10878 KCC*)
10879 # Kuck and Associates, Inc. (KAI) C++ Compiler
10881 # KCC will only create a shared library if the output file
10882 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10883 # to its proper name (with version) after linking.
10884 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10887 hardcode_libdir_separator_CXX=:
10889 # Archives containing C++ object files must be created using
10890 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10891 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10894 RCC*)
10895 # Rational C++ 2.4.1
10896 # FIXME: insert proper C++ library support
10897 ld_shlibs_CXX=no
10899 cxx*)
10900 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10901 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10903 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10904 hardcode_libdir_separator_CXX=:
10906 # Commands to make compiler produce verbose output that lists
10907 # what "hidden" libraries, object files and flags are used when
10908 # linking a shared library.
10910 # There doesn't appear to be a way to prevent this compiler from
10911 # explicitly linking system object files so we need to strip them
10912 # from the output so that they don't get included in the library
10913 # dependencies.
10914 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10917 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10918 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10919 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10922 hardcode_libdir_separator_CXX=:
10924 # Commands to make compiler produce verbose output that lists
10925 # what "hidden" libraries, object files and flags are used when
10926 # linking a shared library.
10927 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10929 else
10930 # FIXME: insert proper C++ library support
10931 ld_shlibs_CXX=no
10934 esac
10936 osf4* | osf5*)
10937 case $cc_basename in
10938 KCC*)
10939 # Kuck and Associates, Inc. (KAI) C++ Compiler
10941 # KCC will only create a shared library if the output file
10942 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10943 # to its proper name (with version) after linking.
10944 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10946 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10947 hardcode_libdir_separator_CXX=:
10949 # Archives containing C++ object files must be created using
10950 # the KAI C++ compiler.
10951 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10953 RCC*)
10954 # Rational C++ 2.4.1
10955 # FIXME: insert proper C++ library support
10956 ld_shlibs_CXX=no
10958 cxx*)
10959 allow_undefined_flag_CXX=' -expect_unresolved \*'
10960 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10961 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10962 echo "-hidden">> $lib.exp~
10963 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10964 $rm $lib.exp'
10966 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10967 hardcode_libdir_separator_CXX=:
10969 # Commands to make compiler produce verbose output that lists
10970 # what "hidden" libraries, object files and flags are used when
10971 # linking a shared library.
10973 # There doesn't appear to be a way to prevent this compiler from
10974 # explicitly linking system object files so we need to strip them
10975 # from the output so that they don't get included in the library
10976 # dependencies.
10977 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10980 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10981 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10982 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10984 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10985 hardcode_libdir_separator_CXX=:
10987 # Commands to make compiler produce verbose output that lists
10988 # what "hidden" libraries, object files and flags are used when
10989 # linking a shared library.
10990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10992 else
10993 # FIXME: insert proper C++ library support
10994 ld_shlibs_CXX=no
10997 esac
10999 psos*)
11000 # FIXME: insert proper C++ library support
11001 ld_shlibs_CXX=no
11003 sco*)
11004 archive_cmds_need_lc_CXX=no
11005 case $cc_basename in
11006 CC*)
11007 # FIXME: insert proper C++ library support
11008 ld_shlibs_CXX=no
11011 # FIXME: insert proper C++ library support
11012 ld_shlibs_CXX=no
11014 esac
11016 sunos4*)
11017 case $cc_basename in
11018 CC*)
11019 # Sun C++ 4.x
11020 # FIXME: insert proper C++ library support
11021 ld_shlibs_CXX=no
11023 lcc*)
11024 # Lucid
11025 # FIXME: insert proper C++ library support
11026 ld_shlibs_CXX=no
11029 # FIXME: insert proper C++ library support
11030 ld_shlibs_CXX=no
11032 esac
11034 solaris*)
11035 case $cc_basename in
11036 CC*)
11037 # Sun C++ 4.2, 5.x and Centerline C++
11038 archive_cmds_need_lc_CXX=yes
11039 no_undefined_flag_CXX=' -zdefs'
11040 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11041 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11042 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11044 hardcode_libdir_flag_spec_CXX='-R$libdir'
11045 hardcode_shlibpath_var_CXX=no
11046 case $host_os in
11047 solaris2.[0-5] | solaris2.[0-5].*) ;;
11049 # The C++ compiler is used as linker so we must use $wl
11050 # flag to pass the commands to the underlying system
11051 # linker. We must also pass each convience library through
11052 # to the system linker between allextract/defaultextract.
11053 # The C++ compiler will combine linker options so we
11054 # cannot just pass the convience library names through
11055 # without $wl.
11056 # Supported since Solaris 2.6 (maybe 2.5.1?)
11057 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11059 esac
11060 link_all_deplibs_CXX=yes
11062 output_verbose_link_cmd='echo'
11064 # Archives containing C++ object files must be created using
11065 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11066 # necessary to make sure instantiated templates are included
11067 # in the archive.
11068 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11070 gcx*)
11071 # Green Hills C++ Compiler
11072 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11074 # The C++ compiler must be used to create the archive.
11075 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11078 # GNU C++ compiler with Solaris linker
11079 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11080 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11081 if $CC --version | grep -v '^2\.7' > /dev/null; then
11082 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11083 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11084 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11086 # Commands to make compiler produce verbose output that lists
11087 # what "hidden" libraries, object files and flags are used when
11088 # linking a shared library.
11089 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11090 else
11091 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11092 # platform.
11093 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11094 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11095 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11097 # Commands to make compiler produce verbose output that lists
11098 # what "hidden" libraries, object files and flags are used when
11099 # linking a shared library.
11100 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11103 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11106 esac
11108 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11109 archive_cmds_need_lc_CXX=no
11111 tandem*)
11112 case $cc_basename in
11113 NCC*)
11114 # NonStop-UX NCC 3.20
11115 # FIXME: insert proper C++ library support
11116 ld_shlibs_CXX=no
11119 # FIXME: insert proper C++ library support
11120 ld_shlibs_CXX=no
11122 esac
11124 vxworks*)
11125 # FIXME: insert proper C++ library support
11126 ld_shlibs_CXX=no
11129 # FIXME: insert proper C++ library support
11130 ld_shlibs_CXX=no
11132 esac
11133 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11134 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11135 test "$ld_shlibs_CXX" = no && can_build_shared=no
11137 GCC_CXX="$GXX"
11138 LD_CXX="$LD"
11140 ## CAVEAT EMPTOR:
11141 ## There is no encapsulation within the following macros, do not change
11142 ## the running order or otherwise move them around unless you know exactly
11143 ## what you are doing...
11145 cat > conftest.$ac_ext <<EOF
11146 class Foo
11148 public:
11149 Foo (void) { a = 0; }
11150 private:
11151 int a;
11155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11156 (eval $ac_compile) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; then
11160 # Parse the compiler output and extract the necessary
11161 # objects, libraries and library flags.
11163 # Sentinel used to keep track of whether or not we are before
11164 # the conftest object file.
11165 pre_test_object_deps_done=no
11167 # The `*' in the case matches for architectures that use `case' in
11168 # $output_verbose_cmd can trigger glob expansion during the loop
11169 # eval without this substitution.
11170 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11172 for p in `eval $output_verbose_link_cmd`; do
11173 case $p in
11175 -L* | -R* | -l*)
11176 # Some compilers place space between "-{L,R}" and the path.
11177 # Remove the space.
11178 if test $p = "-L" \
11179 || test $p = "-R"; then
11180 prev=$p
11181 continue
11182 else
11183 prev=
11186 if test "$pre_test_object_deps_done" = no; then
11187 case $p in
11188 -L* | -R*)
11189 # Internal compiler library paths should come after those
11190 # provided the user. The postdeps already come after the
11191 # user supplied libs so there is no need to process them.
11192 if test -z "$compiler_lib_search_path_CXX"; then
11193 compiler_lib_search_path_CXX="${prev}${p}"
11194 else
11195 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11198 # The "-l" case would never come before the object being
11199 # linked, so don't bother handling this case.
11200 esac
11201 else
11202 if test -z "$postdeps_CXX"; then
11203 postdeps_CXX="${prev}${p}"
11204 else
11205 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11210 *.$objext)
11211 # This assumes that the test object file only shows up
11212 # once in the compiler output.
11213 if test "$p" = "conftest.$objext"; then
11214 pre_test_object_deps_done=yes
11215 continue
11218 if test "$pre_test_object_deps_done" = no; then
11219 if test -z "$predep_objects_CXX"; then
11220 predep_objects_CXX="$p"
11221 else
11222 predep_objects_CXX="$predep_objects_CXX $p"
11224 else
11225 if test -z "$postdep_objects_CXX"; then
11226 postdep_objects_CXX="$p"
11227 else
11228 postdep_objects_CXX="$postdep_objects_CXX $p"
11233 *) ;; # Ignore the rest.
11235 esac
11236 done
11238 # Clean up.
11239 rm -f a.out a.exe
11240 else
11241 echo "libtool.m4: error: problem compiling CXX test program"
11244 $rm -f confest.$objext
11246 # PORTME: override above test on systems where it is broken
11247 case $host_os in
11248 solaris*)
11249 case $cc_basename in
11250 CC*)
11251 # Adding this requires a known-good setup of shared libraries for
11252 # Sun compiler versions before 5.6, else PIC objects from an old
11253 # archive will be linked into the output, leading to subtle bugs.
11254 postdeps_CXX='-lCstd -lCrun'
11256 esac
11257 esac
11260 case " $postdeps_CXX " in
11261 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11262 esac
11264 lt_prog_compiler_wl_CXX=
11265 lt_prog_compiler_pic_CXX=
11266 lt_prog_compiler_static_CXX=
11268 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11269 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11271 # C++ specific cases for pic, static, wl, etc.
11272 if test "$GXX" = yes; then
11273 lt_prog_compiler_wl_CXX='-Wl,'
11274 lt_prog_compiler_static_CXX='-static'
11276 case $host_os in
11277 aix*)
11278 # All AIX code is PIC.
11279 if test "$host_cpu" = ia64; then
11280 # AIX 5 now supports IA64 processor
11281 lt_prog_compiler_static_CXX='-Bstatic'
11284 amigaos*)
11285 # FIXME: we need at least 68020 code to build shared libraries, but
11286 # adding the `-m68020' flag to GCC prevents building anything better,
11287 # like `-m68040'.
11288 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11290 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11291 # PIC is the default for these OSes.
11293 mingw* | os2* | pw32*)
11294 # This hack is so that the source file can tell whether it is being
11295 # built for inclusion in a dll (and should export symbols for example).
11296 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11298 darwin* | rhapsody*)
11299 # PIC is the default on this platform
11300 # Common symbols not allowed in MH_DYLIB files
11301 lt_prog_compiler_pic_CXX='-fno-common'
11303 *djgpp*)
11304 # DJGPP does not support shared libraries at all
11305 lt_prog_compiler_pic_CXX=
11307 sysv4*MP*)
11308 if test -d /usr/nec; then
11309 lt_prog_compiler_pic_CXX=-Kconform_pic
11312 hpux*)
11313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11314 # not for PA HP-UX.
11315 case $host_cpu in
11316 hppa*64*|ia64*)
11319 lt_prog_compiler_pic_CXX='-fPIC'
11321 esac
11324 lt_prog_compiler_pic_CXX='-fPIC'
11326 esac
11327 else
11328 case $host_os in
11329 aix4* | aix5*)
11330 # All AIX code is PIC.
11331 if test "$host_cpu" = ia64; then
11332 # AIX 5 now supports IA64 processor
11333 lt_prog_compiler_static_CXX='-Bstatic'
11334 else
11335 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11338 chorus*)
11339 case $cc_basename in
11340 cxch68*)
11341 # Green Hills C++ Compiler
11342 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11344 esac
11346 darwin*)
11347 # PIC is the default on this platform
11348 # Common symbols not allowed in MH_DYLIB files
11349 case $cc_basename in
11350 xlc*)
11351 lt_prog_compiler_pic_CXX='-qnocommon'
11352 lt_prog_compiler_wl_CXX='-Wl,'
11354 esac
11356 dgux*)
11357 case $cc_basename in
11358 ec++*)
11359 lt_prog_compiler_pic_CXX='-KPIC'
11361 ghcx*)
11362 # Green Hills C++ Compiler
11363 lt_prog_compiler_pic_CXX='-pic'
11367 esac
11369 freebsd* | kfreebsd*-gnu | dragonfly*)
11370 # FreeBSD uses GNU C++
11372 hpux9* | hpux10* | hpux11*)
11373 case $cc_basename in
11374 CC*)
11375 lt_prog_compiler_wl_CXX='-Wl,'
11376 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11377 if test "$host_cpu" != ia64; then
11378 lt_prog_compiler_pic_CXX='+Z'
11381 aCC*)
11382 lt_prog_compiler_wl_CXX='-Wl,'
11383 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11384 case $host_cpu in
11385 hppa*64*|ia64*)
11386 # +Z the default
11389 lt_prog_compiler_pic_CXX='+Z'
11391 esac
11395 esac
11397 irix5* | irix6* | nonstopux*)
11398 case $cc_basename in
11399 CC*)
11400 lt_prog_compiler_wl_CXX='-Wl,'
11401 lt_prog_compiler_static_CXX='-non_shared'
11402 # CC pic flag -KPIC is the default.
11406 esac
11408 linux*)
11409 case $cc_basename in
11410 KCC*)
11411 # KAI C++ Compiler
11412 lt_prog_compiler_wl_CXX='--backend -Wl,'
11413 lt_prog_compiler_pic_CXX='-fPIC'
11415 icpc* | ecpc*)
11416 # Intel C++
11417 lt_prog_compiler_wl_CXX='-Wl,'
11418 lt_prog_compiler_pic_CXX='-KPIC'
11419 lt_prog_compiler_static_CXX='-static'
11421 pgCC*)
11422 # Portland Group C++ compiler.
11423 lt_prog_compiler_wl_CXX='-Wl,'
11424 lt_prog_compiler_pic_CXX='-fpic'
11425 lt_prog_compiler_static_CXX='-Bstatic'
11427 cxx*)
11428 # Compaq C++
11429 # Make sure the PIC flag is empty. It appears that all Alpha
11430 # Linux and Compaq Tru64 Unix objects are PIC.
11431 lt_prog_compiler_pic_CXX=
11432 lt_prog_compiler_static_CXX='-non_shared'
11436 esac
11438 lynxos*)
11440 m88k*)
11442 mvs*)
11443 case $cc_basename in
11444 cxx*)
11445 lt_prog_compiler_pic_CXX='-W c,exportall'
11449 esac
11451 netbsd*)
11453 osf3* | osf4* | osf5*)
11454 case $cc_basename in
11455 KCC*)
11456 lt_prog_compiler_wl_CXX='--backend -Wl,'
11458 RCC*)
11459 # Rational C++ 2.4.1
11460 lt_prog_compiler_pic_CXX='-pic'
11462 cxx*)
11463 # Digital/Compaq C++
11464 lt_prog_compiler_wl_CXX='-Wl,'
11465 # Make sure the PIC flag is empty. It appears that all Alpha
11466 # Linux and Compaq Tru64 Unix objects are PIC.
11467 lt_prog_compiler_pic_CXX=
11468 lt_prog_compiler_static_CXX='-non_shared'
11472 esac
11474 psos*)
11476 sco*)
11477 case $cc_basename in
11478 CC*)
11479 lt_prog_compiler_pic_CXX='-fPIC'
11483 esac
11485 solaris*)
11486 case $cc_basename in
11487 CC*)
11488 # Sun C++ 4.2, 5.x and Centerline C++
11489 lt_prog_compiler_pic_CXX='-KPIC'
11490 lt_prog_compiler_static_CXX='-Bstatic'
11491 lt_prog_compiler_wl_CXX='-Qoption ld '
11493 gcx*)
11494 # Green Hills C++ Compiler
11495 lt_prog_compiler_pic_CXX='-PIC'
11499 esac
11501 sunos4*)
11502 case $cc_basename in
11503 CC*)
11504 # Sun C++ 4.x
11505 lt_prog_compiler_pic_CXX='-pic'
11506 lt_prog_compiler_static_CXX='-Bstatic'
11508 lcc*)
11509 # Lucid
11510 lt_prog_compiler_pic_CXX='-pic'
11514 esac
11516 tandem*)
11517 case $cc_basename in
11518 NCC*)
11519 # NonStop-UX NCC 3.20
11520 lt_prog_compiler_pic_CXX='-KPIC'
11524 esac
11526 unixware*)
11528 vxworks*)
11531 lt_prog_compiler_can_build_shared_CXX=no
11533 esac
11536 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11537 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11540 # Check to make sure the PIC flag actually works.
11542 if test -n "$lt_prog_compiler_pic_CXX"; then
11544 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11545 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11546 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549 lt_prog_compiler_pic_works_CXX=no
11550 ac_outfile=conftest.$ac_objext
11551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11552 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11553 # Insert the option either (1) after the last *FLAGS variable, or
11554 # (2) before a word containing "conftest.", or (3) at the end.
11555 # Note that $ac_compile itself does not contain backslashes and begins
11556 # with a dollar sign (not a hyphen), so the echo should work correctly.
11557 # The option is referenced via a variable to avoid confusing sed.
11558 lt_compile=`echo "$ac_compile" | $SED \
11559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11561 -e 's:$: $lt_compiler_flag:'`
11562 (eval echo "\"configure:11562: $lt_compile\"" >&5)
11563 (eval "$lt_compile" 2>conftest.err)
11564 ac_status=$?
11565 cat conftest.err >&5
11566 echo "configure:11566: \$? = $ac_status" >&5
11567 if (exit $ac_status) && test -s "$ac_outfile"; then
11568 # The compiler can only warn and ignore the option if not recognized
11569 # So say no if there are warnings other than the usual output.
11570 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11571 $SED '/^$/d' conftest.err >conftest.er2
11572 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11573 lt_prog_compiler_pic_works_CXX=yes
11576 $rm conftest*
11579 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11580 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11582 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11583 case $lt_prog_compiler_pic_CXX in
11584 "" | " "*) ;;
11585 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11586 esac
11587 else
11588 lt_prog_compiler_pic_CXX=
11589 lt_prog_compiler_can_build_shared_CXX=no
11593 case $host_os in
11594 # For platforms which do not support PIC, -DPIC is meaningless:
11595 *djgpp*)
11596 lt_prog_compiler_pic_CXX=
11599 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11601 esac
11603 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11604 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11605 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 else
11608 lt_cv_prog_compiler_c_o_CXX=no
11609 $rm -r conftest 2>/dev/null
11610 mkdir conftest
11611 cd conftest
11612 mkdir out
11613 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11615 lt_compiler_flag="-o out/conftest2.$ac_objext"
11616 # Insert the option either (1) after the last *FLAGS variable, or
11617 # (2) before a word containing "conftest.", or (3) at the end.
11618 # Note that $ac_compile itself does not contain backslashes and begins
11619 # with a dollar sign (not a hyphen), so the echo should work correctly.
11620 lt_compile=`echo "$ac_compile" | $SED \
11621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11623 -e 's:$: $lt_compiler_flag:'`
11624 (eval echo "\"configure:11624: $lt_compile\"" >&5)
11625 (eval "$lt_compile" 2>out/conftest.err)
11626 ac_status=$?
11627 cat out/conftest.err >&5
11628 echo "configure:11628: \$? = $ac_status" >&5
11629 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11630 then
11631 # The compiler can only warn and ignore the option if not recognized
11632 # So say no if there are warnings
11633 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11634 $SED '/^$/d' out/conftest.err >out/conftest.er2
11635 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11636 lt_cv_prog_compiler_c_o_CXX=yes
11639 chmod u+w . 2>&5
11640 $rm conftest*
11641 # SGI C++ compiler will create directory out/ii_files/ for
11642 # template instantiation
11643 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11644 $rm out/* && rmdir out
11645 cd ..
11646 rmdir conftest
11647 $rm conftest*
11650 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11651 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11654 hard_links="nottested"
11655 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11656 # do not overwrite the value of need_locks provided by the user
11657 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11658 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11659 hard_links=yes
11660 $rm conftest*
11661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11662 touch conftest.a
11663 ln conftest.a conftest.b 2>&5 || hard_links=no
11664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11665 { echo "$as_me:$LINENO: result: $hard_links" >&5
11666 echo "${ECHO_T}$hard_links" >&6; }
11667 if test "$hard_links" = no; then
11668 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11669 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11670 need_locks=warn
11672 else
11673 need_locks=no
11676 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11677 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11679 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11680 case $host_os in
11681 aix4* | aix5*)
11682 # If we're using GNU nm, then we don't want the "-C" option.
11683 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11684 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11685 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11686 else
11687 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11690 pw32*)
11691 export_symbols_cmds_CXX="$ltdll_cmds"
11693 cygwin* | mingw*)
11694 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11697 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11699 esac
11701 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11702 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11703 test "$ld_shlibs_CXX" = no && can_build_shared=no
11705 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11706 if test "$GCC" = yes; then
11707 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11711 # Do we need to explicitly link libc?
11713 case "x$archive_cmds_need_lc_CXX" in
11714 x|xyes)
11715 # Assume -lc should be added
11716 archive_cmds_need_lc_CXX=yes
11718 if test "$enable_shared" = yes && test "$GCC" = yes; then
11719 case $archive_cmds_CXX in
11720 *'~'*)
11721 # FIXME: we may have to deal with multi-command sequences.
11723 '$CC '*)
11724 # Test whether the compiler implicitly links with -lc since on some
11725 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11726 # to ld, don't add -lc before -lgcc.
11727 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11728 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11729 $rm conftest*
11730 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>&5
11734 ac_status=$?
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } 2>conftest.err; then
11737 soname=conftest
11738 lib=conftest
11739 libobjs=conftest.$ac_objext
11740 deplibs=
11741 wl=$lt_prog_compiler_wl_CXX
11742 compiler_flags=-v
11743 linker_flags=-v
11744 verstring=
11745 output_objdir=.
11746 libname=conftest
11747 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11748 allow_undefined_flag_CXX=
11749 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11750 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }
11754 then
11755 archive_cmds_need_lc_CXX=no
11756 else
11757 archive_cmds_need_lc_CXX=yes
11759 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11760 else
11761 cat conftest.err 1>&5
11763 $rm conftest*
11764 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11765 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11767 esac
11770 esac
11772 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11773 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11774 library_names_spec=
11775 libname_spec='lib$name'
11776 soname_spec=
11777 shrext_cmds=".so"
11778 postinstall_cmds=
11779 postuninstall_cmds=
11780 finish_cmds=
11781 finish_eval=
11782 shlibpath_var=
11783 shlibpath_overrides_runpath=unknown
11784 version_type=none
11785 dynamic_linker="$host_os ld.so"
11786 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11787 if test "$GCC" = yes; then
11788 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11789 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11790 # if the path contains ";" then we assume it to be the separator
11791 # otherwise default to the standard path separator (i.e. ":") - it is
11792 # assumed that no part of a normal pathname contains ";" but that should
11793 # okay in the real world where ";" in dirpaths is itself problematic.
11794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11795 else
11796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11798 else
11799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11801 need_lib_prefix=unknown
11802 hardcode_into_libs=no
11804 # when you set need_version to no, make sure it does not cause -set_version
11805 # flags to be left without arguments
11806 need_version=unknown
11808 case $host_os in
11809 aix3*)
11810 version_type=linux
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11812 shlibpath_var=LIBPATH
11814 # AIX 3 has no versioning support, so we append a major version to the name.
11815 soname_spec='${libname}${release}${shared_ext}$major'
11818 aix4* | aix5*)
11819 version_type=linux
11820 need_lib_prefix=no
11821 need_version=no
11822 hardcode_into_libs=yes
11823 if test "$host_cpu" = ia64; then
11824 # AIX 5 supports IA64
11825 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11826 shlibpath_var=LD_LIBRARY_PATH
11827 else
11828 # With GCC up to 2.95.x, collect2 would create an import file
11829 # for dependence libraries. The import file would start with
11830 # the line `#! .'. This would cause the generated library to
11831 # depend on `.', always an invalid library. This was fixed in
11832 # development snapshots of GCC prior to 3.0.
11833 case $host_os in
11834 aix4 | aix4.[01] | aix4.[01].*)
11835 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11836 echo ' yes '
11837 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11839 else
11840 can_build_shared=no
11843 esac
11844 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11845 # soname into executable. Probably we can add versioning support to
11846 # collect2, so additional links can be useful in future.
11847 if test "$aix_use_runtimelinking" = yes; then
11848 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11849 # instead of lib<name>.a to let people know that these are not
11850 # typical AIX shared libraries.
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852 else
11853 # We preserve .a as extension for shared libraries through AIX4.2
11854 # and later when we are not doing run time linking.
11855 library_names_spec='${libname}${release}.a $libname.a'
11856 soname_spec='${libname}${release}${shared_ext}$major'
11858 shlibpath_var=LIBPATH
11862 amigaos*)
11863 library_names_spec='$libname.ixlibrary $libname.a'
11864 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11865 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'
11868 beos*)
11869 library_names_spec='${libname}${shared_ext}'
11870 dynamic_linker="$host_os ld.so"
11871 shlibpath_var=LIBRARY_PATH
11874 bsdi[45]*)
11875 version_type=linux
11876 need_version=no
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878 soname_spec='${libname}${release}${shared_ext}$major'
11879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11880 shlibpath_var=LD_LIBRARY_PATH
11881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11883 # the default ld.so.conf also contains /usr/contrib/lib and
11884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11885 # libtool to hard-code these into programs
11888 cygwin* | mingw* | pw32*)
11889 version_type=windows
11890 shrext_cmds=".dll"
11891 need_version=no
11892 need_lib_prefix=no
11894 case $GCC,$host_os in
11895 yes,cygwin* | yes,mingw* | yes,pw32*)
11896 library_names_spec='$libname.dll.a'
11897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11898 postinstall_cmds='base_file=`basename \${file}`~
11899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11900 dldir=$destdir/`dirname \$dlpath`~
11901 test -d \$dldir || mkdir -p \$dldir~
11902 $install_prog $dir/$dlname \$dldir/$dlname~
11903 chmod a+x \$dldir/$dlname'
11904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11905 dlpath=$dir/\$dldll~
11906 $rm \$dlpath'
11907 shlibpath_overrides_runpath=yes
11909 case $host_os in
11910 cygwin*)
11911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11913 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11915 mingw*)
11916 # MinGW DLLs use traditional 'lib' prefix
11917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11918 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11919 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11920 # It is most probably a Windows format PATH printed by
11921 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11922 # path with ; separators, and with drive letters. We can handle the
11923 # drive letters (cygwin fileutils understands them), so leave them,
11924 # especially as we might pass files found there to a mingw objdump,
11925 # which wouldn't understand a cygwinified path. Ahh.
11926 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11927 else
11928 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11931 pw32*)
11932 # pw32 DLLs use 'pw' prefix rather than 'lib'
11933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11935 esac
11939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11941 esac
11942 dynamic_linker='Win32 ld.exe'
11943 # FIXME: first we should search . and the directory the executable is in
11944 shlibpath_var=PATH
11947 darwin* | rhapsody*)
11948 dynamic_linker="$host_os dyld"
11949 version_type=darwin
11950 need_lib_prefix=no
11951 need_version=no
11952 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11953 soname_spec='${libname}${release}${major}$shared_ext'
11954 shlibpath_overrides_runpath=yes
11955 shlibpath_var=DYLD_LIBRARY_PATH
11956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11957 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11958 if test "$GCC" = yes; then
11959 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11960 else
11961 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11963 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11966 dgux*)
11967 version_type=linux
11968 need_lib_prefix=no
11969 need_version=no
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 shlibpath_var=LD_LIBRARY_PATH
11975 freebsd1*)
11976 dynamic_linker=no
11979 kfreebsd*-gnu)
11980 version_type=linux
11981 need_lib_prefix=no
11982 need_version=no
11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11984 soname_spec='${libname}${release}${shared_ext}$major'
11985 shlibpath_var=LD_LIBRARY_PATH
11986 shlibpath_overrides_runpath=no
11987 hardcode_into_libs=yes
11988 dynamic_linker='GNU ld.so'
11991 freebsd* | dragonfly*)
11992 # DragonFly does not have aout. When/if they implement a new
11993 # versioning mechanism, adjust this.
11994 if test -x /usr/bin/objformat; then
11995 objformat=`/usr/bin/objformat`
11996 else
11997 case $host_os in
11998 freebsd[123]*) objformat=aout ;;
11999 *) objformat=elf ;;
12000 esac
12002 version_type=freebsd-$objformat
12003 case $version_type in
12004 freebsd-elf*)
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12006 need_version=no
12007 need_lib_prefix=no
12009 freebsd-*)
12010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12011 need_version=yes
12013 esac
12014 shlibpath_var=LD_LIBRARY_PATH
12015 case $host_os in
12016 freebsd2*)
12017 shlibpath_overrides_runpath=yes
12019 freebsd3.[01]* | freebsdelf3.[01]*)
12020 shlibpath_overrides_runpath=yes
12021 hardcode_into_libs=yes
12023 *) # from 3.2 on
12024 shlibpath_overrides_runpath=no
12025 hardcode_into_libs=yes
12027 esac
12030 gnu*)
12031 version_type=linux
12032 need_lib_prefix=no
12033 need_version=no
12034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12035 soname_spec='${libname}${release}${shared_ext}$major'
12036 shlibpath_var=LD_LIBRARY_PATH
12037 hardcode_into_libs=yes
12040 hpux9* | hpux10* | hpux11*)
12041 # Give a soname corresponding to the major version so that dld.sl refuses to
12042 # link against other versions.
12043 version_type=sunos
12044 need_lib_prefix=no
12045 need_version=no
12046 case $host_cpu in
12047 ia64*)
12048 shrext_cmds='.so'
12049 hardcode_into_libs=yes
12050 dynamic_linker="$host_os dld.so"
12051 shlibpath_var=LD_LIBRARY_PATH
12052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12054 soname_spec='${libname}${release}${shared_ext}$major'
12055 if test "X$HPUX_IA64_MODE" = X32; then
12056 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12057 else
12058 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12062 hppa*64*)
12063 shrext_cmds='.sl'
12064 hardcode_into_libs=yes
12065 dynamic_linker="$host_os dld.sl"
12066 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12069 soname_spec='${libname}${release}${shared_ext}$major'
12070 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12074 shrext_cmds='.sl'
12075 dynamic_linker="$host_os dld.sl"
12076 shlibpath_var=SHLIB_PATH
12077 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12079 soname_spec='${libname}${release}${shared_ext}$major'
12081 esac
12082 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12083 postinstall_cmds='chmod 555 $lib'
12086 irix5* | irix6* | nonstopux*)
12087 case $host_os in
12088 nonstopux*) version_type=nonstopux ;;
12090 if test "$lt_cv_prog_gnu_ld" = yes; then
12091 version_type=linux
12092 else
12093 version_type=irix
12094 fi ;;
12095 esac
12096 need_lib_prefix=no
12097 need_version=no
12098 soname_spec='${libname}${release}${shared_ext}$major'
12099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12100 case $host_os in
12101 irix5* | nonstopux*)
12102 libsuff= shlibsuff=
12105 case $LD in # libtool.m4 will add one of these switches to LD
12106 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12107 libsuff= shlibsuff= libmagic=32-bit;;
12108 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12109 libsuff=32 shlibsuff=N32 libmagic=N32;;
12110 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12111 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12112 *) libsuff= shlibsuff= libmagic=never-match;;
12113 esac
12115 esac
12116 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12117 shlibpath_overrides_runpath=no
12118 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12119 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12120 hardcode_into_libs=yes
12123 # No shared lib support for Linux oldld, aout, or coff.
12124 linux*oldld* | linux*aout* | linux*coff*)
12125 dynamic_linker=no
12128 # This must be Linux ELF.
12129 linux*)
12130 version_type=linux
12131 need_lib_prefix=no
12132 need_version=no
12133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12134 soname_spec='${libname}${release}${shared_ext}$major'
12135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12136 shlibpath_var=LD_LIBRARY_PATH
12137 shlibpath_overrides_runpath=no
12138 # This implies no fast_install, which is unacceptable.
12139 # Some rework will be needed to allow for fast_install
12140 # before this can be enabled.
12141 hardcode_into_libs=yes
12143 # find out which ABI we are using
12144 libsuff=
12145 case $host_cpu in
12146 x86_64*|s390x*|powerpc64*)
12147 echo '#line 12147 "configure"' > conftest.$ac_ext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12149 (eval $ac_compile) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; then
12153 case `/usr/bin/file conftest.$ac_objext` in
12154 *64-bit*)
12155 libsuff=64
12156 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12158 esac
12160 rm -rf conftest*
12162 esac
12164 # Append ld.so.conf contents to the search path
12165 if test -f /etc/ld.so.conf; then
12166 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
12167 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12170 # We used to test for /lib/ld.so.1 and disable shared libraries on
12171 # powerpc, because MkLinux only supported shared libraries with the
12172 # GNU dynamic linker. Since this was broken with cross compilers,
12173 # most powerpc-linux boxes support dynamic linking these days and
12174 # people can always --disable-shared, the test was removed, and we
12175 # assume the GNU/Linux dynamic linker is in use.
12176 dynamic_linker='GNU/Linux ld.so'
12179 knetbsd*-gnu)
12180 version_type=linux
12181 need_lib_prefix=no
12182 need_version=no
12183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12184 soname_spec='${libname}${release}${shared_ext}$major'
12185 shlibpath_var=LD_LIBRARY_PATH
12186 shlibpath_overrides_runpath=no
12187 hardcode_into_libs=yes
12188 dynamic_linker='GNU ld.so'
12191 netbsd*)
12192 version_type=sunos
12193 need_lib_prefix=no
12194 need_version=no
12195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12198 dynamic_linker='NetBSD (a.out) ld.so'
12199 else
12200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12201 soname_spec='${libname}${release}${shared_ext}$major'
12202 dynamic_linker='NetBSD ld.elf_so'
12204 shlibpath_var=LD_LIBRARY_PATH
12205 shlibpath_overrides_runpath=yes
12206 hardcode_into_libs=yes
12209 newsos6)
12210 version_type=linux
12211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12212 shlibpath_var=LD_LIBRARY_PATH
12213 shlibpath_overrides_runpath=yes
12216 nto-qnx*)
12217 version_type=linux
12218 need_lib_prefix=no
12219 need_version=no
12220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12221 soname_spec='${libname}${release}${shared_ext}$major'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=yes
12226 openbsd*)
12227 version_type=sunos
12228 need_lib_prefix=no
12229 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12230 case $host_os in
12231 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12232 *) need_version=no ;;
12233 esac
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12236 shlibpath_var=LD_LIBRARY_PATH
12237 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12238 case $host_os in
12239 openbsd2.[89] | openbsd2.[89].*)
12240 shlibpath_overrides_runpath=no
12243 shlibpath_overrides_runpath=yes
12245 esac
12246 else
12247 shlibpath_overrides_runpath=yes
12251 os2*)
12252 libname_spec='$name'
12253 shrext_cmds=".dll"
12254 need_lib_prefix=no
12255 library_names_spec='$libname${shared_ext} $libname.a'
12256 dynamic_linker='OS/2 ld.exe'
12257 shlibpath_var=LIBPATH
12260 osf3* | osf4* | osf5*)
12261 version_type=osf
12262 need_lib_prefix=no
12263 need_version=no
12264 soname_spec='${libname}${release}${shared_ext}$major'
12265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12266 shlibpath_var=LD_LIBRARY_PATH
12267 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12268 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12271 sco3.2v5*)
12272 version_type=osf
12273 soname_spec='${libname}${release}${shared_ext}$major'
12274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12275 shlibpath_var=LD_LIBRARY_PATH
12278 solaris*)
12279 version_type=linux
12280 need_lib_prefix=no
12281 need_version=no
12282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12283 soname_spec='${libname}${release}${shared_ext}$major'
12284 shlibpath_var=LD_LIBRARY_PATH
12285 shlibpath_overrides_runpath=yes
12286 hardcode_into_libs=yes
12287 # ldd complains unless libraries are executable
12288 postinstall_cmds='chmod +x $lib'
12291 sunos4*)
12292 version_type=sunos
12293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=yes
12297 if test "$with_gnu_ld" = yes; then
12298 need_lib_prefix=no
12300 need_version=yes
12303 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12304 version_type=linux
12305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306 soname_spec='${libname}${release}${shared_ext}$major'
12307 shlibpath_var=LD_LIBRARY_PATH
12308 case $host_vendor in
12309 sni)
12310 shlibpath_overrides_runpath=no
12311 need_lib_prefix=no
12312 export_dynamic_flag_spec='${wl}-Blargedynsym'
12313 runpath_var=LD_RUN_PATH
12315 siemens)
12316 need_lib_prefix=no
12318 motorola)
12319 need_lib_prefix=no
12320 need_version=no
12321 shlibpath_overrides_runpath=no
12322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12324 esac
12327 sysv4*MP*)
12328 if test -d /usr/nec ;then
12329 version_type=linux
12330 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12331 soname_spec='$libname${shared_ext}.$major'
12332 shlibpath_var=LD_LIBRARY_PATH
12336 uts4*)
12337 version_type=linux
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 soname_spec='${libname}${release}${shared_ext}$major'
12340 shlibpath_var=LD_LIBRARY_PATH
12344 dynamic_linker=no
12346 esac
12347 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12348 echo "${ECHO_T}$dynamic_linker" >&6; }
12349 test "$dynamic_linker" = no && can_build_shared=no
12351 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12352 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12353 hardcode_action_CXX=
12354 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12355 test -n "$runpath_var_CXX" || \
12356 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12358 # We can hardcode non-existant directories.
12359 if test "$hardcode_direct_CXX" != no &&
12360 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12361 # have to relink, otherwise we might link with an installed library
12362 # when we should be linking with a yet-to-be-installed one
12363 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12364 test "$hardcode_minus_L_CXX" != no; then
12365 # Linking always hardcodes the temporary library directory.
12366 hardcode_action_CXX=relink
12367 else
12368 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12369 hardcode_action_CXX=immediate
12371 else
12372 # We cannot hardcode anything, or else we can only hardcode existing
12373 # directories.
12374 hardcode_action_CXX=unsupported
12376 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12377 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12379 if test "$hardcode_action_CXX" = relink; then
12380 # Fast installation is not supported
12381 enable_fast_install=no
12382 elif test "$shlibpath_overrides_runpath" = yes ||
12383 test "$enable_shared" = no; then
12384 # Fast installation is not necessary
12385 enable_fast_install=needless
12388 striplib=
12389 old_striplib=
12390 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12391 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12392 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12393 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12394 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12395 { echo "$as_me:$LINENO: result: yes" >&5
12396 echo "${ECHO_T}yes" >&6; }
12397 else
12398 # FIXME - insert some real tests, host_os isn't really good enough
12399 case $host_os in
12400 darwin*)
12401 if test -n "$STRIP" ; then
12402 striplib="$STRIP -x"
12403 { echo "$as_me:$LINENO: result: yes" >&5
12404 echo "${ECHO_T}yes" >&6; }
12405 else
12406 { echo "$as_me:$LINENO: result: no" >&5
12407 echo "${ECHO_T}no" >&6; }
12411 { echo "$as_me:$LINENO: result: no" >&5
12412 echo "${ECHO_T}no" >&6; }
12414 esac
12417 if test "x$enable_dlopen" != xyes; then
12418 enable_dlopen=unknown
12419 enable_dlopen_self=unknown
12420 enable_dlopen_self_static=unknown
12421 else
12422 lt_cv_dlopen=no
12423 lt_cv_dlopen_libs=
12425 case $host_os in
12426 beos*)
12427 lt_cv_dlopen="load_add_on"
12428 lt_cv_dlopen_libs=
12429 lt_cv_dlopen_self=yes
12432 mingw* | pw32*)
12433 lt_cv_dlopen="LoadLibrary"
12434 lt_cv_dlopen_libs=
12437 cygwin*)
12438 lt_cv_dlopen="dlopen"
12439 lt_cv_dlopen_libs=
12442 darwin*)
12443 # if libdl is installed we need to link against it
12444 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12445 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12446 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449 ac_check_lib_save_LIBS=$LIBS
12450 LIBS="-ldl $LIBS"
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h. */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h. */
12458 /* Override any GCC internal prototype to avoid an error.
12459 Use char because int might match the return type of a GCC
12460 builtin and then its argument prototype would still apply. */
12461 #ifdef __cplusplus
12462 extern "C"
12463 #endif
12464 char dlopen ();
12466 main ()
12468 return dlopen ();
12470 return 0;
12472 _ACEOF
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (ac_try="$ac_link"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478 esac
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_link") 2>conftest.er1
12481 ac_status=$?
12482 grep -v '^ *+' conftest.er1 >conftest.err
12483 rm -f conftest.er1
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } && {
12487 test -z "$ac_cxx_werror_flag" ||
12488 test ! -s conftest.err
12489 } && test -s conftest$ac_exeext &&
12490 $as_test_x conftest$ac_exeext; then
12491 ac_cv_lib_dl_dlopen=yes
12492 else
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12496 ac_cv_lib_dl_dlopen=no
12499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12500 conftest$ac_exeext conftest.$ac_ext
12501 LIBS=$ac_check_lib_save_LIBS
12503 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12504 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12505 if test $ac_cv_lib_dl_dlopen = yes; then
12506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12507 else
12509 lt_cv_dlopen="dyld"
12510 lt_cv_dlopen_libs=
12511 lt_cv_dlopen_self=yes
12518 { echo "$as_me:$LINENO: checking for shl_load" >&5
12519 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12520 if test "${ac_cv_func_shl_load+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 else
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12531 #define shl_load innocuous_shl_load
12533 /* System header to define __stub macros and hopefully few prototypes,
12534 which can conflict with char shl_load (); below.
12535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12536 <limits.h> exists even on freestanding compilers. */
12538 #ifdef __STDC__
12539 # include <limits.h>
12540 #else
12541 # include <assert.h>
12542 #endif
12544 #undef shl_load
12546 /* Override any GCC internal prototype to avoid an error.
12547 Use char because int might match the return type of a GCC
12548 builtin and then its argument prototype would still apply. */
12549 #ifdef __cplusplus
12550 extern "C"
12551 #endif
12552 char shl_load ();
12553 /* The GNU C library defines this for functions which it implements
12554 to always fail with ENOSYS. Some functions are actually named
12555 something starting with __ and the normal name is an alias. */
12556 #if defined __stub_shl_load || defined __stub___shl_load
12557 choke me
12558 #endif
12561 main ()
12563 return shl_load ();
12565 return 0;
12567 _ACEOF
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (ac_try="$ac_link"
12570 case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_link") 2>conftest.er1
12576 ac_status=$?
12577 grep -v '^ *+' conftest.er1 >conftest.err
12578 rm -f conftest.er1
12579 cat conftest.err >&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } && {
12582 test -z "$ac_cxx_werror_flag" ||
12583 test ! -s conftest.err
12584 } && test -s conftest$ac_exeext &&
12585 $as_test_x conftest$ac_exeext; then
12586 ac_cv_func_shl_load=yes
12587 else
12588 echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12591 ac_cv_func_shl_load=no
12594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12595 conftest$ac_exeext conftest.$ac_ext
12597 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12598 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12599 if test $ac_cv_func_shl_load = yes; then
12600 lt_cv_dlopen="shl_load"
12601 else
12602 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12603 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12604 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12606 else
12607 ac_check_lib_save_LIBS=$LIBS
12608 LIBS="-ldld $LIBS"
12609 cat >conftest.$ac_ext <<_ACEOF
12610 /* confdefs.h. */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12616 /* Override any GCC internal prototype to avoid an error.
12617 Use char because int might match the return type of a GCC
12618 builtin and then its argument prototype would still apply. */
12619 #ifdef __cplusplus
12620 extern "C"
12621 #endif
12622 char shl_load ();
12624 main ()
12626 return shl_load ();
12628 return 0;
12630 _ACEOF
12631 rm -f conftest.$ac_objext conftest$ac_exeext
12632 if { (ac_try="$ac_link"
12633 case "(($ac_try" in
12634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635 *) ac_try_echo=$ac_try;;
12636 esac
12637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638 (eval "$ac_link") 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } && {
12645 test -z "$ac_cxx_werror_flag" ||
12646 test ! -s conftest.err
12647 } && test -s conftest$ac_exeext &&
12648 $as_test_x conftest$ac_exeext; then
12649 ac_cv_lib_dld_shl_load=yes
12650 else
12651 echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12654 ac_cv_lib_dld_shl_load=no
12657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12658 conftest$ac_exeext conftest.$ac_ext
12659 LIBS=$ac_check_lib_save_LIBS
12661 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12662 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12663 if test $ac_cv_lib_dld_shl_load = yes; then
12664 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12665 else
12666 { echo "$as_me:$LINENO: checking for dlopen" >&5
12667 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12668 if test "${ac_cv_func_dlopen+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 else
12671 cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h. */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12679 #define dlopen innocuous_dlopen
12681 /* System header to define __stub macros and hopefully few prototypes,
12682 which can conflict with char dlopen (); below.
12683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12684 <limits.h> exists even on freestanding compilers. */
12686 #ifdef __STDC__
12687 # include <limits.h>
12688 #else
12689 # include <assert.h>
12690 #endif
12692 #undef dlopen
12694 /* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12697 #ifdef __cplusplus
12698 extern "C"
12699 #endif
12700 char dlopen ();
12701 /* The GNU C library defines this for functions which it implements
12702 to always fail with ENOSYS. Some functions are actually named
12703 something starting with __ and the normal name is an alias. */
12704 #if defined __stub_dlopen || defined __stub___dlopen
12705 choke me
12706 #endif
12709 main ()
12711 return dlopen ();
12713 return 0;
12715 _ACEOF
12716 rm -f conftest.$ac_objext conftest$ac_exeext
12717 if { (ac_try="$ac_link"
12718 case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12721 esac
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_link") 2>conftest.er1
12724 ac_status=$?
12725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } && {
12730 test -z "$ac_cxx_werror_flag" ||
12731 test ! -s conftest.err
12732 } && test -s conftest$ac_exeext &&
12733 $as_test_x conftest$ac_exeext; then
12734 ac_cv_func_dlopen=yes
12735 else
12736 echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12739 ac_cv_func_dlopen=no
12742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12743 conftest$ac_exeext conftest.$ac_ext
12745 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12746 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12747 if test $ac_cv_func_dlopen = yes; then
12748 lt_cv_dlopen="dlopen"
12749 else
12750 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12751 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12752 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-ldl $LIBS"
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12764 /* Override any GCC internal prototype to avoid an error.
12765 Use char because int might match the return type of a GCC
12766 builtin and then its argument prototype would still apply. */
12767 #ifdef __cplusplus
12768 extern "C"
12769 #endif
12770 char dlopen ();
12772 main ()
12774 return dlopen ();
12776 return 0;
12778 _ACEOF
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (ac_try="$ac_link"
12781 case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784 esac
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_link") 2>conftest.er1
12787 ac_status=$?
12788 grep -v '^ *+' conftest.er1 >conftest.err
12789 rm -f conftest.er1
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } && {
12793 test -z "$ac_cxx_werror_flag" ||
12794 test ! -s conftest.err
12795 } && test -s conftest$ac_exeext &&
12796 $as_test_x conftest$ac_exeext; then
12797 ac_cv_lib_dl_dlopen=yes
12798 else
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 ac_cv_lib_dl_dlopen=no
12805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12806 conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_lib_save_LIBS
12809 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12810 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12811 if test $ac_cv_lib_dl_dlopen = yes; then
12812 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12813 else
12814 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12815 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12816 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12817 echo $ECHO_N "(cached) $ECHO_C" >&6
12818 else
12819 ac_check_lib_save_LIBS=$LIBS
12820 LIBS="-lsvld $LIBS"
12821 cat >conftest.$ac_ext <<_ACEOF
12822 /* confdefs.h. */
12823 _ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h. */
12828 /* Override any GCC internal prototype to avoid an error.
12829 Use char because int might match the return type of a GCC
12830 builtin and then its argument prototype would still apply. */
12831 #ifdef __cplusplus
12832 extern "C"
12833 #endif
12834 char dlopen ();
12836 main ()
12838 return dlopen ();
12840 return 0;
12842 _ACEOF
12843 rm -f conftest.$ac_objext conftest$ac_exeext
12844 if { (ac_try="$ac_link"
12845 case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12848 esac
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_link") 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } && {
12857 test -z "$ac_cxx_werror_flag" ||
12858 test ! -s conftest.err
12859 } && test -s conftest$ac_exeext &&
12860 $as_test_x conftest$ac_exeext; then
12861 ac_cv_lib_svld_dlopen=yes
12862 else
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_cv_lib_svld_dlopen=no
12869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12870 conftest$ac_exeext conftest.$ac_ext
12871 LIBS=$ac_check_lib_save_LIBS
12873 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12874 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12875 if test $ac_cv_lib_svld_dlopen = yes; then
12876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12877 else
12878 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12879 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12880 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 else
12883 ac_check_lib_save_LIBS=$LIBS
12884 LIBS="-ldld $LIBS"
12885 cat >conftest.$ac_ext <<_ACEOF
12886 /* confdefs.h. */
12887 _ACEOF
12888 cat confdefs.h >>conftest.$ac_ext
12889 cat >>conftest.$ac_ext <<_ACEOF
12890 /* end confdefs.h. */
12892 /* Override any GCC internal prototype to avoid an error.
12893 Use char because int might match the return type of a GCC
12894 builtin and then its argument prototype would still apply. */
12895 #ifdef __cplusplus
12896 extern "C"
12897 #endif
12898 char dld_link ();
12900 main ()
12902 return dld_link ();
12904 return 0;
12906 _ACEOF
12907 rm -f conftest.$ac_objext conftest$ac_exeext
12908 if { (ac_try="$ac_link"
12909 case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912 esac
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_link") 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } && {
12921 test -z "$ac_cxx_werror_flag" ||
12922 test ! -s conftest.err
12923 } && test -s conftest$ac_exeext &&
12924 $as_test_x conftest$ac_exeext; then
12925 ac_cv_lib_dld_dld_link=yes
12926 else
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12930 ac_cv_lib_dld_dld_link=no
12933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12934 conftest$ac_exeext conftest.$ac_ext
12935 LIBS=$ac_check_lib_save_LIBS
12937 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12938 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12939 if test $ac_cv_lib_dld_dld_link = yes; then
12940 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12959 esac
12961 if test "x$lt_cv_dlopen" != xno; then
12962 enable_dlopen=yes
12963 else
12964 enable_dlopen=no
12967 case $lt_cv_dlopen in
12968 dlopen)
12969 save_CPPFLAGS="$CPPFLAGS"
12970 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12972 save_LDFLAGS="$LDFLAGS"
12973 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12975 save_LIBS="$LIBS"
12976 LIBS="$lt_cv_dlopen_libs $LIBS"
12978 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12979 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12980 if test "${lt_cv_dlopen_self+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 else
12983 if test "$cross_compiling" = yes; then :
12984 lt_cv_dlopen_self=cross
12985 else
12986 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12987 lt_status=$lt_dlunknown
12988 cat > conftest.$ac_ext <<EOF
12989 #line 12989 "configure"
12990 #include "confdefs.h"
12992 #if HAVE_DLFCN_H
12993 #include <dlfcn.h>
12994 #endif
12996 #include <stdio.h>
12998 #ifdef RTLD_GLOBAL
12999 # define LT_DLGLOBAL RTLD_GLOBAL
13000 #else
13001 # ifdef DL_GLOBAL
13002 # define LT_DLGLOBAL DL_GLOBAL
13003 # else
13004 # define LT_DLGLOBAL 0
13005 # endif
13006 #endif
13008 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13009 find out it does not work in some platform. */
13010 #ifndef LT_DLLAZY_OR_NOW
13011 # ifdef RTLD_LAZY
13012 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13013 # else
13014 # ifdef DL_LAZY
13015 # define LT_DLLAZY_OR_NOW DL_LAZY
13016 # else
13017 # ifdef RTLD_NOW
13018 # define LT_DLLAZY_OR_NOW RTLD_NOW
13019 # else
13020 # ifdef DL_NOW
13021 # define LT_DLLAZY_OR_NOW DL_NOW
13022 # else
13023 # define LT_DLLAZY_OR_NOW 0
13024 # endif
13025 # endif
13026 # endif
13027 # endif
13028 #endif
13030 #ifdef __cplusplus
13031 extern "C" void exit (int);
13032 #endif
13034 void fnord() { int i=42;}
13035 int main ()
13037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13038 int status = $lt_dlunknown;
13040 if (self)
13042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13043 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13044 /* dlclose (self); */
13047 exit (status);
13050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13051 (eval $ac_link) 2>&5
13052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13055 (./conftest; exit; ) >&5 2>/dev/null
13056 lt_status=$?
13057 case x$lt_status in
13058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13060 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13061 esac
13062 else :
13063 # compilation failed
13064 lt_cv_dlopen_self=no
13067 rm -fr conftest*
13071 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13072 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13074 if test "x$lt_cv_dlopen_self" = xyes; then
13075 LDFLAGS="$LDFLAGS $link_static_flag"
13076 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13077 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13078 if test "${lt_cv_dlopen_self_static+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 else
13081 if test "$cross_compiling" = yes; then :
13082 lt_cv_dlopen_self_static=cross
13083 else
13084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13085 lt_status=$lt_dlunknown
13086 cat > conftest.$ac_ext <<EOF
13087 #line 13087 "configure"
13088 #include "confdefs.h"
13090 #if HAVE_DLFCN_H
13091 #include <dlfcn.h>
13092 #endif
13094 #include <stdio.h>
13096 #ifdef RTLD_GLOBAL
13097 # define LT_DLGLOBAL RTLD_GLOBAL
13098 #else
13099 # ifdef DL_GLOBAL
13100 # define LT_DLGLOBAL DL_GLOBAL
13101 # else
13102 # define LT_DLGLOBAL 0
13103 # endif
13104 #endif
13106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13107 find out it does not work in some platform. */
13108 #ifndef LT_DLLAZY_OR_NOW
13109 # ifdef RTLD_LAZY
13110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13111 # else
13112 # ifdef DL_LAZY
13113 # define LT_DLLAZY_OR_NOW DL_LAZY
13114 # else
13115 # ifdef RTLD_NOW
13116 # define LT_DLLAZY_OR_NOW RTLD_NOW
13117 # else
13118 # ifdef DL_NOW
13119 # define LT_DLLAZY_OR_NOW DL_NOW
13120 # else
13121 # define LT_DLLAZY_OR_NOW 0
13122 # endif
13123 # endif
13124 # endif
13125 # endif
13126 #endif
13128 #ifdef __cplusplus
13129 extern "C" void exit (int);
13130 #endif
13132 void fnord() { int i=42;}
13133 int main ()
13135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13136 int status = $lt_dlunknown;
13138 if (self)
13140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13141 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13142 /* dlclose (self); */
13145 exit (status);
13148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13149 (eval $ac_link) 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13153 (./conftest; exit; ) >&5 2>/dev/null
13154 lt_status=$?
13155 case x$lt_status in
13156 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13157 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13158 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13159 esac
13160 else :
13161 # compilation failed
13162 lt_cv_dlopen_self_static=no
13165 rm -fr conftest*
13169 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13170 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13173 CPPFLAGS="$save_CPPFLAGS"
13174 LDFLAGS="$save_LDFLAGS"
13175 LIBS="$save_LIBS"
13177 esac
13179 case $lt_cv_dlopen_self in
13180 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13181 *) enable_dlopen_self=unknown ;;
13182 esac
13184 case $lt_cv_dlopen_self_static in
13185 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13186 *) enable_dlopen_self_static=unknown ;;
13187 esac
13191 # The else clause should only fire when bootstrapping the
13192 # libtool distribution, otherwise you forgot to ship ltmain.sh
13193 # with your package, and you will get complaints that there are
13194 # no rules to generate ltmain.sh.
13195 if test -f "$ltmain"; then
13196 # See if we are running on zsh, and set the options which allow our commands through
13197 # without removal of \ escapes.
13198 if test -n "${ZSH_VERSION+set}" ; then
13199 setopt NO_GLOB_SUBST
13201 # Now quote all the things that may contain metacharacters while being
13202 # careful not to overquote the AC_SUBSTed values. We take copies of the
13203 # variables and quote the copies for generation of the libtool script.
13204 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13205 SED SHELL STRIP \
13206 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13207 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13208 deplibs_check_method reload_flag reload_cmds need_locks \
13209 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13210 lt_cv_sys_global_symbol_to_c_name_address \
13211 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13212 old_postinstall_cmds old_postuninstall_cmds \
13213 compiler_CXX \
13214 CC_CXX \
13215 LD_CXX \
13216 lt_prog_compiler_wl_CXX \
13217 lt_prog_compiler_pic_CXX \
13218 lt_prog_compiler_static_CXX \
13219 lt_prog_compiler_no_builtin_flag_CXX \
13220 export_dynamic_flag_spec_CXX \
13221 thread_safe_flag_spec_CXX \
13222 whole_archive_flag_spec_CXX \
13223 enable_shared_with_static_runtimes_CXX \
13224 old_archive_cmds_CXX \
13225 old_archive_from_new_cmds_CXX \
13226 predep_objects_CXX \
13227 postdep_objects_CXX \
13228 predeps_CXX \
13229 postdeps_CXX \
13230 compiler_lib_search_path_CXX \
13231 archive_cmds_CXX \
13232 archive_expsym_cmds_CXX \
13233 postinstall_cmds_CXX \
13234 postuninstall_cmds_CXX \
13235 old_archive_from_expsyms_cmds_CXX \
13236 allow_undefined_flag_CXX \
13237 no_undefined_flag_CXX \
13238 export_symbols_cmds_CXX \
13239 hardcode_libdir_flag_spec_CXX \
13240 hardcode_libdir_flag_spec_ld_CXX \
13241 hardcode_libdir_separator_CXX \
13242 hardcode_automatic_CXX \
13243 module_cmds_CXX \
13244 module_expsym_cmds_CXX \
13245 lt_cv_prog_compiler_c_o_CXX \
13246 exclude_expsyms_CXX \
13247 include_expsyms_CXX; do
13249 case $var in
13250 old_archive_cmds_CXX | \
13251 old_archive_from_new_cmds_CXX | \
13252 archive_cmds_CXX | \
13253 archive_expsym_cmds_CXX | \
13254 module_cmds_CXX | \
13255 module_expsym_cmds_CXX | \
13256 old_archive_from_expsyms_cmds_CXX | \
13257 export_symbols_cmds_CXX | \
13258 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13259 postinstall_cmds | postuninstall_cmds | \
13260 old_postinstall_cmds | old_postuninstall_cmds | \
13261 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13262 # Double-quote double-evaled strings.
13263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13268 esac
13269 done
13271 case $lt_echo in
13272 *'\$0 --fallback-echo"')
13273 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13275 esac
13277 cfgfile="$ofile"
13279 cat <<__EOF__ >> "$cfgfile"
13280 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13282 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13284 # Shell to use when invoking shell scripts.
13285 SHELL=$lt_SHELL
13287 # Whether or not to build shared libraries.
13288 build_libtool_libs=$enable_shared
13290 # Whether or not to build static libraries.
13291 build_old_libs=$enable_static
13293 # Whether or not to add -lc for building shared libraries.
13294 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13296 # Whether or not to disallow shared libs when runtime libs are static
13297 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13299 # Whether or not to optimize for fast installation.
13300 fast_install=$enable_fast_install
13302 # The host system.
13303 host_alias=$host_alias
13304 host=$host
13305 host_os=$host_os
13307 # The build system.
13308 build_alias=$build_alias
13309 build=$build
13310 build_os=$build_os
13312 # An echo program that does not interpret backslashes.
13313 echo=$lt_echo
13315 # The archiver.
13316 AR=$lt_AR
13317 AR_FLAGS=$lt_AR_FLAGS
13319 # A C compiler.
13320 LTCC=$lt_LTCC
13322 # A language-specific compiler.
13323 CC=$lt_compiler_CXX
13325 # Is the compiler the GNU C compiler?
13326 with_gcc=$GCC_CXX
13328 # An ERE matcher.
13329 EGREP=$lt_EGREP
13331 # The linker used to build libraries.
13332 LD=$lt_LD_CXX
13334 # Whether we need hard or soft links.
13335 LN_S=$lt_LN_S
13337 # A BSD-compatible nm program.
13338 NM=$lt_NM
13340 # A symbol stripping program
13341 STRIP=$lt_STRIP
13343 # Used to examine libraries when file_magic_cmd begins "file"
13344 MAGIC_CMD=$MAGIC_CMD
13346 # Used on cygwin: DLL creation program.
13347 DLLTOOL="$DLLTOOL"
13349 # Used on cygwin: object dumper.
13350 OBJDUMP="$OBJDUMP"
13352 # Used on cygwin: assembler.
13353 AS="$AS"
13355 # The name of the directory that contains temporary libtool files.
13356 objdir=$objdir
13358 # How to create reloadable object files.
13359 reload_flag=$lt_reload_flag
13360 reload_cmds=$lt_reload_cmds
13362 # How to pass a linker flag through the compiler.
13363 wl=$lt_lt_prog_compiler_wl_CXX
13365 # Object file suffix (normally "o").
13366 objext="$ac_objext"
13368 # Old archive suffix (normally "a").
13369 libext="$libext"
13371 # Shared library suffix (normally ".so").
13372 shrext_cmds='$shrext_cmds'
13374 # Executable file suffix (normally "").
13375 exeext="$exeext"
13377 # Additional compiler flags for building library objects.
13378 pic_flag=$lt_lt_prog_compiler_pic_CXX
13379 pic_mode=$pic_mode
13381 # What is the maximum length of a command?
13382 max_cmd_len=$lt_cv_sys_max_cmd_len
13384 # Does compiler simultaneously support -c and -o options?
13385 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13387 # Must we lock files when doing compilation?
13388 need_locks=$lt_need_locks
13390 # Do we need the lib prefix for modules?
13391 need_lib_prefix=$need_lib_prefix
13393 # Do we need a version for libraries?
13394 need_version=$need_version
13396 # Whether dlopen is supported.
13397 dlopen_support=$enable_dlopen
13399 # Whether dlopen of programs is supported.
13400 dlopen_self=$enable_dlopen_self
13402 # Whether dlopen of statically linked programs is supported.
13403 dlopen_self_static=$enable_dlopen_self_static
13405 # Compiler flag to prevent dynamic linking.
13406 link_static_flag=$lt_lt_prog_compiler_static_CXX
13408 # Compiler flag to turn off builtin functions.
13409 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13411 # Compiler flag to allow reflexive dlopens.
13412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13414 # Compiler flag to generate shared objects directly from archives.
13415 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13417 # Compiler flag to generate thread-safe objects.
13418 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13420 # Library versioning type.
13421 version_type=$version_type
13423 # Format of library name prefix.
13424 libname_spec=$lt_libname_spec
13426 # List of archive names. First name is the real one, the rest are links.
13427 # The last name is the one that the linker finds with -lNAME.
13428 library_names_spec=$lt_library_names_spec
13430 # The coded name of the library, if different from the real name.
13431 soname_spec=$lt_soname_spec
13433 # Commands used to build and install an old-style archive.
13434 RANLIB=$lt_RANLIB
13435 old_archive_cmds=$lt_old_archive_cmds_CXX
13436 old_postinstall_cmds=$lt_old_postinstall_cmds
13437 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13439 # Create an old-style archive from a shared archive.
13440 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13442 # Create a temporary old-style archive to link instead of a shared archive.
13443 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13445 # Commands used to build and install a shared archive.
13446 archive_cmds=$lt_archive_cmds_CXX
13447 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13448 postinstall_cmds=$lt_postinstall_cmds
13449 postuninstall_cmds=$lt_postuninstall_cmds
13451 # Commands used to build a loadable module (assumed same as above if empty)
13452 module_cmds=$lt_module_cmds_CXX
13453 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13455 # Commands to strip libraries.
13456 old_striplib=$lt_old_striplib
13457 striplib=$lt_striplib
13459 # Dependencies to place before the objects being linked to create a
13460 # shared library.
13461 predep_objects=$lt_predep_objects_CXX
13463 # Dependencies to place after the objects being linked to create a
13464 # shared library.
13465 postdep_objects=$lt_postdep_objects_CXX
13467 # Dependencies to place before the objects being linked to create a
13468 # shared library.
13469 predeps=$lt_predeps_CXX
13471 # Dependencies to place after the objects being linked to create a
13472 # shared library.
13473 postdeps=$lt_postdeps_CXX
13475 # The library search path used internally by the compiler when linking
13476 # a shared library.
13477 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13479 # Method to check whether dependent libraries are shared objects.
13480 deplibs_check_method=$lt_deplibs_check_method
13482 # Command to use when deplibs_check_method == file_magic.
13483 file_magic_cmd=$lt_file_magic_cmd
13485 # Flag that allows shared libraries with undefined symbols to be built.
13486 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13488 # Flag that forces no undefined symbols.
13489 no_undefined_flag=$lt_no_undefined_flag_CXX
13491 # Commands used to finish a libtool library installation in a directory.
13492 finish_cmds=$lt_finish_cmds
13494 # Same as above, but a single script fragment to be evaled but not shown.
13495 finish_eval=$lt_finish_eval
13497 # Take the output of nm and produce a listing of raw symbols and C names.
13498 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13500 # Transform the output of nm in a proper C declaration
13501 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13503 # Transform the output of nm in a C name address pair
13504 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13506 # This is the shared library runtime path variable.
13507 runpath_var=$runpath_var
13509 # This is the shared library path variable.
13510 shlibpath_var=$shlibpath_var
13512 # Is shlibpath searched before the hard-coded library search path?
13513 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13515 # How to hardcode a shared library path into an executable.
13516 hardcode_action=$hardcode_action_CXX
13518 # Whether we should hardcode library paths into libraries.
13519 hardcode_into_libs=$hardcode_into_libs
13521 # Flag to hardcode \$libdir into a binary during linking.
13522 # This must work even if \$libdir does not exist.
13523 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13525 # If ld is used when linking, flag to hardcode \$libdir into
13526 # a binary during linking. This must work even if \$libdir does
13527 # not exist.
13528 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13530 # Whether we need a single -rpath flag with a separated argument.
13531 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13533 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13534 # resulting binary.
13535 hardcode_direct=$hardcode_direct_CXX
13537 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13538 # resulting binary.
13539 hardcode_minus_L=$hardcode_minus_L_CXX
13541 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13542 # the resulting binary.
13543 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13545 # Set to yes if building a shared library automatically hardcodes DIR into the library
13546 # and all subsequent libraries and executables linked against it.
13547 hardcode_automatic=$hardcode_automatic_CXX
13549 # Variables whose values should be saved in libtool wrapper scripts and
13550 # restored at relink time.
13551 variables_saved_for_relink="$variables_saved_for_relink"
13553 # Whether libtool must link a program against all its dependency libraries.
13554 link_all_deplibs=$link_all_deplibs_CXX
13556 # Compile-time system search path for libraries
13557 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13559 # Run-time system search path for libraries
13560 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13562 # Fix the shell variable \$srcfile for the compiler.
13563 fix_srcfile_path="$fix_srcfile_path_CXX"
13565 # Set to yes if exported symbols are required.
13566 always_export_symbols=$always_export_symbols_CXX
13568 # The commands to list exported symbols.
13569 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13571 # The commands to extract the exported symbol list from a shared archive.
13572 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13574 # Symbols that should not be listed in the preloaded symbols.
13575 exclude_expsyms=$lt_exclude_expsyms_CXX
13577 # Symbols that must always be exported.
13578 include_expsyms=$lt_include_expsyms_CXX
13580 # ### END LIBTOOL TAG CONFIG: $tagname
13582 __EOF__
13585 else
13586 # If there is no Makefile yet, we rely on a make rule to execute
13587 # `config.status --recheck' to rerun these tests and create the
13588 # libtool script then.
13589 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13590 if test -f "$ltmain_in"; then
13591 test -f Makefile && make "$ltmain"
13596 ac_ext=c
13597 ac_cpp='$CPP $CPPFLAGS'
13598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13602 CC=$lt_save_CC
13603 LDCXX=$LD
13604 LD=$lt_save_LD
13605 GCC=$lt_save_GCC
13606 with_gnu_ldcxx=$with_gnu_ld
13607 with_gnu_ld=$lt_save_with_gnu_ld
13608 lt_cv_path_LDCXX=$lt_cv_path_LD
13609 lt_cv_path_LD=$lt_save_path_LD
13610 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13611 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13613 else
13614 tagname=""
13618 # F77)
13619 # if test -n "$F77" && test "X$F77" != "Xno"; then
13620 # AC_LIBTOOL_LANG_F77_CONFIG
13621 # else
13622 # tagname=""
13623 # fi
13624 # ;;
13626 # GCJ)
13627 # if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
13628 # AC_LIBTOOL_LANG_GCJ_CONFIG
13629 # else
13630 # tagname=""
13631 # fi
13632 # ;;
13634 # RC)
13635 # AC_LIBTOOL_LANG_RC_CONFIG
13636 # ;;
13639 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
13640 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
13641 { (exit 1); exit 1; }; }
13643 esac
13645 # Append the new tag name to the list of available tags.
13646 if test -n "$tagname" ; then
13647 available_tags="$available_tags $tagname"
13650 done
13651 IFS="$lt_save_ifs"
13653 # Now substitute the updated list of available tags.
13654 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
13655 mv "${ofile}T" "$ofile"
13656 chmod +x "$ofile"
13657 else
13658 rm -f "${ofile}T"
13659 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
13660 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
13661 { (exit 1); exit 1; }; }
13667 # This can be used to rebuild libtool when needed
13668 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
13670 # Always use our own libtool.
13671 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13673 # Prevent multiple expansion
13687 all_targets='$(PHP_MODULES)'
13688 install_targets="install-modules install-headers"
13689 phplibdir="`pwd`/modules"
13690 CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
13691 CFLAGS_CLEAN='$(CFLAGS)'
13692 CXXFLAGS_CLEAN='$(CXXFLAGS)'
13694 test "$prefix" = "NONE" && prefix="/usr/local"
13695 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
13698 PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES"
13701 PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets"
13704 PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets"
13708 PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
13711 PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix"
13714 PHP_VAR_SUBST="$PHP_VAR_SUBST libdir"
13717 PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
13720 PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir"
13723 PHP_VAR_SUBST="$PHP_VAR_SUBST phpincludedir"
13727 PHP_VAR_SUBST="$PHP_VAR_SUBST CC"
13730 PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS"
13733 PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN"
13736 PHP_VAR_SUBST="$PHP_VAR_SUBST CPP"
13739 PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS"
13742 PHP_VAR_SUBST="$PHP_VAR_SUBST CXX"
13745 PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS"
13748 PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN"
13751 PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR"
13754 PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
13757 PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS"
13760 PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS"
13763 PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES"
13766 PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS"
13769 PHP_VAR_SUBST="$PHP_VAR_SUBST LDFLAGS"
13772 PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL"
13775 PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL"
13778 PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL"
13781 PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS"
13785 $php_shtool mkdir -p $BUILD_DIR
13788 cat >Makefile <<EOF
13789 srcdir = $abs_srcdir
13790 builddir = $abs_builddir
13791 top_srcdir = $abs_srcdir
13792 top_builddir = $abs_builddir
13794 for i in $PHP_VAR_SUBST; do
13795 eval echo "$i = \$$i" >> Makefile
13796 done
13798 cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile
13801 test -d modules || $php_shtool mkdir modules
13802 touch .deps
13804 ac_config_headers="$ac_config_headers config.h"
13807 cat >confcache <<\_ACEOF
13808 # This file is a shell script that caches the results of configure
13809 # tests run on this system so they can be shared between configure
13810 # scripts and configure runs, see configure's option --config-cache.
13811 # It is not useful on other systems. If it contains results you don't
13812 # want to keep, you may remove or edit it.
13814 # config.status only pays attention to the cache file if you give it
13815 # the --recheck option to rerun configure.
13817 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13818 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13819 # following values.
13821 _ACEOF
13823 # The following way of writing the cache mishandles newlines in values,
13824 # but we know of no workaround that is simple, portable, and efficient.
13825 # So, we kill variables containing newlines.
13826 # Ultrix sh set writes to stderr and can't be redirected directly,
13827 # and sets the high bit in the cache file unless we assign to the vars.
13829 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13830 eval ac_val=\$$ac_var
13831 case $ac_val in #(
13832 *${as_nl}*)
13833 case $ac_var in #(
13834 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13835 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13836 esac
13837 case $ac_var in #(
13838 _ | IFS | as_nl) ;; #(
13839 *) $as_unset $ac_var ;;
13840 esac ;;
13841 esac
13842 done
13844 (set) 2>&1 |
13845 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13846 *${as_nl}ac_space=\ *)
13847 # `set' does not quote correctly, so add quotes (double-quote
13848 # substitution turns \\\\ into \\, and sed turns \\ into \).
13849 sed -n \
13850 "s/'/'\\\\''/g;
13851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13852 ;; #(
13854 # `set' quotes correctly as required by POSIX, so do not add quotes.
13855 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13857 esac |
13858 sort
13860 sed '
13861 /^ac_cv_env_/b end
13862 t clear
13863 :clear
13864 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13865 t end
13866 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13867 :end' >>confcache
13868 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13869 if test -w "$cache_file"; then
13870 test "x$cache_file" != "x/dev/null" &&
13871 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13872 echo "$as_me: updating cache $cache_file" >&6;}
13873 cat confcache >$cache_file
13874 else
13875 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13876 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13879 rm -f confcache
13881 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13882 # Let make expand exec_prefix.
13883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13885 DEFS=-DHAVE_CONFIG_H
13887 ac_libobjs=
13888 ac_ltlibobjs=
13889 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13890 # 1. Remove the extension, and $U if already installed.
13891 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13892 ac_i=`echo "$ac_i" | sed "$ac_script"`
13893 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13894 # will be set to the directory where LIBOBJS objects are built.
13895 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13896 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13897 done
13898 LIBOBJS=$ac_libobjs
13900 LTLIBOBJS=$ac_ltlibobjs
13904 : ${CONFIG_STATUS=./config.status}
13905 ac_clean_files_save=$ac_clean_files
13906 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13907 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13908 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13909 cat >$CONFIG_STATUS <<_ACEOF
13910 #! $SHELL
13911 # Generated by $as_me.
13912 # Run this file to recreate the current configuration.
13913 # Compiler output produced by configure, useful for debugging
13914 # configure, is in config.log if it exists.
13916 debug=false
13917 ac_cs_recheck=false
13918 ac_cs_silent=false
13919 SHELL=\${CONFIG_SHELL-$SHELL}
13920 _ACEOF
13922 cat >>$CONFIG_STATUS <<\_ACEOF
13923 ## --------------------- ##
13924 ## M4sh Initialization. ##
13925 ## --------------------- ##
13927 # Be more Bourne compatible
13928 DUALCASE=1; export DUALCASE # for MKS sh
13929 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13930 emulate sh
13931 NULLCMD=:
13932 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13933 # is contrary to our usage. Disable this feature.
13934 alias -g '${1+"$@"}'='"$@"'
13935 setopt NO_GLOB_SUBST
13936 else
13937 case `(set -o) 2>/dev/null` in
13938 *posix*) set -o posix ;;
13939 esac
13946 # PATH needs CR
13947 # Avoid depending upon Character Ranges.
13948 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13949 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13950 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13951 as_cr_digits='0123456789'
13952 as_cr_alnum=$as_cr_Letters$as_cr_digits
13954 # The user is always right.
13955 if test "${PATH_SEPARATOR+set}" != set; then
13956 echo "#! /bin/sh" >conf$$.sh
13957 echo "exit 0" >>conf$$.sh
13958 chmod +x conf$$.sh
13959 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13960 PATH_SEPARATOR=';'
13961 else
13962 PATH_SEPARATOR=:
13964 rm -f conf$$.sh
13967 # Support unset when possible.
13968 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13969 as_unset=unset
13970 else
13971 as_unset=false
13975 # IFS
13976 # We need space, tab and new line, in precisely that order. Quoting is
13977 # there to prevent editors from complaining about space-tab.
13978 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13979 # splitting by setting IFS to empty value.)
13980 as_nl='
13982 IFS=" "" $as_nl"
13984 # Find who we are. Look in the path if we contain no directory separator.
13985 case $0 in
13986 *[\\/]* ) as_myself=$0 ;;
13987 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13988 for as_dir in $PATH
13990 IFS=$as_save_IFS
13991 test -z "$as_dir" && as_dir=.
13992 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13993 done
13994 IFS=$as_save_IFS
13997 esac
13998 # We did not find ourselves, most probably we were run as `sh COMMAND'
13999 # in which case we are not to be found in the path.
14000 if test "x$as_myself" = x; then
14001 as_myself=$0
14003 if test ! -f "$as_myself"; then
14004 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14005 { (exit 1); exit 1; }
14008 # Work around bugs in pre-3.0 UWIN ksh.
14009 for as_var in ENV MAIL MAILPATH
14010 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14011 done
14012 PS1='$ '
14013 PS2='> '
14014 PS4='+ '
14016 # NLS nuisances.
14017 for as_var in \
14018 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14019 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14020 LC_TELEPHONE LC_TIME
14022 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14023 eval $as_var=C; export $as_var
14024 else
14025 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14027 done
14029 # Required to use basename.
14030 if expr a : '\(a\)' >/dev/null 2>&1 &&
14031 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14032 as_expr=expr
14033 else
14034 as_expr=false
14037 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14038 as_basename=basename
14039 else
14040 as_basename=false
14044 # Name of the executable.
14045 as_me=`$as_basename -- "$0" ||
14046 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14047 X"$0" : 'X\(//\)$' \| \
14048 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14049 echo X/"$0" |
14050 sed '/^.*\/\([^/][^/]*\)\/*$/{
14051 s//\1/
14054 /^X\/\(\/\/\)$/{
14055 s//\1/
14058 /^X\/\(\/\).*/{
14059 s//\1/
14062 s/.*/./; q'`
14064 # CDPATH.
14065 $as_unset CDPATH
14069 as_lineno_1=$LINENO
14070 as_lineno_2=$LINENO
14071 test "x$as_lineno_1" != "x$as_lineno_2" &&
14072 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14074 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14075 # uniformly replaced by the line number. The first 'sed' inserts a
14076 # line-number line after each line using $LINENO; the second 'sed'
14077 # does the real work. The second script uses 'N' to pair each
14078 # line-number line with the line containing $LINENO, and appends
14079 # trailing '-' during substitution so that $LINENO is not a special
14080 # case at line end.
14081 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14082 # scripts with optimization help from Paolo Bonzini. Blame Lee
14083 # E. McMahon (1931-1989) for sed's syntax. :-)
14084 sed -n '
14086 /[$]LINENO/=
14087 ' <$as_myself |
14088 sed '
14089 s/[$]LINENO.*/&-/
14090 t lineno
14092 :lineno
14094 :loop
14095 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14096 t loop
14097 s/-\n.*//
14098 ' >$as_me.lineno &&
14099 chmod +x "$as_me.lineno" ||
14100 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14101 { (exit 1); exit 1; }; }
14103 # Don't try to exec as it changes $[0], causing all sort of problems
14104 # (the dirname of $[0] is not the place where we might find the
14105 # original and so on. Autoconf is especially sensitive to this).
14106 . "./$as_me.lineno"
14107 # Exit status is that of the last command.
14108 exit
14112 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14113 as_dirname=dirname
14114 else
14115 as_dirname=false
14118 ECHO_C= ECHO_N= ECHO_T=
14119 case `echo -n x` in
14120 -n*)
14121 case `echo 'x\c'` in
14122 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14123 *) ECHO_C='\c';;
14124 esac;;
14126 ECHO_N='-n';;
14127 esac
14129 if expr a : '\(a\)' >/dev/null 2>&1 &&
14130 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14131 as_expr=expr
14132 else
14133 as_expr=false
14136 rm -f conf$$ conf$$.exe conf$$.file
14137 if test -d conf$$.dir; then
14138 rm -f conf$$.dir/conf$$.file
14139 else
14140 rm -f conf$$.dir
14141 mkdir conf$$.dir
14143 echo >conf$$.file
14144 if ln -s conf$$.file conf$$ 2>/dev/null; then
14145 as_ln_s='ln -s'
14146 # ... but there are two gotchas:
14147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14149 # In both cases, we have to default to `cp -p'.
14150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14151 as_ln_s='cp -p'
14152 elif ln conf$$.file conf$$ 2>/dev/null; then
14153 as_ln_s=ln
14154 else
14155 as_ln_s='cp -p'
14157 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14158 rmdir conf$$.dir 2>/dev/null
14160 if mkdir -p . 2>/dev/null; then
14161 as_mkdir_p=:
14162 else
14163 test -d ./-p && rmdir ./-p
14164 as_mkdir_p=false
14167 if test -x / >/dev/null 2>&1; then
14168 as_test_x='test -x'
14169 else
14170 if ls -dL / >/dev/null 2>&1; then
14171 as_ls_L_option=L
14172 else
14173 as_ls_L_option=
14175 as_test_x='
14176 eval sh -c '\''
14177 if test -d "$1"; then
14178 test -d "$1/.";
14179 else
14180 case $1 in
14181 -*)set "./$1";;
14182 esac;
14183 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14184 ???[sx]*):;;*)false;;esac;fi
14185 '\'' sh
14188 as_executable_p=$as_test_x
14190 # Sed expression to map a string onto a valid CPP name.
14191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14193 # Sed expression to map a string onto a valid variable name.
14194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14197 exec 6>&1
14199 # Save the log message, to keep $[0] and so on meaningful, and to
14200 # report actual input values of CONFIG_FILES etc. instead of their
14201 # values after options handling.
14202 ac_log="
14203 This file was extended by $as_me, which was
14204 generated by GNU Autoconf 2.61. Invocation command line was
14206 CONFIG_FILES = $CONFIG_FILES
14207 CONFIG_HEADERS = $CONFIG_HEADERS
14208 CONFIG_LINKS = $CONFIG_LINKS
14209 CONFIG_COMMANDS = $CONFIG_COMMANDS
14210 $ $0 $@
14212 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14215 _ACEOF
14217 cat >>$CONFIG_STATUS <<_ACEOF
14218 # Files that config.status was made for.
14219 config_headers="$ac_config_headers"
14221 _ACEOF
14223 cat >>$CONFIG_STATUS <<\_ACEOF
14224 ac_cs_usage="\
14225 \`$as_me' instantiates files from templates according to the
14226 current configuration.
14228 Usage: $0 [OPTIONS] [FILE]...
14230 -h, --help print this help, then exit
14231 -V, --version print version number and configuration settings, then exit
14232 -q, --quiet do not print progress messages
14233 -d, --debug don't remove temporary files
14234 --recheck update $as_me by reconfiguring in the same conditions
14235 --header=FILE[:TEMPLATE]
14236 instantiate the configuration header FILE
14238 Configuration headers:
14239 $config_headers
14241 Report bugs to <bug-autoconf@gnu.org>."
14243 _ACEOF
14244 cat >>$CONFIG_STATUS <<_ACEOF
14245 ac_cs_version="\\
14246 config.status
14247 configured by $0, generated by GNU Autoconf 2.61,
14248 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14250 Copyright (C) 2006 Free Software Foundation, Inc.
14251 This config.status script is free software; the Free Software Foundation
14252 gives unlimited permission to copy, distribute and modify it."
14254 ac_pwd='$ac_pwd'
14255 srcdir='$srcdir'
14256 _ACEOF
14258 cat >>$CONFIG_STATUS <<\_ACEOF
14259 # If no file are specified by the user, then we need to provide default
14260 # value. By we need to know if files were specified by the user.
14261 ac_need_defaults=:
14262 while test $# != 0
14264 case $1 in
14265 --*=*)
14266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14268 ac_shift=:
14271 ac_option=$1
14272 ac_optarg=$2
14273 ac_shift=shift
14275 esac
14277 case $ac_option in
14278 # Handling of the options.
14279 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14280 ac_cs_recheck=: ;;
14281 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14282 echo "$ac_cs_version"; exit ;;
14283 --debug | --debu | --deb | --de | --d | -d )
14284 debug=: ;;
14285 --header | --heade | --head | --hea )
14286 $ac_shift
14287 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14288 ac_need_defaults=false;;
14289 --he | --h)
14290 # Conflict between --help and --header
14291 { echo "$as_me: error: ambiguous option: $1
14292 Try \`$0 --help' for more information." >&2
14293 { (exit 1); exit 1; }; };;
14294 --help | --hel | -h )
14295 echo "$ac_cs_usage"; exit ;;
14296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14297 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14298 ac_cs_silent=: ;;
14300 # This is an error.
14301 -*) { echo "$as_me: error: unrecognized option: $1
14302 Try \`$0 --help' for more information." >&2
14303 { (exit 1); exit 1; }; } ;;
14305 *) ac_config_targets="$ac_config_targets $1"
14306 ac_need_defaults=false ;;
14308 esac
14309 shift
14310 done
14312 ac_configure_extra_args=
14314 if $ac_cs_silent; then
14315 exec 6>/dev/null
14316 ac_configure_extra_args="$ac_configure_extra_args --silent"
14319 _ACEOF
14320 cat >>$CONFIG_STATUS <<_ACEOF
14321 if \$ac_cs_recheck; then
14322 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14323 CONFIG_SHELL=$SHELL
14324 export CONFIG_SHELL
14325 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14328 _ACEOF
14329 cat >>$CONFIG_STATUS <<\_ACEOF
14330 exec 5>>config.log
14332 echo
14333 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14334 ## Running $as_me. ##
14335 _ASBOX
14336 echo "$ac_log"
14337 } >&5
14339 _ACEOF
14340 cat >>$CONFIG_STATUS <<_ACEOF
14341 _ACEOF
14343 cat >>$CONFIG_STATUS <<\_ACEOF
14345 # Handling of arguments.
14346 for ac_config_target in $ac_config_targets
14348 case $ac_config_target in
14349 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14351 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14352 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14353 { (exit 1); exit 1; }; };;
14354 esac
14355 done
14358 # If the user did not use the arguments to specify the items to instantiate,
14359 # then the envvar interface is used. Set only those that are not.
14360 # We use the long form for the default assignment because of an extremely
14361 # bizarre bug on SunOS 4.1.3.
14362 if $ac_need_defaults; then
14363 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14366 # Have a temporary directory for convenience. Make it in the build tree
14367 # simply because there is no reason against having it here, and in addition,
14368 # creating and moving files from /tmp can sometimes cause problems.
14369 # Hook for its removal unless debugging.
14370 # Note that there is a small window in which the directory will not be cleaned:
14371 # after its creation but before its name has been assigned to `$tmp'.
14372 $debug ||
14374 tmp=
14375 trap 'exit_status=$?
14376 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14378 trap '{ (exit 1); exit 1; }' 1 2 13 15
14380 # Create a (secure) tmp directory for tmp files.
14383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14384 test -n "$tmp" && test -d "$tmp"
14385 } ||
14387 tmp=./conf$$-$RANDOM
14388 (umask 077 && mkdir "$tmp")
14389 } ||
14391 echo "$me: cannot create a temporary directory in ." >&2
14392 { (exit 1); exit 1; }
14396 for ac_tag in :H $CONFIG_HEADERS
14398 case $ac_tag in
14399 :[FHLC]) ac_mode=$ac_tag; continue;;
14400 esac
14401 case $ac_mode$ac_tag in
14402 :[FHL]*:*);;
14403 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14404 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14405 { (exit 1); exit 1; }; };;
14406 :[FH]-) ac_tag=-:-;;
14407 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14408 esac
14409 ac_save_IFS=$IFS
14410 IFS=:
14411 set x $ac_tag
14412 IFS=$ac_save_IFS
14413 shift
14414 ac_file=$1
14415 shift
14417 case $ac_mode in
14418 :L) ac_source=$1;;
14419 :[FH])
14420 ac_file_inputs=
14421 for ac_f
14423 case $ac_f in
14424 -) ac_f="$tmp/stdin";;
14425 *) # Look for the file first in the build tree, then in the source tree
14426 # (if the path is not absolute). The absolute path cannot be DOS-style,
14427 # because $ac_f cannot contain `:'.
14428 test -f "$ac_f" ||
14429 case $ac_f in
14430 [\\/$]*) false;;
14431 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14432 esac ||
14433 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14434 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14435 { (exit 1); exit 1; }; };;
14436 esac
14437 ac_file_inputs="$ac_file_inputs $ac_f"
14438 done
14440 # Let's still pretend it is `configure' which instantiates (i.e., don't
14441 # use $as_me), people would be surprised to read:
14442 # /* config.h. Generated by config.status. */
14443 configure_input="Generated from "`IFS=:
14444 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14445 if test x"$ac_file" != x-; then
14446 configure_input="$ac_file. $configure_input"
14447 { echo "$as_me:$LINENO: creating $ac_file" >&5
14448 echo "$as_me: creating $ac_file" >&6;}
14451 case $ac_tag in
14452 *:-:* | *:-) cat >"$tmp/stdin";;
14453 esac
14455 esac
14457 ac_dir=`$as_dirname -- "$ac_file" ||
14458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14459 X"$ac_file" : 'X\(//\)[^/]' \| \
14460 X"$ac_file" : 'X\(//\)$' \| \
14461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14462 echo X"$ac_file" |
14463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14464 s//\1/
14467 /^X\(\/\/\)[^/].*/{
14468 s//\1/
14471 /^X\(\/\/\)$/{
14472 s//\1/
14475 /^X\(\/\).*/{
14476 s//\1/
14479 s/.*/./; q'`
14480 { as_dir="$ac_dir"
14481 case $as_dir in #(
14482 -*) as_dir=./$as_dir;;
14483 esac
14484 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14485 as_dirs=
14486 while :; do
14487 case $as_dir in #(
14488 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14489 *) as_qdir=$as_dir;;
14490 esac
14491 as_dirs="'$as_qdir' $as_dirs"
14492 as_dir=`$as_dirname -- "$as_dir" ||
14493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14494 X"$as_dir" : 'X\(//\)[^/]' \| \
14495 X"$as_dir" : 'X\(//\)$' \| \
14496 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14497 echo X"$as_dir" |
14498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14499 s//\1/
14502 /^X\(\/\/\)[^/].*/{
14503 s//\1/
14506 /^X\(\/\/\)$/{
14507 s//\1/
14510 /^X\(\/\).*/{
14511 s//\1/
14514 s/.*/./; q'`
14515 test -d "$as_dir" && break
14516 done
14517 test -z "$as_dirs" || eval "mkdir $as_dirs"
14518 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14519 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14520 { (exit 1); exit 1; }; }; }
14521 ac_builddir=.
14523 case "$ac_dir" in
14524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14527 # A ".." for each directory in $ac_dir_suffix.
14528 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14529 case $ac_top_builddir_sub in
14530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14532 esac ;;
14533 esac
14534 ac_abs_top_builddir=$ac_pwd
14535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14536 # for backward compatibility:
14537 ac_top_builddir=$ac_top_build_prefix
14539 case $srcdir in
14540 .) # We are building in place.
14541 ac_srcdir=.
14542 ac_top_srcdir=$ac_top_builddir_sub
14543 ac_abs_top_srcdir=$ac_pwd ;;
14544 [\\/]* | ?:[\\/]* ) # Absolute name.
14545 ac_srcdir=$srcdir$ac_dir_suffix;
14546 ac_top_srcdir=$srcdir
14547 ac_abs_top_srcdir=$srcdir ;;
14548 *) # Relative name.
14549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14550 ac_top_srcdir=$ac_top_build_prefix$srcdir
14551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14552 esac
14553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14556 case $ac_mode in
14560 # CONFIG_HEADER
14562 _ACEOF
14564 # Transform confdefs.h into a sed script `conftest.defines', that
14565 # substitutes the proper values into config.h.in to produce config.h.
14566 rm -f conftest.defines conftest.tail
14567 # First, append a space to every undef/define line, to ease matching.
14568 echo 's/$/ /' >conftest.defines
14569 # Then, protect against being on the right side of a sed subst, or in
14570 # an unquoted here document, in config.status. If some macros were
14571 # called several times there might be several #defines for the same
14572 # symbol, which is useless. But do not sort them, since the last
14573 # AC_DEFINE must be honored.
14574 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14575 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14576 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14577 # PARAMS is the parameter list in the macro definition--in most cases, it's
14578 # just an empty string.
14579 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14580 ac_dB='\\)[ (].*,\\1define\\2'
14581 ac_dC=' '
14582 ac_dD=' ,'
14584 uniq confdefs.h |
14585 sed -n '
14586 t rset
14587 :rset
14588 s/^[ ]*#[ ]*define[ ][ ]*//
14589 t ok
14592 s/[\\&,]/\\&/g
14593 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14594 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14595 ' >>conftest.defines
14597 # Remove the space that was appended to ease matching.
14598 # Then replace #undef with comments. This is necessary, for
14599 # example, in the case of _POSIX_SOURCE, which is predefined and required
14600 # on some systems where configure will not decide to define it.
14601 # (The regexp can be short, since the line contains either #define or #undef.)
14602 echo 's/ $//
14603 s,^[ #]*u.*,/* & */,' >>conftest.defines
14605 # Break up conftest.defines:
14606 ac_max_sed_lines=50
14608 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14609 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14610 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14611 # et cetera.
14612 ac_in='$ac_file_inputs'
14613 ac_out='"$tmp/out1"'
14614 ac_nxt='"$tmp/out2"'
14616 while :
14618 # Write a here document:
14619 cat >>$CONFIG_STATUS <<_ACEOF
14620 # First, check the format of the line:
14621 cat >"\$tmp/defines.sed" <<\\CEOF
14622 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14623 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14625 :def
14626 _ACEOF
14627 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14628 echo 'CEOF
14629 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14630 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14631 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14632 grep . conftest.tail >/dev/null || break
14633 rm -f conftest.defines
14634 mv conftest.tail conftest.defines
14635 done
14636 rm -f conftest.defines conftest.tail
14638 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14639 cat >>$CONFIG_STATUS <<\_ACEOF
14640 if test x"$ac_file" != x-; then
14641 echo "/* $configure_input */" >"$tmp/config.h"
14642 cat "$ac_result" >>"$tmp/config.h"
14643 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14644 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14645 echo "$as_me: $ac_file is unchanged" >&6;}
14646 else
14647 rm -f $ac_file
14648 mv "$tmp/config.h" $ac_file
14650 else
14651 echo "/* $configure_input */"
14652 cat "$ac_result"
14654 rm -f "$tmp/out12"
14658 esac
14660 done # for ac_tag
14663 { (exit 0); exit 0; }
14664 _ACEOF
14665 chmod +x $CONFIG_STATUS
14666 ac_clean_files=$ac_clean_files_save
14669 # configure is writing to config.log, and then calls config.status.
14670 # config.status does its own redirection, appending to config.log.
14671 # Unfortunately, on DOS this fails, as config.log is still kept open
14672 # by configure, so config.status won't be able to write to it; its
14673 # output is simply discarded. So we exec the FD to /dev/null,
14674 # effectively closing config.log, so it can be properly (re)opened and
14675 # appended to by config.status. When coming back to configure, we
14676 # need to make the FD available again.
14677 if test "$no_create" != yes; then
14678 ac_cs_success=:
14679 ac_config_status_args=
14680 test "$silent" = yes &&
14681 ac_config_status_args="$ac_config_status_args --quiet"
14682 exec 5>/dev/null
14683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14684 exec 5>>config.log
14685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14686 # would make configure fail if this is the last instruction.
14687 $ac_cs_success || { (exit 1); exit 1; }