6363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6364
$as_echo_n "checking whether NLS is requested... " >&6; }
6365
# Check whether --enable-nls was given.
6366
if test "${enable_nls+set}" = set; then :
6367
enableval=$enable_nls; USE_NLS=$enableval
6372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6373
$as_echo "$USE_NLS" >&6; }
6378
case "$am__api_version" in
6380
as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
6386
if test -n "0.35.0"; then
6387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
6388
$as_echo_n "checking for intltool >= 0.35.0... " >&6; }
6390
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6391
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
6392
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
6395
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
6396
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
6397
as_fn_error "Your intltool is too old. You need intltool 0.35.0 or later." "$LINENO" 5
6400
# Extract the first word of "intltool-update", so it can be a program name with args.
6401
set dummy intltool-update; ac_word=$2
6402
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403
$as_echo_n "checking for $ac_word... " >&6; }
6404
if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
6405
$as_echo_n "(cached) " >&6
6407
case $INTLTOOL_UPDATE in
6409
ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
6412
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416
test -z "$as_dir" && as_dir=.
6417
for ac_exec_ext in '' $ac_executable_extensions; do
6418
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419
ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
6420
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
6431
if test -n "$INTLTOOL_UPDATE"; then
6432
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
6433
$as_echo "$INTLTOOL_UPDATE" >&6; }
6435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436
$as_echo "no" >&6; }
6440
# Extract the first word of "intltool-merge", so it can be a program name with args.
6441
set dummy intltool-merge; ac_word=$2
6442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443
$as_echo_n "checking for $ac_word... " >&6; }
6444
if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
6445
$as_echo_n "(cached) " >&6
6447
case $INTLTOOL_MERGE in
6449
ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
6452
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456
test -z "$as_dir" && as_dir=.
6457
for ac_exec_ext in '' $ac_executable_extensions; do
6458
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459
ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
6460
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
6471
if test -n "$INTLTOOL_MERGE"; then
6472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
6473
$as_echo "$INTLTOOL_MERGE" >&6; }
6475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476
$as_echo "no" >&6; }
6480
# Extract the first word of "intltool-extract", so it can be a program name with args.
6481
set dummy intltool-extract; ac_word=$2
6482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483
$as_echo_n "checking for $ac_word... " >&6; }
6484
if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
6485
$as_echo_n "(cached) " >&6
6487
case $INTLTOOL_EXTRACT in
6489
ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
6492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496
test -z "$as_dir" && as_dir=.
6497
for ac_exec_ext in '' $ac_executable_extensions; do
6498
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499
ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
6500
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
6511
if test -n "$INTLTOOL_EXTRACT"; then
6512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
6513
$as_echo "$INTLTOOL_EXTRACT" >&6; }
6515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516
$as_echo "no" >&6; }
6520
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
6521
as_fn_error "The intltool scripts were not found. Please install intltool." "$LINENO" 5
6524
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6525
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6526
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6527
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6528
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
6529
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6530
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6531
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6532
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6533
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6534
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6535
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
6536
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6537
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6538
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6539
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6540
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6541
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6542
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6640
# Check the gettext tools to make sure they are GNU
6641
# Extract the first word of "xgettext", so it can be a program name with args.
6642
set dummy xgettext; ac_word=$2
6643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644
$as_echo_n "checking for $ac_word... " >&6; }
6645
if test "${ac_cv_path_XGETTEXT+set}" = set; then :
6646
$as_echo_n "(cached) " >&6
6650
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657
test -z "$as_dir" && as_dir=.
6658
for ac_exec_ext in '' $ac_executable_extensions; do
6659
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660
ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
6661
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671
XGETTEXT=$ac_cv_path_XGETTEXT
6672
if test -n "$XGETTEXT"; then
6673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6674
$as_echo "$XGETTEXT" >&6; }
6676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677
$as_echo "no" >&6; }
6681
# Extract the first word of "msgmerge", so it can be a program name with args.
6682
set dummy msgmerge; ac_word=$2
6683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684
$as_echo_n "checking for $ac_word... " >&6; }
6685
if test "${ac_cv_path_MSGMERGE+set}" = set; then :
6686
$as_echo_n "(cached) " >&6
6690
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6693
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697
test -z "$as_dir" && as_dir=.
6698
for ac_exec_ext in '' $ac_executable_extensions; do
6699
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700
ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
6701
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711
MSGMERGE=$ac_cv_path_MSGMERGE
6712
if test -n "$MSGMERGE"; then
6713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6714
$as_echo "$MSGMERGE" >&6; }
6716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717
$as_echo "no" >&6; }
6721
# Extract the first word of "msgfmt", so it can be a program name with args.
6722
set dummy msgfmt; ac_word=$2
6723
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724
$as_echo_n "checking for $ac_word... " >&6; }
6725
if test "${ac_cv_path_MSGFMT+set}" = set; then :
6726
$as_echo_n "(cached) " >&6
6730
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737
test -z "$as_dir" && as_dir=.
6738
for ac_exec_ext in '' $ac_executable_extensions; do
6739
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740
ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6741
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751
MSGFMT=$ac_cv_path_MSGFMT
6752
if test -n "$MSGFMT"; then
6753
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6754
$as_echo "$MSGFMT" >&6; }
6756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757
$as_echo "no" >&6; }
6761
# Extract the first word of "gmsgfmt", so it can be a program name with args.
6762
set dummy gmsgfmt; ac_word=$2
6763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764
$as_echo_n "checking for $ac_word... " >&6; }
6765
if test "${ac_cv_path_GMSGFMT+set}" = set; then :
6766
$as_echo_n "(cached) " >&6
6770
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777
test -z "$as_dir" && as_dir=.
6778
for ac_exec_ext in '' $ac_executable_extensions; do
6779
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6781
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6792
GMSGFMT=$ac_cv_path_GMSGFMT
6793
if test -n "$GMSGFMT"; then
6794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6795
$as_echo "$GMSGFMT" >&6; }
6797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798
$as_echo "no" >&6; }
6802
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
6803
as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
6805
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
6806
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
6807
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
6808
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
6809
as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
6812
# Extract the first word of "perl", so it can be a program name with args.
6813
set dummy perl; ac_word=$2
6814
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815
$as_echo_n "checking for $ac_word... " >&6; }
6816
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
6817
$as_echo_n "(cached) " >&6
6819
case $INTLTOOL_PERL in
6821
ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6824
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828
test -z "$as_dir" && as_dir=.
6829
for ac_exec_ext in '' $ac_executable_extensions; do
6830
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831
ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6832
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6843
if test -n "$INTLTOOL_PERL"; then
6844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
6845
$as_echo "$INTLTOOL_PERL" >&6; }
6847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848
$as_echo "no" >&6; }
6852
if test -z "$INTLTOOL_PERL"; then
6853
as_fn_error "perl not found" "$LINENO" 5
6855
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
6856
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
6857
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
6858
if test $? -ne 0; then
6859
as_fn_error "perl 5.8.1 is required for intltool" "$LINENO" 5
6861
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
6862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
6863
$as_echo "$IT_PERL_VERSION" >&6; }
6865
if test "x" != "xno-xml"; then
6866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
6867
$as_echo_n "checking for XML::Parser... " >&6; }
6868
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
6869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6870
$as_echo "ok" >&6; }
6872
as_fn_error "XML::Parser perl module is required for intltool" "$LINENO" 5
6876
# Substitute ALL_LINGUAS so we can use it in po/Makefile
6879
# Set DATADIRNAME correctly if it is not set yet
6880
# (copied from glib-gettext.m4)
6881
if test -z "$DATADIRNAME"; then
6882
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883
/* end confdefs.h. */
6888
extern int _nl_msg_cat_cntr;
6889
return _nl_msg_cat_cntr
6894
if ac_fn_c_try_link "$LINENO"; then :
6899
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
6900
if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
6912
rm -f core conftest.err conftest.$ac_objext \
6913
conftest$ac_exeext conftest.$ac_ext
6798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCONF" >&5
6799
$as_echo_n "checking for GCONF... " >&6; }
6801
if test -n "$PKG_CONFIG"; then
6802
if test -n "$GCONF_CFLAGS"; then
6803
pkg_cv_GCONF_CFLAGS="$GCONF_CFLAGS"
6805
if test -n "$PKG_CONFIG" && \
6806
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 >= 1.1.9\""; } >&5
6807
($PKG_CONFIG --exists --print-errors "gconf-2.0 >= 1.1.9") 2>&5
6809
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810
test $ac_status = 0; }; then
6811
pkg_cv_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 1.1.9" 2>/dev/null`
6819
if test -n "$PKG_CONFIG"; then
6820
if test -n "$GCONF_LIBS"; then
6821
pkg_cv_GCONF_LIBS="$GCONF_LIBS"
6823
if test -n "$PKG_CONFIG" && \
6824
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gconf-2.0 >= 1.1.9\""; } >&5
6825
($PKG_CONFIG --exists --print-errors "gconf-2.0 >= 1.1.9") 2>&5
6827
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6828
test $ac_status = 0; }; then
6829
pkg_cv_GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 1.1.9" 2>/dev/null`
6840
if test $pkg_failed = yes; then
6842
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6843
_pkg_short_errors_supported=yes
6845
_pkg_short_errors_supported=no
6847
if test $_pkg_short_errors_supported = yes; then
6848
GCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gconf-2.0 >= 1.1.9"`
6850
GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 1.1.9"`
6852
# Put the nasty error message in config.log where it belongs
6853
echo "$GCONF_PKG_ERRORS" >&5
6855
as_fn_error "Package requirements (gconf-2.0 >= 1.1.9) were not met:
6859
Consider adjusting the PKG_CONFIG_PATH environment variable if you
6860
installed software in a non-standard prefix.
6862
Alternatively, you may set the environment variables GCONF_CFLAGS
6863
and GCONF_LIBS to avoid the need to call pkg-config.
6864
See the pkg-config man page for more details.
6866
elif test $pkg_failed = untried; then
6867
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6868
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6869
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
6870
is in your PATH or set the PKG_CONFIG environment variable to the full
6873
Alternatively, you may set the environment variables GCONF_CFLAGS
6874
and GCONF_LIBS to avoid the need to call pkg-config.
6875
See the pkg-config man page for more details.
6877
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6878
See \`config.log' for more details." "$LINENO" 5; }
6880
GCONF_CFLAGS=$pkg_cv_GCONF_CFLAGS
6881
GCONF_LIBS=$pkg_cv_GCONF_LIBS
6882
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6883
$as_echo "yes" >&6; }
6890
# Extract the first word of "scrollkeeper-config", so it can be a program name with args.
6891
set dummy scrollkeeper-config; ac_word=$2
6892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893
$as_echo_n "checking for $ac_word... " >&6; }
6894
if test "${ac_cv_path_SCROLLKEEPER_CONFIG+set}" = set; then :
6895
$as_echo_n "(cached) " >&6
6897
case $SCROLLKEEPER_CONFIG in
6899
ac_cv_path_SCROLLKEEPER_CONFIG="$SCROLLKEEPER_CONFIG" # Let the user override the test with a path.
6902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906
test -z "$as_dir" && as_dir=.
6907
for ac_exec_ext in '' $ac_executable_extensions; do
6908
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909
ac_cv_path_SCROLLKEEPER_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6910
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917
test -z "$ac_cv_path_SCROLLKEEPER_CONFIG" && ac_cv_path_SCROLLKEEPER_CONFIG="no"
6921
SCROLLKEEPER_CONFIG=$ac_cv_path_SCROLLKEEPER_CONFIG
6922
if test -n "$SCROLLKEEPER_CONFIG"; then
6923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCROLLKEEPER_CONFIG" >&5
6924
$as_echo "$SCROLLKEEPER_CONFIG" >&6; }
6926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927
$as_echo "no" >&6; }
6931
if test x$SCROLLKEEPER_CONFIG = xno; then
6932
as_fn_error "Couldn't find scrollkeeper-config. Please install the scrollkeeper package" "$LINENO" 5
6920
6936
GETTEXT_PACKAGE=gcalctool
6939
cat >>confdefs.h <<_ACEOF
6940
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6946
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6947
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6952
macro_version='2.2.6'
6953
macro_revision='1.3012'
6967
ltmain="$ac_aux_dir/ltmain.sh"
6969
# Make sure we can run config.sub.
6970
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6971
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6974
$as_echo_n "checking build system type... " >&6; }
6975
if test "${ac_cv_build+set}" = set; then :
6976
$as_echo_n "(cached) " >&6
6978
ac_build_alias=$build_alias
6979
test "x$ac_build_alias" = x &&
6980
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6981
test "x$ac_build_alias" = x &&
6982
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6983
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6984
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6988
$as_echo "$ac_cv_build" >&6; }
6989
case $ac_cv_build in
6991
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6994
ac_save_IFS=$IFS; IFS='-'
7000
# Remember, the first character of IFS is used to create $*,
7001
# except with old shells:
7004
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7008
$as_echo_n "checking host system type... " >&6; }
7009
if test "${ac_cv_host+set}" = set; then :
7010
$as_echo_n "(cached) " >&6
7012
if test "x$host_alias" = x; then
7013
ac_cv_host=$ac_cv_build
7015
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7016
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7021
$as_echo "$ac_cv_host" >&6; }
7024
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
7027
ac_save_IFS=$IFS; IFS='-'
7033
# Remember, the first character of IFS is used to create $*,
7034
# except with old shells:
7037
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7041
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7042
if test "${ac_cv_path_SED+set}" = set; then :
7043
$as_echo_n "(cached) " >&6
7045
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7046
for ac_i in 1 2 3 4 5 6 7; do
7047
ac_script="$ac_script$as_nl$ac_script"
7049
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7050
{ ac_script=; unset ac_script;}
7051
if test -z "$SED"; then
7052
ac_path_SED_found=false
7053
# Loop through the user's path and test for each of PROGNAME-LIST
7054
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058
test -z "$as_dir" && as_dir=.
7059
for ac_prog in sed gsed; do
7060
for ac_exec_ext in '' $ac_executable_extensions; do
7061
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7062
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7063
# Check for GNU ac_path_SED and select it if it is found.
7064
# Check for GNU $ac_path_SED
7065
case `"$ac_path_SED" --version 2>&1` in
7067
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7070
$as_echo_n 0123456789 >"conftest.in"
7073
cat "conftest.in" "conftest.in" >"conftest.tmp"
7074
mv "conftest.tmp" "conftest.in"
7075
cp "conftest.in" "conftest.nl"
7076
$as_echo '' >> "conftest.nl"
7077
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7078
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7079
as_fn_arith $ac_count + 1 && ac_count=$as_val
7080
if test $ac_count -gt ${ac_path_SED_max-0}; then
7081
# Best one so far, save it but keep looking for a better one
7082
ac_cv_path_SED="$ac_path_SED"
7083
ac_path_SED_max=$ac_count
7085
# 10*(2^10) chars as input seems more than enough
7086
test $ac_count -gt 10 && break
7088
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7091
$ac_path_SED_found && break 3
7096
if test -z "$ac_cv_path_SED"; then
7097
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7105
$as_echo "$ac_cv_path_SED" >&6; }
7106
SED="$ac_cv_path_SED"
7109
test -z "$SED" && SED=sed
7110
Xsed="$SED -e 1s/^X//"
7122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7123
$as_echo_n "checking for fgrep... " >&6; }
7124
if test "${ac_cv_path_FGREP+set}" = set; then :
7125
$as_echo_n "(cached) " >&6
7127
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7128
then ac_cv_path_FGREP="$GREP -F"
7130
if test -z "$FGREP"; then
7131
ac_path_FGREP_found=false
7132
# Loop through the user's path and test for each of PROGNAME-LIST
7133
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7137
test -z "$as_dir" && as_dir=.
7138
for ac_prog in fgrep; do
7139
for ac_exec_ext in '' $ac_executable_extensions; do
7140
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7141
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7142
# Check for GNU ac_path_FGREP and select it if it is found.
7143
# Check for GNU $ac_path_FGREP
7144
case `"$ac_path_FGREP" --version 2>&1` in
7146
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7149
$as_echo_n 0123456789 >"conftest.in"
7152
cat "conftest.in" "conftest.in" >"conftest.tmp"
7153
mv "conftest.tmp" "conftest.in"
7154
cp "conftest.in" "conftest.nl"
7155
$as_echo 'FGREP' >> "conftest.nl"
7156
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7157
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7158
as_fn_arith $ac_count + 1 && ac_count=$as_val
7159
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7160
# Best one so far, save it but keep looking for a better one
7161
ac_cv_path_FGREP="$ac_path_FGREP"
7162
ac_path_FGREP_max=$ac_count
7164
# 10*(2^10) chars as input seems more than enough
7165
test $ac_count -gt 10 && break
7167
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7170
$ac_path_FGREP_found && break 3
7175
if test -z "$ac_cv_path_FGREP"; then
7176
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7179
ac_cv_path_FGREP=$FGREP
7184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7185
$as_echo "$ac_cv_path_FGREP" >&6; }
7186
FGREP="$ac_cv_path_FGREP"
7189
test -z "$GREP" && GREP=grep
7209
# Check whether --with-gnu-ld was given.
7210
if test "${with_gnu_ld+set}" = set; then :
7211
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7217
if test "$GCC" = yes; then
7218
# Check if gcc -print-prog-name=ld gives a path.
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7220
$as_echo_n "checking for ld used by $CC... " >&6; }
7223
# gcc leaves a trailing carriage return which upsets mingw
7224
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7226
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7229
# Accept absolute paths.
7231
re_direlt='/[^/][^/]*/\.\./'
7232
# Canonicalize the pathname of ld
7233
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7234
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7235
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7237
test -z "$LD" && LD="$ac_prog"
7240
# If it fails, then pretend we aren't using GCC.
7244
# If it is relative, then search for the first ld in PATH.
7248
elif test "$with_gnu_ld" = yes; then
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7250
$as_echo_n "checking for GNU ld... " >&6; }
7252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7253
$as_echo_n "checking for non-GNU ld... " >&6; }
7255
if test "${lt_cv_path_LD+set}" = set; then :
7256
$as_echo_n "(cached) " >&6
7258
if test -z "$LD"; then
7259
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7260
for ac_dir in $PATH; do
7262
test -z "$ac_dir" && ac_dir=.
7263
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7264
lt_cv_path_LD="$ac_dir/$ac_prog"
7265
# Check to see if the program is GNU ld. I'd rather use --version,
7266
# but apparently some variants of GNU ld only accept -v.
7267
# Break only if it was the GNU/non-GNU ld that we prefer.
7268
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7269
*GNU* | *'with BFD'*)
7270
test "$with_gnu_ld" != no && break
7273
test "$with_gnu_ld" != yes && break
7280
lt_cv_path_LD="$LD" # Let the user override the test with a path.
7285
if test -n "$LD"; then
7286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7287
$as_echo "$LD" >&6; }
7289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290
$as_echo "no" >&6; }
7292
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7294
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7295
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7296
$as_echo_n "(cached) " >&6
7298
# I'd rather use --version here, but apparently some GNU lds only accept -v.
7299
case `$LD -v 2>&1 </dev/null` in
7300
*GNU* | *'with BFD'*)
7301
lt_cv_prog_gnu_ld=yes
7304
lt_cv_prog_gnu_ld=no
7308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7309
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7310
with_gnu_ld=$lt_cv_prog_gnu_ld
7320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7321
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7322
if test "${lt_cv_path_NM+set}" = set; then :
7323
$as_echo_n "(cached) " >&6
7325
if test -n "$NM"; then
7326
# Let the user override the test.
7329
lt_nm_to_check="${ac_tool_prefix}nm"
7330
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7331
lt_nm_to_check="$lt_nm_to_check nm"
7333
for lt_tmp_nm in $lt_nm_to_check; do
7334
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7335
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7337
test -z "$ac_dir" && ac_dir=.
7338
tmp_nm="$ac_dir/$lt_tmp_nm"
7339
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7340
# Check to see if the nm accepts a BSD-compat flag.
7341
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7342
# nm: unknown option "B" ignored
7343
# Tru64's nm complains that /dev/null is an invalid object file
7344
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7345
*/dev/null* | *'Invalid file or object type'*)
7346
lt_cv_path_NM="$tmp_nm -B"
7350
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7352
lt_cv_path_NM="$tmp_nm -p"
7356
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7357
continue # so that we can try to find one that supports BSD flags
7366
: ${lt_cv_path_NM=no}
7369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7370
$as_echo "$lt_cv_path_NM" >&6; }
7371
if test "$lt_cv_path_NM" != "no"; then
7374
# Didn't find any BSD compatible name lister, look for dumpbin.
7375
if test -n "$ac_tool_prefix"; then
7376
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7378
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7379
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381
$as_echo_n "checking for $ac_word... " >&6; }
7382
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7383
$as_echo_n "(cached) " >&6
7385
if test -n "$DUMPBIN"; then
7386
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7388
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392
test -z "$as_dir" && as_dir=.
7393
for ac_exec_ext in '' $ac_executable_extensions; do
7394
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7395
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7396
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405
DUMPBIN=$ac_cv_prog_DUMPBIN
7406
if test -n "$DUMPBIN"; then
7407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7408
$as_echo "$DUMPBIN" >&6; }
7410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411
$as_echo "no" >&6; }
7415
test -n "$DUMPBIN" && break
7418
if test -z "$DUMPBIN"; then
7419
ac_ct_DUMPBIN=$DUMPBIN
7420
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7422
# Extract the first word of "$ac_prog", so it can be a program name with args.
7423
set dummy $ac_prog; ac_word=$2
7424
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425
$as_echo_n "checking for $ac_word... " >&6; }
7426
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7427
$as_echo_n "(cached) " >&6
7429
if test -n "$ac_ct_DUMPBIN"; then
7430
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436
test -z "$as_dir" && as_dir=.
7437
for ac_exec_ext in '' $ac_executable_extensions; do
7438
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7440
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7450
if test -n "$ac_ct_DUMPBIN"; then
7451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7452
$as_echo "$ac_ct_DUMPBIN" >&6; }
7454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455
$as_echo "no" >&6; }
7459
test -n "$ac_ct_DUMPBIN" && break
7462
if test "x$ac_ct_DUMPBIN" = x; then
7465
case $cross_compiling:$ac_tool_warned in
7467
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469
ac_tool_warned=yes ;;
7471
DUMPBIN=$ac_ct_DUMPBIN
7476
if test "$DUMPBIN" != ":"; then
7480
test -z "$NM" && NM=nm
7487
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7488
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7489
if test "${lt_cv_nm_interface+set}" = set; then :
7490
$as_echo_n "(cached) " >&6
7492
lt_cv_nm_interface="BSD nm"
7493
echo "int some_variable = 0;" > conftest.$ac_ext
7494
(eval echo "\"\$as_me:7494: $ac_compile\"" >&5)
7495
(eval "$ac_compile" 2>conftest.err)
7496
cat conftest.err >&5
7497
(eval echo "\"\$as_me:7497: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7498
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7499
cat conftest.err >&5
7500
(eval echo "\"\$as_me:7500: output\"" >&5)
7501
cat conftest.out >&5
7502
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7503
lt_cv_nm_interface="MS dumpbin"
7507
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7508
$as_echo "$lt_cv_nm_interface" >&6; }
7510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7511
$as_echo_n "checking whether ln -s works... " >&6; }
7513
if test "$LN_S" = "ln -s"; then
7514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7515
$as_echo "yes" >&6; }
7517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7518
$as_echo "no, using $LN_S" >&6; }
7521
# find the maximum length of command line arguments
7522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7523
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7524
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7525
$as_echo_n "(cached) " >&6
7532
# On DJGPP, this test can blow up pretty badly due to problems in libc
7533
# (any single argument exceeding 2000 bytes causes a buffer overrun
7534
# during glob expansion). Even if it were fixed, the result of this
7535
# check would be larger than it should be.
7536
lt_cv_sys_max_cmd_len=12288; # 12K is about right
7540
# Under GNU Hurd, this test is not required because there is
7541
# no limit to the length of command line arguments.
7542
# Libtool will interpret -1 as no limit whatsoever
7543
lt_cv_sys_max_cmd_len=-1;
7546
cygwin* | mingw* | cegcc*)
7547
# On Win9x/ME, this test blows up -- it succeeds, but takes
7548
# about 5 minutes as the teststring grows exponentially.
7549
# Worse, since 9x/ME are not pre-emptively multitasking,
7550
# you end up with a "frozen" computer, even though with patience
7551
# the test eventually succeeds (with a max line length of 256k).
7552
# Instead, let's just punt: use the minimum linelength reported by
7553
# all of the supported platforms: 8192 (on NT/2K/XP).
7554
lt_cv_sys_max_cmd_len=8192;
7558
# On AmigaOS with pdksh, this test takes hours, literally.
7559
# So we just punt and use a minimum line length of 8192.
7560
lt_cv_sys_max_cmd_len=8192;
7563
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7564
# This has been around since 386BSD, at least. Likely further.
7565
if test -x /sbin/sysctl; then
7566
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7567
elif test -x /usr/sbin/sysctl; then
7568
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7570
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7572
# And add a safety zone
7573
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7574
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7578
# We know the value 262144 and hardcode it with a safety zone (like BSD)
7579
lt_cv_sys_max_cmd_len=196608
7583
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7584
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7585
# nice to cause kernel panics so lets avoid the loop below.
7586
# First set a reasonable default.
7587
lt_cv_sys_max_cmd_len=16384
7589
if test -x /sbin/sysconfig; then
7590
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7591
*1*) lt_cv_sys_max_cmd_len=-1 ;;
7596
lt_cv_sys_max_cmd_len=102400
7598
sysv5* | sco5v6* | sysv4.2uw2*)
7599
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7600
if test -n "$kargmax"; then
7601
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7603
lt_cv_sys_max_cmd_len=32768
7607
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7608
if test -n "$lt_cv_sys_max_cmd_len"; then
7609
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7610
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7612
# Make teststring a little bigger before we do anything with it.
7613
# a 1K string should be a reasonable start.
7614
for i in 1 2 3 4 5 6 7 8 ; do
7615
teststring=$teststring$teststring
7617
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7618
# If test is not a shell built-in, we'll probably end up computing a
7619
# maximum length that is only half of the actual maximum length, but
7621
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7622
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7623
test $i != 17 # 1/2 MB should be enough
7626
teststring=$teststring$teststring
7628
# Only check the string length outside the loop.
7629
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7631
# Add a significant safety factor because C++ compilers can tack on
7632
# massive amounts of additional arguments before passing them to the
7633
# linker. It appears as though 1/2 is a usable value.
7634
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7641
if test -n $lt_cv_sys_max_cmd_len ; then
7642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7643
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7646
$as_echo "none" >&6; }
7648
max_cmd_len=$lt_cv_sys_max_cmd_len
7659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7660
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7661
# Try some XSI features
7664
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7666
&& eval 'test $(( 1 + 1 )) -eq 2 \
7667
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7669
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7670
$as_echo "$xsi_shell" >&6; }
7673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7674
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7676
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7678
&& lt_shell_append=yes
7679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7680
$as_echo "$lt_shell_append" >&6; }
7683
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7693
# test EBCDIC or ASCII
7694
case `echo X|tr X '\101'` in
7695
A) # ASCII based system
7696
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7697
lt_SP2NL='tr \040 \012'
7698
lt_NL2SP='tr \015\012 \040\040'
7700
*) # EBCDIC based system
7701
lt_SP2NL='tr \100 \n'
7702
lt_NL2SP='tr \r\n \100\100'
7714
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7715
$as_echo_n "checking for $LD option to reload object files... " >&6; }
7716
if test "${lt_cv_ld_reload_flag+set}" = set; then :
7717
$as_echo_n "(cached) " >&6
7719
lt_cv_ld_reload_flag='-r'
7721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7722
$as_echo "$lt_cv_ld_reload_flag" >&6; }
7723
reload_flag=$lt_cv_ld_reload_flag
7724
case $reload_flag in
7726
*) reload_flag=" $reload_flag" ;;
7728
reload_cmds='$LD$reload_flag -o $output$reload_objs'
7731
if test "$GCC" = yes; then
7732
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7734
reload_cmds='$LD$reload_flag -o $output$reload_objs'
7747
if test -n "$ac_tool_prefix"; then
7748
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7749
set dummy ${ac_tool_prefix}objdump; ac_word=$2
7750
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751
$as_echo_n "checking for $ac_word... " >&6; }
7752
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7753
$as_echo_n "(cached) " >&6
7755
if test -n "$OBJDUMP"; then
7756
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7758
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762
test -z "$as_dir" && as_dir=.
7763
for ac_exec_ext in '' $ac_executable_extensions; do
7764
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7765
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7766
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775
OBJDUMP=$ac_cv_prog_OBJDUMP
7776
if test -n "$OBJDUMP"; then
7777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7778
$as_echo "$OBJDUMP" >&6; }
7780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781
$as_echo "no" >&6; }
7786
if test -z "$ac_cv_prog_OBJDUMP"; then
7787
ac_ct_OBJDUMP=$OBJDUMP
7788
# Extract the first word of "objdump", so it can be a program name with args.
7789
set dummy objdump; ac_word=$2
7790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791
$as_echo_n "checking for $ac_word... " >&6; }
7792
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7793
$as_echo_n "(cached) " >&6
7795
if test -n "$ac_ct_OBJDUMP"; then
7796
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802
test -z "$as_dir" && as_dir=.
7803
for ac_exec_ext in '' $ac_executable_extensions; do
7804
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7805
ac_cv_prog_ac_ct_OBJDUMP="objdump"
7806
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7816
if test -n "$ac_ct_OBJDUMP"; then
7817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7818
$as_echo "$ac_ct_OBJDUMP" >&6; }
7820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821
$as_echo "no" >&6; }
7824
if test "x$ac_ct_OBJDUMP" = x; then
7827
case $cross_compiling:$ac_tool_warned in
7829
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7830
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7831
ac_tool_warned=yes ;;
7833
OBJDUMP=$ac_ct_OBJDUMP
7836
OBJDUMP="$ac_cv_prog_OBJDUMP"
7839
test -z "$OBJDUMP" && OBJDUMP=objdump
7849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7850
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7851
if test "${lt_cv_deplibs_check_method+set}" = set; then :
7852
$as_echo_n "(cached) " >&6
7854
lt_cv_file_magic_cmd='$MAGIC_CMD'
7855
lt_cv_file_magic_test_file=
7856
lt_cv_deplibs_check_method='unknown'
7857
# Need to set the preceding variable on all platforms that support
7858
# interlibrary dependencies.
7859
# 'none' -- dependencies not supported.
7860
# `unknown' -- same as none, but documents that we really don't know.
7861
# 'pass_all' -- all dependencies passed with no checks.
7862
# 'test_compile' -- check by making test program.
7863
# 'file_magic [[regex]]' -- check by looking for files in library path
7864
# which responds to the $file_magic_cmd with a given extended regex.
7865
# If you have `file' or equivalent on your system and you're not sure
7866
# whether `pass_all' will *always* work, you probably want this one.
7870
lt_cv_deplibs_check_method=pass_all
7874
lt_cv_deplibs_check_method=pass_all
7878
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7879
lt_cv_file_magic_cmd='/usr/bin/file -L'
7880
lt_cv_file_magic_test_file=/shlib/libc.so
7884
# func_win32_libid is a shell function defined in ltmain.sh
7885
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7886
lt_cv_file_magic_cmd='func_win32_libid'
7890
# Base MSYS/MinGW do not provide the 'file' command needed by
7891
# func_win32_libid shell function, so use a weaker test based on 'objdump',
7892
# unless we find 'file', for example because we are cross-compiling.
7893
if ( file / ) >/dev/null 2>&1; then
7894
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7895
lt_cv_file_magic_cmd='func_win32_libid'
7897
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7898
lt_cv_file_magic_cmd='$OBJDUMP -f'
7903
# use the weaker test based on 'objdump'. See mingw*.
7904
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7905
lt_cv_file_magic_cmd='$OBJDUMP -f'
7908
darwin* | rhapsody*)
7909
lt_cv_deplibs_check_method=pass_all
7912
freebsd* | dragonfly*)
7913
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7916
# Not sure whether the presence of OpenBSD here was a mistake.
7917
# Let's accept both of them until this is cleared up.
7918
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7919
lt_cv_file_magic_cmd=/usr/bin/file
7920
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7924
lt_cv_deplibs_check_method=pass_all
7929
lt_cv_deplibs_check_method=pass_all
7932
hpux10.20* | hpux11*)
7933
lt_cv_file_magic_cmd=/usr/bin/file
7936
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7937
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7940
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]'
7941
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7944
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7945
lt_cv_file_magic_test_file=/usr/lib/libc.sl
7951
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7952
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7955
irix5* | irix6* | nonstopux*)
7957
*-32|*"-32 ") libmagic=32-bit;;
7958
*-n32|*"-n32 ") libmagic=N32;;
7959
*-64|*"-64 ") libmagic=64-bit;;
7960
*) libmagic=never-match;;
7962
lt_cv_deplibs_check_method=pass_all
7965
# This must be Linux ELF.
7966
linux* | k*bsd*-gnu)
7967
lt_cv_deplibs_check_method=pass_all
7970
netbsd* | netbsdelf*-gnu)
7971
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7972
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7974
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7979
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7980
lt_cv_file_magic_cmd=/usr/bin/file
7981
lt_cv_file_magic_test_file=/usr/lib/libnls.so
7985
lt_cv_deplibs_check_method=pass_all
7989
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7990
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7992
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7996
osf3* | osf4* | osf5*)
7997
lt_cv_deplibs_check_method=pass_all
8001
lt_cv_deplibs_check_method=pass_all
8005
lt_cv_deplibs_check_method=pass_all
8008
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8009
lt_cv_deplibs_check_method=pass_all
8013
case $host_vendor in
8015
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]'
8016
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8019
lt_cv_deplibs_check_method=pass_all
8022
lt_cv_file_magic_cmd='/bin/file'
8023
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8026
lt_cv_file_magic_cmd='/bin/file'
8027
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8028
lt_cv_file_magic_test_file=/lib/libc.so
8031
lt_cv_deplibs_check_method=pass_all
8034
lt_cv_deplibs_check_method=pass_all
8040
lt_cv_deplibs_check_method=pass_all
8045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8046
$as_echo "$lt_cv_deplibs_check_method" >&6; }
8047
file_magic_cmd=$lt_cv_file_magic_cmd
8048
deplibs_check_method=$lt_cv_deplibs_check_method
8049
test -z "$deplibs_check_method" && deplibs_check_method=unknown
8062
if test -n "$ac_tool_prefix"; then
8063
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8064
set dummy ${ac_tool_prefix}ar; ac_word=$2
8065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066
$as_echo_n "checking for $ac_word... " >&6; }
8067
if test "${ac_cv_prog_AR+set}" = set; then :
8068
$as_echo_n "(cached) " >&6
8070
if test -n "$AR"; then
8071
ac_cv_prog_AR="$AR" # Let the user override the test.
8073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077
test -z "$as_dir" && as_dir=.
8078
for ac_exec_ext in '' $ac_executable_extensions; do
8079
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8080
ac_cv_prog_AR="${ac_tool_prefix}ar"
8081
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8091
if test -n "$AR"; then
8092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8093
$as_echo "$AR" >&6; }
8095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096
$as_echo "no" >&6; }
8101
if test -z "$ac_cv_prog_AR"; then
8103
# Extract the first word of "ar", so it can be a program name with args.
8104
set dummy ar; ac_word=$2
8105
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106
$as_echo_n "checking for $ac_word... " >&6; }
8107
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8108
$as_echo_n "(cached) " >&6
8110
if test -n "$ac_ct_AR"; then
8111
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8113
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117
test -z "$as_dir" && as_dir=.
8118
for ac_exec_ext in '' $ac_executable_extensions; do
8119
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8120
ac_cv_prog_ac_ct_AR="ar"
8121
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130
ac_ct_AR=$ac_cv_prog_ac_ct_AR
8131
if test -n "$ac_ct_AR"; then
8132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8133
$as_echo "$ac_ct_AR" >&6; }
8135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136
$as_echo "no" >&6; }
8139
if test "x$ac_ct_AR" = x; then
8142
case $cross_compiling:$ac_tool_warned in
8144
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8145
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8146
ac_tool_warned=yes ;;
8154
test -z "$AR" && AR=ar
8155
test -z "$AR_FLAGS" && AR_FLAGS=cru
8167
if test -n "$ac_tool_prefix"; then
8168
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8169
set dummy ${ac_tool_prefix}strip; ac_word=$2
8170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171
$as_echo_n "checking for $ac_word... " >&6; }
8172
if test "${ac_cv_prog_STRIP+set}" = set; then :
8173
$as_echo_n "(cached) " >&6
8175
if test -n "$STRIP"; then
8176
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8178
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182
test -z "$as_dir" && as_dir=.
8183
for ac_exec_ext in '' $ac_executable_extensions; do
8184
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8185
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8186
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195
STRIP=$ac_cv_prog_STRIP
8196
if test -n "$STRIP"; then
8197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8198
$as_echo "$STRIP" >&6; }
8200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201
$as_echo "no" >&6; }
8206
if test -z "$ac_cv_prog_STRIP"; then
8208
# Extract the first word of "strip", so it can be a program name with args.
8209
set dummy strip; ac_word=$2
8210
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211
$as_echo_n "checking for $ac_word... " >&6; }
8212
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8213
$as_echo_n "(cached) " >&6
8215
if test -n "$ac_ct_STRIP"; then
8216
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222
test -z "$as_dir" && as_dir=.
8223
for ac_exec_ext in '' $ac_executable_extensions; do
8224
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8225
ac_cv_prog_ac_ct_STRIP="strip"
8226
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8236
if test -n "$ac_ct_STRIP"; then
8237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8238
$as_echo "$ac_ct_STRIP" >&6; }
8240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241
$as_echo "no" >&6; }
8244
if test "x$ac_ct_STRIP" = x; then
8247
case $cross_compiling:$ac_tool_warned in
8249
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8250
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8251
ac_tool_warned=yes ;;
8256
STRIP="$ac_cv_prog_STRIP"
8259
test -z "$STRIP" && STRIP=:
8266
if test -n "$ac_tool_prefix"; then
8267
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8268
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270
$as_echo_n "checking for $ac_word... " >&6; }
8271
if test "${ac_cv_prog_RANLIB+set}" = set; then :
8272
$as_echo_n "(cached) " >&6
8274
if test -n "$RANLIB"; then
8275
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281
test -z "$as_dir" && as_dir=.
8282
for ac_exec_ext in '' $ac_executable_extensions; do
8283
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8285
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294
RANLIB=$ac_cv_prog_RANLIB
8295
if test -n "$RANLIB"; then
8296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8297
$as_echo "$RANLIB" >&6; }
8299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300
$as_echo "no" >&6; }
8305
if test -z "$ac_cv_prog_RANLIB"; then
8306
ac_ct_RANLIB=$RANLIB
8307
# Extract the first word of "ranlib", so it can be a program name with args.
8308
set dummy ranlib; ac_word=$2
8309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310
$as_echo_n "checking for $ac_word... " >&6; }
8311
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8312
$as_echo_n "(cached) " >&6
8314
if test -n "$ac_ct_RANLIB"; then
8315
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321
test -z "$as_dir" && as_dir=.
8322
for ac_exec_ext in '' $ac_executable_extensions; do
8323
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8324
ac_cv_prog_ac_ct_RANLIB="ranlib"
8325
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8335
if test -n "$ac_ct_RANLIB"; then
8336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8337
$as_echo "$ac_ct_RANLIB" >&6; }
8339
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340
$as_echo "no" >&6; }
8343
if test "x$ac_ct_RANLIB" = x; then
8346
case $cross_compiling:$ac_tool_warned in
8348
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8349
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8350
ac_tool_warned=yes ;;
8352
RANLIB=$ac_ct_RANLIB
8355
RANLIB="$ac_cv_prog_RANLIB"
8358
test -z "$RANLIB" && RANLIB=:
8365
# Determine commands to create old-style static archives.
8366
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8367
old_postinstall_cmds='chmod 644 $oldlib'
8368
old_postuninstall_cmds=
8370
if test -n "$RANLIB"; then
8373
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8376
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8379
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8415
# If no C compiler was specified, use CC.
8418
# If no C compiler flags were specified, use CFLAGS.
8419
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8421
# Allow CC to be a program name with arguments.
8425
# Check for command to grab the raw symbol name followed by C symbol from nm.
8426
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8427
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8428
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8429
$as_echo_n "(cached) " >&6
8432
# These are sane defaults that work on at least a few old systems.
8433
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8435
# Character class describing NM global symbol codes.
8436
symcode='[BCDEGRST]'
8438
# Regexp to match symbols that can be accessed directly from C.
8439
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8441
# Define system-specific variables.
8446
cygwin* | mingw* | pw32* | cegcc*)
8447
symcode='[ABCDGISTW]'
8450
if test "$host_cpu" = ia64; then
8451
symcode='[ABCDEGRST]'
8455
symcode='[BCDEGRST]'
8458
symcode='[BCDEGQRST]'
8469
sysv5* | sco5v6* | unixware* | OpenUNIX*)
8477
# If we're using GNU nm, then use its standard symbol codes.
8478
case `$NM -V 2>&1` in
8479
*GNU* | *'with BFD'*)
8480
symcode='[ABCDGIRSTW]' ;;
8483
# Transform an extracted symbol line into a proper C declaration.
8484
# Some systems (esp. on ia64) link data and code symbols differently,
8485
# so use this general approach.
8486
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8488
# Transform an extracted symbol line into symbol name and symbol address
8489
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8490
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8492
# Handle CRLF in mingw tool chain
8496
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8500
# Try without a prefix underscore, then with it.
8501
for ac_symprfx in "" "_"; do
8503
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8504
symxfrm="\\1 $ac_symprfx\\2 \\2"
8506
# Write the raw and C identifiers.
8507
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8508
# Fake it for dumpbin and say T for any non-static function
8509
# and D for any global variable.
8510
# Also find C++ and __fastcall symbols from MSVC++,
8511
# which start with @ or ?.
8512
lt_cv_sys_global_symbol_pipe="$AWK '"\
8513
" {last_section=section; section=\$ 3};"\
8514
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8515
" \$ 0!~/External *\|/{next};"\
8516
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8517
" {if(hide[section]) next};"\
8518
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8519
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8520
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
8521
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8522
" ' prfx=^$ac_symprfx"
8524
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8527
# Check to see that the pipe works correctly.
8531
cat > conftest.$ac_ext <<_LT_EOF
8536
void nm_test_func(void);
8537
void nm_test_func(void){}
8541
int main(){nm_test_var='a';nm_test_func();return(0);}
8544
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8545
(eval $ac_compile) 2>&5
8547
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8548
test $ac_status = 0; }; then
8549
# Now try to grab the symbols.
8551
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8552
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8554
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8555
test $ac_status = 0; } && test -s "$nlist"; then
8556
# Try sorting and uniquifying the output.
8557
if sort "$nlist" | uniq > "$nlist"T; then
8558
mv -f "$nlist"T "$nlist"
8563
# Make sure that we snagged all the symbols we need.
8564
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8565
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8566
cat <<_LT_EOF > conftest.$ac_ext
8572
# Now generate the symbol file.
8573
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8575
cat <<_LT_EOF >> conftest.$ac_ext
8577
/* The mapping between symbol names and symbols. */
8582
lt__PROGRAM__LTX_preloaded_symbols[] =
8584
{ "@PROGRAM@", (void *) 0 },
8586
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8587
cat <<\_LT_EOF >> conftest.$ac_ext
8591
/* This works around a problem in FreeBSD linker */
8592
#ifdef FREEBSD_WORKAROUND
8593
static const void *lt_preloaded_setup() {
8594
return lt__PROGRAM__LTX_preloaded_symbols;
8602
# Now try linking the two files.
8603
mv conftest.$ac_objext conftstm.$ac_objext
8604
lt_save_LIBS="$LIBS"
8605
lt_save_CFLAGS="$CFLAGS"
8606
LIBS="conftstm.$ac_objext"
8607
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8608
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8609
(eval $ac_link) 2>&5
8611
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8612
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8615
LIBS="$lt_save_LIBS"
8616
CFLAGS="$lt_save_CFLAGS"
8618
echo "cannot find nm_test_func in $nlist" >&5
8621
echo "cannot find nm_test_var in $nlist" >&5
8624
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8627
echo "$progname: failed program was:" >&5
8628
cat conftest.$ac_ext >&5
8630
rm -rf conftest* conftst*
8632
# Do not use the global_symbol_pipe unless it works.
8633
if test "$pipe_works" = yes; then
8636
lt_cv_sys_global_symbol_pipe=
8642
if test -z "$lt_cv_sys_global_symbol_pipe"; then
8643
lt_cv_sys_global_symbol_to_cdecl=
8645
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8647
$as_echo "failed" >&6; }
8649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8650
$as_echo "ok" >&6; }
8674
# Check whether --enable-libtool-lock was given.
8675
if test "${enable_libtool_lock+set}" = set; then :
8676
enableval=$enable_libtool_lock;
8679
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8681
# Some flags need to be propagated to the compiler or linker for good
8685
# Find out which ABI we are using.
8686
echo 'int i;' > conftest.$ac_ext
8687
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8688
(eval $ac_compile) 2>&5
8690
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8691
test $ac_status = 0; }; then
8692
case `/usr/bin/file conftest.$ac_objext` in
8704
# Find out which ABI we are using.
8705
echo '#line 8705 "configure"' > conftest.$ac_ext
8706
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8707
(eval $ac_compile) 2>&5
8709
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8710
test $ac_status = 0; }; then
8711
if test "$lt_cv_prog_gnu_ld" = yes; then
8712
case `/usr/bin/file conftest.$ac_objext` in
8714
LD="${LD-ld} -melf32bsmip"
8717
LD="${LD-ld} -melf32bmipn32"
8720
LD="${LD-ld} -melf64bmip"
8724
case `/usr/bin/file conftest.$ac_objext` in
8740
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8741
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8742
# Find out which ABI we are using.
8743
echo 'int i;' > conftest.$ac_ext
8744
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8745
(eval $ac_compile) 2>&5
8747
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8748
test $ac_status = 0; }; then
8749
case `/usr/bin/file conftest.o` in
8752
x86_64-*kfreebsd*-gnu)
8753
LD="${LD-ld} -m elf_i386_fbsd"
8756
LD="${LD-ld} -m elf_i386"
8758
ppc64-*linux*|powerpc64-*linux*)
8759
LD="${LD-ld} -m elf32ppclinux"
8762
LD="${LD-ld} -m elf_s390"
8765
LD="${LD-ld} -m elf32_sparc"
8771
x86_64-*kfreebsd*-gnu)
8772
LD="${LD-ld} -m elf_x86_64_fbsd"
8775
LD="${LD-ld} -m elf_x86_64"
8777
ppc*-*linux*|powerpc*-*linux*)
8778
LD="${LD-ld} -m elf64ppc"
8780
s390*-*linux*|s390*-*tpf*)
8781
LD="${LD-ld} -m elf64_s390"
8784
LD="${LD-ld} -m elf64_sparc"
8794
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
8795
SAVE_CFLAGS="$CFLAGS"
8796
CFLAGS="$CFLAGS -belf"
8797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8798
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8799
if test "${lt_cv_cc_needs_belf+set}" = set; then :
8800
$as_echo_n "(cached) " >&6
8803
ac_cpp='$CPP $CPPFLAGS'
8804
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8805
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8806
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8808
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809
/* end confdefs.h. */
8819
if ac_fn_c_try_link "$LINENO"; then :
8820
lt_cv_cc_needs_belf=yes
8822
lt_cv_cc_needs_belf=no
8824
rm -f core conftest.err conftest.$ac_objext \
8825
conftest$ac_exeext conftest.$ac_ext
8827
ac_cpp='$CPP $CPPFLAGS'
8828
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8834
$as_echo "$lt_cv_cc_needs_belf" >&6; }
8835
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8836
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8837
CFLAGS="$SAVE_CFLAGS"
8841
# Find out which ABI we are using.
8842
echo 'int i;' > conftest.$ac_ext
8843
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8844
(eval $ac_compile) 2>&5
8846
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8847
test $ac_status = 0; }; then
8848
case `/usr/bin/file conftest.o` in
8850
case $lt_cv_prog_gnu_ld in
8851
yes*) LD="${LD-ld} -m elf64_sparc" ;;
8853
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8865
need_locks="$enable_libtool_lock"
8869
rhapsody* | darwin*)
8870
if test -n "$ac_tool_prefix"; then
8871
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8872
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874
$as_echo_n "checking for $ac_word... " >&6; }
8875
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8876
$as_echo_n "(cached) " >&6
8878
if test -n "$DSYMUTIL"; then
8879
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885
test -z "$as_dir" && as_dir=.
8886
for ac_exec_ext in '' $ac_executable_extensions; do
8887
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8889
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898
DSYMUTIL=$ac_cv_prog_DSYMUTIL
8899
if test -n "$DSYMUTIL"; then
8900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8901
$as_echo "$DSYMUTIL" >&6; }
8903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904
$as_echo "no" >&6; }
8909
if test -z "$ac_cv_prog_DSYMUTIL"; then
8910
ac_ct_DSYMUTIL=$DSYMUTIL
8911
# Extract the first word of "dsymutil", so it can be a program name with args.
8912
set dummy dsymutil; ac_word=$2
8913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914
$as_echo_n "checking for $ac_word... " >&6; }
8915
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8916
$as_echo_n "(cached) " >&6
8918
if test -n "$ac_ct_DSYMUTIL"; then
8919
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925
test -z "$as_dir" && as_dir=.
8926
for ac_exec_ext in '' $ac_executable_extensions; do
8927
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8929
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8939
if test -n "$ac_ct_DSYMUTIL"; then
8940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8941
$as_echo "$ac_ct_DSYMUTIL" >&6; }
8943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944
$as_echo "no" >&6; }
8947
if test "x$ac_ct_DSYMUTIL" = x; then
8950
case $cross_compiling:$ac_tool_warned in
8952
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8953
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8954
ac_tool_warned=yes ;;
8956
DSYMUTIL=$ac_ct_DSYMUTIL
8959
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8962
if test -n "$ac_tool_prefix"; then
8963
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8964
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966
$as_echo_n "checking for $ac_word... " >&6; }
8967
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8968
$as_echo_n "(cached) " >&6
8970
if test -n "$NMEDIT"; then
8971
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977
test -z "$as_dir" && as_dir=.
8978
for ac_exec_ext in '' $ac_executable_extensions; do
8979
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8980
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8981
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8990
NMEDIT=$ac_cv_prog_NMEDIT
8991
if test -n "$NMEDIT"; then
8992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8993
$as_echo "$NMEDIT" >&6; }
8995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996
$as_echo "no" >&6; }
9001
if test -z "$ac_cv_prog_NMEDIT"; then
9002
ac_ct_NMEDIT=$NMEDIT
9003
# Extract the first word of "nmedit", so it can be a program name with args.
9004
set dummy nmedit; ac_word=$2
9005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006
$as_echo_n "checking for $ac_word... " >&6; }
9007
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9008
$as_echo_n "(cached) " >&6
9010
if test -n "$ac_ct_NMEDIT"; then
9011
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9013
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017
test -z "$as_dir" && as_dir=.
9018
for ac_exec_ext in '' $ac_executable_extensions; do
9019
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9020
ac_cv_prog_ac_ct_NMEDIT="nmedit"
9021
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9031
if test -n "$ac_ct_NMEDIT"; then
9032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9033
$as_echo "$ac_ct_NMEDIT" >&6; }
9035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036
$as_echo "no" >&6; }
9039
if test "x$ac_ct_NMEDIT" = x; then
9042
case $cross_compiling:$ac_tool_warned in
9044
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9045
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9046
ac_tool_warned=yes ;;
9048
NMEDIT=$ac_ct_NMEDIT
9051
NMEDIT="$ac_cv_prog_NMEDIT"
9054
if test -n "$ac_tool_prefix"; then
9055
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9056
set dummy ${ac_tool_prefix}lipo; ac_word=$2
9057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058
$as_echo_n "checking for $ac_word... " >&6; }
9059
if test "${ac_cv_prog_LIPO+set}" = set; then :
9060
$as_echo_n "(cached) " >&6
9062
if test -n "$LIPO"; then
9063
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069
test -z "$as_dir" && as_dir=.
9070
for ac_exec_ext in '' $ac_executable_extensions; do
9071
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9072
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9073
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082
LIPO=$ac_cv_prog_LIPO
9083
if test -n "$LIPO"; then
9084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9085
$as_echo "$LIPO" >&6; }
9087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088
$as_echo "no" >&6; }
9093
if test -z "$ac_cv_prog_LIPO"; then
9095
# Extract the first word of "lipo", so it can be a program name with args.
9096
set dummy lipo; ac_word=$2
9097
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098
$as_echo_n "checking for $ac_word... " >&6; }
9099
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9100
$as_echo_n "(cached) " >&6
9102
if test -n "$ac_ct_LIPO"; then
9103
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109
test -z "$as_dir" && as_dir=.
9110
for ac_exec_ext in '' $ac_executable_extensions; do
9111
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9112
ac_cv_prog_ac_ct_LIPO="lipo"
9113
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9123
if test -n "$ac_ct_LIPO"; then
9124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9125
$as_echo "$ac_ct_LIPO" >&6; }
9127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9128
$as_echo "no" >&6; }
9131
if test "x$ac_ct_LIPO" = x; then
9134
case $cross_compiling:$ac_tool_warned in
9136
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9137
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9138
ac_tool_warned=yes ;;
9143
LIPO="$ac_cv_prog_LIPO"
9146
if test -n "$ac_tool_prefix"; then
9147
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9148
set dummy ${ac_tool_prefix}otool; ac_word=$2
9149
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150
$as_echo_n "checking for $ac_word... " >&6; }
9151
if test "${ac_cv_prog_OTOOL+set}" = set; then :
9152
$as_echo_n "(cached) " >&6
9154
if test -n "$OTOOL"; then
9155
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9157
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161
test -z "$as_dir" && as_dir=.
9162
for ac_exec_ext in '' $ac_executable_extensions; do
9163
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9164
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9165
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174
OTOOL=$ac_cv_prog_OTOOL
9175
if test -n "$OTOOL"; then
9176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9177
$as_echo "$OTOOL" >&6; }
9179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180
$as_echo "no" >&6; }
9185
if test -z "$ac_cv_prog_OTOOL"; then
9187
# Extract the first word of "otool", so it can be a program name with args.
9188
set dummy otool; ac_word=$2
9189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9190
$as_echo_n "checking for $ac_word... " >&6; }
9191
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9192
$as_echo_n "(cached) " >&6
9194
if test -n "$ac_ct_OTOOL"; then
9195
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9197
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201
test -z "$as_dir" && as_dir=.
9202
for ac_exec_ext in '' $ac_executable_extensions; do
9203
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9204
ac_cv_prog_ac_ct_OTOOL="otool"
9205
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9214
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9215
if test -n "$ac_ct_OTOOL"; then
9216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9217
$as_echo "$ac_ct_OTOOL" >&6; }
9219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220
$as_echo "no" >&6; }
9223
if test "x$ac_ct_OTOOL" = x; then
9226
case $cross_compiling:$ac_tool_warned in
9228
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9229
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9230
ac_tool_warned=yes ;;
9235
OTOOL="$ac_cv_prog_OTOOL"
9238
if test -n "$ac_tool_prefix"; then
9239
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9240
set dummy ${ac_tool_prefix}otool64; ac_word=$2
9241
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242
$as_echo_n "checking for $ac_word... " >&6; }
9243
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9244
$as_echo_n "(cached) " >&6
9246
if test -n "$OTOOL64"; then
9247
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253
test -z "$as_dir" && as_dir=.
9254
for ac_exec_ext in '' $ac_executable_extensions; do
9255
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9256
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9257
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266
OTOOL64=$ac_cv_prog_OTOOL64
9267
if test -n "$OTOOL64"; then
9268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9269
$as_echo "$OTOOL64" >&6; }
9271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272
$as_echo "no" >&6; }
9277
if test -z "$ac_cv_prog_OTOOL64"; then
9278
ac_ct_OTOOL64=$OTOOL64
9279
# Extract the first word of "otool64", so it can be a program name with args.
9280
set dummy otool64; ac_word=$2
9281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282
$as_echo_n "checking for $ac_word... " >&6; }
9283
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9284
$as_echo_n "(cached) " >&6
9286
if test -n "$ac_ct_OTOOL64"; then
9287
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9289
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293
test -z "$as_dir" && as_dir=.
9294
for ac_exec_ext in '' $ac_executable_extensions; do
9295
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9296
ac_cv_prog_ac_ct_OTOOL64="otool64"
9297
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9307
if test -n "$ac_ct_OTOOL64"; then
9308
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9309
$as_echo "$ac_ct_OTOOL64" >&6; }
9311
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312
$as_echo "no" >&6; }
9315
if test "x$ac_ct_OTOOL64" = x; then
9318
case $cross_compiling:$ac_tool_warned in
9320
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9321
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9322
ac_tool_warned=yes ;;
9324
OTOOL64=$ac_ct_OTOOL64
9327
OTOOL64="$ac_cv_prog_OTOOL64"
9356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9357
$as_echo_n "checking for -single_module linker flag... " >&6; }
9358
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9359
$as_echo_n "(cached) " >&6
9361
lt_cv_apple_cc_single_mod=no
9362
if test -z "${LT_MULTI_MODULE}"; then
9363
# By default we will add the -single_module flag. You can override
9364
# by either setting the environment variable LT_MULTI_MODULE
9365
# non-empty at configure time, or by adding -multi_module to the
9367
rm -rf libconftest.dylib*
9368
echo "int foo(void){return 1;}" > conftest.c
9369
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9370
-dynamiclib -Wl,-single_module conftest.c" >&5
9371
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9372
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9374
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9375
lt_cv_apple_cc_single_mod=yes
9377
cat conftest.err >&5
9379
rm -rf libconftest.dylib*
9383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9384
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9386
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9387
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9388
$as_echo_n "(cached) " >&6
9390
lt_cv_ld_exported_symbols_list=no
9391
save_LDFLAGS=$LDFLAGS
9392
echo "_main" > conftest.sym
9393
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9394
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395
/* end confdefs.h. */
9405
if ac_fn_c_try_link "$LINENO"; then :
9406
lt_cv_ld_exported_symbols_list=yes
9408
lt_cv_ld_exported_symbols_list=no
9410
rm -f core conftest.err conftest.$ac_objext \
9411
conftest$ac_exeext conftest.$ac_ext
9412
LDFLAGS="$save_LDFLAGS"
9415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9416
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9418
rhapsody* | darwin1.[012])
9419
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9421
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9422
darwin*) # darwin 5.x on
9423
# if running on 10.5 or later, the deployment target defaults
9424
# to the OS version, if on x86, and 10.4, the deployment
9425
# target defaults to 10.4. Don't you love it?
9426
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9427
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9428
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9430
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9432
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9436
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9437
_lt_dar_single_mod='$single_module'
9439
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9440
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9442
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9444
if test "$DSYMUTIL" != ":"; then
9445
_lt_dsymutil='~$DSYMUTIL $lib || :'
6922
9452
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6923
9453
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6924
9454
inttypes.h stdint.h unistd.h
9470
for ac_header in dlfcn.h
9472
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9474
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9475
cat >>confdefs.h <<_ACEOF
9476
#define HAVE_DLFCN_H 1
9495
# Check whether --enable-shared was given.
9496
if test "${enable_shared+set}" = set; then :
9497
enableval=$enable_shared; p=${PACKAGE-default}
9499
yes) enable_shared=yes ;;
9500
no) enable_shared=no ;;
9503
# Look at the argument we got. We use all the common list separators.
9504
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9505
for pkg in $enableval; do
9507
if test "X$pkg" = "X$p"; then
9526
# Check whether --enable-static was given.
9527
if test "${enable_static+set}" = set; then :
9528
enableval=$enable_static; p=${PACKAGE-default}
9530
yes) enable_static=yes ;;
9531
no) enable_static=no ;;
9534
# Look at the argument we got. We use all the common list separators.
9535
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9536
for pkg in $enableval; do
9538
if test "X$pkg" = "X$p"; then
9558
# Check whether --with-pic was given.
9559
if test "${with_pic+set}" = set; then :
9560
withval=$with_pic; pic_mode="$withval"
9566
test -z "$pic_mode" && pic_mode=default
9574
# Check whether --enable-fast-install was given.
9575
if test "${enable_fast_install+set}" = set; then :
9576
enableval=$enable_fast_install; p=${PACKAGE-default}
9578
yes) enable_fast_install=yes ;;
9579
no) enable_fast_install=no ;;
9581
enable_fast_install=no
9582
# Look at the argument we got. We use all the common list separators.
9583
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9584
for pkg in $enableval; do
9586
if test "X$pkg" = "X$p"; then
9587
enable_fast_install=yes
9594
enable_fast_install=yes
9607
# This can be used to rebuild libtool when needed
9608
LIBTOOL_DEPS="$ltmain"
9610
# Always use our own libtool.
9611
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9637
test -z "$LN_S" && LN_S="ln -s"
9652
if test -n "${ZSH_VERSION+set}" ; then
9653
setopt NO_GLOB_SUBST
9656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9657
$as_echo_n "checking for objdir... " >&6; }
9658
if test "${lt_cv_objdir+set}" = set; then :
9659
$as_echo_n "(cached) " >&6
9661
rm -f .libs 2>/dev/null
9662
mkdir .libs 2>/dev/null
9663
if test -d .libs; then
9666
# MS-DOS does not allow filenames that begin with a dot.
9669
rmdir .libs 2>/dev/null
9671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9672
$as_echo "$lt_cv_objdir" >&6; }
9673
objdir=$lt_cv_objdir
9679
cat >>confdefs.h <<_ACEOF
9680
#define LT_OBJDIR "$lt_cv_objdir/"
9701
# AIX sometimes has problems with the GCC collect2 program. For some
9702
# reason, if we set the COLLECT_NAMES environment variable, the problems
9703
# vanish in a puff of smoke.
9704
if test "X${COLLECT_NAMES+set}" != Xset; then
9706
export COLLECT_NAMES
9711
# Sed substitution that helps us do robust quoting. It backslashifies
9712
# metacharacters that are still active within double-quoted strings.
9713
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9715
# Same as above, but do not quote variable references.
9716
double_quote_subst='s/\(["`\\]\)/\\\1/g'
9718
# Sed substitution to delay expansion of an escaped shell variable in a
9719
# double_quote_subst'ed string.
9720
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9722
# Sed substitution to delay expansion of an escaped single quote.
9723
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9725
# Sed substitution to avoid accidental globbing in evaled expressions
9726
no_glob_subst='s/\*/\\\*/g'
9730
can_build_shared=yes
9732
# All known linkers require a `.a' archive for static linking (except MSVC,
9733
# which needs '.lib').
9736
with_gnu_ld="$lt_cv_prog_gnu_ld"
9739
old_CFLAGS="$CFLAGS"
9741
# Set sane defaults for various variables
9742
test -z "$CC" && CC=cc
9743
test -z "$LTCC" && LTCC=$CC
9744
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9745
test -z "$LD" && LD=ld
9746
test -z "$ac_objext" && ac_objext=o
9748
for cc_temp in $compiler""; do
9750
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9751
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9756
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9759
# Only perform the check for file, if the check method requires it
9760
test -z "$MAGIC_CMD" && MAGIC_CMD=file
9761
case $deplibs_check_method in
9763
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9765
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9766
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9767
$as_echo_n "(cached) " >&6
9771
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9774
lt_save_MAGIC_CMD="$MAGIC_CMD"
9775
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9776
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9777
for ac_dir in $ac_dummy; do
9779
test -z "$ac_dir" && ac_dir=.
9780
if test -f $ac_dir/${ac_tool_prefix}file; then
9781
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9782
if test -n "$file_magic_test_file"; then
9783
case $deplibs_check_method in
9785
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9786
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9787
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9788
$EGREP "$file_magic_regex" > /dev/null; then
9793
*** Warning: the command libtool uses to detect shared libraries,
9794
*** $file_magic_cmd, produces output that libtool cannot recognize.
9795
*** The result is that libtool may fail to recognize shared libraries
9796
*** as such. This will affect the creation of libtool libraries that
9797
*** depend on shared libraries, but programs linked with such libtool
9798
*** libraries will work regardless of this problem. Nevertheless, you
9799
*** may want to report the problem to your system manager and/or to
9800
*** bug-libtool@gnu.org
9810
MAGIC_CMD="$lt_save_MAGIC_CMD"
9815
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9816
if test -n "$MAGIC_CMD"; then
9817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9818
$as_echo "$MAGIC_CMD" >&6; }
9820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821
$as_echo "no" >&6; }
9828
if test -z "$lt_cv_path_MAGIC_CMD"; then
9829
if test -n "$ac_tool_prefix"; then
9830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9831
$as_echo_n "checking for file... " >&6; }
9832
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9833
$as_echo_n "(cached) " >&6
9837
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9840
lt_save_MAGIC_CMD="$MAGIC_CMD"
9841
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9842
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9843
for ac_dir in $ac_dummy; do
9845
test -z "$ac_dir" && ac_dir=.
9846
if test -f $ac_dir/file; then
9847
lt_cv_path_MAGIC_CMD="$ac_dir/file"
9848
if test -n "$file_magic_test_file"; then
9849
case $deplibs_check_method in
9851
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9852
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9853
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9854
$EGREP "$file_magic_regex" > /dev/null; then
9859
*** Warning: the command libtool uses to detect shared libraries,
9860
*** $file_magic_cmd, produces output that libtool cannot recognize.
9861
*** The result is that libtool may fail to recognize shared libraries
9862
*** as such. This will affect the creation of libtool libraries that
9863
*** depend on shared libraries, but programs linked with such libtool
9864
*** libraries will work regardless of this problem. Nevertheless, you
9865
*** may want to report the problem to your system manager and/or to
9866
*** bug-libtool@gnu.org
9876
MAGIC_CMD="$lt_save_MAGIC_CMD"
9881
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9882
if test -n "$MAGIC_CMD"; then
9883
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9884
$as_echo "$MAGIC_CMD" >&6; }
9886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887
$as_echo "no" >&6; }
9900
# Use C for the default configuration in the libtool script
9904
ac_cpp='$CPP $CPPFLAGS'
9905
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9906
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9907
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9910
# Source file extension for C test sources.
9913
# Object file extension for compiled C test sources.
9917
# Code to be used in simple compile tests
9918
lt_simple_compile_test_code="int some_variable = 0;"
9920
# Code to be used in simple link tests
9921
lt_simple_link_test_code='int main(){return(0);}'
9929
# If no C compiler was specified, use CC.
9932
# If no C compiler flags were specified, use CFLAGS.
9933
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9935
# Allow CC to be a program name with arguments.
9938
# Save the default compiler, since it gets overwritten when the other
9939
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9940
compiler_DEFAULT=$CC
9942
# save warnings/boilerplate of simple test code
9943
ac_outfile=conftest.$ac_objext
9944
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9945
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9946
_lt_compiler_boilerplate=`cat conftest.err`
9949
ac_outfile=conftest.$ac_objext
9950
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9951
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9952
_lt_linker_boilerplate=`cat conftest.err`
9956
if test -n "$compiler"; then
9958
lt_prog_compiler_no_builtin_flag=
9960
if test "$GCC" = yes; then
9961
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9964
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9965
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9966
$as_echo_n "(cached) " >&6
9968
lt_cv_prog_compiler_rtti_exceptions=no
9969
ac_outfile=conftest.$ac_objext
9970
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9971
lt_compiler_flag="-fno-rtti -fno-exceptions"
9972
# Insert the option either (1) after the last *FLAGS variable, or
9973
# (2) before a word containing "conftest.", or (3) at the end.
9974
# Note that $ac_compile itself does not contain backslashes and begins
9975
# with a dollar sign (not a hyphen), so the echo should work correctly.
9976
# The option is referenced via a variable to avoid confusing sed.
9977
lt_compile=`echo "$ac_compile" | $SED \
9978
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9979
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9980
-e 's:$: $lt_compiler_flag:'`
9981
(eval echo "\"\$as_me:9981: $lt_compile\"" >&5)
9982
(eval "$lt_compile" 2>conftest.err)
9984
cat conftest.err >&5
9985
echo "$as_me:9985: \$? = $ac_status" >&5
9986
if (exit $ac_status) && test -s "$ac_outfile"; then
9987
# The compiler can only warn and ignore the option if not recognized
9988
# So say no if there are warnings other than the usual output.
9989
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9990
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9991
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9992
lt_cv_prog_compiler_rtti_exceptions=yes
9998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9999
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10001
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10002
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10014
lt_prog_compiler_wl=
10015
lt_prog_compiler_pic=
10016
lt_prog_compiler_static=
10018
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10019
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10021
if test "$GCC" = yes; then
10022
lt_prog_compiler_wl='-Wl,'
10023
lt_prog_compiler_static='-static'
10027
# All AIX code is PIC.
10028
if test "$host_cpu" = ia64; then
10029
# AIX 5 now supports IA64 processor
10030
lt_prog_compiler_static='-Bstatic'
10037
# see comment about AmigaOS4 .so support
10038
lt_prog_compiler_pic='-fPIC'
10041
# FIXME: we need at least 68020 code to build shared libraries, but
10042
# adding the `-m68020' flag to GCC prevents building anything better,
10044
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10049
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10050
# PIC is the default for these OSes.
10053
mingw* | cygwin* | pw32* | os2* | cegcc*)
10054
# This hack is so that the source file can tell whether it is being
10055
# built for inclusion in a dll (and should export symbols for example).
10056
# Although the cygwin gcc ignores -fPIC, still need this for old-style
10057
# (--disable-auto-import) libraries
10058
lt_prog_compiler_pic='-DDLL_EXPORT'
10061
darwin* | rhapsody*)
10062
# PIC is the default on this platform
10063
# Common symbols not allowed in MH_DYLIB files
10064
lt_prog_compiler_pic='-fno-common'
10068
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10069
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10070
# sets the default TLS model and affects inlining.
10076
lt_prog_compiler_pic='-fPIC'
10082
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
10083
# Instead, we relocate shared libraries at runtime.
10087
# Just because we use GCC doesn't mean we suddenly get shared libraries
10088
# on systems that don't support them.
10089
lt_prog_compiler_can_build_shared=no
10094
# QNX uses GNU C++, but need to define -shared option too, otherwise
10095
# it will coredump.
10096
lt_prog_compiler_pic='-fPIC -shared'
10100
if test -d /usr/nec; then
10101
lt_prog_compiler_pic=-Kconform_pic
10106
lt_prog_compiler_pic='-fPIC'
10110
# PORTME Check for flag to pass linker flags through the system compiler.
10113
lt_prog_compiler_wl='-Wl,'
10114
if test "$host_cpu" = ia64; then
10115
# AIX 5 now supports IA64 processor
10116
lt_prog_compiler_static='-Bstatic'
10118
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10122
mingw* | cygwin* | pw32* | os2* | cegcc*)
10123
# This hack is so that the source file can tell whether it is being
10124
# built for inclusion in a dll (and should export symbols for example).
10125
lt_prog_compiler_pic='-DDLL_EXPORT'
10128
hpux9* | hpux10* | hpux11*)
10129
lt_prog_compiler_wl='-Wl,'
10130
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10131
# not for PA HP-UX.
10137
lt_prog_compiler_pic='+Z'
10140
# Is there a better lt_prog_compiler_static that works with the bundled CC?
10141
lt_prog_compiler_static='${wl}-a ${wl}archive'
10144
irix5* | irix6* | nonstopux*)
10145
lt_prog_compiler_wl='-Wl,'
10146
# PIC (with -KPIC) is the default.
10147
lt_prog_compiler_static='-non_shared'
10150
linux* | k*bsd*-gnu)
10151
case $cc_basename in
10152
# old Intel for x86_64 which still supported -KPIC.
10154
lt_prog_compiler_wl='-Wl,'
10155
lt_prog_compiler_pic='-KPIC'
10156
lt_prog_compiler_static='-static'
10158
# icc used to be incompatible with GCC.
10159
# ICC 10 doesn't accept -KPIC any more.
10161
lt_prog_compiler_wl='-Wl,'
10162
lt_prog_compiler_pic='-fPIC'
10163
lt_prog_compiler_static='-static'
10165
# Lahey Fortran 8.1.
10167
lt_prog_compiler_wl='-Wl,'
10168
lt_prog_compiler_pic='--shared'
10169
lt_prog_compiler_static='--static'
10171
pgcc* | pgf77* | pgf90* | pgf95*)
10172
# Portland Group compilers (*not* the Pentium gcc compiler,
10173
# which looks to be a dead project)
10174
lt_prog_compiler_wl='-Wl,'
10175
lt_prog_compiler_pic='-fpic'
10176
lt_prog_compiler_static='-Bstatic'
10179
lt_prog_compiler_wl='-Wl,'
10180
# All Alpha code is PIC.
10181
lt_prog_compiler_static='-non_shared'
10184
# IBM XL C 8.0/Fortran 10.1 on PPC
10185
lt_prog_compiler_wl='-Wl,'
10186
lt_prog_compiler_pic='-qpic'
10187
lt_prog_compiler_static='-qstaticlink'
10190
case `$CC -V 2>&1 | sed 5q` in
10193
lt_prog_compiler_pic='-KPIC'
10194
lt_prog_compiler_static='-Bstatic'
10195
lt_prog_compiler_wl='-Wl,'
10198
# Sun Fortran 8.3 passes all unrecognized flags to the linker
10199
lt_prog_compiler_pic='-KPIC'
10200
lt_prog_compiler_static='-Bstatic'
10201
lt_prog_compiler_wl=''
10209
lt_prog_compiler_pic='-KPIC'
10210
lt_prog_compiler_static='-Bstatic'
10214
# QNX uses GNU C++, but need to define -shared option too, otherwise
10215
# it will coredump.
10216
lt_prog_compiler_pic='-fPIC -shared'
10219
osf3* | osf4* | osf5*)
10220
lt_prog_compiler_wl='-Wl,'
10221
# All OSF/1 code is PIC.
10222
lt_prog_compiler_static='-non_shared'
10226
lt_prog_compiler_static='-non_shared'
10230
lt_prog_compiler_pic='-KPIC'
10231
lt_prog_compiler_static='-Bstatic'
10232
case $cc_basename in
10233
f77* | f90* | f95*)
10234
lt_prog_compiler_wl='-Qoption ld ';;
10236
lt_prog_compiler_wl='-Wl,';;
10241
lt_prog_compiler_wl='-Qoption ld '
10242
lt_prog_compiler_pic='-PIC'
10243
lt_prog_compiler_static='-Bstatic'
10246
sysv4 | sysv4.2uw2* | sysv4.3*)
10247
lt_prog_compiler_wl='-Wl,'
10248
lt_prog_compiler_pic='-KPIC'
10249
lt_prog_compiler_static='-Bstatic'
10253
if test -d /usr/nec ;then
10254
lt_prog_compiler_pic='-Kconform_pic'
10255
lt_prog_compiler_static='-Bstatic'
10259
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10260
lt_prog_compiler_wl='-Wl,'
10261
lt_prog_compiler_pic='-KPIC'
10262
lt_prog_compiler_static='-Bstatic'
10266
lt_prog_compiler_wl='-Wl,'
10267
lt_prog_compiler_can_build_shared=no
10271
lt_prog_compiler_pic='-pic'
10272
lt_prog_compiler_static='-Bstatic'
10276
lt_prog_compiler_can_build_shared=no
10282
# For platforms which do not support PIC, -DPIC is meaningless:
10284
lt_prog_compiler_pic=
10287
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10291
$as_echo "$lt_prog_compiler_pic" >&6; }
10299
# Check to make sure the PIC flag actually works.
10301
if test -n "$lt_prog_compiler_pic"; then
10302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10303
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10304
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10305
$as_echo_n "(cached) " >&6
10307
lt_cv_prog_compiler_pic_works=no
10308
ac_outfile=conftest.$ac_objext
10309
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10310
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10311
# Insert the option either (1) after the last *FLAGS variable, or
10312
# (2) before a word containing "conftest.", or (3) at the end.
10313
# Note that $ac_compile itself does not contain backslashes and begins
10314
# with a dollar sign (not a hyphen), so the echo should work correctly.
10315
# The option is referenced via a variable to avoid confusing sed.
10316
lt_compile=`echo "$ac_compile" | $SED \
10317
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10318
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10319
-e 's:$: $lt_compiler_flag:'`
10320
(eval echo "\"\$as_me:10320: $lt_compile\"" >&5)
10321
(eval "$lt_compile" 2>conftest.err)
10323
cat conftest.err >&5
10324
echo "$as_me:10324: \$? = $ac_status" >&5
10325
if (exit $ac_status) && test -s "$ac_outfile"; then
10326
# The compiler can only warn and ignore the option if not recognized
10327
# So say no if there are warnings other than the usual output.
10328
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10329
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10330
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10331
lt_cv_prog_compiler_pic_works=yes
10337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10338
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10340
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10341
case $lt_prog_compiler_pic in
10343
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10346
lt_prog_compiler_pic=
10347
lt_prog_compiler_can_build_shared=no
10358
# Check to make sure the static flag actually works.
10360
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10362
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10363
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10364
$as_echo_n "(cached) " >&6
10366
lt_cv_prog_compiler_static_works=no
10367
save_LDFLAGS="$LDFLAGS"
10368
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10369
echo "$lt_simple_link_test_code" > conftest.$ac_ext
10370
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10371
# The linker can only warn and ignore the option if not recognized
10372
# So say no if there are warnings
10373
if test -s conftest.err; then
10374
# Append any errors to the config.log.
10375
cat conftest.err 1>&5
10376
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10377
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10378
if diff conftest.exp conftest.er2 >/dev/null; then
10379
lt_cv_prog_compiler_static_works=yes
10382
lt_cv_prog_compiler_static_works=yes
10386
LDFLAGS="$save_LDFLAGS"
10389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10390
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10392
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10395
lt_prog_compiler_static=
10404
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10405
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10406
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10407
$as_echo_n "(cached) " >&6
10409
lt_cv_prog_compiler_c_o=no
10410
$RM -r conftest 2>/dev/null
10414
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10416
lt_compiler_flag="-o out/conftest2.$ac_objext"
10417
# Insert the option either (1) after the last *FLAGS variable, or
10418
# (2) before a word containing "conftest.", or (3) at the end.
10419
# Note that $ac_compile itself does not contain backslashes and begins
10420
# with a dollar sign (not a hyphen), so the echo should work correctly.
10421
lt_compile=`echo "$ac_compile" | $SED \
10422
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10423
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10424
-e 's:$: $lt_compiler_flag:'`
10425
(eval echo "\"\$as_me:10425: $lt_compile\"" >&5)
10426
(eval "$lt_compile" 2>out/conftest.err)
10428
cat out/conftest.err >&5
10429
echo "$as_me:10429: \$? = $ac_status" >&5
10430
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10432
# The compiler can only warn and ignore the option if not recognized
10433
# So say no if there are warnings
10434
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10435
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10436
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10437
lt_cv_prog_compiler_c_o=yes
10442
# SGI C++ compiler will create directory out/ii_files/ for
10443
# template instantiation
10444
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10445
$RM out/* && rmdir out
10451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10452
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10460
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10461
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10462
$as_echo_n "(cached) " >&6
10464
lt_cv_prog_compiler_c_o=no
10465
$RM -r conftest 2>/dev/null
10469
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10471
lt_compiler_flag="-o out/conftest2.$ac_objext"
10472
# Insert the option either (1) after the last *FLAGS variable, or
10473
# (2) before a word containing "conftest.", or (3) at the end.
10474
# Note that $ac_compile itself does not contain backslashes and begins
10475
# with a dollar sign (not a hyphen), so the echo should work correctly.
10476
lt_compile=`echo "$ac_compile" | $SED \
10477
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10478
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10479
-e 's:$: $lt_compiler_flag:'`
10480
(eval echo "\"\$as_me:10480: $lt_compile\"" >&5)
10481
(eval "$lt_compile" 2>out/conftest.err)
10483
cat out/conftest.err >&5
10484
echo "$as_me:10484: \$? = $ac_status" >&5
10485
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10487
# The compiler can only warn and ignore the option if not recognized
10488
# So say no if there are warnings
10489
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10490
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10491
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10492
lt_cv_prog_compiler_c_o=yes
10497
# SGI C++ compiler will create directory out/ii_files/ for
10498
# template instantiation
10499
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10500
$RM out/* && rmdir out
10506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10507
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10512
hard_links="nottested"
10513
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10514
# do not overwrite the value of need_locks provided by the user
10515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10516
$as_echo_n "checking if we can lock with hard links... " >&6; }
10519
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10521
ln conftest.a conftest.b 2>&5 || hard_links=no
10522
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10524
$as_echo "$hard_links" >&6; }
10525
if test "$hard_links" = no; then
10526
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10527
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10540
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10543
allow_undefined_flag=
10544
always_export_symbols=no
10546
archive_expsym_cmds=
10547
compiler_needs_object=no
10548
enable_shared_with_static_runtimes=no
10549
export_dynamic_flag_spec=
10550
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10551
hardcode_automatic=no
10553
hardcode_direct_absolute=no
10554
hardcode_libdir_flag_spec=
10555
hardcode_libdir_flag_spec_ld=
10556
hardcode_libdir_separator=
10557
hardcode_minus_L=no
10558
hardcode_shlibpath_var=unsupported
10560
link_all_deplibs=unknown
10562
module_expsym_cmds=
10563
old_archive_from_new_cmds=
10564
old_archive_from_expsyms_cmds=
10565
thread_safe_flag_spec=
10566
whole_archive_flag_spec=
10567
# include_expsyms should be a list of space-separated symbols to be *always*
10568
# included in the symbol list
10570
# exclude_expsyms can be an extended regexp of symbols to exclude
10571
# it will be wrapped by ` (' and `)$', so one must not match beginning or
10572
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10573
# as well as any symbol that contains `d'.
10574
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10575
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10576
# platforms (ab)use it in PIC code, but their linkers get confused if
10577
# the symbol is explicitly referenced. Since portable code cannot
10578
# rely on this symbol name, it's probably fine to never include it in
10579
# preloaded symbol tables.
10580
# Exclude shared library initialization/finalization symbols.
10581
extract_expsyms_cmds=
10584
cygwin* | mingw* | pw32* | cegcc*)
10585
# FIXME: the MSVC++ port hasn't been tested in a loooong time
10586
# When not using gcc, we currently assume that we are using
10587
# Microsoft Visual C++.
10588
if test "$GCC" != yes; then
10593
# we just hope/assume this is gcc and not c89 (= MSVC++)
10599
linux* | k*bsd*-gnu)
10600
link_all_deplibs=no
10605
if test "$with_gnu_ld" = yes; then
10606
# If archive_cmds runs LD, not CC, wlarc should be empty
10609
# Set some defaults for GNU ld with shared library support. These
10610
# are reset later if shared libraries are not supported. Putting them
10611
# here allows them to be overridden if necessary.
10612
runpath_var=LD_RUN_PATH
10613
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10614
export_dynamic_flag_spec='${wl}--export-dynamic'
10615
# ancient GNU ld didn't support --whole-archive et. al.
10616
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10617
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10619
whole_archive_flag_spec=
10621
supports_anon_versioning=no
10622
case `$LD -v 2>&1` in
10623
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10624
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10625
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10626
*\ 2.11.*) ;; # other 2.11 versions
10627
*) supports_anon_versioning=yes ;;
10630
# See if GNU ld supports shared libraries.
10633
# On AIX/PPC, the GNU linker is very broken
10634
if test "$host_cpu" != ia64; then
10638
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10639
*** to be unable to reliably create shared libraries on AIX.
10640
*** Therefore, libtool is disabling shared libraries support. If you
10641
*** really care for shared libraries, you may want to modify your PATH
10642
*** so that a non-GNU linker is found, and then restart.
10651
# see comment about AmigaOS4 .so support
10652
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10653
archive_expsym_cmds=''
10656
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)'
10657
hardcode_libdir_flag_spec='-L$libdir'
10658
hardcode_minus_L=yes
10664
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10665
allow_undefined_flag=unsupported
10666
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10667
# support --undefined. This deserves some investigation. FIXME
10668
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10674
cygwin* | mingw* | pw32* | cegcc*)
10675
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10676
# as there is no search path for DLLs.
10677
hardcode_libdir_flag_spec='-L$libdir'
10678
allow_undefined_flag=unsupported
10679
always_export_symbols=no
10680
enable_shared_with_static_runtimes=yes
10681
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10683
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10684
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10685
# If the export-symbols file already is a .def file (1st line
10686
# is EXPORTS), use it as is; otherwise, prepend...
10687
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10688
cp $export_symbols $output_objdir/$soname.def;
10690
echo EXPORTS > $output_objdir/$soname.def;
10691
cat $export_symbols >> $output_objdir/$soname.def;
10693
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10701
hardcode_shlibpath_var=no
10702
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10703
export_dynamic_flag_spec='${wl}-E'
10704
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10705
# Instead, shared libraries are loaded at an image base (0x10000000 by
10706
# default) and relocated if they conflict, which is a slow very memory
10707
# consuming and fragmenting process. To avoid this, we pick a random,
10708
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10709
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10710
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10711
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10714
gnu* | linux* | tpf* | k*bsd*-gnu)
10716
if test "$host_os" = linux-dietlibc; then
10717
case $cc_basename in
10718
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10721
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10722
&& test "$tmp_diet" = no
10725
tmp_sharedflag='-shared'
10726
case $cc_basename,$host_cpu in
10727
pgcc*) # Portland Group C compiler
10728
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'
10729
tmp_addflag=' $pic_flag'
10731
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10732
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'
10733
tmp_addflag=' $pic_flag -Mnomain' ;;
10734
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10735
tmp_addflag=' -i_dynamic' ;;
10736
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10737
tmp_addflag=' -i_dynamic -nofor_main' ;;
10738
ifc* | ifort*) # Intel Fortran compiler
10739
tmp_addflag=' -nofor_main' ;;
10740
lf95*) # Lahey Fortran 8.1
10741
whole_archive_flag_spec=
10742
tmp_sharedflag='--shared' ;;
10743
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10744
tmp_sharedflag='-qmkshrobj'
10747
case `$CC -V 2>&1 | sed 5q` in
10748
*Sun\ C*) # Sun C 5.9
10749
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10750
compiler_needs_object=yes
10751
tmp_sharedflag='-G' ;;
10752
*Sun\ F*) # Sun Fortran 8.3
10753
tmp_sharedflag='-G' ;;
10755
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10757
if test "x$supports_anon_versioning" = xyes; then
10758
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10759
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10760
echo "local: *; };" >> $output_objdir/$libname.ver~
10761
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10764
case $cc_basename in
10766
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10767
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10768
hardcode_libdir_flag_spec=
10769
hardcode_libdir_flag_spec_ld='-rpath $libdir'
10770
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10771
if test "x$supports_anon_versioning" = xyes; then
10772
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10773
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10774
echo "local: *; };" >> $output_objdir/$libname.ver~
10775
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10784
netbsd* | netbsdelf*-gnu)
10785
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10786
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10789
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10790
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10795
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10799
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10800
*** create shared libraries on Solaris systems. Therefore, libtool
10801
*** is disabling shared libraries support. We urge you to upgrade GNU
10802
*** binutils to release 2.9.1 or newer. Another option is to modify
10803
*** your PATH or compiler configuration so that the native linker is
10804
*** used, and then restart.
10807
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10808
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10809
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10815
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10816
case `$LD -v 2>&1` in
10817
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10821
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10822
*** reliably create shared libraries on SCO systems. Therefore, libtool
10823
*** is disabling shared libraries support. We urge you to upgrade GNU
10824
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10825
*** your PATH or compiler configuration so that the native linker is
10826
*** used, and then restart.
10831
# For security reasons, it is highly recommended that you always
10832
# use absolute paths for naming shared libraries, and exclude the
10833
# DT_RUNPATH tag from executables and libraries. But doing so
10834
# requires that you compile everything twice, which is a pain.
10835
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10836
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10837
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10838
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10847
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10849
hardcode_direct=yes
10850
hardcode_shlibpath_var=no
10854
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10855
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10856
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10863
if test "$ld_shlibs" = no; then
10865
hardcode_libdir_flag_spec=
10866
export_dynamic_flag_spec=
10867
whole_archive_flag_spec=
10870
# PORTME fill in a description of your system's linker (not GNU ld)
10873
allow_undefined_flag=unsupported
10874
always_export_symbols=yes
10875
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'
10876
# Note: this linker hardcodes the directories in LIBPATH if there
10877
# are no directories specified by -L.
10878
hardcode_minus_L=yes
10879
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10880
# Neither direct hardcoding nor static linking is supported with a
10882
hardcode_direct=unsupported
10887
if test "$host_cpu" = ia64; then
10888
# On IA64, the linker does run time linking by default, so we don't
10889
# have to do anything special.
10890
aix_use_runtimelinking=no
10891
exp_sym_flag='-Bexport'
10894
# If we're using GNU nm, then we don't want the "-C" option.
10895
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10896
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10897
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'
10899
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'
10901
aix_use_runtimelinking=no
10903
# Test if we are trying to use run time linking or normal
10904
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10905
# need to do runtime linking.
10906
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10907
for ld_flag in $LDFLAGS; do
10908
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10909
aix_use_runtimelinking=yes
10916
exp_sym_flag='-bexport'
10917
no_entry_flag='-bnoentry'
10920
# When large executables or shared objects are built, AIX ld can
10921
# have problems creating the table of contents. If linking a library
10922
# or program results in "error TOC overflow" add -mminimal-toc to
10923
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10924
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10927
hardcode_direct=yes
10928
hardcode_direct_absolute=yes
10929
hardcode_libdir_separator=':'
10930
link_all_deplibs=yes
10931
file_list_spec='${wl}-f,'
10933
if test "$GCC" = yes; then
10934
case $host_os in aix4.[012]|aix4.[012].*)
10935
# We only want to do this on AIX 4.2 and lower, the check
10936
# below for broken collect2 doesn't work under 4.3+
10937
collect2name=`${CC} -print-prog-name=collect2`
10938
if test -f "$collect2name" &&
10939
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10941
# We have reworked collect2
10944
# We have old collect2
10945
hardcode_direct=unsupported
10946
# It fails to find uninstalled libraries when the uninstalled
10947
# path is not listed in the libpath. Setting hardcode_minus_L
10948
# to unsupported forces relinking
10949
hardcode_minus_L=yes
10950
hardcode_libdir_flag_spec='-L$libdir'
10951
hardcode_libdir_separator=
10955
shared_flag='-shared'
10956
if test "$aix_use_runtimelinking" = yes; then
10957
shared_flag="$shared_flag "'${wl}-G'
10959
link_all_deplibs=no
10962
if test "$host_cpu" = ia64; then
10963
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10964
# chokes on -Wl,-G. The following line is correct:
10967
if test "$aix_use_runtimelinking" = yes; then
10968
shared_flag='${wl}-G'
10970
shared_flag='${wl}-bM:SRE'
10975
export_dynamic_flag_spec='${wl}-bexpall'
10976
# It seems that -bexpall does not export symbols beginning with
10977
# underscore (_), so it is better to generate a list of symbols to export.
10978
always_export_symbols=yes
10979
if test "$aix_use_runtimelinking" = yes; then
10980
# Warning - without using the other runtime loading flags (-brtl),
10981
# -berok will link without error, but may produce a broken library.
10982
allow_undefined_flag='-berok'
10983
# Determine the default libpath from the value encoded in an
10984
# empty executable.
10985
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986
/* end confdefs.h. */
10996
if ac_fn_c_try_link "$LINENO"; then :
10998
lt_aix_libpath_sed='
10999
/Import File Strings/,/^$/ {
11005
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11006
# Check for a 64-bit object if we didn't find anything.
11007
if test -z "$aix_libpath"; then
11008
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11011
rm -f core conftest.err conftest.$ac_objext \
11012
conftest$ac_exeext conftest.$ac_ext
11013
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11015
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11016
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11018
if test "$host_cpu" = ia64; then
11019
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11020
allow_undefined_flag="-z nodefs"
11021
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11023
# Determine the default libpath from the value encoded in an
11024
# empty executable.
11025
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026
/* end confdefs.h. */
11036
if ac_fn_c_try_link "$LINENO"; then :
11038
lt_aix_libpath_sed='
11039
/Import File Strings/,/^$/ {
11045
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11046
# Check for a 64-bit object if we didn't find anything.
11047
if test -z "$aix_libpath"; then
11048
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11051
rm -f core conftest.err conftest.$ac_objext \
11052
conftest$ac_exeext conftest.$ac_ext
11053
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11055
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11056
# Warning - without using the other run time loading flags,
11057
# -berok will link without error, but may produce a broken library.
11058
no_undefined_flag=' ${wl}-bernotok'
11059
allow_undefined_flag=' ${wl}-berok'
11060
# Exported symbols can be pulled into shared objects from archives
11061
whole_archive_flag_spec='$convenience'
11062
archive_cmds_need_lc=yes
11063
# This is similar to how AIX traditionally builds its shared libraries.
11064
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11072
# see comment about AmigaOS4 .so support
11073
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11074
archive_expsym_cmds=''
11077
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)'
11078
hardcode_libdir_flag_spec='-L$libdir'
11079
hardcode_minus_L=yes
11085
export_dynamic_flag_spec=-rdynamic
11088
cygwin* | mingw* | pw32* | cegcc*)
11089
# When not using gcc, we currently assume that we are using
11090
# Microsoft Visual C++.
11091
# hardcode_libdir_flag_spec is actually meaningless, as there is
11092
# no search path for DLLs.
11093
hardcode_libdir_flag_spec=' '
11094
allow_undefined_flag=unsupported
11095
# Tell ltmain to make .lib files, not .a files.
11097
# Tell ltmain to make .dll files, not .so files.
11099
# FIXME: Setting linknames here is a bad hack.
11100
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11101
# The linker will automatically build a .lib file if we build a DLL.
11102
old_archive_from_new_cmds='true'
11103
# FIXME: Should let the user specify the lib program.
11104
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11105
fix_srcfile_path='`cygpath -w "$srcfile"`'
11106
enable_shared_with_static_runtimes=yes
11109
darwin* | rhapsody*)
11112
archive_cmds_need_lc=no
11114
hardcode_automatic=yes
11115
hardcode_shlibpath_var=unsupported
11116
whole_archive_flag_spec=''
11117
link_all_deplibs=yes
11118
allow_undefined_flag="$_lt_dar_allow_undefined"
11119
case $cc_basename in
11120
ifort*) _lt_dar_can_shared=yes ;;
11121
*) _lt_dar_can_shared=$GCC ;;
11123
if test "$_lt_dar_can_shared" = "yes"; then
11124
output_verbose_link_cmd=echo
11125
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11126
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11127
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11128
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11137
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11138
hardcode_libdir_flag_spec='-L$libdir'
11139
hardcode_shlibpath_var=no
11146
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11147
# support. Future versions do this automatically, but an explicit c++rt0.o
11148
# does not break anything, and helps significantly (at the cost of a little
11151
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11152
hardcode_libdir_flag_spec='-R$libdir'
11153
hardcode_direct=yes
11154
hardcode_shlibpath_var=no
11157
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
11159
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11160
hardcode_direct=yes
11161
hardcode_minus_L=yes
11162
hardcode_shlibpath_var=no
11165
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11166
freebsd* | dragonfly*)
11167
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11168
hardcode_libdir_flag_spec='-R$libdir'
11169
hardcode_direct=yes
11170
hardcode_shlibpath_var=no
11174
if test "$GCC" = yes; then
11175
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'
11177
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'
11179
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11180
hardcode_libdir_separator=:
11181
hardcode_direct=yes
11183
# hardcode_minus_L: Not really in the search PATH,
11184
# but as the default location of the library.
11185
hardcode_minus_L=yes
11186
export_dynamic_flag_spec='${wl}-E'
11190
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11191
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11193
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11195
if test "$with_gnu_ld" = no; then
11196
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11197
hardcode_libdir_flag_spec_ld='+b $libdir'
11198
hardcode_libdir_separator=:
11199
hardcode_direct=yes
11200
hardcode_direct_absolute=yes
11201
export_dynamic_flag_spec='${wl}-E'
11202
# hardcode_minus_L: Not really in the search PATH,
11203
# but as the default location of the library.
11204
hardcode_minus_L=yes
11209
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11212
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11215
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11218
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11224
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11227
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11230
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11234
if test "$with_gnu_ld" = no; then
11235
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11236
hardcode_libdir_separator=:
11241
hardcode_shlibpath_var=no
11244
hardcode_direct=yes
11245
hardcode_direct_absolute=yes
11246
export_dynamic_flag_spec='${wl}-E'
11248
# hardcode_minus_L: Not really in the search PATH,
11249
# but as the default location of the library.
11250
hardcode_minus_L=yes
11256
irix5* | irix6* | nonstopux*)
11257
if test "$GCC" = yes; then
11258
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11259
# Try to use the -exported_symbol ld option, if it does not
11260
# work, assume that -exports_file does not work either and
11261
# implicitly export all symbols.
11262
save_LDFLAGS="$LDFLAGS"
11263
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11264
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265
/* end confdefs.h. */
11268
if ac_fn_c_try_link "$LINENO"; then :
11269
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11272
rm -f core conftest.err conftest.$ac_objext \
11273
conftest$ac_exeext conftest.$ac_ext
11274
LDFLAGS="$save_LDFLAGS"
11276
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11277
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11279
archive_cmds_need_lc='no'
11280
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11281
hardcode_libdir_separator=:
11283
link_all_deplibs=yes
11286
netbsd* | netbsdelf*-gnu)
11287
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11288
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11290
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11292
hardcode_libdir_flag_spec='-R$libdir'
11293
hardcode_direct=yes
11294
hardcode_shlibpath_var=no
11298
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11299
hardcode_direct=yes
11300
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11301
hardcode_libdir_separator=:
11302
hardcode_shlibpath_var=no
11309
if test -f /usr/libexec/ld.so; then
11310
hardcode_direct=yes
11311
hardcode_shlibpath_var=no
11312
hardcode_direct_absolute=yes
11313
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11314
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11315
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11316
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11317
export_dynamic_flag_spec='${wl}-E'
11320
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11321
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11322
hardcode_libdir_flag_spec='-R$libdir'
11325
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11326
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11336
hardcode_libdir_flag_spec='-L$libdir'
11337
hardcode_minus_L=yes
11338
allow_undefined_flag=unsupported
11339
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'
11340
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11344
if test "$GCC" = yes; then
11345
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11346
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11348
allow_undefined_flag=' -expect_unresolved \*'
11349
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11351
archive_cmds_need_lc='no'
11352
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11353
hardcode_libdir_separator=:
11356
osf4* | osf5*) # as osf3* with the addition of -msym flag
11357
if test "$GCC" = yes; then
11358
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11359
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11360
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11362
allow_undefined_flag=' -expect_unresolved \*'
11363
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11364
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11365
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11367
# Both c and cxx compiler support -rpath directly
11368
hardcode_libdir_flag_spec='-rpath $libdir'
11370
archive_cmds_need_lc='no'
11371
hardcode_libdir_separator=:
11375
no_undefined_flag=' -z defs'
11376
if test "$GCC" = yes; then
11378
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11379
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11380
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11382
case `$CC -V 2>&1` in
11385
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11386
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11387
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11391
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11392
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11393
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11397
hardcode_libdir_flag_spec='-R$libdir'
11398
hardcode_shlibpath_var=no
11400
solaris2.[0-5] | solaris2.[0-5].*) ;;
11402
# The compiler driver will combine and reorder linker options,
11403
# but understands `-z linker_flag'. GCC discards it without `$wl',
11404
# but is careful enough not to reorder.
11405
# Supported since Solaris 2.6 (maybe 2.5.1?)
11406
if test "$GCC" = yes; then
11407
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11409
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11413
link_all_deplibs=yes
11417
if test "x$host_vendor" = xsequent; then
11418
# Use $CC to link under sequent, because it throws in some extra .o
11419
# files that make .init and .fini sections work.
11420
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11422
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11424
hardcode_libdir_flag_spec='-L$libdir'
11425
hardcode_direct=yes
11426
hardcode_minus_L=yes
11427
hardcode_shlibpath_var=no
11431
case $host_vendor in
11433
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11434
hardcode_direct=yes # is this really true???
11437
## LD is ld it makes a PLAMLIB
11438
## CC just makes a GrossModule.
11439
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11440
reload_cmds='$CC -r -o $output$reload_objs'
11444
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11445
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11448
runpath_var='LD_RUN_PATH'
11449
hardcode_shlibpath_var=no
11453
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11454
hardcode_shlibpath_var=no
11455
export_dynamic_flag_spec='-Bexport'
11459
if test -d /usr/nec; then
11460
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11461
hardcode_shlibpath_var=no
11462
runpath_var=LD_RUN_PATH
11463
hardcode_runpath_var=yes
11468
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11469
no_undefined_flag='${wl}-z,text'
11470
archive_cmds_need_lc=no
11471
hardcode_shlibpath_var=no
11472
runpath_var='LD_RUN_PATH'
11474
if test "$GCC" = yes; then
11475
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11476
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11478
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11479
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11483
sysv5* | sco3.2v5* | sco5v6*)
11484
# Note: We can NOT use -z defs as we might desire, because we do not
11485
# link with -lc, and that would cause any symbols used from libc to
11486
# always be unresolved, which means just about no library would
11487
# ever link correctly. If we're not using GNU ld we use -z text
11488
# though, which does catch some bad symbols but isn't as heavy-handed
11490
no_undefined_flag='${wl}-z,text'
11491
allow_undefined_flag='${wl}-z,nodefs'
11492
archive_cmds_need_lc=no
11493
hardcode_shlibpath_var=no
11494
hardcode_libdir_flag_spec='${wl}-R,$libdir'
11495
hardcode_libdir_separator=':'
11496
link_all_deplibs=yes
11497
export_dynamic_flag_spec='${wl}-Bexport'
11498
runpath_var='LD_RUN_PATH'
11500
if test "$GCC" = yes; then
11501
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11502
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11504
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11505
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11510
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11511
hardcode_libdir_flag_spec='-L$libdir'
11512
hardcode_shlibpath_var=no
11520
if test x$host_vendor = xsni; then
11522
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11523
export_dynamic_flag_spec='${wl}-Blargedynsym'
11529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11530
$as_echo "$ld_shlibs" >&6; }
11531
test "$ld_shlibs" = no && can_build_shared=no
11533
with_gnu_ld=$with_gnu_ld
11550
# Do we need to explicitly link libc?
11552
case "x$archive_cmds_need_lc" in
11554
# Assume -lc should be added
11555
archive_cmds_need_lc=yes
11557
if test "$enable_shared" = yes && test "$GCC" = yes; then
11558
case $archive_cmds in
11560
# FIXME: we may have to deal with multi-command sequences.
11563
# Test whether the compiler implicitly links with -lc since on some
11564
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11565
# to ld, don't add -lc before -lgcc.
11566
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11567
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11569
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11571
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11572
(eval $ac_compile) 2>&5
11574
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575
test $ac_status = 0; } 2>conftest.err; then
11578
libobjs=conftest.$ac_objext
11580
wl=$lt_prog_compiler_wl
11581
pic_flag=$lt_prog_compiler_pic
11587
lt_save_allow_undefined_flag=$allow_undefined_flag
11588
allow_undefined_flag=
11589
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11590
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11592
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11593
test $ac_status = 0; }
11595
archive_cmds_need_lc=no
11597
archive_cmds_need_lc=yes
11599
allow_undefined_flag=$lt_save_allow_undefined_flag
11601
cat conftest.err 1>&5
11604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11605
$as_echo "$archive_cmds_need_lc" >&6; }
11768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11769
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11771
if test "$GCC" = yes; then
11773
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11774
*) lt_awk_arg="/^libraries:/" ;;
11776
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11777
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11778
# if the path contains ";" then we assume it to be the separator
11779
# otherwise default to the standard path separator (i.e. ":") - it is
11780
# assumed that no part of a normal pathname contains ";" but that should
11781
# okay in the real world where ";" in dirpaths is itself problematic.
11782
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11784
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11786
# Ok, now we have the path, separated by spaces, we can step through it
11787
# and add multilib dir if necessary.
11788
lt_tmp_lt_search_path_spec=
11789
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11790
for lt_sys_path in $lt_search_path_spec; do
11791
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11792
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11794
test -d "$lt_sys_path" && \
11795
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11798
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11799
BEGIN {RS=" "; FS="/|\n";} {
11802
for (lt_i = NF; lt_i > 0; lt_i--) {
11803
if ($lt_i != "" && $lt_i != ".") {
11804
if ($lt_i == "..") {
11807
if (lt_count == 0) {
11808
lt_foo="/" $lt_i lt_foo;
11815
if (lt_foo != "") { lt_freq[lt_foo]++; }
11816
if (lt_freq[lt_foo] == 1) { print lt_foo; }
11818
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11820
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11822
library_names_spec=
11823
libname_spec='lib$name'
11827
postuninstall_cmds=
11831
shlibpath_overrides_runpath=unknown
11833
dynamic_linker="$host_os ld.so"
11834
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11835
need_lib_prefix=unknown
11836
hardcode_into_libs=no
11838
# when you set need_version to no, make sure it does not cause -set_version
11839
# flags to be left without arguments
11840
need_version=unknown
11845
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11846
shlibpath_var=LIBPATH
11848
# AIX 3 has no versioning support, so we append a major version to the name.
11849
soname_spec='${libname}${release}${shared_ext}$major'
11856
hardcode_into_libs=yes
11857
if test "$host_cpu" = ia64; then
11858
# AIX 5 supports IA64
11859
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11860
shlibpath_var=LD_LIBRARY_PATH
11862
# With GCC up to 2.95.x, collect2 would create an import file
11863
# for dependence libraries. The import file would start with
11864
# the line `#! .'. This would cause the generated library to
11865
# depend on `.', always an invalid library. This was fixed in
11866
# development snapshots of GCC prior to 3.0.
11868
aix4 | aix4.[01] | aix4.[01].*)
11869
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11871
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11874
can_build_shared=no
11878
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11879
# soname into executable. Probably we can add versioning support to
11880
# collect2, so additional links can be useful in future.
11881
if test "$aix_use_runtimelinking" = yes; then
11882
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11883
# instead of lib<name>.a to let people know that these are not
11884
# typical AIX shared libraries.
11885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11887
# We preserve .a as extension for shared libraries through AIX4.2
11888
# and later when we are not doing run time linking.
11889
library_names_spec='${libname}${release}.a $libname.a'
11890
soname_spec='${libname}${release}${shared_ext}$major'
11892
shlibpath_var=LIBPATH
11899
# Since July 2007 AmigaOS4 officially supports .so libraries.
11900
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11901
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11904
library_names_spec='$libname.ixlibrary $libname.a'
11905
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11906
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'
11912
library_names_spec='${libname}${shared_ext}'
11913
dynamic_linker="$host_os ld.so"
11914
shlibpath_var=LIBRARY_PATH
11920
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11921
soname_spec='${libname}${release}${shared_ext}$major'
11922
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11923
shlibpath_var=LD_LIBRARY_PATH
11924
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11925
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11926
# the default ld.so.conf also contains /usr/contrib/lib and
11927
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11928
# libtool to hard-code these into programs
11931
cygwin* | mingw* | pw32* | cegcc*)
11932
version_type=windows
11937
case $GCC,$host_os in
11938
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11939
library_names_spec='$libname.dll.a'
11940
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11941
postinstall_cmds='base_file=`basename \${file}`~
11942
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11943
dldir=$destdir/`dirname \$dlpath`~
11944
test -d \$dldir || mkdir -p \$dldir~
11945
$install_prog $dir/$dlname \$dldir/$dlname~
11946
chmod a+x \$dldir/$dlname~
11947
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11948
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11950
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11951
dlpath=$dir/\$dldll~
11953
shlibpath_overrides_runpath=yes
11957
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11958
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11959
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11962
# MinGW DLLs use traditional 'lib' prefix
11963
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11964
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11965
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11966
# It is most probably a Windows format PATH printed by
11967
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11968
# path with ; separators, and with drive letters. We can handle the
11969
# drive letters (cygwin fileutils understands them), so leave them,
11970
# especially as we might pass files found there to a mingw objdump,
11971
# which wouldn't understand a cygwinified path. Ahh.
11972
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11974
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11978
# pw32 DLLs use 'pw' prefix rather than 'lib'
11979
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11985
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11988
dynamic_linker='Win32 ld.exe'
11989
# FIXME: first we should search . and the directory the executable is in
11993
darwin* | rhapsody*)
11994
dynamic_linker="$host_os dyld"
11995
version_type=darwin
11998
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11999
soname_spec='${libname}${release}${major}$shared_ext'
12000
shlibpath_overrides_runpath=yes
12001
shlibpath_var=DYLD_LIBRARY_PATH
12002
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12004
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12005
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12012
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12013
soname_spec='${libname}${release}${shared_ext}$major'
12014
shlibpath_var=LD_LIBRARY_PATH
12021
freebsd* | dragonfly*)
12022
# DragonFly does not have aout. When/if they implement a new
12023
# versioning mechanism, adjust this.
12024
if test -x /usr/bin/objformat; then
12025
objformat=`/usr/bin/objformat`
12028
freebsd[123]*) objformat=aout ;;
12029
*) objformat=elf ;;
12032
version_type=freebsd-$objformat
12033
case $version_type in
12035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12040
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12044
shlibpath_var=LD_LIBRARY_PATH
12047
shlibpath_overrides_runpath=yes
12049
freebsd3.[01]* | freebsdelf3.[01]*)
12050
shlibpath_overrides_runpath=yes
12051
hardcode_into_libs=yes
12053
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12054
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12055
shlibpath_overrides_runpath=no
12056
hardcode_into_libs=yes
12058
*) # from 4.6 on, and DragonFly
12059
shlibpath_overrides_runpath=yes
12060
hardcode_into_libs=yes
12069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12070
soname_spec='${libname}${release}${shared_ext}$major'
12071
shlibpath_var=LD_LIBRARY_PATH
12072
hardcode_into_libs=yes
12075
hpux9* | hpux10* | hpux11*)
12076
# Give a soname corresponding to the major version so that dld.sl refuses to
12077
# link against other versions.
12084
hardcode_into_libs=yes
12085
dynamic_linker="$host_os dld.so"
12086
shlibpath_var=LD_LIBRARY_PATH
12087
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12089
soname_spec='${libname}${release}${shared_ext}$major'
12090
if test "X$HPUX_IA64_MODE" = X32; then
12091
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12093
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12095
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12099
hardcode_into_libs=yes
12100
dynamic_linker="$host_os dld.sl"
12101
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12102
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12104
soname_spec='${libname}${release}${shared_ext}$major'
12105
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12106
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12110
dynamic_linker="$host_os dld.sl"
12111
shlibpath_var=SHLIB_PATH
12112
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12113
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12114
soname_spec='${libname}${release}${shared_ext}$major'
12117
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12118
postinstall_cmds='chmod 555 $lib'
12125
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12126
soname_spec='${libname}${release}${shared_ext}$major'
12127
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12128
shlibpath_var=LD_LIBRARY_PATH
12129
shlibpath_overrides_runpath=no
12130
hardcode_into_libs=yes
12133
irix5* | irix6* | nonstopux*)
12135
nonstopux*) version_type=nonstopux ;;
12137
if test "$lt_cv_prog_gnu_ld" = yes; then
12145
soname_spec='${libname}${release}${shared_ext}$major'
12146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12148
irix5* | nonstopux*)
12149
libsuff= shlibsuff=
12152
case $LD in # libtool.m4 will add one of these switches to LD
12153
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12154
libsuff= shlibsuff= libmagic=32-bit;;
12155
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12156
libsuff=32 shlibsuff=N32 libmagic=N32;;
12157
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12158
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12159
*) libsuff= shlibsuff= libmagic=never-match;;
12163
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12164
shlibpath_overrides_runpath=no
12165
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12166
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12167
hardcode_into_libs=yes
12170
# No shared lib support for Linux oldld, aout, or coff.
12171
linux*oldld* | linux*aout* | linux*coff*)
12175
# This must be Linux ELF.
12176
linux* | k*bsd*-gnu)
12180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12181
soname_spec='${libname}${release}${shared_ext}$major'
12182
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12183
shlibpath_var=LD_LIBRARY_PATH
12184
shlibpath_overrides_runpath=no
12185
# Some binutils ld are patched to set DT_RUNPATH
12186
save_LDFLAGS=$LDFLAGS
12187
save_libdir=$libdir
12188
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12189
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12190
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191
/* end confdefs.h. */
12201
if ac_fn_c_try_link "$LINENO"; then :
12202
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12203
shlibpath_overrides_runpath=yes
12206
rm -f core conftest.err conftest.$ac_objext \
12207
conftest$ac_exeext conftest.$ac_ext
12208
LDFLAGS=$save_LDFLAGS
12209
libdir=$save_libdir
12211
# This implies no fast_install, which is unacceptable.
12212
# Some rework will be needed to allow for fast_install
12213
# before this can be enabled.
12214
hardcode_into_libs=yes
12216
# Append ld.so.conf contents to the search path
12217
if test -f /etc/ld.so.conf; then
12218
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12219
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12222
# We used to test for /lib/ld.so.1 and disable shared libraries on
12223
# powerpc, because MkLinux only supported shared libraries with the
12224
# GNU dynamic linker. Since this was broken with cross compilers,
12225
# most powerpc-linux boxes support dynamic linking these days and
12226
# people can always --disable-shared, the test was removed, and we
12227
# assume the GNU/Linux dynamic linker is in use.
12228
dynamic_linker='GNU/Linux ld.so'
12235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12236
soname_spec='${libname}${release}${shared_ext}$major'
12237
shlibpath_var=LD_LIBRARY_PATH
12238
shlibpath_overrides_runpath=no
12239
hardcode_into_libs=yes
12240
dynamic_linker='NetBSD ld.elf_so'
12247
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12249
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12250
dynamic_linker='NetBSD (a.out) ld.so'
12252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12253
soname_spec='${libname}${release}${shared_ext}$major'
12254
dynamic_linker='NetBSD ld.elf_so'
12256
shlibpath_var=LD_LIBRARY_PATH
12257
shlibpath_overrides_runpath=yes
12258
hardcode_into_libs=yes
12263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264
shlibpath_var=LD_LIBRARY_PATH
12265
shlibpath_overrides_runpath=yes
12272
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273
soname_spec='${libname}${release}${shared_ext}$major'
12274
shlibpath_var=LD_LIBRARY_PATH
12275
shlibpath_overrides_runpath=no
12276
hardcode_into_libs=yes
12277
dynamic_linker='ldqnx.so'
12282
sys_lib_dlsearch_path_spec="/usr/lib"
12284
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12286
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12287
*) need_version=no ;;
12289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12290
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12291
shlibpath_var=LD_LIBRARY_PATH
12292
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12294
openbsd2.[89] | openbsd2.[89].*)
12295
shlibpath_overrides_runpath=no
12298
shlibpath_overrides_runpath=yes
12302
shlibpath_overrides_runpath=yes
12307
libname_spec='$name'
12310
library_names_spec='$libname${shared_ext} $libname.a'
12311
dynamic_linker='OS/2 ld.exe'
12312
shlibpath_var=LIBPATH
12315
osf3* | osf4* | osf5*)
12319
soname_spec='${libname}${release}${shared_ext}$major'
12320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12321
shlibpath_var=LD_LIBRARY_PATH
12322
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12323
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12335
soname_spec='${libname}${release}${shared_ext}$major'
12336
shlibpath_var=LD_LIBRARY_PATH
12337
shlibpath_overrides_runpath=yes
12338
hardcode_into_libs=yes
12339
# ldd complains unless libraries are executable
12340
postinstall_cmds='chmod +x $lib'
12345
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12346
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12347
shlibpath_var=LD_LIBRARY_PATH
12348
shlibpath_overrides_runpath=yes
12349
if test "$with_gnu_ld" = yes; then
12357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12358
soname_spec='${libname}${release}${shared_ext}$major'
12359
shlibpath_var=LD_LIBRARY_PATH
12360
case $host_vendor in
12362
shlibpath_overrides_runpath=no
12364
runpath_var=LD_RUN_PATH
12372
shlibpath_overrides_runpath=no
12373
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12379
if test -d /usr/nec ;then
12381
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12382
soname_spec='$libname${shared_ext}.$major'
12383
shlibpath_var=LD_LIBRARY_PATH
12387
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12388
version_type=freebsd-elf
12391
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12392
soname_spec='${libname}${release}${shared_ext}$major'
12393
shlibpath_var=LD_LIBRARY_PATH
12394
shlibpath_overrides_runpath=yes
12395
hardcode_into_libs=yes
12396
if test "$with_gnu_ld" = yes; then
12397
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12399
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12402
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12406
sys_lib_dlsearch_path_spec='/usr/lib'
12410
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12415
shlibpath_var=LD_LIBRARY_PATH
12416
shlibpath_overrides_runpath=no
12417
hardcode_into_libs=yes
12422
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12423
soname_spec='${libname}${release}${shared_ext}$major'
12424
shlibpath_var=LD_LIBRARY_PATH
12431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12432
$as_echo "$dynamic_linker" >&6; }
12433
test "$dynamic_linker" = no && can_build_shared=no
12435
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12436
if test "$GCC" = yes; then
12437
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12440
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12441
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12443
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12444
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12534
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12536
if test -n "$hardcode_libdir_flag_spec" ||
12537
test -n "$runpath_var" ||
12538
test "X$hardcode_automatic" = "Xyes" ; then
12540
# We can hardcode non-existent directories.
12541
if test "$hardcode_direct" != no &&
12542
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12543
# have to relink, otherwise we might link with an installed library
12544
# when we should be linking with a yet-to-be-installed one
12545
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12546
test "$hardcode_minus_L" != no; then
12547
# Linking always hardcodes the temporary library directory.
12548
hardcode_action=relink
12550
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12551
hardcode_action=immediate
12554
# We cannot hardcode anything, or else we can only hardcode existing
12556
hardcode_action=unsupported
12558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12559
$as_echo "$hardcode_action" >&6; }
12561
if test "$hardcode_action" = relink ||
12562
test "$inherit_rpath" = yes; then
12563
# Fast installation is not supported
12564
enable_fast_install=no
12565
elif test "$shlibpath_overrides_runpath" = yes ||
12566
test "$enable_shared" = no; then
12567
# Fast installation is not necessary
12568
enable_fast_install=needless
12576
if test "x$enable_dlopen" != xyes; then
12577
enable_dlopen=unknown
12578
enable_dlopen_self=unknown
12579
enable_dlopen_self_static=unknown
12586
lt_cv_dlopen="load_add_on"
12588
lt_cv_dlopen_self=yes
12591
mingw* | pw32* | cegcc*)
12592
lt_cv_dlopen="LoadLibrary"
12597
lt_cv_dlopen="dlopen"
12602
# if libdl is installed we need to link against it
12603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12604
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12605
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12606
$as_echo_n "(cached) " >&6
12608
ac_check_lib_save_LIBS=$LIBS
12610
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611
/* end confdefs.h. */
12613
/* Override any GCC internal prototype to avoid an error.
12614
Use char because int might match the return type of a GCC
12615
builtin and then its argument prototype would still apply. */
12628
if ac_fn_c_try_link "$LINENO"; then :
12629
ac_cv_lib_dl_dlopen=yes
12631
ac_cv_lib_dl_dlopen=no
12633
rm -f core conftest.err conftest.$ac_objext \
12634
conftest$ac_exeext conftest.$ac_ext
12635
LIBS=$ac_check_lib_save_LIBS
12637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12638
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12639
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12640
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12643
lt_cv_dlopen="dyld"
12645
lt_cv_dlopen_self=yes
12652
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12653
if test "x$ac_cv_func_shl_load" = x""yes; then :
12654
lt_cv_dlopen="shl_load"
12656
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12657
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12658
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12659
$as_echo_n "(cached) " >&6
12661
ac_check_lib_save_LIBS=$LIBS
12663
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664
/* end confdefs.h. */
12666
/* Override any GCC internal prototype to avoid an error.
12667
Use char because int might match the return type of a GCC
12668
builtin and then its argument prototype would still apply. */
12676
return shl_load ();
12681
if ac_fn_c_try_link "$LINENO"; then :
12682
ac_cv_lib_dld_shl_load=yes
12684
ac_cv_lib_dld_shl_load=no
12686
rm -f core conftest.err conftest.$ac_objext \
12687
conftest$ac_exeext conftest.$ac_ext
12688
LIBS=$ac_check_lib_save_LIBS
12690
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12691
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12692
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12693
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12695
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12696
if test "x$ac_cv_func_dlopen" = x""yes; then :
12697
lt_cv_dlopen="dlopen"
12699
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12700
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12701
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12702
$as_echo_n "(cached) " >&6
12704
ac_check_lib_save_LIBS=$LIBS
12706
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707
/* end confdefs.h. */
12709
/* Override any GCC internal prototype to avoid an error.
12710
Use char because int might match the return type of a GCC
12711
builtin and then its argument prototype would still apply. */
12724
if ac_fn_c_try_link "$LINENO"; then :
12725
ac_cv_lib_dl_dlopen=yes
12727
ac_cv_lib_dl_dlopen=no
12729
rm -f core conftest.err conftest.$ac_objext \
12730
conftest$ac_exeext conftest.$ac_ext
12731
LIBS=$ac_check_lib_save_LIBS
12733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12734
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12735
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12736
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12738
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12739
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12740
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12741
$as_echo_n "(cached) " >&6
12743
ac_check_lib_save_LIBS=$LIBS
12744
LIBS="-lsvld $LIBS"
12745
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746
/* end confdefs.h. */
12748
/* Override any GCC internal prototype to avoid an error.
12749
Use char because int might match the return type of a GCC
12750
builtin and then its argument prototype would still apply. */
12763
if ac_fn_c_try_link "$LINENO"; then :
12764
ac_cv_lib_svld_dlopen=yes
12766
ac_cv_lib_svld_dlopen=no
12768
rm -f core conftest.err conftest.$ac_objext \
12769
conftest$ac_exeext conftest.$ac_ext
12770
LIBS=$ac_check_lib_save_LIBS
12772
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12773
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12774
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12775
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12778
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12779
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12780
$as_echo_n "(cached) " >&6
12782
ac_check_lib_save_LIBS=$LIBS
12784
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785
/* end confdefs.h. */
12787
/* Override any GCC internal prototype to avoid an error.
12788
Use char because int might match the return type of a GCC
12789
builtin and then its argument prototype would still apply. */
12797
return dld_link ();
12802
if ac_fn_c_try_link "$LINENO"; then :
12803
ac_cv_lib_dld_dld_link=yes
12805
ac_cv_lib_dld_dld_link=no
12807
rm -f core conftest.err conftest.$ac_objext \
12808
conftest$ac_exeext conftest.$ac_ext
12809
LIBS=$ac_check_lib_save_LIBS
12811
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12812
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12813
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12814
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12835
if test "x$lt_cv_dlopen" != xno; then
12841
case $lt_cv_dlopen in
12843
save_CPPFLAGS="$CPPFLAGS"
12844
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12846
save_LDFLAGS="$LDFLAGS"
12847
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12850
LIBS="$lt_cv_dlopen_libs $LIBS"
12852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12853
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12854
if test "${lt_cv_dlopen_self+set}" = set; then :
12855
$as_echo_n "(cached) " >&6
12857
if test "$cross_compiling" = yes; then :
12858
lt_cv_dlopen_self=cross
12860
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12861
lt_status=$lt_dlunknown
12862
cat > conftest.$ac_ext <<_LT_EOF
12863
#line 12863 "configure"
12864
#include "confdefs.h"
12873
# define LT_DLGLOBAL RTLD_GLOBAL
12876
# define LT_DLGLOBAL DL_GLOBAL
12878
# define LT_DLGLOBAL 0
12882
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12883
find out it does not work in some platform. */
12884
#ifndef LT_DLLAZY_OR_NOW
12886
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12889
# define LT_DLLAZY_OR_NOW DL_LAZY
12892
# define LT_DLLAZY_OR_NOW RTLD_NOW
12895
# define LT_DLLAZY_OR_NOW DL_NOW
12897
# define LT_DLLAZY_OR_NOW 0
12904
void fnord() { int i=42;}
12907
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12908
int status = $lt_dlunknown;
12912
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12913
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12914
/* dlclose (self); */
12922
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12923
(eval $ac_link) 2>&5
12925
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12926
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12927
(./conftest; exit; ) >&5 2>/dev/null
12929
case x$lt_status in
12930
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12931
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12932
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12935
# compilation failed
12936
lt_cv_dlopen_self=no
12943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12944
$as_echo "$lt_cv_dlopen_self" >&6; }
12946
if test "x$lt_cv_dlopen_self" = xyes; then
12947
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12949
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12950
if test "${lt_cv_dlopen_self_static+set}" = set; then :
12951
$as_echo_n "(cached) " >&6
12953
if test "$cross_compiling" = yes; then :
12954
lt_cv_dlopen_self_static=cross
12956
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12957
lt_status=$lt_dlunknown
12958
cat > conftest.$ac_ext <<_LT_EOF
12959
#line 12959 "configure"
12960
#include "confdefs.h"
12969
# define LT_DLGLOBAL RTLD_GLOBAL
12972
# define LT_DLGLOBAL DL_GLOBAL
12974
# define LT_DLGLOBAL 0
12978
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12979
find out it does not work in some platform. */
12980
#ifndef LT_DLLAZY_OR_NOW
12982
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12985
# define LT_DLLAZY_OR_NOW DL_LAZY
12988
# define LT_DLLAZY_OR_NOW RTLD_NOW
12991
# define LT_DLLAZY_OR_NOW DL_NOW
12993
# define LT_DLLAZY_OR_NOW 0
13000
void fnord() { int i=42;}
13003
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13004
int status = $lt_dlunknown;
13008
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13009
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13010
/* dlclose (self); */
13018
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13019
(eval $ac_link) 2>&5
13021
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13022
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13023
(./conftest; exit; ) >&5 2>/dev/null
13025
case x$lt_status in
13026
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13027
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13028
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13031
# compilation failed
13032
lt_cv_dlopen_self_static=no
13039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13040
$as_echo "$lt_cv_dlopen_self_static" >&6; }
13043
CPPFLAGS="$save_CPPFLAGS"
13044
LDFLAGS="$save_LDFLAGS"
13049
case $lt_cv_dlopen_self in
13050
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13051
*) enable_dlopen_self=unknown ;;
13054
case $lt_cv_dlopen_self_static in
13055
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13056
*) enable_dlopen_self_static=unknown ;;
13078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13079
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13080
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13081
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13082
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13084
$as_echo "yes" >&6; }
13086
# FIXME - insert some real tests, host_os isn't really good enough
13089
if test -n "$STRIP" ; then
13090
striplib="$STRIP -x"
13091
old_striplib="$STRIP -S"
13092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13093
$as_echo "yes" >&6; }
13095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096
$as_echo "no" >&6; }
13100
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13101
$as_echo "no" >&6; }
13117
# Report which library types will actually be built
13118
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13119
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13121
$as_echo "$can_build_shared" >&6; }
13123
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13124
$as_echo_n "checking whether to build shared libraries... " >&6; }
13125
test "$can_build_shared" = "no" && enable_shared=no
13127
# On AIX, shared libraries and static libraries use the same namespace, and
13128
# are all built from PIC.
13131
test "$enable_shared" = yes && enable_static=no
13132
if test -n "$RANLIB"; then
13133
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13134
postinstall_cmds='$RANLIB $lib'
13139
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13140
test "$enable_shared" = yes && enable_static=no
13144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13145
$as_echo "$enable_shared" >&6; }
13147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13148
$as_echo_n "checking whether to build static libraries... " >&6; }
13149
# Make sure either enable_shared or enable_static is yes.
13150
test "$enable_shared" = yes || enable_static=yes
13151
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13152
$as_echo "$enable_static" >&6; }
13159
ac_cpp='$CPP $CPPFLAGS'
13160
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13161
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13162
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13178
ac_config_commands="$ac_config_commands libtool"
13183
# Only expand once:
6941
13187
for ac_header in locale.h
15770
# See if we are running on zsh, and set the options which allow our
15771
# commands through without removal of \ escapes.
15772
if test -n "${ZSH_VERSION+set}" ; then
15773
setopt NO_GLOB_SUBST
15776
cfgfile="${ofile}T"
15777
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15780
cat <<_LT_EOF >> "$cfgfile"
15783
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15784
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15785
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15786
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15788
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15789
# 2006, 2007, 2008 Free Software Foundation, Inc.
15790
# Written by Gordon Matzigkeit, 1996
15792
# This file is part of GNU Libtool.
15794
# GNU Libtool is free software; you can redistribute it and/or
15795
# modify it under the terms of the GNU General Public License as
15796
# published by the Free Software Foundation; either version 2 of
15797
# the License, or (at your option) any later version.
15799
# As a special exception to the GNU General Public License,
15800
# if you distribute this file as part of a program or library that
15801
# is built using GNU Libtool, you may include this file under the
15802
# same distribution terms that you use for the rest of that program.
15804
# GNU Libtool is distributed in the hope that it will be useful,
15805
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15806
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15807
# GNU General Public License for more details.
15809
# You should have received a copy of the GNU General Public License
15810
# along with GNU Libtool; see the file COPYING. If not, a copy
15811
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15812
# obtained by writing to the Free Software Foundation, Inc.,
15813
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15816
# The names of the tagged configurations supported by this script.
15819
# ### BEGIN LIBTOOL CONFIG
15821
# Which release of libtool.m4 was used?
15822
macro_version=$macro_version
15823
macro_revision=$macro_revision
15825
# Whether or not to build shared libraries.
15826
build_libtool_libs=$enable_shared
15828
# Whether or not to build static libraries.
15829
build_old_libs=$enable_static
15831
# What type of objects to build.
15834
# Whether or not to optimize for fast installation.
15835
fast_install=$enable_fast_install
15838
host_alias=$host_alias
15842
# The build system.
15843
build_alias=$build_alias
15847
# A sed program that does not truncate output.
15850
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15851
Xsed="\$SED -e 1s/^X//"
15853
# A grep program that handles long lines.
15859
# A literal string matcher.
15862
# A BSD- or MS-compatible name lister.
15865
# Whether we need soft or hard links.
15868
# What is the maximum length of a command?
15869
max_cmd_len=$max_cmd_len
15871
# Object file suffix (normally "o").
15874
# Executable file suffix (normally "").
15877
# whether the shell understands "unset".
15880
# turn spaces into newlines.
15883
# turn newlines into spaces.
15886
# How to create reloadable object files.
15887
reload_flag=$lt_reload_flag
15888
reload_cmds=$lt_reload_cmds
15890
# An object symbol dumper.
15891
OBJDUMP=$lt_OBJDUMP
15893
# Method to check whether dependent libraries are shared objects.
15894
deplibs_check_method=$lt_deplibs_check_method
15896
# Command to use when deplibs_check_method == "file_magic".
15897
file_magic_cmd=$lt_file_magic_cmd
15901
AR_FLAGS=$lt_AR_FLAGS
15903
# A symbol stripping program.
15906
# Commands used to install an old-style archive.
15908
old_postinstall_cmds=$lt_old_postinstall_cmds
15909
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15914
# LTCC compiler flags.
15915
LTCFLAGS=$lt_CFLAGS
15917
# Take the output of nm and produce a listing of raw symbols and C names.
15918
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15920
# Transform the output of nm in a proper C declaration.
15921
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15923
# Transform the output of nm in a C name address pair.
15924
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15926
# Transform the output of nm in a C name address pair when lib prefix is needed.
15927
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15929
# The name of the directory that contains temporary libtool files.
15932
# Shell to use when invoking shell scripts.
15935
# An echo program that does not interpret backslashes.
15938
# Used to examine libraries when file_magic_cmd begins with "file".
15939
MAGIC_CMD=$MAGIC_CMD
15941
# Must we lock files when doing compilation?
15942
need_locks=$lt_need_locks
15944
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15945
DSYMUTIL=$lt_DSYMUTIL
15947
# Tool to change global to local symbols on Mac OS X.
15950
# Tool to manipulate fat objects and archives on Mac OS X.
15953
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15956
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15957
OTOOL64=$lt_OTOOL64
15959
# Old archive suffix (normally "a").
15962
# Shared library suffix (normally ".so").
15963
shrext_cmds=$lt_shrext_cmds
15965
# The commands to extract the exported symbol list from a shared archive.
15966
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15968
# Variables whose values should be saved in libtool wrapper scripts and
15969
# restored at link time.
15970
variables_saved_for_relink=$lt_variables_saved_for_relink
15972
# Do we need the "lib" prefix for modules?
15973
need_lib_prefix=$need_lib_prefix
15975
# Do we need a version for libraries?
15976
need_version=$need_version
15978
# Library versioning type.
15979
version_type=$version_type
15981
# Shared library runtime path variable.
15982
runpath_var=$runpath_var
15984
# Shared library path variable.
15985
shlibpath_var=$shlibpath_var
15987
# Is shlibpath searched before the hard-coded library search path?
15988
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15990
# Format of library name prefix.
15991
libname_spec=$lt_libname_spec
15993
# List of archive names. First name is the real one, the rest are links.
15994
# The last name is the one that the linker finds with -lNAME
15995
library_names_spec=$lt_library_names_spec
15997
# The coded name of the library, if different from the real name.
15998
soname_spec=$lt_soname_spec
16000
# Command to use after installation of a shared archive.
16001
postinstall_cmds=$lt_postinstall_cmds
16003
# Command to use after uninstallation of a shared archive.
16004
postuninstall_cmds=$lt_postuninstall_cmds
16006
# Commands used to finish a libtool library installation in a directory.
16007
finish_cmds=$lt_finish_cmds
16009
# As "finish_cmds", except a single script fragment to be evaled but
16011
finish_eval=$lt_finish_eval
16013
# Whether we should hardcode library paths into libraries.
16014
hardcode_into_libs=$hardcode_into_libs
16016
# Compile-time system search path for libraries.
16017
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16019
# Run-time system search path for libraries.
16020
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16022
# Whether dlopen is supported.
16023
dlopen_support=$enable_dlopen
16025
# Whether dlopen of programs is supported.
16026
dlopen_self=$enable_dlopen_self
16028
# Whether dlopen of statically linked programs is supported.
16029
dlopen_self_static=$enable_dlopen_self_static
16031
# Commands to strip libraries.
16032
old_striplib=$lt_old_striplib
16033
striplib=$lt_striplib
16036
# The linker used to build libraries.
16039
# Commands used to build an old-style archive.
16040
old_archive_cmds=$lt_old_archive_cmds
16042
# A language specific compiler.
16045
# Is the compiler the GNU compiler?
16048
# Compiler flag to turn off builtin functions.
16049
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16051
# How to pass a linker flag through the compiler.
16052
wl=$lt_lt_prog_compiler_wl
16054
# Additional compiler flags for building library objects.
16055
pic_flag=$lt_lt_prog_compiler_pic
16057
# Compiler flag to prevent dynamic linking.
16058
link_static_flag=$lt_lt_prog_compiler_static
16060
# Does compiler simultaneously support -c and -o options?
16061
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16063
# Whether or not to add -lc for building shared libraries.
16064
build_libtool_need_lc=$archive_cmds_need_lc
16066
# Whether or not to disallow shared libs when runtime libs are static.
16067
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16069
# Compiler flag to allow reflexive dlopens.
16070
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16072
# Compiler flag to generate shared objects directly from archives.
16073
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16075
# Whether the compiler copes with passing no objects directly.
16076
compiler_needs_object=$lt_compiler_needs_object
16078
# Create an old-style archive from a shared archive.
16079
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16081
# Create a temporary old-style archive to link instead of a shared archive.
16082
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16084
# Commands used to build a shared archive.
16085
archive_cmds=$lt_archive_cmds
16086
archive_expsym_cmds=$lt_archive_expsym_cmds
16088
# Commands used to build a loadable module if different from building
16089
# a shared archive.
16090
module_cmds=$lt_module_cmds
16091
module_expsym_cmds=$lt_module_expsym_cmds
16093
# Whether we are building with GNU ld or not.
16094
with_gnu_ld=$lt_with_gnu_ld
16096
# Flag that allows shared libraries with undefined symbols to be built.
16097
allow_undefined_flag=$lt_allow_undefined_flag
16099
# Flag that enforces no undefined symbols.
16100
no_undefined_flag=$lt_no_undefined_flag
16102
# Flag to hardcode \$libdir into a binary during linking.
16103
# This must work even if \$libdir does not exist
16104
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16106
# If ld is used when linking, flag to hardcode \$libdir into a binary
16107
# during linking. This must work even if \$libdir does not exist.
16108
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16110
# Whether we need a single "-rpath" flag with a separated argument.
16111
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16113
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16114
# DIR into the resulting binary.
16115
hardcode_direct=$hardcode_direct
16117
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16118
# DIR into the resulting binary and the resulting library dependency is
16119
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16120
# library is relocated.
16121
hardcode_direct_absolute=$hardcode_direct_absolute
16123
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16124
# into the resulting binary.
16125
hardcode_minus_L=$hardcode_minus_L
16127
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16128
# into the resulting binary.
16129
hardcode_shlibpath_var=$hardcode_shlibpath_var
16131
# Set to "yes" if building a shared library automatically hardcodes DIR
16132
# into the library and all subsequent libraries and executables linked
16134
hardcode_automatic=$hardcode_automatic
16136
# Set to yes if linker adds runtime paths of dependent libraries
16137
# to runtime path list.
16138
inherit_rpath=$inherit_rpath
16140
# Whether libtool must link a program against all its dependency libraries.
16141
link_all_deplibs=$link_all_deplibs
16143
# Fix the shell variable \$srcfile for the compiler.
16144
fix_srcfile_path=$lt_fix_srcfile_path
16146
# Set to "yes" if exported symbols are required.
16147
always_export_symbols=$always_export_symbols
16149
# The commands to list exported symbols.
16150
export_symbols_cmds=$lt_export_symbols_cmds
16152
# Symbols that should not be listed in the preloaded symbols.
16153
exclude_expsyms=$lt_exclude_expsyms
16155
# Symbols that must always be exported.
16156
include_expsyms=$lt_include_expsyms
16158
# Commands necessary for linking programs (against libraries) with templates.
16159
prelink_cmds=$lt_prelink_cmds
16161
# Specify filename containing input files.
16162
file_list_spec=$lt_file_list_spec
16164
# How to hardcode a shared library path into an executable.
16165
hardcode_action=$hardcode_action
16167
# ### END LIBTOOL CONFIG
16173
cat <<\_LT_EOF >> "$cfgfile"
16174
# AIX sometimes has problems with the GCC collect2 program. For some
16175
# reason, if we set the COLLECT_NAMES environment variable, the problems
16176
# vanish in a puff of smoke.
16177
if test "X${COLLECT_NAMES+set}" != Xset; then
16179
export COLLECT_NAMES
16186
ltmain="$ac_aux_dir/ltmain.sh"
16189
# We use sed instead of cat because bash on DJGPP gets confused if
16190
# if finds mixed CR/LF and LF-only lines. Since sed operates in
16191
# text mode, it properly converts lines to CR/LF. This bash problem
16192
# is reportedly fixed, but why not run on old versions too?
16193
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16194
|| (rm -f "$cfgfile"; exit 1)
16198
cat << \_LT_EOF >> "$cfgfile"
16200
# func_dirname file append nondir_replacement
16201
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16202
# otherwise set result to NONDIR_REPLACEMENT.
16206
*/*) func_dirname_result="${1%/*}${2}" ;;
16207
* ) func_dirname_result="${3}" ;;
16211
# func_basename file
16214
func_basename_result="${1##*/}"
16217
# func_dirname_and_basename file append nondir_replacement
16218
# perform func_basename and func_dirname in a single function
16220
# dirname: Compute the dirname of FILE. If nonempty,
16221
# add APPEND to the result, otherwise set result
16222
# to NONDIR_REPLACEMENT.
16223
# value returned in "$func_dirname_result"
16224
# basename: Compute filename of FILE.
16225
# value retuned in "$func_basename_result"
16226
# Implementation must be kept synchronized with func_dirname
16227
# and func_basename. For efficiency, we do not delegate to
16228
# those functions but instead duplicate the functionality here.
16229
func_dirname_and_basename ()
16232
*/*) func_dirname_result="${1%/*}${2}" ;;
16233
* ) func_dirname_result="${3}" ;;
16235
func_basename_result="${1##*/}"
16238
# func_stripname prefix suffix name
16239
# strip PREFIX and SUFFIX off of NAME.
16240
# PREFIX and SUFFIX must not contain globbing or regex special
16241
# characters, hashes, percent signs, but SUFFIX may contain a leading
16242
# dot (in which case that matches only a dot).
16245
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16246
# positional parameters, so assign one to ordinary parameter first.
16247
func_stripname_result=${3}
16248
func_stripname_result=${func_stripname_result#"${1}"}
16249
func_stripname_result=${func_stripname_result%"${2}"}
16255
func_opt_split_opt=${1%%=*}
16256
func_opt_split_arg=${1#*=}
16263
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16264
*) func_lo2o_result=${1} ;;
16268
# func_xform libobj-or-source
16271
func_xform_result=${1%.*}.lo
16274
# func_arith arithmetic-term...
16277
func_arith_result=$(( $* ))
16281
# STRING may not start with a hyphen.
16284
func_len_result=${#1}
16289
*) # Bourne compatible functions.
16290
cat << \_LT_EOF >> "$cfgfile"
16292
# func_dirname file append nondir_replacement
16293
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16294
# otherwise set result to NONDIR_REPLACEMENT.
16297
# Extract subdirectory from the argument.
16298
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16299
if test "X$func_dirname_result" = "X${1}"; then
16300
func_dirname_result="${3}"
16302
func_dirname_result="$func_dirname_result${2}"
16306
# func_basename file
16309
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16313
# func_stripname prefix suffix name
16314
# strip PREFIX and SUFFIX off of NAME.
16315
# PREFIX and SUFFIX must not contain globbing or regex special
16316
# characters, hashes, percent signs, but SUFFIX may contain a leading
16317
# dot (in which case that matches only a dot).
16318
# func_strip_suffix prefix name
16322
.*) func_stripname_result=`$ECHO "X${3}" \
16323
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16324
*) func_stripname_result=`$ECHO "X${3}" \
16325
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16330
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16331
my_sed_long_arg='1s/^-[^=]*=//'
16336
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16337
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16343
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16346
# func_xform libobj-or-source
16349
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16352
# func_arith arithmetic-term...
16355
func_arith_result=`expr "$@"`
16359
# STRING may not start with a hyphen.
16362
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16368
case $lt_shell_append in
16370
cat << \_LT_EOF >> "$cfgfile"
16372
# func_append var value
16373
# Append VALUE to the end of shell variable VAR.
16381
cat << \_LT_EOF >> "$cfgfile"
16383
# func_append var value
16384
# Append VALUE to the end of shell variable VAR.
16395
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16396
|| (rm -f "$cfgfile"; exit 1)
16398
mv -f "$cfgfile" "$ofile" ||
16399
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9177
16403
"default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
9178
16404
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile