~ubuntu-branches/ubuntu/lucid/quick-lounge-applet/lucid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Rottmann
  • Date: 2004-12-16 13:06:08 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041216130608-i7tq2h21kzrdy4yl
Tags: 2.2.0-1
* New upstream release.
* Build-Depend on debhelper (>= 4.1.0), fixes linda error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.7.2 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.7.8 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
4
# Free Software Foundation, Inc.
16
16
# This macro actually does too much some checks are only needed if
17
17
# your package does certain things.  But this isn't really a big deal.
18
18
 
19
 
# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
 
19
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
20
20
# Free Software Foundation, Inc.
21
21
 
22
22
# This program is free software; you can redistribute it and/or modify
34
34
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
35
35
# 02111-1307, USA.
36
36
 
37
 
# serial 8
38
 
 
39
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
40
 
# written in clear, in which case automake, when reading aclocal.m4,
41
 
# will think it sees a *use*, and therefore will trigger all it's
42
 
# C support machinery.  Also note that it means that autoscan, seeing
43
 
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
44
 
 
 
37
# serial 10
45
38
 
46
39
AC_PREREQ([2.54])
47
40
 
86
79
 AC_SUBST([PACKAGE], [$1])dnl
87
80
 AC_SUBST([VERSION], [$2])],
88
81
[_AM_SET_OPTIONS([$1])dnl
89
 
 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
90
 
 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
 
82
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
83
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
91
84
 
92
85
_AM_IF_OPTION([no-define],,
93
86
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
108
101
# some platforms.
109
102
AC_REQUIRE([AC_PROG_AWK])dnl
110
103
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
104
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
111
105
 
112
106
_AM_IF_OPTION([no-dependencies],,
113
107
[AC_PROVIDE_IFELSE([AC_PROG_CC],
130
124
# loop where config.status creates the headers, so we can generate
131
125
# our stamp files there.
132
126
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
133
 
[_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
 
127
[# Compute $1's index in $config_headers.
 
128
_am_stamp_count=1
 
129
for _am_header in $config_headers :; do
 
130
  case $_am_header in
 
131
    $1 | $1:* )
 
132
      break ;;
 
133
    * )
 
134
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
135
  esac
 
136
done
134
137
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
135
138
 
136
139
# Copyright 2002  Free Software Foundation, Inc.
160
163
# Call AM_AUTOMAKE_VERSION so it can be traced.
161
164
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
162
165
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
163
 
         [AM_AUTOMAKE_VERSION([1.7.2])])
 
166
         [AM_AUTOMAKE_VERSION([1.7.8])])
164
167
 
165
168
# Helper functions for option handling.                    -*- Autoconf -*-
166
169
 
446
449
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
447
450
AC_SUBST([INSTALL_STRIP_PROGRAM])])
448
451
 
449
 
# serial 4                                              -*- Autoconf -*-
450
 
 
451
 
# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
 
452
#                                                          -*- Autoconf -*-
 
453
# Copyright (C) 2003  Free Software Foundation, Inc.
 
454
 
 
455
# This program is free software; you can redistribute it and/or modify
 
456
# it under the terms of the GNU General Public License as published by
 
457
# the Free Software Foundation; either version 2, or (at your option)
 
458
# any later version.
 
459
 
 
460
# This program is distributed in the hope that it will be useful,
 
461
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
462
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
463
# GNU General Public License for more details.
 
464
 
 
465
# You should have received a copy of the GNU General Public License
 
466
# along with this program; if not, write to the Free Software
 
467
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
468
# 02111-1307, USA.
 
469
 
 
470
# serial 1
 
471
 
 
472
# Check whether the underlying file-system supports filenames
 
473
# with a leading dot.  For instance MS-DOS doesn't.
 
474
AC_DEFUN([AM_SET_LEADING_DOT],
 
475
[rm -rf .tst 2>/dev/null
 
476
mkdir .tst 2>/dev/null
 
477
if test -d .tst; then
 
478
  am__leading_dot=.
 
479
else
 
480
  am__leading_dot=_
 
481
fi
 
482
rmdir .tst 2>/dev/null
 
483
AC_SUBST([am__leading_dot])])
 
484
 
 
485
# serial 5                                              -*- Autoconf -*-
 
486
 
 
487
# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
452
488
 
453
489
# This program is free software; you can redistribute it and/or modify
454
490
# it under the terms of the GNU General Public License as published by
509
545
  # using a relative directory.
510
546
  cp "$am_depcomp" conftest.dir
511
547
  cd conftest.dir
 
548
  # We will build objects and dependencies in a subdirectory because
 
549
  # it helps to detect inapplicable dependency modes.  For instance
 
550
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
551
  # side effect of compilation, but ICC will put the dependencies in
 
552
  # the current directory while Tru64 will put them in the object
 
553
  # directory.
 
554
  mkdir sub
512
555
 
513
556
  am_cv_$1_dependencies_compiler_type=none
514
557
  if test "$am_compiler_list" = ""; then
515
558
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
516
559
  fi
517
560
  for depmode in $am_compiler_list; do
 
561
    # Setup a source with many dependencies, because some compilers
 
562
    # like to wrap large dependency lists on column 80 (with \), and
 
563
    # we should not choose a depcomp mode which is confused by this.
 
564
    #
518
565
    # We need to recreate these files for each test, as the compiler may
519
566
    # overwrite some of them when testing with obscure command lines.
520
567
    # This happens at least with the AIX C compiler.
521
 
    echo '#include "conftest.h"' > conftest.c
522
 
    echo 'int i;' > conftest.h
523
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
568
    : > sub/conftest.c
 
569
    for i in 1 2 3 4 5 6; do
 
570
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
571
      : > sub/conftst$i.h
 
572
    done
 
573
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
524
574
 
525
575
    case $depmode in
526
576
    nosideeffect)
538
588
    # mode.  It turns out that the SunPro C++ compiler does not properly
539
589
    # handle `-M -o', and we need to detect this.
540
590
    if depmode=$depmode \
541
 
       source=conftest.c object=conftest.o \
542
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
543
 
       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
544
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
591
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
592
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
593
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
594
         >/dev/null 2>conftest.err &&
 
595
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
596
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
545
597
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
546
 
      am_cv_$1_dependencies_compiler_type=$depmode
547
 
      break
 
598
      # icc doesn't choke on unknown options, it will just issue warnings
 
599
      # (even with -Werror).  So we grep stderr for any message
 
600
      # that says an option was ignored.
 
601
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
602
        am_cv_$1_dependencies_compiler_type=$depmode
 
603
        break
 
604
      fi
548
605
    fi
549
606
  done
550
607
 
566
623
# Choose a directory name for dependency files.
567
624
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
568
625
AC_DEFUN([AM_SET_DEPDIR],
569
 
[rm -f .deps 2>/dev/null
570
 
mkdir .deps 2>/dev/null
571
 
if test -d .deps; then
572
 
  DEPDIR=.deps
573
 
else
574
 
  # MS-DOS does not allow filenames that begin with a dot.
575
 
  DEPDIR=_deps
576
 
fi
577
 
rmdir .deps 2>/dev/null
578
 
AC_SUBST([DEPDIR])
 
626
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
627
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
579
628
])
580
629
 
581
630
 
679
728
 
680
729
# Check to see how 'make' treats includes.      -*- Autoconf -*-
681
730
 
682
 
# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
 
731
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
683
732
 
684
733
# This program is free software; you can redistribute it and/or modify
685
734
# it under the terms of the GNU General Public License as published by
704
753
AC_DEFUN([AM_MAKE_INCLUDE],
705
754
[am_make=${MAKE-make}
706
755
cat > confinc << 'END'
707
 
doit:
 
756
am__doit:
708
757
        @echo done
 
758
.PHONY: am__doit
709
759
END
710
760
# If we don't find an include directive, just comment out the code.
711
761
AC_MSG_CHECKING([for style of include used by $am_make])
733
783
      _am_result=BSD
734
784
   fi
735
785
fi
736
 
AC_SUBST(am__include)
737
 
AC_SUBST(am__quote)
738
 
AC_MSG_RESULT($_am_result)
 
786
AC_SUBST([am__include])
 
787
AC_SUBST([am__quote])
 
788
AC_MSG_RESULT([$_am_result])
739
789
rm -f confinc confmf
740
790
])
741
791
 
809
859
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
810
860
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
811
861
 
812
 
ll## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*-
813
862
 
814
 
dnl AC_PROG_INTLTOOL([MINIMUM-VERSION])
 
863
dnl AC_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
815
864
# serial 1 AC_PROG_INTLTOOL
816
865
AC_DEFUN([AC_PROG_INTLTOOL],
817
866
[
833
882
    fi
834
883
fi
835
884
 
836
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
837
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
838
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -k -u -c $(top_builddir)/po/.intltool-merge-cache'
839
 
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
840
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -o -p'
841
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
842
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -o -u -c $(top_builddir)/po/.intltool-merge-cache'
843
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
844
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
845
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
846
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
847
 
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
848
 
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -x -u -m -c $(top_builddir)/po/.intltool-merge-cache'
849
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
850
 
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -s -u -c $(top_builddir)/po/.intltool-merge-cache'
851
 
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
 
885
  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 $< [$]@' 
 
886
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 $< [$]@' 
 
887
     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 $< [$]@' 
 
888
     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 $< [$]@' 
 
889
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
 
890
     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 $< [$]@' 
 
891
   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 $< [$]@' 
 
892
    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 $< [$]@' 
 
893
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 $< [$]@' 
 
894
       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 $< [$]@' 
 
895
      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 $< [$]@' 
 
896
      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 $< [$]@' 
 
897
      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 $< [$]@' 
 
898
    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 $< [$]@' 
 
899
  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 $< [$]@' 
 
900
    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 $< [$]@' 
852
901
 
853
902
AC_SUBST(INTLTOOL_DESKTOP_RULE)
854
903
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
884
933
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
885
934
   AC_MSG_ERROR([perl 5.x required for intltool])
886
935
fi
887
 
if `perl -e "require XML::Parser" 2>/dev/null`; then
888
 
:
889
 
else
890
 
   AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
936
if test "x$2" != "xno-xml"; then
 
937
   AC_MSG_CHECKING([for XML::Parser])
 
938
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
939
       AC_MSG_RESULT([ok])
 
940
   else
 
941
       AC_MSG_ERROR([XML::Parser perl module is required for intltool])
 
942
   fi
891
943
fi
892
944
 
 
945
AC_PATH_PROG(ICONV, iconv, iconv)
 
946
AC_PATH_PROG(MSGFMT, msgfmt, msgfmt)
 
947
AC_PATH_PROG(MSGMERGE, msgmerge, msgmerge)
 
948
AC_PATH_PROG(XGETTEXT, xgettext, xgettext)
 
949
 
893
950
# Remove file type tags (using []) from po/POTFILES.
894
951
 
895
952
ifdef([AC_DIVERSION_ICMDS],[
914
971
 
915
972
# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
916
973
 
917
 
AC_OUTPUT_COMMANDS([
918
 
 
919
 
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${ac_aux_dir}/intltool-extract.in > intltool-extract.out
 
974
AC_CONFIG_COMMANDS([intltool], [
 
975
 
 
976
intltool_edit="-e 's:@INTLTOOL_EXTRACT@:${INTLTOOL_EXTRACT}:g' \
 
977
               -e 's:@INTLTOOL_ICONV@:${ICONV}:g' \
 
978
               -e 's:@INTLTOOL_MSGFMT@:${MSGFMT}:g' \
 
979
               -e 's:@INTLTOOL_MSGMERGE@:${MSGMERGE}:g' \
 
980
               -e 's:@INTLTOOL_XGETTEXT@:${XGETTEXT}:g' \
 
981
               -e 's:@INTLTOOL_PERL@:${INTLTOOL_PERL}:g'"
 
982
 
 
983
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
 
984
  > intltool-extract.out
920
985
if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
921
986
  rm -f intltool-extract.out
922
987
else
925
990
chmod ugo+x intltool-extract
926
991
chmod u+w intltool-extract
927
992
 
928
 
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" \
929
 
    < ${ac_aux_dir}/intltool-merge.in > intltool-merge.out
 
993
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
 
994
  > intltool-merge.out
930
995
if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
931
996
  rm -f intltool-merge.out
932
997
else
935
1000
chmod ugo+x intltool-merge
936
1001
chmod u+w intltool-merge
937
1002
 
938
 
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${ac_aux_dir}/intltool-update.in > intltool-update.out
 
1003
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
 
1004
  > intltool-update.out
939
1005
if cmp -s intltool-update intltool-update.out 2>/dev/null; then
940
1006
  rm -f intltool-update.out
941
1007
else
944
1010
chmod ugo+x intltool-update
945
1011
chmod u+w intltool-update
946
1012
 
947
 
], INTLTOOL_PERL=${INTLTOOL_PERL} ac_aux_dir=${ac_aux_dir})
 
1013
], INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
 
1014
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${ICONV}'
 
1015
MSGFMT='${MSGFMT}' MSGMERGE='${MSGMERGE}' XGETTEXT='${XGETTEXT}')
948
1016
 
949
1017
])
950
1018
 
951
 
# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
952
 
 
953
 
# serial 46 AC_PROG_LIBTOOL
954
 
 
 
1019
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 
1020
 
 
1021
# serial 47 AC_PROG_LIBTOOL
 
1022
 
 
1023
 
 
1024
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 
1025
# -----------------------------------------------------------
 
1026
# If this macro is not defined by Autoconf, define it here.
 
1027
m4_ifdef([AC_PROVIDE_IFELSE],
 
1028
         [],
 
1029
         [m4_define([AC_PROVIDE_IFELSE],
 
1030
                 [m4_ifdef([AC_PROVIDE_$1],
 
1031
                           [$2], [$3])])])
 
1032
 
 
1033
 
 
1034
# AC_PROG_LIBTOOL
 
1035
# ---------------
955
1036
AC_DEFUN([AC_PROG_LIBTOOL],
 
1037
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
 
1038
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
 
1039
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
 
1040
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
1041
    [AC_LIBTOOL_CXX],
 
1042
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
 
1043
  ])])
 
1044
dnl And a similar setup for Fortran 77 support
 
1045
  AC_PROVIDE_IFELSE([AC_PROG_F77],
 
1046
    [AC_LIBTOOL_F77],
 
1047
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
 
1048
])])
 
1049
 
 
1050
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
 
1051
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
 
1052
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
 
1053
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
1054
    [AC_LIBTOOL_GCJ],
 
1055
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
1056
      [AC_LIBTOOL_GCJ],
 
1057
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
 
1058
        [AC_LIBTOOL_GCJ],
 
1059
      [ifdef([AC_PROG_GCJ],
 
1060
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
1061
       ifdef([A][M_PROG_GCJ],
 
1062
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
1063
       ifdef([LT_AC_PROG_GCJ],
 
1064
             [define([LT_AC_PROG_GCJ],
 
1065
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
 
1066
])])# AC_PROG_LIBTOOL
 
1067
 
 
1068
 
 
1069
# _AC_PROG_LIBTOOL
 
1070
# ----------------
 
1071
AC_DEFUN([_AC_PROG_LIBTOOL],
956
1072
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 
1073
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
 
1074
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
 
1075
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
957
1076
 
958
1077
# This can be used to rebuild libtool when needed
959
1078
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
964
1083
 
965
1084
# Prevent multiple expansion
966
1085
define([AC_PROG_LIBTOOL], [])
967
 
])
968
 
 
 
1086
])# _AC_PROG_LIBTOOL
 
1087
 
 
1088
 
 
1089
# AC_LIBTOOL_SETUP
 
1090
# ----------------
969
1091
AC_DEFUN([AC_LIBTOOL_SETUP],
970
 
[AC_PREREQ(2.13)dnl
 
1092
[AC_PREREQ(2.50)dnl
971
1093
AC_REQUIRE([AC_ENABLE_SHARED])dnl
972
1094
AC_REQUIRE([AC_ENABLE_STATIC])dnl
973
1095
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
977
1099
AC_REQUIRE([AC_PROG_LD])dnl
978
1100
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
979
1101
AC_REQUIRE([AC_PROG_NM])dnl
980
 
AC_REQUIRE([LT_AC_PROG_SED])dnl
981
1102
 
982
1103
AC_REQUIRE([AC_PROG_LN_S])dnl
983
1104
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
 
1105
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
984
1106
AC_REQUIRE([AC_OBJEXT])dnl
985
1107
AC_REQUIRE([AC_EXEEXT])dnl
986
1108
dnl
987
1109
 
 
1110
AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1111
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
1112
AC_LIBTOOL_OBJDIR
 
1113
 
 
1114
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
988
1115
_LT_AC_PROG_ECHO_BACKSLASH
 
1116
 
 
1117
case $host_os in
 
1118
aix3*)
 
1119
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
1120
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
1121
  # vanish in a puff of smoke.
 
1122
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
1123
    COLLECT_NAMES=
 
1124
    export COLLECT_NAMES
 
1125
  fi
 
1126
  ;;
 
1127
esac
 
1128
 
 
1129
# Sed substitution that helps us do robust quoting.  It backslashifies
 
1130
# metacharacters that are still active within double-quoted strings.
 
1131
Xsed='sed -e s/^X//'
 
1132
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
 
1133
 
 
1134
# Same as above, but do not quote variable references.
 
1135
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 
1136
 
 
1137
# Sed substitution to delay expansion of an escaped shell variable in a
 
1138
# double_quote_subst'ed string.
 
1139
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
1140
 
 
1141
# Sed substitution to avoid accidental globbing in evaled expressions
 
1142
no_glob_subst='s/\*/\\\*/g'
 
1143
 
 
1144
# Constants:
 
1145
rm="rm -f"
 
1146
 
 
1147
# Global variables:
 
1148
default_ofile=libtool
 
1149
can_build_shared=yes
 
1150
 
 
1151
# All known linkers require a `.a' archive for static linking (except M$VC,
 
1152
# which needs '.lib').
 
1153
libext=a
 
1154
ltmain="$ac_aux_dir/ltmain.sh"
 
1155
ofile="$default_ofile"
 
1156
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
1157
 
 
1158
AC_CHECK_TOOL(AR, ar, false)
 
1159
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
1160
AC_CHECK_TOOL(STRIP, strip, :)
 
1161
 
 
1162
old_CC="$CC"
 
1163
old_CFLAGS="$CFLAGS"
 
1164
 
 
1165
# Set sane defaults for various variables
 
1166
test -z "$AR" && AR=ar
 
1167
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
1168
test -z "$AS" && AS=as
 
1169
test -z "$CC" && CC=cc
 
1170
test -z "$LTCC" && LTCC=$CC
 
1171
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
1172
test -z "$LD" && LD=ld
 
1173
test -z "$LN_S" && LN_S="ln -s"
 
1174
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
1175
test -z "$NM" && NM=nm
 
1176
test -z "$SED" && SED=sed
 
1177
test -z "$OBJDUMP" && OBJDUMP=objdump
 
1178
test -z "$RANLIB" && RANLIB=:
 
1179
test -z "$STRIP" && STRIP=:
 
1180
test -z "$ac_objext" && ac_objext=o
 
1181
 
 
1182
# Determine commands to create old-style static archives.
 
1183
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
1184
old_postinstall_cmds='chmod 644 $oldlib'
 
1185
old_postuninstall_cmds=
 
1186
 
 
1187
if test -n "$RANLIB"; then
 
1188
  case $host_os in
 
1189
  openbsd*)
 
1190
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
1191
    ;;
 
1192
  *)
 
1193
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
1194
    ;;
 
1195
  esac
 
1196
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
1197
fi
 
1198
 
989
1199
# Only perform the check for file, if the check method requires it
990
1200
case $deplibs_check_method in
991
1201
file_magic*)
995
1205
  ;;
996
1206
esac
997
1207
 
998
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
999
 
AC_CHECK_TOOL(STRIP, strip, :)
1000
 
 
1001
 
ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1002
 
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
 
1208
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
 
1209
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1003
1210
enable_win32_dll=yes, enable_win32_dll=no)
1004
1211
 
1005
 
AC_ARG_ENABLE(libtool-lock,
1006
 
  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
 
1212
AC_ARG_ENABLE([libtool-lock],
 
1213
    [AC_HELP_STRING([--disable-libtool-lock],
 
1214
        [avoid locking (might break parallel builds)])])
1007
1215
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1008
1216
 
1009
 
# Some flags need to be propagated to the compiler or linker for good
1010
 
# libtool support.
1011
 
case $host in
1012
 
*-*-irix6*)
1013
 
  # Find out which ABI we are using.
1014
 
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1015
 
  if AC_TRY_EVAL(ac_compile); then
1016
 
    case `/usr/bin/file conftest.$ac_objext` in
1017
 
    *32-bit*)
1018
 
      LD="${LD-ld} -32"
1019
 
      ;;
1020
 
    *N32*)
1021
 
      LD="${LD-ld} -n32"
1022
 
      ;;
1023
 
    *64-bit*)
1024
 
      LD="${LD-ld} -64"
1025
 
      ;;
1026
 
    esac
1027
 
  fi
1028
 
  rm -rf conftest*
1029
 
  ;;
1030
 
 
1031
 
*-*-sco3.2v5*)
1032
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1033
 
  SAVE_CFLAGS="$CFLAGS"
1034
 
  CFLAGS="$CFLAGS -belf"
1035
 
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1036
 
    [AC_LANG_SAVE
1037
 
     AC_LANG_C
1038
 
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1039
 
     AC_LANG_RESTORE])
1040
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1041
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1042
 
    CFLAGS="$SAVE_CFLAGS"
1043
 
  fi
1044
 
  ;;
1045
 
 
1046
 
ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
1047
 
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1048
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1049
 
  AC_CHECK_TOOL(AS, as, false)
1050
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
1051
 
 
1052
 
  # recent cygwin and mingw systems supply a stub DllMain which the user
1053
 
  # can override, but on older systems we have to supply one
1054
 
  AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
1055
 
    [AC_TRY_LINK([],
1056
 
      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
1057
 
      DllMain (0, 0, 0);],
1058
 
      [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
1059
 
 
1060
 
  case $host/$CC in
1061
 
  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
1062
 
    # old mingw systems require "-dll" to link a DLL, while more recent ones
1063
 
    # require "-mdll"
1064
 
    SAVE_CFLAGS="$CFLAGS"
1065
 
    CFLAGS="$CFLAGS -mdll"
1066
 
    AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
1067
 
      [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
1068
 
    CFLAGS="$SAVE_CFLAGS" ;;
1069
 
  *-*-cygwin* | *-*-pw32*)
1070
 
    # cygwin systems need to pass --dll to the linker, and not link
1071
 
    # crt.o which will require a WinMain@16 definition.
1072
 
    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
1073
 
  esac
1074
 
  ;;
1075
 
  ])
1076
 
esac
1077
 
 
1078
 
_LT_AC_LTCONFIG_HACK
1079
 
 
1080
 
])
1081
 
 
1082
 
# AC_LIBTOOL_HEADER_ASSERT
1083
 
# ------------------------
1084
 
AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
1085
 
[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
1086
 
    [lt_cv_func_assert_works],
1087
 
    [case $host in
1088
 
    *-*-solaris*)
1089
 
      if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
1090
 
        case `$CC --version 2>/dev/null` in
1091
 
        [[12]].*) lt_cv_func_assert_works=no ;;
1092
 
        *)        lt_cv_func_assert_works=yes ;;
1093
 
        esac
1094
 
      fi
1095
 
      ;;
1096
 
    esac])
1097
 
 
1098
 
if test "x$lt_cv_func_assert_works" = xyes; then
1099
 
  AC_CHECK_HEADERS(assert.h)
1100
 
fi
1101
 
])# AC_LIBTOOL_HEADER_ASSERT
1102
 
 
1103
 
# _LT_AC_CHECK_DLFCN
1104
 
# --------------------
1105
 
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1106
 
[AC_CHECK_HEADERS(dlfcn.h)
1107
 
])# _LT_AC_CHECK_DLFCN
1108
 
 
1109
 
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1110
 
# ---------------------------------
1111
 
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
1112
 
[AC_REQUIRE([AC_CANONICAL_HOST])
1113
 
AC_REQUIRE([AC_PROG_NM])
1114
 
AC_REQUIRE([AC_OBJEXT])
1115
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
1116
 
AC_MSG_CHECKING([command to parse $NM output])
1117
 
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
1118
 
 
1119
 
# These are sane defaults that work on at least a few old systems.
1120
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
1121
 
 
1122
 
# Character class describing NM global symbol codes.
1123
 
symcode='[[BCDEGRST]]'
1124
 
 
1125
 
# Regexp to match symbols that can be accessed directly from C.
1126
 
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
1127
 
 
1128
 
# Transform the above into a raw symbol and a C symbol.
1129
 
symxfrm='\1 \2\3 \3'
1130
 
 
1131
 
# Transform an extracted symbol line into a proper C declaration
1132
 
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1133
 
 
1134
 
# Transform an extracted symbol line into symbol name and symbol address
1135
 
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
1136
 
 
1137
 
# Define system-specific variables.
1138
 
case $host_os in
1139
 
aix*)
1140
 
  symcode='[[BCDT]]'
1141
 
  ;;
1142
 
cygwin* | mingw* | pw32*)
1143
 
  symcode='[[ABCDGISTW]]'
1144
 
  ;;
1145
 
hpux*) # Its linker distinguishes data from code symbols
1146
 
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1147
 
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
1148
 
  ;;
1149
 
irix* | nonstopux*)
1150
 
  symcode='[[BCDEGRST]]'
1151
 
  ;;
1152
 
osf*)
1153
 
  symcode='[[BCDEGQRST]]'
1154
 
  ;;
1155
 
solaris* | sysv5*)
1156
 
  symcode='[[BDT]]'
1157
 
  ;;
1158
 
sysv4)
1159
 
  symcode='[[DFNSTU]]'
1160
 
  ;;
1161
 
esac
1162
 
 
1163
 
# Handle CRLF in mingw tool chain
1164
 
opt_cr=
1165
 
case $host_os in
1166
 
mingw*)
1167
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1168
 
  ;;
1169
 
esac
1170
 
 
1171
 
# If we're using GNU nm, then use its standard symbol codes.
1172
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1173
 
  symcode='[[ABCDGISTW]]'
1174
 
fi
1175
 
 
1176
 
# Try without a prefix undercore, then with it.
1177
 
for ac_symprfx in "" "_"; do
1178
 
 
1179
 
  # Write the raw and C identifiers.
1180
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[        ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1181
 
 
1182
 
  # Check to see that the pipe works correctly.
1183
 
  pipe_works=no
1184
 
  rm -f conftest*
1185
 
  cat > conftest.$ac_ext <<EOF
1186
 
#ifdef __cplusplus
1187
 
extern "C" {
1188
 
#endif
1189
 
char nm_test_var;
1190
 
void nm_test_func(){}
1191
 
#ifdef __cplusplus
1192
 
}
1193
 
#endif
1194
 
int main(){nm_test_var='a';nm_test_func();return(0);}
1195
 
EOF
1196
 
 
1197
 
  if AC_TRY_EVAL(ac_compile); then
1198
 
    # Now try to grab the symbols.
1199
 
    nlist=conftest.nm
1200
 
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
1201
 
      # Try sorting and uniquifying the output.
1202
 
      if sort "$nlist" | uniq > "$nlist"T; then
1203
 
        mv -f "$nlist"T "$nlist"
1204
 
      else
1205
 
        rm -f "$nlist"T
1206
 
      fi
1207
 
 
1208
 
      # Make sure that we snagged all the symbols we need.
1209
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
1210
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
1211
 
          cat <<EOF > conftest.$ac_ext
1212
 
#ifdef __cplusplus
1213
 
extern "C" {
1214
 
#endif
1215
 
 
1216
 
EOF
1217
 
          # Now generate the symbol file.
1218
 
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
1219
 
 
1220
 
          cat <<EOF >> conftest.$ac_ext
1221
 
#if defined (__STDC__) && __STDC__
1222
 
# define lt_ptr void *
1223
 
#else
1224
 
# define lt_ptr char *
1225
 
# define const
1226
 
#endif
1227
 
 
1228
 
/* The mapping between symbol names and symbols. */
1229
 
const struct {
1230
 
  const char *name;
1231
 
  lt_ptr address;
1232
 
}
1233
 
lt_preloaded_symbols[[]] =
1234
 
{
1235
 
EOF
1236
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
1237
 
          cat <<\EOF >> conftest.$ac_ext
1238
 
  {0, (lt_ptr) 0}
1239
 
};
1240
 
 
1241
 
#ifdef __cplusplus
1242
 
}
1243
 
#endif
1244
 
EOF
1245
 
          # Now try linking the two files.
1246
 
          mv conftest.$ac_objext conftstm.$ac_objext
1247
 
          save_LIBS="$LIBS"
1248
 
          save_CFLAGS="$CFLAGS"
1249
 
          LIBS="conftstm.$ac_objext"
1250
 
          CFLAGS="$CFLAGS$no_builtin_flag"
1251
 
          if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
1252
 
            pipe_works=yes
1253
 
          fi
1254
 
          LIBS="$save_LIBS"
1255
 
          CFLAGS="$save_CFLAGS"
1256
 
        else
1257
 
          echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
1258
 
        fi
1259
 
      else
1260
 
        echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
1261
 
      fi
1262
 
    else
1263
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
1264
 
    fi
1265
 
  else
1266
 
    echo "$progname: failed program was:" >&AC_FD_CC
1267
 
    cat conftest.$ac_ext >&5
1268
 
  fi
1269
 
  rm -f conftest* conftst*
1270
 
 
1271
 
  # Do not use the global_symbol_pipe unless it works.
1272
 
  if test "$pipe_works" = yes; then
1273
 
    break
1274
 
  else
1275
 
    lt_cv_sys_global_symbol_pipe=
1276
 
  fi
1277
 
done
1278
 
])
1279
 
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
1280
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
1281
 
  global_symbol_to_cdecl=
1282
 
  global_symbol_to_c_name_address=
1283
 
else
1284
 
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
1285
 
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
1286
 
fi
1287
 
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
1288
 
then
1289
 
  AC_MSG_RESULT(failed)
1290
 
else
1291
 
  AC_MSG_RESULT(ok)
1292
 
fi
1293
 
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1294
 
 
1295
 
# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1296
 
# ---------------------------------
1297
 
AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
1298
 
[# Find the correct PATH separator.  Usually this is `:', but
1299
 
# DJGPP uses `;' like DOS.
1300
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
1301
 
  UNAME=${UNAME-`uname 2>/dev/null`}
1302
 
  case X$UNAME in
1303
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
1304
 
    *)     lt_cv_sys_path_separator=':' ;;
1305
 
  esac
1306
 
  PATH_SEPARATOR=$lt_cv_sys_path_separator
1307
 
fi
1308
 
])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
 
1217
AC_ARG_WITH([pic],
 
1218
    [AC_HELP_STRING([--with-pic],
 
1219
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
1220
    [pic_mode="$withval"],
 
1221
    [pic_mode=default])
 
1222
test -z "$pic_mode" && pic_mode=default
 
1223
 
 
1224
# Use C for the default configuration in the libtool script
 
1225
tagname=
 
1226
AC_LIBTOOL_LANG_C_CONFIG
 
1227
_LT_AC_TAGCONFIG
 
1228
])# AC_LIBTOOL_SETUP
 
1229
 
 
1230
 
 
1231
# _LT_AC_SYS_COMPILER
 
1232
# -------------------
 
1233
AC_DEFUN([_LT_AC_SYS_COMPILER],
 
1234
[AC_REQUIRE([AC_PROG_CC])dnl
 
1235
 
 
1236
# If no C compiler was specified, use CC.
 
1237
LTCC=${LTCC-"$CC"}
 
1238
 
 
1239
# Allow CC to be a program name with arguments.
 
1240
compiler=$CC
 
1241
])# _LT_AC_SYS_COMPILER
 
1242
 
 
1243
 
 
1244
# _LT_AC_SYS_LIBPATH_AIX
 
1245
# ----------------------
 
1246
# Links a minimal program and checks the executable
 
1247
# for the system default hardcoded library path. In most cases,
 
1248
# this is /usr/lib:/lib, but when the MPI compilers are used
 
1249
# the location of the communication and MPI libs are included too.
 
1250
# If we don't find anything, use the default library path according
 
1251
# to the aix ld manual.
 
1252
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 
1253
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
 
1254
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
1255
}'`
 
1256
# Check for a 64-bit object if we didn't find anything.
 
1257
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
1258
}'`; fi],[])
 
1259
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
1260
])# _LT_AC_SYS_LIBPATH_AIX
 
1261
 
 
1262
 
 
1263
# _LT_AC_SHELL_INIT(ARG)
 
1264
# ----------------------
 
1265
AC_DEFUN([_LT_AC_SHELL_INIT],
 
1266
[ifdef([AC_DIVERSION_NOTICE],
 
1267
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
 
1268
         [AC_DIVERT_PUSH(NOTICE)])
 
1269
$1
 
1270
AC_DIVERT_POP
 
1271
])# _LT_AC_SHELL_INIT
 
1272
 
1309
1273
 
1310
1274
# _LT_AC_PROG_ECHO_BACKSLASH
1311
1275
# --------------------------
1312
1276
# Add some code to the start of the generated configure script which
1313
1277
# will find an echo command which doesn't interpret backslashes.
1314
1278
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1315
 
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1316
 
                              [AC_DIVERT_PUSH(NOTICE)])
1317
 
_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1318
 
 
 
1279
[_LT_AC_SHELL_INIT([
1319
1280
# Check that we are running under the correct shell.
1320
1281
SHELL=${CONFIG_SHELL-/bin/sh}
1321
1282
 
1333
1294
elif test "X[$]1" = X--fallback-echo; then
1334
1295
  # Avoid inline document here, it may be left over
1335
1296
  :
1336
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
1297
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1337
1298
  # Yippee, $echo works!
1338
1299
  :
1339
1300
else
1345
1306
  # used as fallback echo
1346
1307
  shift
1347
1308
  cat <<EOF
1348
 
$*
 
1309
[$]*
1349
1310
EOF
1350
1311
  exit 0
1351
1312
fi
1379
1340
  #
1380
1341
  # So, first we look for a working echo in the user's PATH.
1381
1342
 
1382
 
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1343
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1383
1344
  for dir in $PATH /usr/ucb; do
 
1345
    IFS="$lt_save_ifs"
1384
1346
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1385
1347
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1386
1348
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1389
1351
      break
1390
1352
    fi
1391
1353
  done
1392
 
  IFS="$save_ifs"
 
1354
  IFS="$lt_save_ifs"
1393
1355
 
1394
1356
  if test "X$echo" = Xecho; then
1395
1357
    # We didn't find a better echo, so look for alternatives.
1462
1424
fi
1463
1425
 
1464
1426
AC_SUBST(ECHO)
1465
 
AC_DIVERT_POP
1466
 
])# _LT_AC_PROG_ECHO_BACKSLASH
 
1427
])])# _LT_AC_PROG_ECHO_BACKSLASH
 
1428
 
 
1429
 
 
1430
# _LT_AC_LOCK
 
1431
# -----------
 
1432
AC_DEFUN([_LT_AC_LOCK],
 
1433
[AC_ARG_ENABLE([libtool-lock],
 
1434
    [AC_HELP_STRING([--disable-libtool-lock],
 
1435
        [avoid locking (might break parallel builds)])])
 
1436
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
1437
 
 
1438
# Some flags need to be propagated to the compiler or linker for good
 
1439
# libtool support.
 
1440
case $host in
 
1441
ia64-*-hpux*)
 
1442
  # Find out which ABI we are using.
 
1443
  echo 'int i;' > conftest.$ac_ext
 
1444
  if AC_TRY_EVAL(ac_compile); then
 
1445
    case `/usr/bin/file conftest.$ac_objext` in
 
1446
    *ELF-32*)
 
1447
      HPUX_IA64_MODE="32"
 
1448
      ;;
 
1449
    *ELF-64*)
 
1450
      HPUX_IA64_MODE="64"
 
1451
      ;;
 
1452
    esac
 
1453
  fi
 
1454
  rm -rf conftest*
 
1455
  ;;
 
1456
*-*-irix6*)
 
1457
  # Find out which ABI we are using.
 
1458
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 
1459
  if AC_TRY_EVAL(ac_compile); then
 
1460
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
1461
    case `/usr/bin/file conftest.$ac_objext` in
 
1462
    *32-bit*)
 
1463
      LD="${LD-ld} -melf32bsmip"
 
1464
      ;;
 
1465
    *N32*)
 
1466
      LD="${LD-ld} -melf32bmipn32"
 
1467
      ;;
 
1468
    *64-bit*)
 
1469
      LD="${LD-ld} -melf64bmip"
 
1470
      ;;
 
1471
    esac
 
1472
   else
 
1473
    case `/usr/bin/file conftest.$ac_objext` in
 
1474
    *32-bit*)
 
1475
      LD="${LD-ld} -32"
 
1476
      ;;
 
1477
    *N32*)
 
1478
      LD="${LD-ld} -n32"
 
1479
      ;;
 
1480
    *64-bit*)
 
1481
      LD="${LD-ld} -64"
 
1482
      ;;
 
1483
    esac
 
1484
   fi
 
1485
  fi
 
1486
  rm -rf conftest*
 
1487
  ;;
 
1488
 
 
1489
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
1490
  # Find out which ABI we are using.
 
1491
  echo 'int i;' > conftest.$ac_ext
 
1492
  if AC_TRY_EVAL(ac_compile); then
 
1493
    case "`/usr/bin/file conftest.o`" in
 
1494
    *32-bit*)
 
1495
      case $host in
 
1496
        x86_64-*linux*)
 
1497
          LD="${LD-ld} -m elf_i386"
 
1498
          ;;
 
1499
        ppc64-*linux*)
 
1500
          LD="${LD-ld} -m elf32ppclinux"
 
1501
          ;;
 
1502
        s390x-*linux*)
 
1503
          LD="${LD-ld} -m elf_s390"
 
1504
          ;;
 
1505
        sparc64-*linux*)
 
1506
          LD="${LD-ld} -m elf32_sparc"
 
1507
          ;;
 
1508
      esac
 
1509
      ;;
 
1510
    *64-bit*)
 
1511
      case $host in
 
1512
        x86_64-*linux*)
 
1513
          LD="${LD-ld} -m elf_x86_64"
 
1514
          ;;
 
1515
        ppc*-*linux*|powerpc*-*linux*)
 
1516
          LD="${LD-ld} -m elf64ppc"
 
1517
          ;;
 
1518
        s390*-*linux*)
 
1519
          LD="${LD-ld} -m elf64_s390"
 
1520
          ;;
 
1521
        sparc*-*linux*)
 
1522
          LD="${LD-ld} -m elf64_sparc"
 
1523
          ;;
 
1524
      esac
 
1525
      ;;
 
1526
    esac
 
1527
  fi
 
1528
  rm -rf conftest*
 
1529
  ;;
 
1530
 
 
1531
*-*-sco3.2v5*)
 
1532
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
1533
  SAVE_CFLAGS="$CFLAGS"
 
1534
  CFLAGS="$CFLAGS -belf"
 
1535
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 
1536
    [AC_LANG_PUSH(C)
 
1537
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
1538
     AC_LANG_POP])
 
1539
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
1540
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
1541
    CFLAGS="$SAVE_CFLAGS"
 
1542
  fi
 
1543
  ;;
 
1544
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
1545
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
1546
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
1547
  AC_CHECK_TOOL(AS, as, false)
 
1548
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
1549
  ;;
 
1550
  ])
 
1551
esac
 
1552
 
 
1553
need_locks="$enable_libtool_lock"
 
1554
 
 
1555
])# _LT_AC_LOCK
 
1556
 
 
1557
 
 
1558
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1559
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 
1560
# ----------------------------------------------------------------
 
1561
# Check whether the given compiler option works
 
1562
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 
1563
[AC_CACHE_CHECK([$1], [$2],
 
1564
  [$2=no
 
1565
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
1566
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1567
   lt_compiler_flag="$3"
 
1568
   # Insert the option either (1) after the last *FLAGS variable, or
 
1569
   # (2) before a word containing "conftest.", or (3) at the end.
 
1570
   # Note that $ac_compile itself does not contain backslashes and begins
 
1571
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
1572
   # The option is referenced via a variable to avoid confusing sed.
 
1573
   lt_compile=`echo "$ac_compile" | $SED \
 
1574
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1575
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
1576
   -e 's:$: $lt_compiler_flag:'`
 
1577
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1578
   (eval "$lt_compile" 2>conftest.err)
 
1579
   ac_status=$?
 
1580
   cat conftest.err >&AS_MESSAGE_LOG_FD
 
1581
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1582
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
1583
     # The compiler can only warn and ignore the option if not recognized
 
1584
     # So say no if there are warnings
 
1585
     if test ! -s conftest.err; then
 
1586
       $2=yes
 
1587
     fi
 
1588
   fi
 
1589
   $rm conftest*
 
1590
])
 
1591
 
 
1592
if test x"[$]$2" = xyes; then
 
1593
    ifelse([$5], , :, [$5])
 
1594
else
 
1595
    ifelse([$6], , :, [$6])
 
1596
fi
 
1597
])# AC_LIBTOOL_COMPILER_OPTION
 
1598
 
 
1599
 
 
1600
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1601
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
 
1602
# ------------------------------------------------------------
 
1603
# Check whether the given compiler option works
 
1604
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
 
1605
[AC_CACHE_CHECK([$1], [$2],
 
1606
  [$2=no
 
1607
   save_LDFLAGS="$LDFLAGS"
 
1608
   LDFLAGS="$LDFLAGS $3"
 
1609
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
1610
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
1611
     # The compiler can only warn and ignore the option if not recognized
 
1612
     # So say no if there are warnings
 
1613
     if test -s conftest.err; then
 
1614
       # Append any errors to the config.log.
 
1615
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
 
1616
     else
 
1617
       $2=yes
 
1618
     fi
 
1619
   fi
 
1620
   $rm conftest*
 
1621
   LDFLAGS="$save_LDFLAGS"
 
1622
])
 
1623
 
 
1624
if test x"[$]$2" = xyes; then
 
1625
    ifelse([$4], , :, [$4])
 
1626
else
 
1627
    ifelse([$5], , :, [$5])
 
1628
fi
 
1629
])# AC_LIBTOOL_LINKER_OPTION
 
1630
 
 
1631
 
 
1632
# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1633
# --------------------------
 
1634
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
 
1635
[# find the maximum length of command line arguments
 
1636
AC_MSG_CHECKING([the maximum length of command line arguments])
 
1637
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 
1638
  i=0
 
1639
  testring="ABCD"
 
1640
 
 
1641
  case $build_os in
 
1642
  msdosdjgpp*)
 
1643
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
1644
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
1645
    # during glob expansion).  Even if it were fixed, the result of this
 
1646
    # check would be larger than it should be.
 
1647
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
1648
    ;;
 
1649
 
 
1650
  gnu*)
 
1651
    # Under GNU Hurd, this test is not required because there is
 
1652
    # no limit to the length of command line arguments.
 
1653
    # Libtool will interpret -1 as no limit whatsoever
 
1654
    lt_cv_sys_max_cmd_len=-1;
 
1655
    ;;
 
1656
 
 
1657
  cygwin* | mingw*)
 
1658
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
1659
    # about 5 minutes as the teststring grows exponentially.
 
1660
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
1661
    # you end up with a "frozen" computer, even though with patience
 
1662
    # the test eventually succeeds (with a max line length of 256k).
 
1663
    # Instead, let's just punt: use the minimum linelength reported by
 
1664
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
1665
    lt_cv_sys_max_cmd_len=8192;
 
1666
    ;;
 
1667
 
 
1668
 *)
 
1669
    # If test is not a shell built-in, we'll probably end up computing a
 
1670
    # maximum length that is only half of the actual maximum length, but
 
1671
    # we can't tell.
 
1672
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
 
1673
               = "XX$testring") >/dev/null 2>&1 &&
 
1674
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
1675
            lt_cv_sys_max_cmd_len=$new_result &&
 
1676
            test $i != 17 # 1/2 MB should be enough
 
1677
    do
 
1678
      i=`expr $i + 1`
 
1679
      testring=$testring$testring
 
1680
    done
 
1681
    testring=
 
1682
    # Add a significant safety factor because C++ compilers can tack on massive
 
1683
    # amounts of additional arguments before passing them to the linker.
 
1684
    # It appears as though 1/2 is a usable value.
 
1685
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
1686
    ;;
 
1687
  esac
 
1688
])
 
1689
if test -n $lt_cv_sys_max_cmd_len ; then
 
1690
  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 
1691
else
 
1692
  AC_MSG_RESULT(none)
 
1693
fi
 
1694
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1695
 
 
1696
 
 
1697
# _LT_AC_CHECK_DLFCN
 
1698
# --------------------
 
1699
AC_DEFUN([_LT_AC_CHECK_DLFCN],
 
1700
[AC_CHECK_HEADERS(dlfcn.h)dnl
 
1701
])# _LT_AC_CHECK_DLFCN
 
1702
 
1467
1703
 
1468
1704
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1469
1705
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1470
1706
# ------------------------------------------------------------------
1471
1707
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1472
 
[if test "$cross_compiling" = yes; then :
 
1708
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
1709
if test "$cross_compiling" = yes; then :
1473
1710
  [$4]
1474
1711
else
1475
 
  AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1476
1712
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1477
1713
  lt_status=$lt_dlunknown
1478
1714
  cat > conftest.$ac_ext <<EOF
1553
1789
rm -fr conftest*
1554
1790
])# _LT_AC_TRY_DLOPEN_SELF
1555
1791
 
 
1792
 
1556
1793
# AC_LIBTOOL_DLOPEN_SELF
1557
1794
# -------------------
1558
1795
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1559
 
[if test "x$enable_dlopen" != xyes; then
 
1796
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
1797
if test "x$enable_dlopen" != xyes; then
1560
1798
  enable_dlopen=unknown
1561
1799
  enable_dlopen_self=unknown
1562
1800
  enable_dlopen_self_static=unknown
1571
1809
    lt_cv_dlopen_self=yes
1572
1810
    ;;
1573
1811
 
1574
 
  cygwin* | mingw* | pw32*)
 
1812
  mingw* | pw32*)
1575
1813
    lt_cv_dlopen="LoadLibrary"
1576
1814
    lt_cv_dlopen_libs=
1577
1815
   ;;
1578
1816
 
 
1817
  cygwin*)
 
1818
    lt_cv_dlopen="dlopen"
 
1819
    lt_cv_dlopen_libs=
 
1820
   ;;
 
1821
 
 
1822
  darwin*)
 
1823
  # if libdl is installed we need to link against it
 
1824
    AC_CHECK_LIB([dl], [dlopen],
 
1825
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
 
1826
    lt_cv_dlopen="dyld"
 
1827
    lt_cv_dlopen_libs=
 
1828
    lt_cv_dlopen_self=yes
 
1829
    ])
 
1830
   ;;
 
1831
    
1579
1832
  *)
1580
1833
    AC_CHECK_FUNC([shl_load],
1581
 
          [lt_cv_dlopen="shl_load"],
 
1834
          [lt_cv_dlopen="shl_load"],
1582
1835
      [AC_CHECK_LIB([dld], [shl_load],
1583
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
1836
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1584
1837
        [AC_CHECK_FUNC([dlopen],
1585
1838
              [lt_cv_dlopen="dlopen"],
1586
1839
          [AC_CHECK_LIB([dl], [dlopen],
1587
 
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 
1840
                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1588
1841
            [AC_CHECK_LIB([svld], [dlopen],
1589
 
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 
1842
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1590
1843
              [AC_CHECK_LIB([dld], [dld_link],
1591
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
1844
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1592
1845
              ])
1593
1846
            ])
1594
1847
          ])
1606
1859
  case $lt_cv_dlopen in
1607
1860
  dlopen)
1608
1861
    save_CPPFLAGS="$CPPFLAGS"
1609
 
    AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1610
1862
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1611
1863
 
1612
1864
    save_LDFLAGS="$LDFLAGS"
1650
1902
fi
1651
1903
])# AC_LIBTOOL_DLOPEN_SELF
1652
1904
 
1653
 
AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1654
 
[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1655
 
# Sed substitution that helps us do robust quoting.  It backslashifies
1656
 
# metacharacters that are still active within double-quoted strings.
1657
 
Xsed='sed -e s/^X//'
1658
 
sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
1659
 
 
1660
 
# Same as above, but do not quote variable references.
1661
 
double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
1662
 
 
1663
 
# Sed substitution to delay expansion of an escaped shell variable in a
1664
 
# double_quote_subst'ed string.
1665
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1666
 
 
1667
 
# Constants:
1668
 
rm="rm -f"
1669
 
 
1670
 
# Global variables:
1671
 
default_ofile=libtool
1672
 
can_build_shared=yes
1673
 
 
1674
 
# All known linkers require a `.a' archive for static linking (except M$VC,
1675
 
# which needs '.lib').
1676
 
libext=a
1677
 
ltmain="$ac_aux_dir/ltmain.sh"
1678
 
ofile="$default_ofile"
1679
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
1680
 
need_locks="$enable_libtool_lock"
1681
 
 
1682
 
old_CC="$CC"
1683
 
old_CFLAGS="$CFLAGS"
1684
 
 
1685
 
# Set sane defaults for various variables
1686
 
test -z "$AR" && AR=ar
1687
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
1688
 
test -z "$AS" && AS=as
1689
 
test -z "$CC" && CC=cc
1690
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
1691
 
test -z "$LD" && LD=ld
1692
 
test -z "$LN_S" && LN_S="ln -s"
1693
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1694
 
test -z "$NM" && NM=nm
1695
 
test -z "$OBJDUMP" && OBJDUMP=objdump
1696
 
test -z "$RANLIB" && RANLIB=:
1697
 
test -z "$STRIP" && STRIP=:
1698
 
test -z "$ac_objext" && ac_objext=o
1699
 
 
1700
 
if test x"$host" != x"$build"; then
1701
 
  ac_tool_prefix=${host_alias}-
1702
 
else
1703
 
  ac_tool_prefix=
1704
 
fi
1705
 
 
1706
 
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
1707
 
case $host_os in
1708
 
linux-gnu*) ;;
1709
 
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
1710
 
esac
1711
 
 
1712
 
case $host_os in
1713
 
aix3*)
1714
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
1715
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
1716
 
  # vanish in a puff of smoke.
1717
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
1718
 
    COLLECT_NAMES=
1719
 
    export COLLECT_NAMES
1720
 
  fi
1721
 
  ;;
1722
 
esac
1723
 
 
1724
 
# Determine commands to create old-style static archives.
1725
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1726
 
old_postinstall_cmds='chmod 644 $oldlib'
1727
 
old_postuninstall_cmds=
1728
 
 
1729
 
if test -n "$RANLIB"; then
1730
 
  case $host_os in
1731
 
  openbsd*)
1732
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1733
 
    ;;
1734
 
  *)
1735
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1736
 
    ;;
1737
 
  esac
1738
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1739
 
fi
1740
 
 
1741
 
# Allow CC to be a program name with arguments.
1742
 
set dummy $CC
1743
 
compiler="[$]2"
1744
 
 
1745
 
AC_MSG_CHECKING([for objdir])
1746
 
rm -f .libs 2>/dev/null
1747
 
mkdir .libs 2>/dev/null
1748
 
if test -d .libs; then
1749
 
  objdir=.libs
1750
 
else
1751
 
  # MS-DOS does not allow filenames that begin with a dot.
1752
 
  objdir=_libs
1753
 
fi
1754
 
rmdir .libs 2>/dev/null
1755
 
AC_MSG_RESULT($objdir)
1756
 
 
1757
 
 
1758
 
AC_ARG_WITH(pic,
1759
 
[  --with-pic              try to use only PIC/non-PIC objects [default=use both]],
1760
 
pic_mode="$withval", pic_mode=default)
1761
 
test -z "$pic_mode" && pic_mode=default
1762
 
 
1763
 
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
1764
 
# in isolation, and that seeing it set (from the cache) indicates that
1765
 
# the associated values are set (in the cache) correctly too.
1766
 
AC_MSG_CHECKING([for $compiler option to produce PIC])
1767
 
AC_CACHE_VAL(lt_cv_prog_cc_pic,
1768
 
[ lt_cv_prog_cc_pic=
1769
 
  lt_cv_prog_cc_shlib=
1770
 
  lt_cv_prog_cc_wl=
1771
 
  lt_cv_prog_cc_static=
1772
 
  lt_cv_prog_cc_no_builtin=
1773
 
  lt_cv_prog_cc_can_build_shared=$can_build_shared
1774
 
 
1775
 
  if test "$GCC" = yes; then
1776
 
    lt_cv_prog_cc_wl='-Wl,'
1777
 
    lt_cv_prog_cc_static='-static'
1778
 
 
1779
 
    case $host_os in
1780
 
    aix*)
1781
 
      # Below there is a dirty hack to force normal static linking with -ldl
1782
 
      # The problem is because libdl dynamically linked with both libc and
1783
 
      # libC (AIX C++ library), which obviously doesn't included in libraries
1784
 
      # list by gcc. This cause undefined symbols with -static flags.
1785
 
      # This hack allows C programs to be linked with "-static -ldl", but
1786
 
      # not sure about C++ programs.
1787
 
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
1788
 
      ;;
1789
 
    amigaos*)
1790
 
      # FIXME: we need at least 68020 code to build shared libraries, but
1791
 
      # adding the `-m68020' flag to GCC prevents building anything better,
1792
 
      # like `-m68040'.
1793
 
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
1794
 
      ;;
1795
 
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1796
 
      # PIC is the default for these OSes.
1797
 
      ;;
1798
 
    darwin* | rhapsody*)
1799
 
      # PIC is the default on this platform
1800
 
      # Common symbols not allowed in MH_DYLIB files
1801
 
      lt_cv_prog_cc_pic='-fno-common'
1802
 
      ;;
1803
 
    cygwin* | mingw* | pw32* | os2*)
1804
 
      # This hack is so that the source file can tell whether it is being
1805
 
      # built for inclusion in a dll (and should export symbols for example).
1806
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
1807
 
      ;;
1808
 
    sysv4*MP*)
1809
 
      if test -d /usr/nec; then
1810
 
         lt_cv_prog_cc_pic=-Kconform_pic
1811
 
      fi
1812
 
      ;;
1813
 
    *)
1814
 
      lt_cv_prog_cc_pic='-fPIC'
1815
 
      ;;
1816
 
    esac
1817
 
  else
1818
 
    # PORTME Check for PIC flags for the system compiler.
1819
 
    case $host_os in
1820
 
    aix3* | aix4* | aix5*)
1821
 
      lt_cv_prog_cc_wl='-Wl,'
1822
 
      # All AIX code is PIC.
1823
 
      if test "$host_cpu" = ia64; then
1824
 
        # AIX 5 now supports IA64 processor
1825
 
        lt_cv_prog_cc_static='-Bstatic'
1826
 
      else
1827
 
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
1828
 
      fi
1829
 
      ;;
1830
 
 
1831
 
    hpux9* | hpux10* | hpux11*)
1832
 
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
1833
 
      lt_cv_prog_cc_wl='-Wl,'
1834
 
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
1835
 
      lt_cv_prog_cc_pic='+Z'
1836
 
      ;;
1837
 
 
1838
 
    irix5* | irix6* | nonstopux*)
1839
 
      lt_cv_prog_cc_wl='-Wl,'
1840
 
      lt_cv_prog_cc_static='-non_shared'
1841
 
      # PIC (with -KPIC) is the default.
1842
 
      ;;
1843
 
 
1844
 
    cygwin* | mingw* | pw32* | os2*)
1845
 
      # This hack is so that the source file can tell whether it is being
1846
 
      # built for inclusion in a dll (and should export symbols for example).
1847
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
1848
 
      ;;
1849
 
 
1850
 
    newsos6)
1851
 
      lt_cv_prog_cc_pic='-KPIC'
1852
 
      lt_cv_prog_cc_static='-Bstatic'
1853
 
      ;;
1854
 
 
1855
 
    osf3* | osf4* | osf5*)
1856
 
      # All OSF/1 code is PIC.
1857
 
      lt_cv_prog_cc_wl='-Wl,'
1858
 
      lt_cv_prog_cc_static='-non_shared'
1859
 
      ;;
1860
 
 
1861
 
    sco3.2v5*)
1862
 
      lt_cv_prog_cc_pic='-Kpic'
1863
 
      lt_cv_prog_cc_static='-dn'
1864
 
      lt_cv_prog_cc_shlib='-belf'
1865
 
      ;;
1866
 
 
1867
 
    solaris*)
1868
 
      lt_cv_prog_cc_pic='-KPIC'
1869
 
      lt_cv_prog_cc_static='-Bstatic'
1870
 
      lt_cv_prog_cc_wl='-Wl,'
1871
 
      ;;
1872
 
 
1873
 
    sunos4*)
1874
 
      lt_cv_prog_cc_pic='-PIC'
1875
 
      lt_cv_prog_cc_static='-Bstatic'
1876
 
      lt_cv_prog_cc_wl='-Qoption ld '
1877
 
      ;;
1878
 
 
1879
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1880
 
      lt_cv_prog_cc_pic='-KPIC'
1881
 
      lt_cv_prog_cc_static='-Bstatic'
1882
 
      lt_cv_prog_cc_wl='-Wl,'
1883
 
      ;;
1884
 
 
1885
 
    uts4*)
1886
 
      lt_cv_prog_cc_pic='-pic'
1887
 
      lt_cv_prog_cc_static='-Bstatic'
1888
 
      ;;
1889
 
 
1890
 
    sysv4*MP*)
1891
 
      if test -d /usr/nec ;then
1892
 
        lt_cv_prog_cc_pic='-Kconform_pic'
1893
 
        lt_cv_prog_cc_static='-Bstatic'
1894
 
      fi
1895
 
      ;;
1896
 
 
1897
 
    *)
1898
 
      lt_cv_prog_cc_can_build_shared=no
1899
 
      ;;
1900
 
    esac
1901
 
  fi
1902
 
])
1903
 
if test -z "$lt_cv_prog_cc_pic"; then
1904
 
  AC_MSG_RESULT([none])
1905
 
else
1906
 
  AC_MSG_RESULT([$lt_cv_prog_cc_pic])
1907
 
 
1908
 
  # Check to make sure the pic_flag actually works.
1909
 
  AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
1910
 
  AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
1911
 
    save_CFLAGS="$CFLAGS"
1912
 
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
1913
 
    AC_TRY_COMPILE([], [], [dnl
1914
 
      case $host_os in
1915
 
      hpux9* | hpux10* | hpux11*)
1916
 
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
1917
 
        # they create non-PIC objects.  So, if there were any warnings, we
1918
 
        # assume that PIC is not supported.
1919
 
        if test -s conftest.err; then
1920
 
          lt_cv_prog_cc_pic_works=no
1921
 
        else
1922
 
          lt_cv_prog_cc_pic_works=yes
1923
 
        fi
1924
 
        ;;
1925
 
      *)
1926
 
        lt_cv_prog_cc_pic_works=yes
1927
 
        ;;
1928
 
      esac
1929
 
    ], [dnl
1930
 
      lt_cv_prog_cc_pic_works=no
1931
 
    ])
1932
 
    CFLAGS="$save_CFLAGS"
1933
 
  ])
1934
 
 
1935
 
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
1936
 
    lt_cv_prog_cc_pic=
1937
 
    lt_cv_prog_cc_can_build_shared=no
1938
 
  else
1939
 
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
1940
 
  fi
1941
 
 
1942
 
  AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
1943
 
fi
1944
 
 
1945
 
# Check for any special shared library compilation flags.
1946
 
if test -n "$lt_cv_prog_cc_shlib"; then
1947
 
  AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
1948
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[[         ]]$lt_cv_prog_cc_shlib[[        ]]" >/dev/null; then :
1949
 
  else
1950
 
   AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
1951
 
    lt_cv_prog_cc_can_build_shared=no
1952
 
  fi
1953
 
fi
1954
 
 
1955
 
AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
1956
 
AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
1957
 
  lt_cv_prog_cc_static_works=no
1958
 
  save_LDFLAGS="$LDFLAGS"
1959
 
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
1960
 
  AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
1961
 
  LDFLAGS="$save_LDFLAGS"
1962
 
])
1963
 
 
1964
 
# Belt *and* braces to stop my trousers falling down:
1965
 
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
1966
 
AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
1967
 
 
1968
 
pic_flag="$lt_cv_prog_cc_pic"
1969
 
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
1970
 
wl="$lt_cv_prog_cc_wl"
1971
 
link_static_flag="$lt_cv_prog_cc_static"
1972
 
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
1973
 
can_build_shared="$lt_cv_prog_cc_can_build_shared"
1974
 
 
1975
 
 
1976
 
# Check to see if options -o and -c are simultaneously supported by compiler
1977
 
AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
1978
 
AC_CACHE_VAL([lt_cv_compiler_c_o], [
1979
 
$rm -r conftest 2>/dev/null
1980
 
mkdir conftest
1981
 
cd conftest
1982
 
echo "int some_variable = 0;" > conftest.$ac_ext
1983
 
mkdir out
1984
 
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1985
 
# that will create temporary files in the current directory regardless of
1986
 
# the output directory.  Thus, making CWD read-only will cause this test
1987
 
# to fail, enabling locking or at least warning the user not to do parallel
1988
 
# builds.
1989
 
chmod -w .
1990
 
save_CFLAGS="$CFLAGS"
1991
 
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
1992
 
compiler_c_o=no
1993
 
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1994
 
  # The compiler can only warn and ignore the option if not recognized
1995
 
  # So say no if there are warnings
1996
 
  if test -s out/conftest.err; then
1997
 
    lt_cv_compiler_c_o=no
1998
 
  else
1999
 
    lt_cv_compiler_c_o=yes
2000
 
  fi
2001
 
else
2002
 
  # Append any errors to the config.log.
2003
 
  cat out/conftest.err 1>&AC_FD_CC
2004
 
  lt_cv_compiler_c_o=no
2005
 
fi
2006
 
CFLAGS="$save_CFLAGS"
2007
 
chmod u+w .
2008
 
$rm conftest* out/*
2009
 
rmdir out
2010
 
cd ..
2011
 
rmdir conftest
2012
 
$rm -r conftest 2>/dev/null
2013
 
])
2014
 
compiler_c_o=$lt_cv_compiler_c_o
2015
 
AC_MSG_RESULT([$compiler_c_o])
2016
 
 
2017
 
if test x"$compiler_c_o" = x"yes"; then
2018
 
  # Check to see if we can write to a .lo
2019
 
  AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
2020
 
  AC_CACHE_VAL([lt_cv_compiler_o_lo], [
2021
 
  lt_cv_compiler_o_lo=no
2022
 
  save_CFLAGS="$CFLAGS"
2023
 
  CFLAGS="$CFLAGS -c -o conftest.lo"
2024
 
  save_objext="$ac_objext"
2025
 
  ac_objext=lo
2026
 
  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2027
 
    # The compiler can only warn and ignore the option if not recognized
2028
 
    # So say no if there are warnings
2029
 
    if test -s conftest.err; then
2030
 
      lt_cv_compiler_o_lo=no
2031
 
    else
2032
 
      lt_cv_compiler_o_lo=yes
2033
 
    fi
2034
 
  ])
2035
 
  ac_objext="$save_objext"
2036
 
  CFLAGS="$save_CFLAGS"
2037
 
  ])
2038
 
  compiler_o_lo=$lt_cv_compiler_o_lo
2039
 
  AC_MSG_RESULT([$compiler_o_lo])
2040
 
else
2041
 
  compiler_o_lo=no
2042
 
fi
2043
 
 
 
1905
 
 
1906
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 
1907
# ---------------------------------
 
1908
# Check to see if options -c and -o are simultaneously supported by compiler
 
1909
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
 
1910
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
1911
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 
1912
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
1913
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
1914
   $rm -r conftest 2>/dev/null
 
1915
   mkdir conftest
 
1916
   cd conftest
 
1917
   mkdir out
 
1918
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
1919
 
 
1920
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
1921
   # that will create temporary files in the current directory regardless of
 
1922
   # the output directory.  Thus, making CWD read-only will cause this test
 
1923
   # to fail, enabling locking or at least warning the user not to do parallel
 
1924
   # builds.
 
1925
   chmod -w .
 
1926
 
 
1927
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
1928
   # Insert the option either (1) after the last *FLAGS variable, or
 
1929
   # (2) before a word containing "conftest.", or (3) at the end.
 
1930
   # Note that $ac_compile itself does not contain backslashes and begins
 
1931
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
1932
   lt_compile=`echo "$ac_compile" | $SED \
 
1933
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
1934
   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 
1935
   -e 's:$: $lt_compiler_flag:'`
 
1936
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 
1937
   (eval "$lt_compile" 2>out/conftest.err)
 
1938
   ac_status=$?
 
1939
   cat out/conftest.err >&AS_MESSAGE_LOG_FD
 
1940
   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1941
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
1942
   then
 
1943
     # The compiler can only warn and ignore the option if not recognized
 
1944
     # So say no if there are warnings
 
1945
     if test ! -s out/conftest.err; then
 
1946
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
1947
     fi
 
1948
   fi
 
1949
   chmod u+w .
 
1950
   $rm conftest* out/*
 
1951
   rmdir out
 
1952
   cd ..
 
1953
   rmdir conftest
 
1954
   $rm conftest*
 
1955
])
 
1956
])# AC_LIBTOOL_PROG_CC_C_O
 
1957
 
 
1958
 
 
1959
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 
1960
# -----------------------------------------
2044
1961
# Check to see if we can do hard links to lock some files if needed
 
1962
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
 
1963
[AC_REQUIRE([_LT_AC_LOCK])dnl
 
1964
 
2045
1965
hard_links="nottested"
2046
 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
1966
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2047
1967
  # do not overwrite the value of need_locks provided by the user
2048
1968
  AC_MSG_CHECKING([if we can lock with hard links])
2049
1969
  hard_links=yes
2054
1974
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2055
1975
  AC_MSG_RESULT([$hard_links])
2056
1976
  if test "$hard_links" = no; then
2057
 
    AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
 
1977
    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2058
1978
    need_locks=warn
2059
1979
  fi
2060
1980
else
2061
1981
  need_locks=no
2062
1982
fi
2063
 
 
2064
 
if test "$GCC" = yes; then
2065
 
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2066
 
  AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
2067
 
  echo "int some_variable = 0;" > conftest.$ac_ext
2068
 
  save_CFLAGS="$CFLAGS"
2069
 
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2070
 
  compiler_rtti_exceptions=no
2071
 
  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
2072
 
    # The compiler can only warn and ignore the option if not recognized
2073
 
    # So say no if there are warnings
2074
 
    if test -s conftest.err; then
2075
 
      compiler_rtti_exceptions=no
2076
 
    else
2077
 
      compiler_rtti_exceptions=yes
2078
 
    fi
2079
 
  ])
2080
 
  CFLAGS="$save_CFLAGS"
2081
 
  AC_MSG_RESULT([$compiler_rtti_exceptions])
2082
 
 
2083
 
  if test "$compiler_rtti_exceptions" = "yes"; then
2084
 
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
2085
 
  else
2086
 
    no_builtin_flag=' -fno-builtin'
2087
 
  fi
2088
 
fi
2089
 
 
2090
 
# See if the linker supports building shared libraries.
2091
 
AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
2092
 
 
2093
 
allow_undefined_flag=
2094
 
no_undefined_flag=
2095
 
need_lib_prefix=unknown
2096
 
need_version=unknown
2097
 
# when you set need_version to no, make sure it does not cause -set_version
2098
 
# flags to be left without arguments
2099
 
archive_cmds=
2100
 
archive_expsym_cmds=
2101
 
old_archive_from_new_cmds=
2102
 
old_archive_from_expsyms_cmds=
2103
 
export_dynamic_flag_spec=
2104
 
whole_archive_flag_spec=
2105
 
thread_safe_flag_spec=
2106
 
hardcode_into_libs=no
2107
 
hardcode_libdir_flag_spec=
2108
 
hardcode_libdir_separator=
2109
 
hardcode_direct=no
2110
 
hardcode_minus_L=no
2111
 
hardcode_shlibpath_var=unsupported
2112
 
runpath_var=
2113
 
link_all_deplibs=unknown
2114
 
always_export_symbols=no
2115
 
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
2116
 
# include_expsyms should be a list of space-separated symbols to be *always*
2117
 
# included in the symbol list
2118
 
include_expsyms=
2119
 
# exclude_expsyms can be an egrep regular expression of symbols to exclude
2120
 
# it will be wrapped by ` (' and `)$', so one must not match beginning or
2121
 
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2122
 
# as well as any symbol that contains `d'.
2123
 
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2124
 
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2125
 
# platforms (ab)use it in PIC code, but their linkers get confused if
2126
 
# the symbol is explicitly referenced.  Since portable code cannot
2127
 
# rely on this symbol name, it's probably fine to never include it in
2128
 
# preloaded symbol tables.
2129
 
extract_expsyms_cmds=
2130
 
 
2131
 
case $host_os in
2132
 
cygwin* | mingw* | pw32*)
2133
 
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
2134
 
  # When not using gcc, we currently assume that we are using
2135
 
  # Microsoft Visual C++.
2136
 
  if test "$GCC" != yes; then
2137
 
    with_gnu_ld=no
2138
 
  fi
2139
 
  ;;
2140
 
openbsd*)
2141
 
  with_gnu_ld=no
2142
 
  ;;
2143
 
esac
2144
 
 
2145
 
ld_shlibs=yes
2146
 
if test "$with_gnu_ld" = yes; then
2147
 
  # If archive_cmds runs LD, not CC, wlarc should be empty
2148
 
  wlarc='${wl}'
2149
 
 
2150
 
  # See if GNU ld supports shared libraries.
2151
 
  case $host_os in
2152
 
  aix3* | aix4* | aix5*)
2153
 
    # On AIX, the GNU linker is very broken
2154
 
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
2155
 
    ld_shlibs=no
2156
 
    cat <<EOF 1>&2
2157
 
 
2158
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
2159
 
*** to be unable to reliably create shared libraries on AIX.
2160
 
*** Therefore, libtool is disabling shared libraries support.  If you
2161
 
*** really care for shared libraries, you may want to modify your PATH
2162
 
*** so that a non-GNU linker is found, and then restart.
2163
 
 
2164
 
EOF
2165
 
    ;;
2166
 
 
2167
 
  amigaos*)
2168
 
    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)'
2169
 
    hardcode_libdir_flag_spec='-L$libdir'
2170
 
    hardcode_minus_L=yes
2171
 
 
2172
 
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
2173
 
    # that the semantics of dynamic libraries on AmigaOS, at least up
2174
 
    # to version 4, is to share data among multiple programs linked
2175
 
    # with the same dynamic library.  Since this doesn't match the
2176
 
    # behavior of shared libraries on other platforms, we can use
2177
 
    # them.
2178
 
    ld_shlibs=no
2179
 
    ;;
2180
 
 
2181
 
  beos*)
2182
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2183
 
      allow_undefined_flag=unsupported
2184
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2185
 
      # support --undefined.  This deserves some investigation.  FIXME
2186
 
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2187
 
    else
2188
 
      ld_shlibs=no
2189
 
    fi
2190
 
    ;;
2191
 
 
2192
 
  cygwin* | mingw* | pw32*)
2193
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
2194
 
    # no search path for DLLs.
2195
 
    hardcode_libdir_flag_spec='-L$libdir'
2196
 
    allow_undefined_flag=unsupported
2197
 
    always_export_symbols=yes
2198
 
 
2199
 
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
2200
 
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
2201
 
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
2202
 
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
2203
 
      else $CC -o impgen impgen.c ; fi)~
2204
 
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
2205
 
 
2206
 
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
2207
 
 
2208
 
    # cygwin and mingw dlls have different entry points and sets of symbols
2209
 
    # to exclude.
2210
 
    # FIXME: what about values for MSVC?
2211
 
    dll_entry=__cygwin_dll_entry@12
2212
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
2213
 
    case $host_os in
2214
 
    mingw*)
2215
 
      # mingw values
2216
 
      dll_entry=_DllMainCRTStartup@12
2217
 
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
2218
 
      ;;
2219
 
    esac
2220
 
 
2221
 
    # mingw and cygwin differ, and it's simplest to just exclude the union
2222
 
    # of the two symbol sets.
2223
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
2224
 
 
2225
 
    # recent cygwin and mingw systems supply a stub DllMain which the user
2226
 
    # can override, but on older systems we have to supply one (in ltdll.c)
2227
 
    if test "x$lt_cv_need_dllmain" = "xyes"; then
2228
 
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
2229
 
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
2230
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
2231
 
    else
2232
 
      ltdll_obj=
2233
 
      ltdll_cmds=
2234
 
    fi
2235
 
 
2236
 
    # Extract the symbol export list from an `--export-all' def file,
2237
 
    # then regenerate the def file from the symbol export list, so that
2238
 
    # the compiled dll only exports the symbol export list.
2239
 
    # Be careful not to strip the DATA tag left be newer dlltools.
2240
 
    export_symbols_cmds="$ltdll_cmds"'
2241
 
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
2242
 
      sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
2243
 
 
2244
 
    # If the export-symbols file already is a .def file (1st line
2245
 
    # is EXPORTS), use it as is.
2246
 
    # If DATA tags from a recent dlltool are present, honour them!
2247
 
    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
2248
 
        cp $export_symbols $output_objdir/$soname-def;
2249
 
      else
2250
 
        echo EXPORTS > $output_objdir/$soname-def;
2251
 
        _lt_hint=1;
2252
 
        cat $export_symbols | while read symbol; do
2253
 
         set dummy \$symbol;
2254
 
         case \[$]# in
2255
 
           2) echo "   \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
2256
 
           4) echo "   \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
2257
 
           *) echo "     \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
2258
 
         esac;
2259
 
         _lt_hint=`expr 1 + \$_lt_hint`;
2260
 
        done;
2261
 
      fi~
2262
 
      '"$ltdll_cmds"'
2263
 
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2264
 
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
2265
 
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
2266
 
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
2267
 
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
2268
 
    ;;
2269
 
 
2270
 
  netbsd*)
2271
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2272
 
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
2273
 
      wlarc=
2274
 
    else
2275
 
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2276
 
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2277
 
    fi
2278
 
    ;;
2279
 
 
2280
 
  solaris* | sysv5*)
2281
 
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
2282
 
      ld_shlibs=no
2283
 
      cat <<EOF 1>&2
2284
 
 
2285
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
2286
 
*** create shared libraries on Solaris systems.  Therefore, libtool
2287
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
2288
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
2289
 
*** your PATH or compiler configuration so that the native linker is
2290
 
*** used, and then restart.
2291
 
 
2292
 
EOF
2293
 
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2294
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2295
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2296
 
    else
2297
 
      ld_shlibs=no
2298
 
    fi
2299
 
    ;;
2300
 
 
2301
 
  sunos4*)
2302
 
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2303
 
    wlarc=
2304
 
    hardcode_direct=yes
2305
 
    hardcode_shlibpath_var=no
2306
 
    ;;
2307
 
 
2308
 
  *)
2309
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
2310
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2311
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2312
 
    else
2313
 
      ld_shlibs=no
2314
 
    fi
2315
 
    ;;
2316
 
  esac
2317
 
 
2318
 
  if test "$ld_shlibs" = yes; then
2319
 
    runpath_var=LD_RUN_PATH
2320
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
2321
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
2322
 
    case $host_os in
2323
 
    cygwin* | mingw* | pw32*)
2324
 
      # dlltool doesn't understand --whole-archive et. al.
2325
 
      whole_archive_flag_spec=
2326
 
      ;;
2327
 
    *)
2328
 
      # ancient GNU ld didn't support --whole-archive et. al.
2329
 
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
2330
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2331
 
      else
2332
 
        whole_archive_flag_spec=
2333
 
      fi
2334
 
      ;;
2335
 
    esac
2336
 
  fi
 
1983
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 
1984
 
 
1985
 
 
1986
# AC_LIBTOOL_OBJDIR
 
1987
# -----------------
 
1988
AC_DEFUN([AC_LIBTOOL_OBJDIR],
 
1989
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 
1990
[rm -f .libs 2>/dev/null
 
1991
mkdir .libs 2>/dev/null
 
1992
if test -d .libs; then
 
1993
  lt_cv_objdir=.libs
2337
1994
else
2338
 
  # PORTME fill in a description of your system's linker (not GNU ld)
2339
 
  case $host_os in
2340
 
  aix3*)
2341
 
    allow_undefined_flag=unsupported
2342
 
    always_export_symbols=yes
2343
 
    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'
2344
 
    # Note: this linker hardcodes the directories in LIBPATH if there
2345
 
    # are no directories specified by -L.
2346
 
    hardcode_minus_L=yes
2347
 
    if test "$GCC" = yes && test -z "$link_static_flag"; then
2348
 
      # Neither direct hardcoding nor static linking is supported with a
2349
 
      # broken collect2.
2350
 
      hardcode_direct=unsupported
2351
 
    fi
2352
 
    ;;
2353
 
 
2354
 
  aix4* | aix5*)
2355
 
    if test "$host_cpu" = ia64; then
2356
 
      # On IA64, the linker does run time linking by default, so we don't
2357
 
      # have to do anything special.
2358
 
      aix_use_runtimelinking=no
2359
 
      exp_sym_flag='-Bexport'
2360
 
      no_entry_flag=""
2361
 
    else
2362
 
      aix_use_runtimelinking=no
2363
 
 
2364
 
      # Test if we are trying to use run time linking or normal
2365
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2366
 
      # need to do runtime linking.
2367
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2368
 
        for ld_flag in $LDFLAGS; do
2369
 
          case $ld_flag in
2370
 
          *-brtl*)
2371
 
            aix_use_runtimelinking=yes
2372
 
            break
2373
 
          ;;
2374
 
          esac
2375
 
        done
2376
 
      esac
2377
 
 
2378
 
      exp_sym_flag='-bexport'
2379
 
      no_entry_flag='-bnoentry'
2380
 
    fi
2381
 
 
2382
 
    # When large executables or shared objects are built, AIX ld can
2383
 
    # have problems creating the table of contents.  If linking a library
2384
 
    # or program results in "error TOC overflow" add -mminimal-toc to
2385
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
2386
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2387
 
 
2388
 
    hardcode_direct=yes
2389
 
    archive_cmds=''
2390
 
    hardcode_libdir_separator=':'
2391
 
    if test "$GCC" = yes; then
2392
 
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
2393
 
        collect2name=`${CC} -print-prog-name=collect2`
2394
 
        if test -f "$collect2name" && \
2395
 
          strings "$collect2name" | grep resolve_lib_name >/dev/null
2396
 
        then
2397
 
          # We have reworked collect2
2398
 
          hardcode_direct=yes
2399
 
        else
2400
 
          # We have old collect2
2401
 
          hardcode_direct=unsupported
2402
 
          # It fails to find uninstalled libraries when the uninstalled
2403
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
2404
 
          # to unsupported forces relinking
2405
 
          hardcode_minus_L=yes
2406
 
          hardcode_libdir_flag_spec='-L$libdir'
2407
 
          hardcode_libdir_separator=
2408
 
        fi
2409
 
      esac
2410
 
 
2411
 
      shared_flag='-shared'
2412
 
    else
2413
 
      # not using gcc
2414
 
      if test "$host_cpu" = ia64; then
2415
 
        shared_flag='${wl}-G'
2416
 
      else
2417
 
        if test "$aix_use_runtimelinking" = yes; then
2418
 
          shared_flag='${wl}-G'
2419
 
        else
2420
 
          shared_flag='${wl}-bM:SRE'
2421
 
        fi
2422
 
      fi
2423
 
    fi
2424
 
 
2425
 
    # It seems that -bexpall can do strange things, so it is better to
2426
 
    # generate a list of symbols to export.
2427
 
    always_export_symbols=yes
2428
 
    if test "$aix_use_runtimelinking" = yes; then
2429
 
      # Warning - without using the other runtime loading flags (-brtl),
2430
 
      # -berok will link without error, but may produce a broken library.
2431
 
      allow_undefined_flag='-berok'
2432
 
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
2433
 
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2434
 
    else
2435
 
      if test "$host_cpu" = ia64; then
2436
 
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
2437
 
        allow_undefined_flag="-z nodefs"
2438
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2439
 
      else
2440
 
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
2441
 
        # Warning - without using the other run time loading flags,
2442
 
        # -berok will link without error, but may produce a broken library.
2443
 
        allow_undefined_flag='${wl}-berok'
2444
 
        # This is a bit strange, but is similar to how AIX traditionally builds
2445
 
        # it's shared libraries.
2446
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
2447
 
      fi
2448
 
    fi
2449
 
    ;;
2450
 
 
2451
 
  amigaos*)
2452
 
    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)'
2453
 
    hardcode_libdir_flag_spec='-L$libdir'
2454
 
    hardcode_minus_L=yes
2455
 
    # see comment about different semantics on the GNU ld section
2456
 
    ld_shlibs=no
2457
 
    ;;
2458
 
 
2459
 
  cygwin* | mingw* | pw32*)
2460
 
    # When not using gcc, we currently assume that we are using
2461
 
    # Microsoft Visual C++.
2462
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
2463
 
    # no search path for DLLs.
2464
 
    hardcode_libdir_flag_spec=' '
2465
 
    allow_undefined_flag=unsupported
2466
 
    # Tell ltmain to make .lib files, not .a files.
2467
 
    libext=lib
2468
 
    # FIXME: Setting linknames here is a bad hack.
2469
 
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
2470
 
    # The linker will automatically build a .lib file if we build a DLL.
2471
 
    old_archive_from_new_cmds='true'
2472
 
    # FIXME: Should let the user specify the lib program.
2473
 
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
2474
 
    fix_srcfile_path='`cygpath -w "$srcfile"`'
2475
 
    ;;
2476
 
 
2477
 
  darwin* | rhapsody*)
2478
 
    case "$host_os" in
2479
 
    rhapsody* | darwin1.[[012]])
2480
 
      allow_undefined_flag='-undefined suppress'
2481
 
      ;;
2482
 
    *) # Darwin 1.3 on
2483
 
      allow_undefined_flag='-flat_namespace -undefined suppress'
2484
 
      ;;
2485
 
    esac
2486
 
    # FIXME: Relying on posixy $() will cause problems for
2487
 
    #        cross-compilation, but unfortunately the echo tests do not
2488
 
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
2489
 
    #        `"' quotes if we put them in here... so don't!
2490
 
    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
2491
 
    # We need to add '_' to the symbols in $export_symbols first
2492
 
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
2493
 
    hardcode_direct=yes
2494
 
    hardcode_shlibpath_var=no
2495
 
    whole_archive_flag_spec='-all_load $convenience'
2496
 
    ;;
2497
 
 
2498
 
  freebsd1*)
2499
 
    ld_shlibs=no
2500
 
    ;;
2501
 
 
2502
 
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
2503
 
  # support.  Future versions do this automatically, but an explicit c++rt0.o
2504
 
  # does not break anything, and helps significantly (at the cost of a little
2505
 
  # extra space).
2506
 
  freebsd2.2*)
2507
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
2508
 
    hardcode_libdir_flag_spec='-R$libdir'
2509
 
    hardcode_direct=yes
2510
 
    hardcode_shlibpath_var=no
2511
 
    ;;
2512
 
 
2513
 
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
2514
 
  freebsd2*)
2515
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2516
 
    hardcode_direct=yes
2517
 
    hardcode_minus_L=yes
2518
 
    hardcode_shlibpath_var=no
2519
 
    ;;
2520
 
 
2521
 
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
2522
 
  freebsd*)
2523
 
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
2524
 
    hardcode_libdir_flag_spec='-R$libdir'
2525
 
    hardcode_direct=yes
2526
 
    hardcode_shlibpath_var=no
2527
 
    ;;
2528
 
 
2529
 
  hpux9* | hpux10* | hpux11*)
2530
 
    case $host_os in
2531
 
    hpux9*) 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' ;;
2532
 
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
2533
 
    esac
2534
 
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
2535
 
    hardcode_libdir_separator=:
2536
 
    hardcode_direct=yes
2537
 
    hardcode_minus_L=yes # Not in the search PATH, but as the default
2538
 
                         # location of the library.
2539
 
    export_dynamic_flag_spec='${wl}-E'
2540
 
    ;;
2541
 
 
2542
 
  irix5* | irix6* | nonstopux*)
2543
 
    if test "$GCC" = yes; then
2544
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2545
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2546
 
    else
2547
 
      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2548
 
      hardcode_libdir_flag_spec='-rpath $libdir'
2549
 
    fi
2550
 
    hardcode_libdir_separator=:
2551
 
    link_all_deplibs=yes
2552
 
    ;;
2553
 
 
2554
 
  netbsd*)
2555
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2556
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
2557
 
    else
2558
 
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
2559
 
    fi
2560
 
    hardcode_libdir_flag_spec='-R$libdir'
2561
 
    hardcode_direct=yes
2562
 
    hardcode_shlibpath_var=no
2563
 
    ;;
2564
 
 
2565
 
  newsos6)
2566
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2567
 
    hardcode_direct=yes
2568
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2569
 
    hardcode_libdir_separator=:
2570
 
    hardcode_shlibpath_var=no
2571
 
    ;;
2572
 
 
2573
 
  openbsd*)
2574
 
    hardcode_direct=yes
2575
 
    hardcode_shlibpath_var=no
2576
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2577
 
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2578
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2579
 
      export_dynamic_flag_spec='${wl}-E'
2580
 
    else
2581
 
      case "$host_os" in
2582
 
      openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
2583
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2584
 
        hardcode_libdir_flag_spec='-R$libdir'
2585
 
        ;;
2586
 
      *)
2587
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
2588
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2589
 
        ;;
2590
 
      esac
2591
 
    fi
2592
 
    ;;
2593
 
 
2594
 
  os2*)
2595
 
    hardcode_libdir_flag_spec='-L$libdir'
2596
 
    hardcode_minus_L=yes
2597
 
    allow_undefined_flag=unsupported
2598
 
    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'
2599
 
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
2600
 
    ;;
2601
 
 
2602
 
  osf3*)
2603
 
    if test "$GCC" = yes; then
2604
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2605
 
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2606
 
    else
2607
 
      allow_undefined_flag=' -expect_unresolved \*'
2608
 
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2609
 
    fi
2610
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2611
 
    hardcode_libdir_separator=:
2612
 
    ;;
2613
 
 
2614
 
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
2615
 
    if test "$GCC" = yes; then
2616
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2617
 
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
2618
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2619
 
    else
2620
 
      allow_undefined_flag=' -expect_unresolved \*'
2621
 
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
2622
 
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
2623
 
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
2624
 
 
2625
 
      #Both c and cxx compiler support -rpath directly
2626
 
      hardcode_libdir_flag_spec='-rpath $libdir'
2627
 
    fi
2628
 
    hardcode_libdir_separator=:
2629
 
    ;;
2630
 
 
2631
 
  sco3.2v5*)
2632
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2633
 
    hardcode_shlibpath_var=no
2634
 
    runpath_var=LD_RUN_PATH
2635
 
    hardcode_runpath_var=yes
2636
 
    export_dynamic_flag_spec='${wl}-Bexport'
2637
 
    ;;
2638
 
 
2639
 
  solaris*)
2640
 
    # gcc --version < 3.0 without binutils cannot create self contained
2641
 
    # shared libraries reliably, requiring libgcc.a to resolve some of
2642
 
    # the object symbols generated in some cases.  Libraries that use
2643
 
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
2644
 
    # a copy of libgcc.a into every shared library to guarantee resolving
2645
 
    # such symbols causes other problems:  According to Tim Van Holder
2646
 
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
2647
 
    # (to the application) exception stack for one thing.
2648
 
    no_undefined_flag=' -z defs'
2649
 
    if test "$GCC" = yes; then
2650
 
      case `$CC --version 2>/dev/null` in
2651
 
      [[12]].*)
2652
 
        cat <<EOF 1>&2
2653
 
 
2654
 
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
2655
 
*** create self contained shared libraries on Solaris systems, without
2656
 
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
2657
 
*** -no-undefined support, which will at least allow you to build shared
2658
 
*** libraries.  However, you may find that when you link such libraries
2659
 
*** into an application without using GCC, you have to manually add
2660
 
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
2661
 
*** upgrade to a newer version of GCC.  Another option is to rebuild your
2662
 
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
2663
 
 
2664
 
EOF
2665
 
        no_undefined_flag=
2666
 
        ;;
2667
 
      esac
2668
 
    fi
2669
 
    # $CC -shared without GNU ld will not create a library from C++
2670
 
    # object files and a static libstdc++, better avoid it by now
2671
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2672
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2673
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2674
 
    hardcode_libdir_flag_spec='-R$libdir'
2675
 
    hardcode_shlibpath_var=no
2676
 
    case $host_os in
2677
 
    solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2678
 
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
2679
 
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
2680
 
    esac
2681
 
    link_all_deplibs=yes
2682
 
    ;;
2683
 
 
2684
 
  sunos4*)
2685
 
    if test "x$host_vendor" = xsequent; then
2686
 
      # Use $CC to link under sequent, because it throws in some extra .o
2687
 
      # files that make .init and .fini sections work.
2688
 
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
2689
 
    else
2690
 
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
2691
 
    fi
2692
 
    hardcode_libdir_flag_spec='-L$libdir'
2693
 
    hardcode_direct=yes
2694
 
    hardcode_minus_L=yes
2695
 
    hardcode_shlibpath_var=no
2696
 
    ;;
2697
 
 
2698
 
  sysv4)
2699
 
    case $host_vendor in
2700
 
      sni)
2701
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2702
 
        hardcode_direct=yes # is this really true???
2703
 
        ;;
2704
 
      siemens)
2705
 
        ## LD is ld it makes a PLAMLIB
2706
 
        ## CC just makes a GrossModule.
2707
 
        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
2708
 
        reload_cmds='$CC -r -o $output$reload_objs'
2709
 
        hardcode_direct=no
2710
 
        ;;
2711
 
      motorola)
2712
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2713
 
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
2714
 
        ;;
2715
 
    esac
2716
 
    runpath_var='LD_RUN_PATH'
2717
 
    hardcode_shlibpath_var=no
2718
 
    ;;
2719
 
 
2720
 
  sysv4.3*)
2721
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2722
 
    hardcode_shlibpath_var=no
2723
 
    export_dynamic_flag_spec='-Bexport'
2724
 
    ;;
2725
 
 
2726
 
  sysv5*)
2727
 
    no_undefined_flag=' -z text'
2728
 
    # $CC -shared without GNU ld will not create a library from C++
2729
 
    # object files and a static libstdc++, better avoid it by now
2730
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2731
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2732
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2733
 
    hardcode_libdir_flag_spec=
2734
 
    hardcode_shlibpath_var=no
2735
 
    runpath_var='LD_RUN_PATH'
2736
 
    ;;
2737
 
 
2738
 
  uts4*)
2739
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2740
 
    hardcode_libdir_flag_spec='-L$libdir'
2741
 
    hardcode_shlibpath_var=no
2742
 
    ;;
2743
 
 
2744
 
  dgux*)
2745
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2746
 
    hardcode_libdir_flag_spec='-L$libdir'
2747
 
    hardcode_shlibpath_var=no
2748
 
    ;;
2749
 
 
2750
 
  sysv4*MP*)
2751
 
    if test -d /usr/nec; then
2752
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2753
 
      hardcode_shlibpath_var=no
2754
 
      runpath_var=LD_RUN_PATH
2755
 
      hardcode_runpath_var=yes
2756
 
      ld_shlibs=yes
2757
 
    fi
2758
 
    ;;
2759
 
 
2760
 
  sysv4.2uw2*)
2761
 
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
2762
 
    hardcode_direct=yes
2763
 
    hardcode_minus_L=no
2764
 
    hardcode_shlibpath_var=no
2765
 
    hardcode_runpath_var=yes
2766
 
    runpath_var=LD_RUN_PATH
2767
 
    ;;
2768
 
 
2769
 
  sysv5uw7* | unixware7*)
2770
 
    no_undefined_flag='${wl}-z ${wl}text'
2771
 
    if test "$GCC" = yes; then
2772
 
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2773
 
    else
2774
 
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2775
 
    fi
2776
 
    runpath_var='LD_RUN_PATH'
2777
 
    hardcode_shlibpath_var=no
2778
 
    ;;
2779
 
 
2780
 
  *)
2781
 
    ld_shlibs=no
2782
 
    ;;
2783
 
  esac
 
1995
  # MS-DOS does not allow filenames that begin with a dot.
 
1996
  lt_cv_objdir=_libs
2784
1997
fi
2785
 
AC_MSG_RESULT([$ld_shlibs])
2786
 
test "$ld_shlibs" = no && can_build_shared=no
2787
 
 
 
1998
rmdir .libs 2>/dev/null])
 
1999
objdir=$lt_cv_objdir
 
2000
])# AC_LIBTOOL_OBJDIR
 
2001
 
 
2002
 
 
2003
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 
2004
# ----------------------------------------------
2788
2005
# Check hardcoding attributes.
2789
 
AC_MSG_CHECKING([how to hardcode library paths into programs])
2790
 
hardcode_action=
2791
 
if test -n "$hardcode_libdir_flag_spec" || \
2792
 
   test -n "$runpath_var"; then
 
2006
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 
2007
[AC_MSG_CHECKING([how to hardcode library paths into programs])
 
2008
_LT_AC_TAGVAR(hardcode_action, $1)=
 
2009
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
 
2010
   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
 
2011
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
2793
2012
 
2794
2013
  # We can hardcode non-existant directories.
2795
 
  if test "$hardcode_direct" != no &&
 
2014
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2796
2015
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2797
2016
     # have to relink, otherwise we might link with an installed library
2798
2017
     # when we should be linking with a yet-to-be-installed one
2799
 
     ## test "$hardcode_shlibpath_var" != no &&
2800
 
     test "$hardcode_minus_L" != no; then
 
2018
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
2019
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2801
2020
    # Linking always hardcodes the temporary library directory.
2802
 
    hardcode_action=relink
 
2021
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
2803
2022
  else
2804
2023
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2805
 
    hardcode_action=immediate
 
2024
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2806
2025
  fi
2807
2026
else
2808
2027
  # We cannot hardcode anything, or else we can only hardcode existing
2809
2028
  # directories.
2810
 
  hardcode_action=unsupported
2811
 
fi
2812
 
AC_MSG_RESULT([$hardcode_action])
2813
 
 
2814
 
striplib=
 
2029
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 
2030
fi
 
2031
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 
2032
 
 
2033
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 
2034
  # Fast installation is not supported
 
2035
  enable_fast_install=no
 
2036
elif test "$shlibpath_overrides_runpath" = yes ||
 
2037
     test "$enable_shared" = no; then
 
2038
  # Fast installation is not necessary
 
2039
  enable_fast_install=needless
 
2040
fi
 
2041
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 
2042
 
 
2043
 
 
2044
# AC_LIBTOOL_SYS_LIB_STRIP
 
2045
# ------------------------
 
2046
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
 
2047
[striplib=
2815
2048
old_striplib=
2816
2049
AC_MSG_CHECKING([whether stripping libraries is possible])
2817
2050
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2819
2052
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2820
2053
  AC_MSG_RESULT([yes])
2821
2054
else
2822
 
  AC_MSG_RESULT([no])
2823
 
fi
2824
 
 
2825
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2826
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
2827
 
 
 
2055
# FIXME - insert some real tests, host_os isn't really good enough
 
2056
  case $host_os in
 
2057
   darwin*)
 
2058
       if test -n "$STRIP" ; then
 
2059
         striplib="$STRIP -x"
 
2060
         AC_MSG_RESULT([yes])
 
2061
       else
 
2062
  AC_MSG_RESULT([no])
 
2063
fi
 
2064
       ;;
 
2065
   *)
 
2066
  AC_MSG_RESULT([no])
 
2067
    ;;
 
2068
  esac  
 
2069
fi
 
2070
])# AC_LIBTOOL_SYS_LIB_STRIP
 
2071
 
 
2072
 
 
2073
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2074
# -----------------------------
2828
2075
# PORTME Fill in your ld.so characteristics
2829
 
AC_MSG_CHECKING([dynamic linker characteristics])
 
2076
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
 
2077
[AC_MSG_CHECKING([dynamic linker characteristics])
2830
2078
library_names_spec=
2831
2079
libname_spec='lib$name'
2832
2080
soname_spec=
 
2081
shrext=".so"
2833
2082
postinstall_cmds=
2834
2083
postuninstall_cmds=
2835
2084
finish_cmds=
2839
2088
version_type=none
2840
2089
dynamic_linker="$host_os ld.so"
2841
2090
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2842
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
2091
if test "$GCC" = yes; then
 
2092
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2093
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
2094
    # if the path contains ";" then we assume it to be the separator
 
2095
    # otherwise default to the standard path separator (i.e. ":") - it is
 
2096
    # assumed that no part of a normal pathname contains ";" but that should
 
2097
    # okay in the real world where ";" in dirpaths is itself problematic.
 
2098
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2099
  else
 
2100
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2101
  fi
 
2102
else
 
2103
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
2104
fi
 
2105
need_lib_prefix=unknown
 
2106
hardcode_into_libs=no
 
2107
 
 
2108
# when you set need_version to no, make sure it does not cause -set_version
 
2109
# flags to be left without arguments
 
2110
need_version=unknown
2843
2111
 
2844
2112
case $host_os in
2845
2113
aix3*)
2846
2114
  version_type=linux
2847
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
 
2115
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2848
2116
  shlibpath_var=LIBPATH
2849
2117
 
2850
 
  # AIX has no versioning support, so we append a major version to the name.
2851
 
  soname_spec='${libname}${release}.so$major'
 
2118
  # AIX 3 has no versioning support, so we append a major version to the name.
 
2119
  soname_spec='${libname}${release}${shared_ext}$major'
2852
2120
  ;;
2853
2121
 
2854
2122
aix4* | aix5*)
2858
2126
  hardcode_into_libs=yes
2859
2127
  if test "$host_cpu" = ia64; then
2860
2128
    # AIX 5 supports IA64
2861
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 
2129
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2862
2130
    shlibpath_var=LD_LIBRARY_PATH
2863
2131
  else
2864
2132
    # With GCC up to 2.95.x, collect2 would create an import file
2868
2136
    # development snapshots of GCC prior to 3.0.
2869
2137
    case $host_os in
2870
2138
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2871
 
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2872
 
             echo ' yes '
2873
 
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2874
 
          :
2875
 
        else
2876
 
          can_build_shared=no
2877
 
        fi
2878
 
        ;;
 
2139
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
2140
           echo ' yes '
 
2141
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
2142
        :
 
2143
      else
 
2144
        can_build_shared=no
 
2145
      fi
 
2146
      ;;
2879
2147
    esac
2880
 
    # AIX (on Power*) has no versioning support, so currently we can
2881
 
    # not hardcode correct soname into executable. Probably we can
2882
 
    # add versioning support to collect2, so additional links can
2883
 
    # be useful in future.
 
2148
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
2149
    # soname into executable. Probably we can add versioning support to
 
2150
    # collect2, so additional links can be useful in future.
2884
2151
    if test "$aix_use_runtimelinking" = yes; then
2885
2152
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2886
2153
      # instead of lib<name>.a to let people know that these are not
2887
2154
      # typical AIX shared libraries.
2888
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
2155
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2889
2156
    else
2890
2157
      # We preserve .a as extension for shared libraries through AIX4.2
2891
2158
      # and later when we are not doing run time linking.
2892
2159
      library_names_spec='${libname}${release}.a $libname.a'
2893
 
      soname_spec='${libname}${release}.so$major'
 
2160
      soname_spec='${libname}${release}${shared_ext}$major'
2894
2161
    fi
2895
2162
    shlibpath_var=LIBPATH
2896
2163
  fi
2897
 
  hardcode_into_libs=yes
2898
2164
  ;;
2899
2165
 
2900
2166
amigaos*)
2904
2170
  ;;
2905
2171
 
2906
2172
beos*)
2907
 
  library_names_spec='${libname}.so'
 
2173
  library_names_spec='${libname}${shared_ext}'
2908
2174
  dynamic_linker="$host_os ld.so"
2909
2175
  shlibpath_var=LIBRARY_PATH
2910
2176
  ;;
2912
2178
bsdi4*)
2913
2179
  version_type=linux
2914
2180
  need_version=no
2915
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2916
 
  soname_spec='${libname}${release}.so$major'
 
2181
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2182
  soname_spec='${libname}${release}${shared_ext}$major'
2917
2183
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2918
2184
  shlibpath_var=LD_LIBRARY_PATH
2919
2185
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2920
2186
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2921
 
  export_dynamic_flag_spec=-rdynamic
2922
2187
  # the default ld.so.conf also contains /usr/contrib/lib and
2923
2188
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2924
2189
  # libtool to hard-code these into programs
2926
2191
 
2927
2192
cygwin* | mingw* | pw32*)
2928
2193
  version_type=windows
 
2194
  shrext=".dll"
2929
2195
  need_version=no
2930
2196
  need_lib_prefix=no
 
2197
 
2931
2198
  case $GCC,$host_os in
2932
 
  yes,cygwin*)
 
2199
  yes,cygwin* | yes,mingw* | yes,pw32*)
2933
2200
    library_names_spec='$libname.dll.a'
2934
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
2935
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 
2201
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
2202
    postinstall_cmds='base_file=`basename \${file}`~
 
2203
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2936
2204
      dldir=$destdir/`dirname \$dlpath`~
2937
2205
      test -d \$dldir || mkdir -p \$dldir~
2938
 
      $install_prog .libs/$dlname \$dldir/$dlname'
2939
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
2206
      $install_prog $dir/$dlname \$dldir/$dlname'
 
2207
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2940
2208
      dlpath=$dir/\$dldll~
2941
2209
       $rm \$dlpath'
2942
 
    ;;
2943
 
  yes,mingw*)
2944
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
2945
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
2946
 
    ;;
2947
 
  yes,pw32*)
2948
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
2949
 
    ;;
 
2210
    shlibpath_overrides_runpath=yes
 
2211
 
 
2212
    case $host_os in
 
2213
    cygwin*)
 
2214
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
2215
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2216
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
 
2217
      ;;
 
2218
    mingw*)
 
2219
      # MinGW DLLs use traditional 'lib' prefix
 
2220
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 
2221
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2222
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 
2223
        # It is most probably a Windows format PATH printed by
 
2224
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
2225
        # path with ; separators, and with drive letters. We can handle the
 
2226
        # drive letters (cygwin fileutils understands them), so leave them,
 
2227
        # especially as we might pass files found there to a mingw objdump,
 
2228
        # which wouldn't understand a cygwinified path. Ahh.
 
2229
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2230
      else
 
2231
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2232
      fi
 
2233
      ;;
 
2234
    pw32*)
 
2235
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
2236
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
2237
      ;;
 
2238
    esac
 
2239
    ;;
 
2240
 
2950
2241
  *)
2951
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
 
2242
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2952
2243
    ;;
2953
2244
  esac
2954
2245
  dynamic_linker='Win32 ld.exe'
2964
2255
  # FIXME: Relying on posixy $() will cause problems for
2965
2256
  #        cross-compilation, but unfortunately the echo tests do not
2966
2257
  #        yet detect zsh echo's removal of \ escapes.
2967
 
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
2968
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 
2258
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
2259
  soname_spec='${libname}${release}${major}$shared_ext'
2969
2260
  shlibpath_overrides_runpath=yes
2970
2261
  shlibpath_var=DYLD_LIBRARY_PATH
 
2262
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
2263
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
2264
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
 
2265
  sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
2266
  fi
 
2267
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
2268
  ;;
 
2269
 
 
2270
dgux*)
 
2271
  version_type=linux
 
2272
  need_lib_prefix=no
 
2273
  need_version=no
 
2274
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
2275
  soname_spec='${libname}${release}${shared_ext}$major'
 
2276
  shlibpath_var=LD_LIBRARY_PATH
2971
2277
  ;;
2972
2278
 
2973
2279
freebsd1*)
2979
2285
  version_type=freebsd-$objformat
2980
2286
  case $version_type in
2981
2287
    freebsd-elf*)
2982
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
2288
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2983
2289
      need_version=no
2984
2290
      need_lib_prefix=no
2985
2291
      ;;
2986
2292
    freebsd-*)
2987
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 
2293
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2988
2294
      need_version=yes
2989
2295
      ;;
2990
2296
  esac
2993
2299
  freebsd2*)
2994
2300
    shlibpath_overrides_runpath=yes
2995
2301
    ;;
2996
 
  *)
 
2302
  freebsd3.[01]* | freebsdelf3.[01]*)
 
2303
    shlibpath_overrides_runpath=yes
 
2304
    hardcode_into_libs=yes
 
2305
    ;;
 
2306
  *) # from 3.2 on
2997
2307
    shlibpath_overrides_runpath=no
2998
2308
    hardcode_into_libs=yes
2999
2309
    ;;
3004
2314
  version_type=linux
3005
2315
  need_lib_prefix=no
3006
2316
  need_version=no
3007
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3008
 
  soname_spec='${libname}${release}.so$major'
 
2317
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
2318
  soname_spec='${libname}${release}${shared_ext}$major'
3009
2319
  shlibpath_var=LD_LIBRARY_PATH
3010
2320
  hardcode_into_libs=yes
3011
2321
  ;;
3013
2323
hpux9* | hpux10* | hpux11*)
3014
2324
  # Give a soname corresponding to the major version so that dld.sl refuses to
3015
2325
  # link against other versions.
3016
 
  dynamic_linker="$host_os dld.sl"
3017
2326
  version_type=sunos
3018
2327
  need_lib_prefix=no
3019
2328
  need_version=no
3020
 
  shlibpath_var=SHLIB_PATH
3021
 
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3022
 
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3023
 
  soname_spec='${libname}${release}.sl$major'
 
2329
  case "$host_cpu" in
 
2330
  ia64*)
 
2331
    shrext='.so'
 
2332
    hardcode_into_libs=yes
 
2333
    dynamic_linker="$host_os dld.so"
 
2334
    shlibpath_var=LD_LIBRARY_PATH
 
2335
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2336
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2337
    soname_spec='${libname}${release}${shared_ext}$major'
 
2338
    if test "X$HPUX_IA64_MODE" = X32; then
 
2339
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
2340
    else
 
2341
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
2342
    fi
 
2343
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2344
    ;;
 
2345
   hppa*64*)
 
2346
     shrext='.sl'
 
2347
     hardcode_into_libs=yes
 
2348
     dynamic_linker="$host_os dld.sl"
 
2349
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
2350
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2351
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2352
     soname_spec='${libname}${release}${shared_ext}$major'
 
2353
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
2354
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2355
     ;;
 
2356
   *)
 
2357
    shrext='.sl'
 
2358
    dynamic_linker="$host_os dld.sl"
 
2359
    shlibpath_var=SHLIB_PATH
 
2360
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
2361
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2362
    soname_spec='${libname}${release}${shared_ext}$major'
 
2363
    ;;
 
2364
  esac
3024
2365
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
3025
2366
  postinstall_cmds='chmod 555 $lib'
3026
2367
  ;;
3028
2369
irix5* | irix6* | nonstopux*)
3029
2370
  case $host_os in
3030
2371
    nonstopux*) version_type=nonstopux ;;
3031
 
    *)          version_type=irix ;;
 
2372
    *)
 
2373
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
2374
                version_type=linux
 
2375
        else
 
2376
                version_type=irix
 
2377
        fi ;;
3032
2378
  esac
3033
2379
  need_lib_prefix=no
3034
2380
  need_version=no
3035
 
  soname_spec='${libname}${release}.so$major'
3036
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 
2381
  soname_spec='${libname}${release}${shared_ext}$major'
 
2382
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3037
2383
  case $host_os in
3038
2384
  irix5* | nonstopux*)
3039
2385
    libsuff= shlibsuff=
3040
2386
    ;;
3041
2387
  *)
3042
2388
    case $LD in # libtool.m4 will add one of these switches to LD
3043
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3044
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3045
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
2389
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
2390
      libsuff= shlibsuff= libmagic=32-bit;;
 
2391
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
2392
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
2393
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
2394
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
3046
2395
    *) libsuff= shlibsuff= libmagic=never-match;;
3047
2396
    esac
3048
2397
    ;;
3051
2400
  shlibpath_overrides_runpath=no
3052
2401
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3053
2402
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
2403
  hardcode_into_libs=yes
3054
2404
  ;;
3055
2405
 
3056
2406
# No shared lib support for Linux oldld, aout, or coff.
3057
 
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
 
2407
linux*oldld* | linux*aout* | linux*coff*)
3058
2408
  dynamic_linker=no
3059
2409
  ;;
3060
2410
 
3061
2411
# This must be Linux ELF.
3062
 
linux-gnu*)
 
2412
linux*)
3063
2413
  version_type=linux
3064
2414
  need_lib_prefix=no
3065
2415
  need_version=no
3066
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3067
 
  soname_spec='${libname}${release}.so$major'
 
2416
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2417
  soname_spec='${libname}${release}${shared_ext}$major'
3068
2418
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3069
2419
  shlibpath_var=LD_LIBRARY_PATH
3070
2420
  shlibpath_overrides_runpath=no
3084
2434
  # Find out which ABI we are using (multilib Linux x86_64 hack).
3085
2435
  libsuff=
3086
2436
  case "$host_cpu" in
3087
 
  x86_64*|s390x*)
 
2437
  x86_64*|s390x*|powerpc64*)
3088
2438
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
3089
2439
    if AC_TRY_EVAL(ac_compile); then
3090
2440
      case `/usr/bin/file conftest.$ac_objext` in
3107
2457
  need_lib_prefix=no
3108
2458
  need_version=no
3109
2459
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3110
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
2460
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3111
2461
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3112
2462
    dynamic_linker='NetBSD (a.out) ld.so'
3113
2463
  else
3114
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
3115
 
    soname_spec='${libname}${release}.so$major'
 
2464
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
2465
    soname_spec='${libname}${release}${shared_ext}$major'
3116
2466
    dynamic_linker='NetBSD ld.elf_so'
3117
2467
  fi
3118
2468
  shlibpath_var=LD_LIBRARY_PATH
3122
2472
 
3123
2473
newsos6)
3124
2474
  version_type=linux
3125
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
2475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2476
  shlibpath_var=LD_LIBRARY_PATH
 
2477
  shlibpath_overrides_runpath=yes
 
2478
  ;;
 
2479
 
 
2480
nto-qnx)
 
2481
  version_type=linux
 
2482
  need_lib_prefix=no
 
2483
  need_version=no
 
2484
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2485
  soname_spec='${libname}${release}${shared_ext}$major'
3126
2486
  shlibpath_var=LD_LIBRARY_PATH
3127
2487
  shlibpath_overrides_runpath=yes
3128
2488
  ;;
3131
2491
  version_type=sunos
3132
2492
  need_lib_prefix=no
3133
2493
  need_version=no
3134
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3135
 
    case "$host_os" in
3136
 
    openbsd2.[[89]] | openbsd2.[[89]].*)
3137
 
      shlibpath_overrides_runpath=no
3138
 
      ;;
3139
 
    *)
3140
 
      shlibpath_overrides_runpath=yes
3141
 
      ;;
3142
 
    esac
3143
 
  else
3144
 
    shlibpath_overrides_runpath=yes
3145
 
  fi
3146
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
2494
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3147
2495
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3148
2496
  shlibpath_var=LD_LIBRARY_PATH
 
2497
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
2498
    case $host_os in
 
2499
      openbsd2.[[89]] | openbsd2.[[89]].*)
 
2500
        shlibpath_overrides_runpath=no
 
2501
        ;;
 
2502
      *)
 
2503
        shlibpath_overrides_runpath=yes
 
2504
        ;;
 
2505
      esac
 
2506
  else
 
2507
    shlibpath_overrides_runpath=yes
 
2508
  fi
3149
2509
  ;;
3150
2510
 
3151
2511
os2*)
3152
2512
  libname_spec='$name'
 
2513
  shrext=".dll"
3153
2514
  need_lib_prefix=no
3154
 
  library_names_spec='$libname.dll $libname.a'
 
2515
  library_names_spec='$libname${shared_ext} $libname.a'
3155
2516
  dynamic_linker='OS/2 ld.exe'
3156
2517
  shlibpath_var=LIBPATH
3157
2518
  ;;
3158
2519
 
3159
2520
osf3* | osf4* | osf5*)
3160
2521
  version_type=osf
 
2522
  need_lib_prefix=no
3161
2523
  need_version=no
3162
 
  soname_spec='${libname}${release}.so$major'
3163
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
2524
  soname_spec='${libname}${release}${shared_ext}$major'
 
2525
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3164
2526
  shlibpath_var=LD_LIBRARY_PATH
3165
2527
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3166
2528
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3167
 
  hardcode_into_libs=yes
3168
2529
  ;;
3169
2530
 
3170
2531
sco3.2v5*)
3171
2532
  version_type=osf
3172
 
  soname_spec='${libname}${release}.so$major'
3173
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
2533
  soname_spec='${libname}${release}${shared_ext}$major'
 
2534
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3174
2535
  shlibpath_var=LD_LIBRARY_PATH
3175
2536
  ;;
3176
2537
 
3178
2539
  version_type=linux
3179
2540
  need_lib_prefix=no
3180
2541
  need_version=no
3181
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3182
 
  soname_spec='${libname}${release}.so$major'
 
2542
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2543
  soname_spec='${libname}${release}${shared_ext}$major'
3183
2544
  shlibpath_var=LD_LIBRARY_PATH
3184
2545
  shlibpath_overrides_runpath=yes
3185
2546
  hardcode_into_libs=yes
3189
2550
 
3190
2551
sunos4*)
3191
2552
  version_type=sunos
3192
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
2553
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3193
2554
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3194
2555
  shlibpath_var=LD_LIBRARY_PATH
3195
2556
  shlibpath_overrides_runpath=yes
3201
2562
 
3202
2563
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3203
2564
  version_type=linux
3204
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3205
 
  soname_spec='${libname}${release}.so$major'
 
2565
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2566
  soname_spec='${libname}${release}${shared_ext}$major'
3206
2567
  shlibpath_var=LD_LIBRARY_PATH
3207
2568
  case $host_vendor in
3208
2569
    sni)
3223
2584
  esac
3224
2585
  ;;
3225
2586
 
3226
 
uts4*)
3227
 
  version_type=linux
3228
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3229
 
  soname_spec='${libname}${release}.so$major'
3230
 
  shlibpath_var=LD_LIBRARY_PATH
3231
 
  ;;
3232
 
 
3233
 
dgux*)
3234
 
  version_type=linux
3235
 
  need_lib_prefix=no
3236
 
  need_version=no
3237
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3238
 
  soname_spec='${libname}${release}.so$major'
3239
 
  shlibpath_var=LD_LIBRARY_PATH
3240
 
  ;;
3241
 
 
3242
2587
sysv4*MP*)
3243
2588
  if test -d /usr/nec ;then
3244
2589
    version_type=linux
3245
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
3246
 
    soname_spec='$libname.so.$major'
 
2590
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
2591
    soname_spec='$libname${shared_ext}.$major'
3247
2592
    shlibpath_var=LD_LIBRARY_PATH
3248
2593
  fi
3249
2594
  ;;
3250
2595
 
 
2596
uts4*)
 
2597
  version_type=linux
 
2598
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2599
  soname_spec='${libname}${release}${shared_ext}$major'
 
2600
  shlibpath_var=LD_LIBRARY_PATH
 
2601
  ;;
 
2602
 
3251
2603
*)
3252
2604
  dynamic_linker=no
3253
2605
  ;;
3254
2606
esac
3255
2607
AC_MSG_RESULT([$dynamic_linker])
3256
2608
test "$dynamic_linker" = no && can_build_shared=no
3257
 
 
3258
 
# Report the final consequences.
3259
 
AC_MSG_CHECKING([if libtool supports shared libraries])
3260
 
AC_MSG_RESULT([$can_build_shared])
3261
 
 
3262
 
AC_MSG_CHECKING([whether to build shared libraries])
3263
 
test "$can_build_shared" = "no" && enable_shared=no
3264
 
 
3265
 
# On AIX, shared libraries and static libraries use the same namespace, and
3266
 
# are all built from PIC.
3267
 
case "$host_os" in
3268
 
aix3*)
3269
 
  test "$enable_shared" = yes && enable_static=no
3270
 
  if test -n "$RANLIB"; then
3271
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
3272
 
    postinstall_cmds='$RANLIB $lib'
3273
 
  fi
3274
 
  ;;
3275
 
 
3276
 
aix4*)
3277
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3278
 
    test "$enable_shared" = yes && enable_static=no
3279
 
  fi
3280
 
  ;;
3281
 
esac
3282
 
AC_MSG_RESULT([$enable_shared])
3283
 
 
3284
 
AC_MSG_CHECKING([whether to build static libraries])
3285
 
# Make sure either enable_shared or enable_static is yes.
3286
 
test "$enable_shared" = yes || enable_static=yes
3287
 
AC_MSG_RESULT([$enable_static])
3288
 
 
3289
 
if test "$hardcode_action" = relink; then
3290
 
  # Fast installation is not supported
3291
 
  enable_fast_install=no
3292
 
elif test "$shlibpath_overrides_runpath" = yes ||
3293
 
     test "$enable_shared" = no; then
3294
 
  # Fast installation is not necessary
3295
 
  enable_fast_install=needless
3296
 
fi
3297
 
 
3298
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3299
 
if test "$GCC" = yes; then
3300
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3301
 
fi
3302
 
 
3303
 
AC_LIBTOOL_DLOPEN_SELF
3304
 
 
3305
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
3306
 
  case $archive_cmds in
3307
 
  *'~'*)
3308
 
    # FIXME: we may have to deal with multi-command sequences.
3309
 
    ;;
3310
 
  '$CC '*)
3311
 
    # Test whether the compiler implicitly links with -lc since on some
3312
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
3313
 
    # to ld, don't add -lc before -lgcc.
3314
 
    AC_MSG_CHECKING([whether -lc should be explicitly linked in])
3315
 
    AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
3316
 
    [$rm conftest*
3317
 
    echo 'static int dummy;' > conftest.$ac_ext
3318
 
 
3319
 
    if AC_TRY_EVAL(ac_compile); then
3320
 
      soname=conftest
3321
 
      lib=conftest
3322
 
      libobjs=conftest.$ac_objext
3323
 
      deplibs=
3324
 
      wl=$lt_cv_prog_cc_wl
3325
 
      compiler_flags=-v
3326
 
      linker_flags=-v
3327
 
      verstring=
3328
 
      output_objdir=.
3329
 
      libname=conftest
3330
 
      save_allow_undefined_flag=$allow_undefined_flag
3331
 
      allow_undefined_flag=
3332
 
      if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
3333
 
      then
3334
 
        lt_cv_archive_cmds_need_lc=no
3335
 
      else
3336
 
        lt_cv_archive_cmds_need_lc=yes
3337
 
      fi
3338
 
      allow_undefined_flag=$save_allow_undefined_flag
 
2609
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2610
 
 
2611
 
 
2612
# _LT_AC_TAGCONFIG
 
2613
# ----------------
 
2614
AC_DEFUN([_LT_AC_TAGCONFIG],
 
2615
[AC_ARG_WITH([tags],
 
2616
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
 
2617
        [include additional configurations @<:@automatic@:>@])],
 
2618
    [tagnames="$withval"])
 
2619
 
 
2620
if test -f "$ltmain" && test -n "$tagnames"; then
 
2621
  if test ! -f "${ofile}"; then
 
2622
    AC_MSG_WARN([output file `$ofile' does not exist])
 
2623
  fi
 
2624
 
 
2625
  if test -z "$LTCC"; then
 
2626
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
2627
    if test -z "$LTCC"; then
 
2628
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3339
2629
    else
3340
 
      cat conftest.err 1>&5
3341
 
    fi])
3342
 
    AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
3343
 
    ;;
3344
 
  esac
3345
 
fi
3346
 
need_lc=${lt_cv_archive_cmds_need_lc-yes}
3347
 
 
3348
 
# The second clause should only fire when bootstrapping the
3349
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
3350
 
# with your package, and you will get complaints that there are
3351
 
# no rules to generate ltmain.sh.
3352
 
if test -f "$ltmain"; then
3353
 
  :
3354
 
else
3355
 
  # If there is no Makefile yet, we rely on a make rule to execute
3356
 
  # `config.status --recheck' to rerun these tests and create the
3357
 
  # libtool script then.
3358
 
  test -f Makefile && make "$ltmain"
3359
 
fi
3360
 
 
3361
 
if test -f "$ltmain"; then
3362
 
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
3363
 
  $rm -f "${ofile}T"
3364
 
 
3365
 
  echo creating $ofile
3366
 
 
3367
 
  # Now quote all the things that may contain metacharacters while being
3368
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
3369
 
  # variables and quote the copies for generation of the libtool script.
3370
 
  for var in echo old_CC old_CFLAGS SED \
3371
 
    AR AR_FLAGS CC LD LN_S NM SHELL \
3372
 
    reload_flag reload_cmds wl \
3373
 
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
3374
 
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
3375
 
    library_names_spec soname_spec \
3376
 
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
3377
 
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
3378
 
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
3379
 
    old_striplib striplib file_magic_cmd export_symbols_cmds \
3380
 
    deplibs_check_method allow_undefined_flag no_undefined_flag \
3381
 
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
3382
 
    global_symbol_to_c_name_address \
3383
 
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
3384
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
3385
 
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
3386
 
 
3387
 
    case $var in
3388
 
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
3389
 
    old_postinstall_cmds | old_postuninstall_cmds | \
3390
 
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
3391
 
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
3392
 
    postinstall_cmds | postuninstall_cmds | \
3393
 
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
3394
 
      # Double-quote double-evaled strings.
3395
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
3396
 
      ;;
3397
 
    *)
3398
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
3399
 
      ;;
 
2630
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 
2631
    fi
 
2632
  fi
 
2633
 
 
2634
  # Extract list of available tagged configurations in $ofile.
 
2635
  # Note that this assumes the entire list is on one line.
 
2636
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
2637
 
 
2638
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2639
  for tagname in $tagnames; do
 
2640
    IFS="$lt_save_ifs"
 
2641
    # Check whether tagname contains only valid characters
 
2642
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
 
2643
    "") ;;
 
2644
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
 
2645
        ;;
3400
2646
    esac
 
2647
 
 
2648
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
2649
    then
 
2650
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
 
2651
    fi
 
2652
 
 
2653
    # Update the list of available tags.
 
2654
    if test -n "$tagname"; then
 
2655
      echo appending configuration tag \"$tagname\" to $ofile
 
2656
 
 
2657
      case $tagname in
 
2658
      CXX)
 
2659
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
2660
          AC_LIBTOOL_LANG_CXX_CONFIG
 
2661
        else
 
2662
          tagname=""
 
2663
        fi
 
2664
        ;;
 
2665
 
 
2666
      F77)
 
2667
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
2668
          AC_LIBTOOL_LANG_F77_CONFIG
 
2669
        else
 
2670
          tagname=""
 
2671
        fi
 
2672
        ;;
 
2673
 
 
2674
      GCJ)
 
2675
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
2676
          AC_LIBTOOL_LANG_GCJ_CONFIG
 
2677
        else
 
2678
          tagname=""
 
2679
        fi
 
2680
        ;;
 
2681
 
 
2682
      RC)
 
2683
        AC_LIBTOOL_LANG_RC_CONFIG
 
2684
        ;;
 
2685
 
 
2686
      *)
 
2687
        AC_MSG_ERROR([Unsupported tag name: $tagname])
 
2688
        ;;
 
2689
      esac
 
2690
 
 
2691
      # Append the new tag name to the list of available tags.
 
2692
      if test -n "$tagname" ; then
 
2693
      available_tags="$available_tags $tagname"
 
2694
    fi
 
2695
    fi
3401
2696
  done
3402
 
 
3403
 
  cat <<__EOF__ > "${ofile}T"
3404
 
#! $SHELL
3405
 
 
3406
 
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
3407
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
3408
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
3409
 
#
3410
 
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
3411
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3412
 
#
3413
 
# This program is free software; you can redistribute it and/or modify
3414
 
# it under the terms of the GNU General Public License as published by
3415
 
# the Free Software Foundation; either version 2 of the License, or
3416
 
# (at your option) any later version.
3417
 
#
3418
 
# This program is distributed in the hope that it will be useful, but
3419
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
3420
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3421
 
# General Public License for more details.
3422
 
#
3423
 
# You should have received a copy of the GNU General Public License
3424
 
# along with this program; if not, write to the Free Software
3425
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3426
 
#
3427
 
# As a special exception to the GNU General Public License, if you
3428
 
# distribute this file as part of a program that contains a
3429
 
# configuration script generated by Autoconf, you may include it under
3430
 
# the same distribution terms that you use for the rest of that program.
3431
 
 
3432
 
# A sed that does not truncate output.
3433
 
SED=$lt_SED
3434
 
 
3435
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
3436
 
Xsed="${SED} -e s/^X//"
3437
 
 
3438
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
3439
 
# if CDPATH is set.
3440
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
3441
 
 
3442
 
# ### BEGIN LIBTOOL CONFIG
3443
 
 
3444
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3445
 
 
3446
 
# Shell to use when invoking shell scripts.
3447
 
SHELL=$lt_SHELL
3448
 
 
3449
 
# Whether or not to build shared libraries.
3450
 
build_libtool_libs=$enable_shared
3451
 
 
3452
 
# Whether or not to build static libraries.
3453
 
build_old_libs=$enable_static
3454
 
 
3455
 
# Whether or not to add -lc for building shared libraries.
3456
 
build_libtool_need_lc=$need_lc
3457
 
 
3458
 
# Whether or not to optimize for fast installation.
3459
 
fast_install=$enable_fast_install
3460
 
 
3461
 
# The host system.
3462
 
host_alias=$host_alias
3463
 
host=$host
3464
 
 
3465
 
# An echo program that does not interpret backslashes.
3466
 
echo=$lt_echo
3467
 
 
3468
 
# The archiver.
3469
 
AR=$lt_AR
3470
 
AR_FLAGS=$lt_AR_FLAGS
3471
 
 
3472
 
# The default C compiler.
3473
 
CC=$lt_CC
3474
 
 
3475
 
# Is the compiler the GNU C compiler?
3476
 
with_gcc=$GCC
3477
 
 
3478
 
# The linker used to build libraries.
3479
 
LD=$lt_LD
3480
 
 
3481
 
# Whether we need hard or soft links.
3482
 
LN_S=$lt_LN_S
3483
 
 
3484
 
# A BSD-compatible nm program.
3485
 
NM=$lt_NM
3486
 
 
3487
 
# A symbol stripping program
3488
 
STRIP=$STRIP
3489
 
 
3490
 
# Used to examine libraries when file_magic_cmd begins "file"
3491
 
MAGIC_CMD=$MAGIC_CMD
3492
 
 
3493
 
# Used on cygwin: DLL creation program.
3494
 
DLLTOOL="$DLLTOOL"
3495
 
 
3496
 
# Used on cygwin: object dumper.
3497
 
OBJDUMP="$OBJDUMP"
3498
 
 
3499
 
# Used on cygwin: assembler.
3500
 
AS="$AS"
3501
 
 
3502
 
# The name of the directory that contains temporary libtool files.
3503
 
objdir=$objdir
3504
 
 
3505
 
# How to create reloadable object files.
3506
 
reload_flag=$lt_reload_flag
3507
 
reload_cmds=$lt_reload_cmds
3508
 
 
3509
 
# How to pass a linker flag through the compiler.
3510
 
wl=$lt_wl
3511
 
 
3512
 
# Object file suffix (normally "o").
3513
 
objext="$ac_objext"
3514
 
 
3515
 
# Old archive suffix (normally "a").
3516
 
libext="$libext"
3517
 
 
3518
 
# Executable file suffix (normally "").
3519
 
exeext="$exeext"
3520
 
 
3521
 
# Additional compiler flags for building library objects.
3522
 
pic_flag=$lt_pic_flag
3523
 
pic_mode=$pic_mode
3524
 
 
3525
 
# Does compiler simultaneously support -c and -o options?
3526
 
compiler_c_o=$lt_compiler_c_o
3527
 
 
3528
 
# Can we write directly to a .lo ?
3529
 
compiler_o_lo=$lt_compiler_o_lo
3530
 
 
3531
 
# Must we lock files when doing compilation ?
3532
 
need_locks=$lt_need_locks
3533
 
 
3534
 
# Do we need the lib prefix for modules?
3535
 
need_lib_prefix=$need_lib_prefix
3536
 
 
3537
 
# Do we need a version for libraries?
3538
 
need_version=$need_version
3539
 
 
3540
 
# Whether dlopen is supported.
3541
 
dlopen_support=$enable_dlopen
3542
 
 
3543
 
# Whether dlopen of programs is supported.
3544
 
dlopen_self=$enable_dlopen_self
3545
 
 
3546
 
# Whether dlopen of statically linked programs is supported.
3547
 
dlopen_self_static=$enable_dlopen_self_static
3548
 
 
3549
 
# Compiler flag to prevent dynamic linking.
3550
 
link_static_flag=$lt_link_static_flag
3551
 
 
3552
 
# Compiler flag to turn off builtin functions.
3553
 
no_builtin_flag=$lt_no_builtin_flag
3554
 
 
3555
 
# Compiler flag to allow reflexive dlopens.
3556
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
3557
 
 
3558
 
# Compiler flag to generate shared objects directly from archives.
3559
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
3560
 
 
3561
 
# Compiler flag to generate thread-safe objects.
3562
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
3563
 
 
3564
 
# Library versioning type.
3565
 
version_type=$version_type
3566
 
 
3567
 
# Format of library name prefix.
3568
 
libname_spec=$lt_libname_spec
3569
 
 
3570
 
# List of archive names.  First name is the real one, the rest are links.
3571
 
# The last name is the one that the linker finds with -lNAME.
3572
 
library_names_spec=$lt_library_names_spec
3573
 
 
3574
 
# The coded name of the library, if different from the real name.
3575
 
soname_spec=$lt_soname_spec
3576
 
 
3577
 
# Commands used to build and install an old-style archive.
3578
 
RANLIB=$lt_RANLIB
3579
 
old_archive_cmds=$lt_old_archive_cmds
3580
 
old_postinstall_cmds=$lt_old_postinstall_cmds
3581
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
3582
 
 
3583
 
# Create an old-style archive from a shared archive.
3584
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
3585
 
 
3586
 
# Create a temporary old-style archive to link instead of a shared archive.
3587
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
3588
 
 
3589
 
# Commands used to build and install a shared archive.
3590
 
archive_cmds=$lt_archive_cmds
3591
 
archive_expsym_cmds=$lt_archive_expsym_cmds
3592
 
postinstall_cmds=$lt_postinstall_cmds
3593
 
postuninstall_cmds=$lt_postuninstall_cmds
3594
 
 
3595
 
# Commands to strip libraries.
3596
 
old_striplib=$lt_old_striplib
3597
 
striplib=$lt_striplib
3598
 
 
3599
 
# Method to check whether dependent libraries are shared objects.
3600
 
deplibs_check_method=$lt_deplibs_check_method
3601
 
 
3602
 
# Command to use when deplibs_check_method == file_magic.
3603
 
file_magic_cmd=$lt_file_magic_cmd
3604
 
 
3605
 
# Flag that allows shared libraries with undefined symbols to be built.
3606
 
allow_undefined_flag=$lt_allow_undefined_flag
3607
 
 
3608
 
# Flag that forces no undefined symbols.
3609
 
no_undefined_flag=$lt_no_undefined_flag
3610
 
 
3611
 
# Commands used to finish a libtool library installation in a directory.
3612
 
finish_cmds=$lt_finish_cmds
3613
 
 
3614
 
# Same as above, but a single script fragment to be evaled but not shown.
3615
 
finish_eval=$lt_finish_eval
3616
 
 
3617
 
# Take the output of nm and produce a listing of raw symbols and C names.
3618
 
global_symbol_pipe=$lt_global_symbol_pipe
3619
 
 
3620
 
# Transform the output of nm in a proper C declaration
3621
 
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
3622
 
 
3623
 
# Transform the output of nm in a C name address pair
3624
 
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
3625
 
 
3626
 
# This is the shared library runtime path variable.
3627
 
runpath_var=$runpath_var
3628
 
 
3629
 
# This is the shared library path variable.
3630
 
shlibpath_var=$shlibpath_var
3631
 
 
3632
 
# Is shlibpath searched before the hard-coded library search path?
3633
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
3634
 
 
3635
 
# How to hardcode a shared library path into an executable.
3636
 
hardcode_action=$hardcode_action
3637
 
 
3638
 
# Whether we should hardcode library paths into libraries.
3639
 
hardcode_into_libs=$hardcode_into_libs
3640
 
 
3641
 
# Flag to hardcode \$libdir into a binary during linking.
3642
 
# This must work even if \$libdir does not exist.
3643
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
3644
 
 
3645
 
# Whether we need a single -rpath flag with a separated argument.
3646
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
3647
 
 
3648
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
3649
 
# resulting binary.
3650
 
hardcode_direct=$hardcode_direct
3651
 
 
3652
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
3653
 
# resulting binary.
3654
 
hardcode_minus_L=$hardcode_minus_L
3655
 
 
3656
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
3657
 
# the resulting binary.
3658
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
3659
 
 
3660
 
# Variables whose values should be saved in libtool wrapper scripts and
3661
 
# restored at relink time.
3662
 
variables_saved_for_relink="$variables_saved_for_relink"
3663
 
 
3664
 
# Whether libtool must link a program against all its dependency libraries.
3665
 
link_all_deplibs=$link_all_deplibs
3666
 
 
3667
 
# Compile-time system search path for libraries
3668
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
3669
 
 
3670
 
# Run-time system search path for libraries
3671
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
3672
 
 
3673
 
# Fix the shell variable \$srcfile for the compiler.
3674
 
fix_srcfile_path="$fix_srcfile_path"
3675
 
 
3676
 
# Set to yes if exported symbols are required.
3677
 
always_export_symbols=$always_export_symbols
3678
 
 
3679
 
# The commands to list exported symbols.
3680
 
export_symbols_cmds=$lt_export_symbols_cmds
3681
 
 
3682
 
# The commands to extract the exported symbol list from a shared archive.
3683
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
3684
 
 
3685
 
# Symbols that should not be listed in the preloaded symbols.
3686
 
exclude_expsyms=$lt_exclude_expsyms
3687
 
 
3688
 
# Symbols that must always be exported.
3689
 
include_expsyms=$lt_include_expsyms
3690
 
 
3691
 
# ### END LIBTOOL CONFIG
3692
 
 
3693
 
__EOF__
3694
 
 
3695
 
  case $host_os in
3696
 
  aix3*)
3697
 
    cat <<\EOF >> "${ofile}T"
3698
 
 
3699
 
# AIX sometimes has problems with the GCC collect2 program.  For some
3700
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
3701
 
# vanish in a puff of smoke.
3702
 
if test "X${COLLECT_NAMES+set}" != Xset; then
3703
 
  COLLECT_NAMES=
3704
 
  export COLLECT_NAMES
3705
 
fi
3706
 
EOF
3707
 
    ;;
3708
 
  esac
3709
 
 
3710
 
  case $host_os in
3711
 
  cygwin* | mingw* | pw32* | os2*)
3712
 
    cat <<'EOF' >> "${ofile}T"
3713
 
      # This is a source program that is used to create dlls on Windows
3714
 
      # Don't remove nor modify the starting and closing comments
3715
 
# /* ltdll.c starts here */
3716
 
# #define WIN32_LEAN_AND_MEAN
3717
 
# #include <windows.h>
3718
 
# #undef WIN32_LEAN_AND_MEAN
3719
 
# #include <stdio.h>
3720
 
#
3721
 
# #ifndef __CYGWIN__
3722
 
# #  ifdef __CYGWIN32__
3723
 
# #    define __CYGWIN__ __CYGWIN32__
3724
 
# #  endif
3725
 
# #endif
3726
 
#
3727
 
# #ifdef __cplusplus
3728
 
# extern "C" {
3729
 
# #endif
3730
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
3731
 
# #ifdef __cplusplus
3732
 
# }
3733
 
# #endif
3734
 
#
3735
 
# #ifdef __CYGWIN__
3736
 
# #include <cygwin/cygwin_dll.h>
3737
 
# DECLARE_CYGWIN_DLL( DllMain );
3738
 
# #endif
3739
 
# HINSTANCE __hDllInstance_base;
3740
 
#
3741
 
# BOOL APIENTRY
3742
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
3743
 
# {
3744
 
#   __hDllInstance_base = hInst;
3745
 
#   return TRUE;
3746
 
# }
3747
 
# /* ltdll.c ends here */
3748
 
        # This is a source program that is used to create import libraries
3749
 
        # on Windows for dlls which lack them. Don't remove nor modify the
3750
 
        # starting and closing comments
3751
 
# /* impgen.c starts here */
3752
 
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
3753
 
#
3754
 
#  This file is part of GNU libtool.
3755
 
#
3756
 
#  This program is free software; you can redistribute it and/or modify
3757
 
#  it under the terms of the GNU General Public License as published by
3758
 
#  the Free Software Foundation; either version 2 of the License, or
3759
 
#  (at your option) any later version.
3760
 
#
3761
 
#  This program is distributed in the hope that it will be useful,
3762
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
3763
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3764
 
#  GNU General Public License for more details.
3765
 
#
3766
 
#  You should have received a copy of the GNU General Public License
3767
 
#  along with this program; if not, write to the Free Software
3768
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3769
 
#  */
3770
 
#
3771
 
# #include <stdio.h>            /* for printf() */
3772
 
# #include <unistd.h>           /* for open(), lseek(), read() */
3773
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
3774
 
# #include <string.h>           /* for strdup() */
3775
 
#
3776
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
3777
 
# #ifndef O_BINARY
3778
 
# #define O_BINARY 0
3779
 
# #endif
3780
 
#
3781
 
# static unsigned int
3782
 
# pe_get16 (fd, offset)
3783
 
#      int fd;
3784
 
#      int offset;
3785
 
# {
3786
 
#   unsigned char b[2];
3787
 
#   lseek (fd, offset, SEEK_SET);
3788
 
#   read (fd, b, 2);
3789
 
#   return b[0] + (b[1]<<8);
3790
 
# }
3791
 
#
3792
 
# static unsigned int
3793
 
# pe_get32 (fd, offset)
3794
 
#     int fd;
3795
 
#     int offset;
3796
 
# {
3797
 
#   unsigned char b[4];
3798
 
#   lseek (fd, offset, SEEK_SET);
3799
 
#   read (fd, b, 4);
3800
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3801
 
# }
3802
 
#
3803
 
# static unsigned int
3804
 
# pe_as32 (ptr)
3805
 
#      void *ptr;
3806
 
# {
3807
 
#   unsigned char *b = ptr;
3808
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3809
 
# }
3810
 
#
3811
 
# int
3812
 
# main (argc, argv)
3813
 
#     int argc;
3814
 
#     char *argv[];
3815
 
# {
3816
 
#     int dll;
3817
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
3818
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
3819
 
#     unsigned long name_rvas, nexp;
3820
 
#     unsigned char *expdata, *erva;
3821
 
#     char *filename, *dll_name;
3822
 
#
3823
 
#     filename = argv[1];
3824
 
#
3825
 
#     dll = open(filename, O_RDONLY|O_BINARY);
3826
 
#     if (dll < 1)
3827
 
#       return 1;
3828
 
#
3829
 
#     dll_name = filename;
3830
 
#
3831
 
#     for (i=0; filename[i]; i++)
3832
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
3833
 
#           dll_name = filename + i +1;
3834
 
#
3835
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
3836
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
3837
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
3838
 
#
3839
 
#     if (num_entries < 1) /* no exports */
3840
 
#       return 1;
3841
 
#
3842
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
3843
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
3844
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
3845
 
#     secptr = (pe_header_offset + 4 + 20 +
3846
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
3847
 
#
3848
 
#     expptr = 0;
3849
 
#     for (i = 0; i < nsections; i++)
3850
 
#     {
3851
 
#       char sname[8];
3852
 
#       unsigned long secptr1 = secptr + 40 * i;
3853
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
3854
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
3855
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
3856
 
#       lseek(dll, secptr1, SEEK_SET);
3857
 
#       read(dll, sname, 8);
3858
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
3859
 
#       {
3860
 
#           expptr = fptr + (export_rva - vaddr);
3861
 
#           if (export_rva + export_size > vaddr + vsize)
3862
 
#               export_size = vsize - (export_rva - vaddr);
3863
 
#           break;
3864
 
#       }
3865
 
#     }
3866
 
#
3867
 
#     expdata = (unsigned char*)malloc(export_size);
3868
 
#     lseek (dll, expptr, SEEK_SET);
3869
 
#     read (dll, expdata, export_size);
3870
 
#     erva = expdata - export_rva;
3871
 
#
3872
 
#     nexp = pe_as32 (expdata+24);
3873
 
#     name_rvas = pe_as32 (expdata+32);
3874
 
#
3875
 
#     printf ("EXPORTS\n");
3876
 
#     for (i = 0; i<nexp; i++)
3877
 
#     {
3878
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
3879
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
3880
 
#     }
3881
 
#
3882
 
#     return 0;
3883
 
# }
3884
 
# /* impgen.c ends here */
3885
 
 
3886
 
EOF
3887
 
    ;;
3888
 
  esac
3889
 
 
3890
 
  # We use sed instead of cat because bash on DJGPP gets confused if
3891
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
3892
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
3893
 
  # is reportedly fixed, but why not run on old versions too?
3894
 
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
3895
 
 
3896
 
  mv -f "${ofile}T" "$ofile" || \
3897
 
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
3898
 
  chmod +x "$ofile"
3899
 
fi
3900
 
 
3901
 
])# _LT_AC_LTCONFIG_HACK
3902
 
 
3903
 
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
3904
 
AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
3905
 
 
3906
 
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
3907
 
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
3908
 
 
3909
 
# AC_ENABLE_SHARED - implement the --enable-shared flag
3910
 
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
3911
 
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
3912
 
#   `yes'.
 
2697
  IFS="$lt_save_ifs"
 
2698
 
 
2699
  # Now substitute the updated list of available tags.
 
2700
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
2701
    mv "${ofile}T" "$ofile"
 
2702
    chmod +x "$ofile"
 
2703
  else
 
2704
    rm -f "${ofile}T"
 
2705
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
 
2706
  fi
 
2707
fi
 
2708
])# _LT_AC_TAGCONFIG
 
2709
 
 
2710
 
 
2711
# AC_LIBTOOL_DLOPEN
 
2712
# -----------------
 
2713
# enable checks for dlopen support
 
2714
AC_DEFUN([AC_LIBTOOL_DLOPEN],
 
2715
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
 
2716
])# AC_LIBTOOL_DLOPEN
 
2717
 
 
2718
 
 
2719
# AC_LIBTOOL_WIN32_DLL
 
2720
# --------------------
 
2721
# declare package support for building win32 dll's
 
2722
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
2723
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
 
2724
])# AC_LIBTOOL_WIN32_DLL
 
2725
 
 
2726
 
 
2727
# AC_ENABLE_SHARED([DEFAULT])
 
2728
# ---------------------------
 
2729
# implement the --enable-shared flag
 
2730
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3913
2731
AC_DEFUN([AC_ENABLE_SHARED],
3914
2732
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3915
 
AC_ARG_ENABLE(shared,
3916
 
changequote(<<, >>)dnl
3917
 
<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
3918
 
changequote([, ])dnl
3919
 
[p=${PACKAGE-default}
3920
 
case $enableval in
3921
 
yes) enable_shared=yes ;;
3922
 
no) enable_shared=no ;;
3923
 
*)
3924
 
  enable_shared=no
3925
 
  # Look at the argument we got.  We use all the common list separators.
3926
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3927
 
  for pkg in $enableval; do
3928
 
    if test "X$pkg" = "X$p"; then
3929
 
      enable_shared=yes
3930
 
    fi
3931
 
  done
3932
 
  IFS="$ac_save_ifs"
3933
 
  ;;
3934
 
esac],
3935
 
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
3936
 
])
3937
 
 
3938
 
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
 
2733
AC_ARG_ENABLE([shared],
 
2734
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
2735
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
 
2736
    [p=${PACKAGE-default}
 
2737
    case $enableval in
 
2738
    yes) enable_shared=yes ;;
 
2739
    no) enable_shared=no ;;
 
2740
    *)
 
2741
      enable_shared=no
 
2742
      # Look at the argument we got.  We use all the common list separators.
 
2743
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2744
      for pkg in $enableval; do
 
2745
        IFS="$lt_save_ifs"
 
2746
        if test "X$pkg" = "X$p"; then
 
2747
          enable_shared=yes
 
2748
        fi
 
2749
      done
 
2750
      IFS="$lt_save_ifs"
 
2751
      ;;
 
2752
    esac],
 
2753
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
 
2754
])# AC_ENABLE_SHARED
 
2755
 
 
2756
 
 
2757
# AC_DISABLE_SHARED
 
2758
# -----------------
 
2759
#- set the default shared flag to --disable-shared
3939
2760
AC_DEFUN([AC_DISABLE_SHARED],
3940
2761
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3941
 
AC_ENABLE_SHARED(no)])
3942
 
 
3943
 
# AC_ENABLE_STATIC - implement the --enable-static flag
3944
 
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
3945
 
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
3946
 
#   `yes'.
 
2762
AC_ENABLE_SHARED(no)
 
2763
])# AC_DISABLE_SHARED
 
2764
 
 
2765
 
 
2766
# AC_ENABLE_STATIC([DEFAULT])
 
2767
# ---------------------------
 
2768
# implement the --enable-static flag
 
2769
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3947
2770
AC_DEFUN([AC_ENABLE_STATIC],
3948
2771
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3949
 
AC_ARG_ENABLE(static,
3950
 
changequote(<<, >>)dnl
3951
 
<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
3952
 
changequote([, ])dnl
3953
 
[p=${PACKAGE-default}
3954
 
case $enableval in
3955
 
yes) enable_static=yes ;;
3956
 
no) enable_static=no ;;
3957
 
*)
3958
 
  enable_static=no
3959
 
  # Look at the argument we got.  We use all the common list separators.
3960
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3961
 
  for pkg in $enableval; do
3962
 
    if test "X$pkg" = "X$p"; then
3963
 
      enable_static=yes
3964
 
    fi
3965
 
  done
3966
 
  IFS="$ac_save_ifs"
3967
 
  ;;
3968
 
esac],
3969
 
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
3970
 
])
3971
 
 
3972
 
# AC_DISABLE_STATIC - set the default static flag to --disable-static
 
2772
AC_ARG_ENABLE([static],
 
2773
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
2774
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
 
2775
    [p=${PACKAGE-default}
 
2776
    case $enableval in
 
2777
    yes) enable_static=yes ;;
 
2778
    no) enable_static=no ;;
 
2779
    *)
 
2780
     enable_static=no
 
2781
      # Look at the argument we got.  We use all the common list separators.
 
2782
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2783
      for pkg in $enableval; do
 
2784
        IFS="$lt_save_ifs"
 
2785
        if test "X$pkg" = "X$p"; then
 
2786
          enable_static=yes
 
2787
        fi
 
2788
      done
 
2789
      IFS="$lt_save_ifs"
 
2790
      ;;
 
2791
    esac],
 
2792
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
 
2793
])# AC_ENABLE_STATIC
 
2794
 
 
2795
 
 
2796
# AC_DISABLE_STATIC
 
2797
# -----------------
 
2798
# set the default static flag to --disable-static
3973
2799
AC_DEFUN([AC_DISABLE_STATIC],
3974
2800
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3975
 
AC_ENABLE_STATIC(no)])
3976
 
 
3977
 
 
3978
 
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
3979
 
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
3980
 
#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
3981
 
#   `yes'.
 
2801
AC_ENABLE_STATIC(no)
 
2802
])# AC_DISABLE_STATIC
 
2803
 
 
2804
 
 
2805
# AC_ENABLE_FAST_INSTALL([DEFAULT])
 
2806
# ---------------------------------
 
2807
# implement the --enable-fast-install flag
 
2808
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3982
2809
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3983
2810
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3984
 
AC_ARG_ENABLE(fast-install,
3985
 
changequote(<<, >>)dnl
3986
 
<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
3987
 
changequote([, ])dnl
3988
 
[p=${PACKAGE-default}
3989
 
case $enableval in
3990
 
yes) enable_fast_install=yes ;;
3991
 
no) enable_fast_install=no ;;
3992
 
*)
3993
 
  enable_fast_install=no
3994
 
  # Look at the argument we got.  We use all the common list separators.
3995
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3996
 
  for pkg in $enableval; do
3997
 
    if test "X$pkg" = "X$p"; then
3998
 
      enable_fast_install=yes
3999
 
    fi
4000
 
  done
4001
 
  IFS="$ac_save_ifs"
4002
 
  ;;
4003
 
esac],
4004
 
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
4005
 
])
4006
 
 
4007
 
# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
 
2811
AC_ARG_ENABLE([fast-install],
 
2812
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
2813
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
2814
    [p=${PACKAGE-default}
 
2815
    case $enableval in
 
2816
    yes) enable_fast_install=yes ;;
 
2817
    no) enable_fast_install=no ;;
 
2818
    *)
 
2819
      enable_fast_install=no
 
2820
      # Look at the argument we got.  We use all the common list separators.
 
2821
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2822
      for pkg in $enableval; do
 
2823
        IFS="$lt_save_ifs"
 
2824
        if test "X$pkg" = "X$p"; then
 
2825
          enable_fast_install=yes
 
2826
        fi
 
2827
      done
 
2828
      IFS="$lt_save_ifs"
 
2829
      ;;
 
2830
    esac],
 
2831
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
 
2832
])# AC_ENABLE_FAST_INSTALL
 
2833
 
 
2834
 
 
2835
# AC_DISABLE_FAST_INSTALL
 
2836
# -----------------------
 
2837
# set the default to --disable-fast-install
4008
2838
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
4009
2839
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4010
 
AC_ENABLE_FAST_INSTALL(no)])
4011
 
 
4012
 
# AC_LIBTOOL_PICMODE - implement the --with-pic flag
4013
 
# Usage: AC_LIBTOOL_PICMODE[(MODE)]
4014
 
#   Where MODE is either `yes' or `no'.  If omitted, it defaults to
4015
 
#   `both'.
 
2840
AC_ENABLE_FAST_INSTALL(no)
 
2841
])# AC_DISABLE_FAST_INSTALL
 
2842
 
 
2843
 
 
2844
# AC_LIBTOOL_PICMODE([MODE])
 
2845
# --------------------------
 
2846
# implement the --with-pic flag
 
2847
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
4016
2848
AC_DEFUN([AC_LIBTOOL_PICMODE],
4017
2849
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4018
 
pic_mode=ifelse($#,1,$1,default)])
4019
 
 
4020
 
 
4021
 
# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
 
2850
pic_mode=ifelse($#,1,$1,default)
 
2851
])# AC_LIBTOOL_PICMODE
 
2852
 
 
2853
 
 
2854
# AC_PROG_EGREP
 
2855
# -------------
 
2856
# This is predefined starting with Autoconf 2.54, so this conditional
 
2857
# definition can be removed once we require Autoconf 2.54 or later.
 
2858
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
 
2859
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
 
2860
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2861
    then ac_cv_prog_egrep='grep -E'
 
2862
    else ac_cv_prog_egrep='egrep'
 
2863
    fi])
 
2864
 EGREP=$ac_cv_prog_egrep
 
2865
 AC_SUBST([EGREP])
 
2866
])])
 
2867
 
 
2868
 
 
2869
# AC_PATH_TOOL_PREFIX
 
2870
# -------------------
 
2871
# find a file program which can recognise shared library
4022
2872
AC_DEFUN([AC_PATH_TOOL_PREFIX],
4023
 
[AC_MSG_CHECKING([for $1])
 
2873
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
2874
AC_MSG_CHECKING([for $1])
4024
2875
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4025
2876
[case $MAGIC_CMD in
4026
 
  /*)
 
2877
[[\\/*] |  ?:[\\/]*])
4027
2878
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4028
2879
  ;;
4029
 
  ?:/*)
4030
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4031
 
  ;;
4032
 
  *)
4033
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
4034
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2880
*)
 
2881
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
2882
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4035
2883
dnl $ac_dummy forces splitting on constant user-supplied paths.
4036
2884
dnl POSIX.2 word splitting is done only on the output of word expansions,
4037
2885
dnl not every word.  This closes a longstanding sh security hole.
4038
2886
  ac_dummy="ifelse([$2], , $PATH, [$2])"
4039
2887
  for ac_dir in $ac_dummy; do
 
2888
    IFS="$lt_save_ifs"
4040
2889
    test -z "$ac_dir" && ac_dir=.
4041
2890
    if test -f $ac_dir/$1; then
4042
2891
      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
4046
2895
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4047
2896
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4048
2897
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4049
 
            egrep "$file_magic_regex" > /dev/null; then
 
2898
            $EGREP "$file_magic_regex" > /dev/null; then
4050
2899
            :
4051
2900
          else
4052
2901
            cat <<EOF 1>&2
4067
2916
      break
4068
2917
    fi
4069
2918
  done
4070
 
  IFS="$ac_save_ifs"
4071
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
2919
  IFS="$lt_save_ifs"
 
2920
  MAGIC_CMD="$lt_save_MAGIC_CMD"
4072
2921
  ;;
4073
2922
esac])
4074
2923
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4077
2926
else
4078
2927
  AC_MSG_RESULT(no)
4079
2928
fi
4080
 
])
4081
 
 
4082
 
 
4083
 
# AC_PATH_MAGIC - find a file program which can recognise a shared library
 
2929
])# AC_PATH_TOOL_PREFIX
 
2930
 
 
2931
 
 
2932
# AC_PATH_MAGIC
 
2933
# -------------
 
2934
# find a file program which can recognise a shared library
4084
2935
AC_DEFUN([AC_PATH_MAGIC],
4085
 
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
4086
 
AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
 
2936
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
4087
2937
if test -z "$lt_cv_path_MAGIC_CMD"; then
4088
2938
  if test -n "$ac_tool_prefix"; then
4089
 
    AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
 
2939
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
4090
2940
  else
4091
2941
    MAGIC_CMD=:
4092
2942
  fi
4093
2943
fi
4094
 
])
4095
 
 
4096
 
 
4097
 
# AC_PROG_LD - find the path to the GNU or non-GNU linker
 
2944
])# AC_PATH_MAGIC
 
2945
 
 
2946
 
 
2947
# AC_PROG_LD
 
2948
# ----------
 
2949
# find the path to the GNU or non-GNU linker
4098
2950
AC_DEFUN([AC_PROG_LD],
4099
 
[AC_ARG_WITH(gnu-ld,
4100
 
[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
4101
 
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
 
2951
[AC_ARG_WITH([gnu-ld],
 
2952
    [AC_HELP_STRING([--with-gnu-ld],
 
2953
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
 
2954
    [test "$withval" = no || with_gnu_ld=yes],
 
2955
    [with_gnu_ld=no])
 
2956
AC_REQUIRE([LT_AC_PROG_SED])dnl
4102
2957
AC_REQUIRE([AC_PROG_CC])dnl
4103
2958
AC_REQUIRE([AC_CANONICAL_HOST])dnl
4104
2959
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4105
 
AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
4106
2960
ac_prog=ld
4107
2961
if test "$GCC" = yes; then
4108
2962
  # Check if gcc -print-prog-name=ld gives a path.
4109
 
  AC_MSG_CHECKING([for ld used by GCC])
 
2963
  AC_MSG_CHECKING([for ld used by $CC])
4110
2964
  case $host in
4111
2965
  *-*-mingw*)
4112
2966
    # gcc leaves a trailing carriage return which upsets mingw
4116
2970
  esac
4117
2971
  case $ac_prog in
4118
2972
    # Accept absolute paths.
4119
 
    [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
 
2973
    [[\\/]]* | ?:[[\\/]]*)
4120
2974
      re_direlt='/[[^/]][[^/]]*/\.\./'
4121
2975
      # Canonicalize the path of ld
4122
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
2976
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4123
2977
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4124
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
2978
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4125
2979
      done
4126
2980
      test -z "$LD" && LD="$ac_prog"
4127
2981
      ;;
4141
2995
fi
4142
2996
AC_CACHE_VAL(lt_cv_path_LD,
4143
2997
[if test -z "$LD"; then
4144
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2998
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4145
2999
  for ac_dir in $PATH; do
 
3000
    IFS="$lt_save_ifs"
4146
3001
    test -z "$ac_dir" && ac_dir=.
4147
3002
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4148
3003
      lt_cv_path_LD="$ac_dir/$ac_prog"
4149
3004
      # Check to see if the program is GNU ld.  I'd rather use --version,
4150
3005
      # but apparently some GNU ld's only accept -v.
4151
3006
      # Break only if it was the GNU/non-GNU ld that we prefer.
4152
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
3007
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3008
      *GNU* | *'with BFD'*)
4153
3009
        test "$with_gnu_ld" != no && break
4154
 
      else
 
3010
        ;;
 
3011
      *)
4155
3012
        test "$with_gnu_ld" != yes && break
4156
 
      fi
 
3013
        ;;
 
3014
      esac
4157
3015
    fi
4158
3016
  done
4159
 
  IFS="$ac_save_ifs"
 
3017
  IFS="$lt_save_ifs"
4160
3018
else
4161
3019
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4162
3020
fi])
4168
3026
fi
4169
3027
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4170
3028
AC_PROG_LD_GNU
4171
 
])
4172
 
 
4173
 
# AC_PROG_LD_GNU -
 
3029
])# AC_PROG_LD
 
3030
 
 
3031
 
 
3032
# AC_PROG_LD_GNU
 
3033
# --------------
4174
3034
AC_DEFUN([AC_PROG_LD_GNU],
4175
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
3035
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3036
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4176
3037
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4177
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
3038
case `$LD -v 2>&1 </dev/null` in
 
3039
*GNU* | *'with BFD'*)
4178
3040
  lt_cv_prog_gnu_ld=yes
4179
 
else
 
3041
  ;;
 
3042
*)
4180
3043
  lt_cv_prog_gnu_ld=no
4181
 
fi])
 
3044
  ;;
 
3045
esac])
4182
3046
with_gnu_ld=$lt_cv_prog_gnu_ld
4183
 
])
4184
 
 
4185
 
# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
 
3047
])# AC_PROG_LD_GNU
 
3048
 
 
3049
 
 
3050
# AC_PROG_LD_RELOAD_FLAG
 
3051
# ----------------------
 
3052
# find reload flag for linker
4186
3053
#   -- PORTME Some linkers may need a different reload flag.
4187
3054
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
4188
 
[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
4189
 
[lt_cv_ld_reload_flag='-r'])
 
3055
[AC_CACHE_CHECK([for $LD option to reload object files],
 
3056
  lt_cv_ld_reload_flag,
 
3057
  [lt_cv_ld_reload_flag='-r'])
4190
3058
reload_flag=$lt_cv_ld_reload_flag
4191
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
4192
 
])
4193
 
 
4194
 
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
 
3059
case $reload_flag in
 
3060
"" | " "*) ;;
 
3061
*) reload_flag=" $reload_flag" ;;
 
3062
esac
 
3063
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3064
])# AC_PROG_LD_RELOAD_FLAG
 
3065
 
 
3066
 
 
3067
# AC_DEPLIBS_CHECK_METHOD
 
3068
# -----------------------
 
3069
# how to check for library dependencies
4195
3070
#  -- PORTME fill in with the dynamic library characteristics
4196
3071
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
4197
3072
[AC_CACHE_CHECK([how to recognise dependent libraries],
4206
3081
# 'pass_all' -- all dependencies passed with no checks.
4207
3082
# 'test_compile' -- check by making test program.
4208
3083
# 'file_magic [[regex]]' -- check by looking for files in library path
4209
 
# which responds to the $file_magic_cmd with a given egrep regex.
 
3084
# which responds to the $file_magic_cmd with a given extended regex.
4210
3085
# If you have `file' or equivalent on your system and you're not sure
4211
3086
# whether `pass_all' will *always* work, you probably want this one.
4212
3087
 
4226
3101
  ;;
4227
3102
 
4228
3103
cygwin* | mingw* | pw32*)
4229
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4230
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3104
  # win32_libid is a shell function defined in ltmain.sh
 
3105
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3106
  lt_cv_file_magic_cmd='win32_libid'
4231
3107
  ;;
4232
3108
 
4233
3109
darwin* | rhapsody*)
 
3110
  # this will be overwritten by pass_all, but leave it in just in case
4234
3111
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4235
3112
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4236
3113
  case "$host_os" in
4237
3114
  rhapsody* | darwin1.[[012]])
4238
 
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 
3115
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4239
3116
    ;;
4240
3117
  *) # Darwin 1.3 on
4241
3118
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4242
3119
    ;;
4243
3120
  esac
 
3121
  lt_cv_deplibs_check_method=pass_all
4244
3122
  ;;
4245
3123
 
4246
3124
freebsd*)
4263
3141
  lt_cv_deplibs_check_method=pass_all
4264
3142
  ;;
4265
3143
 
4266
 
hpux10.20*|hpux11*)
4267
 
  lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3144
hpux10.20* | hpux11*)
4268
3145
  lt_cv_file_magic_cmd=/usr/bin/file
4269
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3146
  case "$host_cpu" in
 
3147
  ia64*)
 
3148
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 
3149
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3150
    ;;
 
3151
  hppa*64*)
 
3152
    [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]']
 
3153
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3154
    ;;
 
3155
  *)
 
3156
    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 
3157
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3158
    ;;
 
3159
  esac
4270
3160
  ;;
4271
3161
 
4272
3162
irix5* | irix6* | nonstopux*)
4291
3181
  ;;
4292
3182
 
4293
3183
# This must be Linux ELF.
4294
 
linux-gnu*)
 
3184
linux*)
4295
3185
  case $host_cpu in
4296
 
  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
 
3186
  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64*)
4297
3187
    lt_cv_deplibs_check_method=pass_all ;;
4298
3188
  *)
4299
3189
    # glibc up to 2.1.1 does not perform some relocations on ARM
4304
3194
 
4305
3195
netbsd*)
4306
3196
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4307
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
 
3197
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4308
3198
  else
4309
 
    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
 
3199
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4310
3200
  fi
4311
3201
  ;;
4312
3202
 
4316
3206
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4317
3207
  ;;
4318
3208
 
 
3209
nto-qnx)
 
3210
  lt_cv_deplibs_check_method=unknown
 
3211
  ;;
 
3212
 
4319
3213
openbsd*)
4320
3214
  lt_cv_file_magic_cmd=/usr/bin/file
4321
3215
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4342
3236
  lt_cv_file_magic_test_file=/lib/libc.so
4343
3237
  ;;
4344
3238
 
4345
 
sysv5uw[[78]]* | sysv4*uw2*)
4346
 
  lt_cv_deplibs_check_method=pass_all
4347
 
  ;;
4348
 
 
4349
3239
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4350
3240
  case $host_vendor in
4351
3241
  motorola)
4369
3259
    ;;
4370
3260
  esac
4371
3261
  ;;
 
3262
 
 
3263
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
3264
  lt_cv_deplibs_check_method=pass_all
 
3265
  ;;
4372
3266
esac
4373
3267
])
4374
3268
file_magic_cmd=$lt_cv_file_magic_cmd
4375
3269
deplibs_check_method=$lt_cv_deplibs_check_method
4376
 
])
4377
 
 
4378
 
 
4379
 
# AC_PROG_NM - find the path to a BSD-compatible name lister
 
3270
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3271
])# AC_DEPLIBS_CHECK_METHOD
 
3272
 
 
3273
 
 
3274
# AC_PROG_NM
 
3275
# ----------
 
3276
# find the path to a BSD-compatible name lister
4380
3277
AC_DEFUN([AC_PROG_NM],
4381
 
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
4382
 
AC_MSG_CHECKING([for BSD-compatible nm])
4383
 
AC_CACHE_VAL(lt_cv_path_NM,
 
3278
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
4384
3279
[if test -n "$NM"; then
4385
3280
  # Let the user override the test.
4386
3281
  lt_cv_path_NM="$NM"
4387
3282
else
4388
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3283
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4389
3284
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3285
    IFS="$lt_save_ifs"
4390
3286
    test -z "$ac_dir" && ac_dir=.
4391
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
4392
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
3287
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3288
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4393
3289
      # Check to see if the nm accepts a BSD-compat flag.
4394
3290
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4395
3291
      #   nm: unknown option "B" ignored
4396
3292
      # Tru64's nm complains that /dev/null is an invalid object file
4397
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
3293
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3294
      */dev/null* | *'Invalid file or object type'*)
4398
3295
        lt_cv_path_NM="$tmp_nm -B"
4399
3296
        break
4400
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4401
 
        lt_cv_path_NM="$tmp_nm -p"
4402
 
        break
4403
 
      else
4404
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4405
 
        continue # so that we can try to find one that supports BSD flags
4406
 
      fi
 
3297
        ;;
 
3298
      *)
 
3299
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3300
        */dev/null*)
 
3301
          lt_cv_path_NM="$tmp_nm -p"
 
3302
          break
 
3303
          ;;
 
3304
        *)
 
3305
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3306
          continue # so that we can try to find one that supports BSD flags
 
3307
          ;;
 
3308
        esac
 
3309
      esac
4407
3310
    fi
4408
3311
  done
4409
 
  IFS="$ac_save_ifs"
 
3312
  IFS="$lt_save_ifs"
4410
3313
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4411
3314
fi])
4412
3315
NM="$lt_cv_path_NM"
4413
 
AC_MSG_RESULT([$NM])
4414
 
])
4415
 
 
4416
 
# AC_CHECK_LIBM - check for math library
 
3316
])# AC_PROG_NM
 
3317
 
 
3318
 
 
3319
# AC_CHECK_LIBM
 
3320
# -------------
 
3321
# check for math library
4417
3322
AC_DEFUN([AC_CHECK_LIBM],
4418
3323
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4419
3324
LIBM=
4420
3325
case $host in
4421
 
*-*-beos* | *-*-cygwin* | *-*-pw32*)
4422
 
  # These system don't have libm
 
3326
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 
3327
  # These system don't have libm, or don't need it
4423
3328
  ;;
4424
3329
*-ncr-sysv4.3*)
4425
3330
  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4426
 
  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
 
3331
  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4427
3332
  ;;
4428
3333
*)
4429
 
  AC_CHECK_LIB(m, main, LIBM="-lm")
 
3334
  AC_CHECK_LIB(m, cos, LIBM="-lm")
4430
3335
  ;;
4431
3336
esac
4432
 
])
4433
 
 
4434
 
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
4435
 
# the libltdl convenience library and LTDLINCL to the include flags for
4436
 
# the libltdl header and adds --enable-ltdl-convenience to the
4437
 
# configure arguments.  Note that LIBLTDL and LTDLINCL are not
4438
 
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
4439
 
# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
4440
 
# with '${top_builddir}/' and LTDLINCL will be prefixed with
 
3337
])# AC_CHECK_LIBM
 
3338
 
 
3339
 
 
3340
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 
3341
# -----------------------------------
 
3342
# sets LIBLTDL to the link flags for the libltdl convenience library and
 
3343
# LTDLINCL to the include flags for the libltdl header and adds
 
3344
# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
 
3345
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
 
3346
# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
 
3347
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
4441
3348
# '${top_srcdir}/' (note the single quotes!).  If your package is not
4442
3349
# flat and you're not using automake, define top_builddir and
4443
3350
# top_srcdir appropriately in the Makefiles.
4452
3359
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4453
3360
  # For backwards non-gettext consistent compatibility...
4454
3361
  INCLTDL="$LTDLINCL"
4455
 
])
4456
 
 
4457
 
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
4458
 
# the libltdl installable library and LTDLINCL to the include flags for
4459
 
# the libltdl header and adds --enable-ltdl-install to the configure
4460
 
# arguments.  Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
4461
 
# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
4462
 
# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
4463
 
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
4464
 
# with '${top_srcdir}/' (note the single quotes!).  If your package is
4465
 
# not flat and you're not using automake, define top_builddir and
4466
 
# top_srcdir appropriately in the Makefiles.
 
3362
])# AC_LIBLTDL_CONVENIENCE
 
3363
 
 
3364
 
 
3365
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 
3366
# -----------------------------------
 
3367
# sets LIBLTDL to the link flags for the libltdl installable library and
 
3368
# LTDLINCL to the include flags for the libltdl header and adds
 
3369
# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
 
3370
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
 
3371
# DIRECTORY is not provided and an installed libltdl is not found, it is
 
3372
# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
 
3373
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
 
3374
# quotes!).  If your package is not flat and you're not using automake,
 
3375
# define top_builddir and top_srcdir appropriately in the Makefiles.
4467
3376
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4468
3377
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4469
3378
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4470
 
  AC_CHECK_LIB(ltdl, main,
 
3379
  AC_CHECK_LIB(ltdl, lt_dlinit,
4471
3380
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4472
3381
  [if test x"$enable_ltdl_install" = xno; then
4473
3382
     AC_MSG_WARN([libltdl not installed, but installation disabled])
4486
3395
  fi
4487
3396
  # For backwards non-gettext consistent compatibility...
4488
3397
  INCLTDL="$LTDLINCL"
4489
 
])
 
3398
])# AC_LIBLTDL_INSTALLABLE
 
3399
 
 
3400
 
 
3401
# AC_LIBTOOL_CXX
 
3402
# --------------
 
3403
# enable support for C++ libraries
 
3404
AC_DEFUN([AC_LIBTOOL_CXX],
 
3405
[AC_REQUIRE([_LT_AC_LANG_CXX])
 
3406
])# AC_LIBTOOL_CXX
 
3407
 
 
3408
 
 
3409
# _LT_AC_LANG_CXX
 
3410
# ---------------
 
3411
AC_DEFUN([_LT_AC_LANG_CXX],
 
3412
[AC_REQUIRE([AC_PROG_CXX])
 
3413
AC_REQUIRE([AC_PROG_CXXCPP])
 
3414
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`])
 
3415
])# _LT_AC_LANG_CXX
 
3416
 
 
3417
 
 
3418
# AC_LIBTOOL_F77
 
3419
# --------------
 
3420
# enable support for Fortran 77 libraries
 
3421
AC_DEFUN([AC_LIBTOOL_F77],
 
3422
[AC_REQUIRE([_LT_AC_LANG_F77])
 
3423
])# AC_LIBTOOL_F77
 
3424
 
 
3425
 
 
3426
# _LT_AC_LANG_F77
 
3427
# ---------------
 
3428
AC_DEFUN([_LT_AC_LANG_F77],
 
3429
[AC_REQUIRE([AC_PROG_F77])
 
3430
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`])
 
3431
])# _LT_AC_LANG_F77
 
3432
 
 
3433
 
 
3434
# AC_LIBTOOL_GCJ
 
3435
# --------------
 
3436
# enable support for GCJ libraries
 
3437
AC_DEFUN([AC_LIBTOOL_GCJ],
 
3438
[AC_REQUIRE([_LT_AC_LANG_GCJ])
 
3439
])# AC_LIBTOOL_GCJ
 
3440
 
 
3441
 
 
3442
# _LT_AC_LANG_GCJ
 
3443
# ---------------
 
3444
AC_DEFUN([_LT_AC_LANG_GCJ],
 
3445
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
 
3446
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
 
3447
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
 
3448
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
 
3449
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
 
3450
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
 
3451
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`])
 
3452
])# _LT_AC_LANG_GCJ
 
3453
 
 
3454
 
 
3455
# AC_LIBTOOL_RC
 
3456
# --------------
 
3457
# enable support for Windows resource files
 
3458
AC_DEFUN([AC_LIBTOOL_RC],
 
3459
[AC_REQUIRE([LT_AC_PROG_RC])
 
3460
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`])
 
3461
])# AC_LIBTOOL_RC
 
3462
 
 
3463
 
 
3464
# AC_LIBTOOL_LANG_C_CONFIG
 
3465
# ------------------------
 
3466
# Ensure that the configuration vars for the C compiler are
 
3467
# suitably defined.  Those variables are subsequently used by
 
3468
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3469
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
 
3470
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
 
3471
[lt_save_CC="$CC"
 
3472
AC_LANG_PUSH(C)
 
3473
 
 
3474
# Source file extension for C test sources.
 
3475
ac_ext=c
 
3476
 
 
3477
# Object file extension for compiled C test sources.
 
3478
objext=o
 
3479
_LT_AC_TAGVAR(objext, $1)=$objext
 
3480
 
 
3481
# Code to be used in simple compile tests
 
3482
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3483
 
 
3484
# Code to be used in simple link tests
 
3485
lt_simple_link_test_code='int main(){return(0);}\n'
 
3486
 
 
3487
_LT_AC_SYS_COMPILER
 
3488
 
 
3489
#
 
3490
# Check for any special shared library compilation flags.
 
3491
#
 
3492
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
 
3493
if test "$GCC" = no; then
 
3494
  case $host_os in
 
3495
  sco3.2v5*)
 
3496
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
 
3497
    ;;
 
3498
  esac
 
3499
fi
 
3500
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
 
3501
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
 
3502
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[      ]]" >/dev/null; then :
 
3503
  else
 
3504
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
 
3505
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
 
3506
  fi
 
3507
fi
 
3508
 
 
3509
 
 
3510
#
 
3511
# Check to make sure the static flag actually works.
 
3512
#
 
3513
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
 
3514
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 
3515
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
 
3516
  [],
 
3517
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
3518
 
 
3519
 
 
3520
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
3521
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
3522
AC_LIBTOOL_PROG_CC_C_O($1)
 
3523
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
3524
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3525
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3526
AC_LIBTOOL_SYS_LIB_STRIP
 
3527
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
3528
AC_LIBTOOL_DLOPEN_SELF($1)
 
3529
 
 
3530
# Report which librarie types wil actually be built
 
3531
AC_MSG_CHECKING([if libtool supports shared libraries])
 
3532
AC_MSG_RESULT([$can_build_shared])
 
3533
 
 
3534
AC_MSG_CHECKING([whether to build shared libraries])
 
3535
test "$can_build_shared" = "no" && enable_shared=no
 
3536
 
 
3537
# On AIX, shared libraries and static libraries use the same namespace, and
 
3538
# are all built from PIC.
 
3539
case "$host_os" in
 
3540
aix3*)
 
3541
  test "$enable_shared" = yes && enable_static=no
 
3542
  if test -n "$RANLIB"; then
 
3543
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
3544
    postinstall_cmds='$RANLIB $lib'
 
3545
  fi
 
3546
  ;;
 
3547
 
 
3548
aix4*)
 
3549
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
3550
    test "$enable_shared" = yes && enable_static=no
 
3551
  fi
 
3552
  ;;
 
3553
  darwin* | rhapsody*)
 
3554
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
 
3555
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3556
    case "$host_os" in
 
3557
    rhapsody* | darwin1.[[012]])
 
3558
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
 
3559
      ;;
 
3560
    *) # Darwin 1.3 on
 
3561
      test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3562
      ;;
 
3563
    esac
 
3564
    # FIXME: Relying on posixy $() will cause problems for
 
3565
    #        cross-compilation, but unfortunately the echo tests do not
 
3566
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
3567
    #          `"' quotes if we put them in here... so don't!
 
3568
                output_verbose_link_cmd='echo'
 
3569
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
3570
    _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
3571
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
3572
                  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3573
                  _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3574
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3575
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3576
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3577
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
3578
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3579
    fi
 
3580
    ;;  
 
3581
esac
 
3582
AC_MSG_RESULT([$enable_shared])
 
3583
 
 
3584
AC_MSG_CHECKING([whether to build static libraries])
 
3585
# Make sure either enable_shared or enable_static is yes.
 
3586
test "$enable_shared" = yes || enable_static=yes
 
3587
AC_MSG_RESULT([$enable_static])
 
3588
 
 
3589
AC_LIBTOOL_CONFIG($1)
 
3590
 
 
3591
AC_LANG_POP
 
3592
CC="$lt_save_CC"
 
3593
])# AC_LIBTOOL_LANG_C_CONFIG
 
3594
 
 
3595
 
 
3596
# AC_LIBTOOL_LANG_CXX_CONFIG
 
3597
# --------------------------
 
3598
# Ensure that the configuration vars for the C compiler are
 
3599
# suitably defined.  Those variables are subsequently used by
 
3600
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3601
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
 
3602
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
 
3603
[AC_LANG_PUSH(C++)
 
3604
AC_REQUIRE([AC_PROG_CXX])
 
3605
AC_REQUIRE([AC_PROG_CXXCPP])
 
3606
 
 
3607
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3608
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
3609
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3610
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
3611
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
3612
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3613
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
3614
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
3615
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3616
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
3617
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
3618
_LT_AC_TAGVAR(module_cmds, $1)=
 
3619
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
3620
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
3621
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
3622
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
3623
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3624
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
3625
 
 
3626
# Dependencies to place before and after the object being linked:
 
3627
_LT_AC_TAGVAR(predep_objects, $1)=
 
3628
_LT_AC_TAGVAR(postdep_objects, $1)=
 
3629
_LT_AC_TAGVAR(predeps, $1)=
 
3630
_LT_AC_TAGVAR(postdeps, $1)=
 
3631
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
3632
 
 
3633
# Source file extension for C++ test sources.
 
3634
ac_ext=cc
 
3635
 
 
3636
# Object file extension for compiled C++ test sources.
 
3637
objext=o
 
3638
_LT_AC_TAGVAR(objext, $1)=$objext
 
3639
 
 
3640
# Code to be used in simple compile tests
 
3641
lt_simple_compile_test_code="int some_variable = 0;\n"
 
3642
 
 
3643
# Code to be used in simple link tests
 
3644
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
3645
 
 
3646
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
3647
_LT_AC_SYS_COMPILER
 
3648
 
 
3649
# Allow CC to be a program name with arguments.
 
3650
lt_save_CC=$CC
 
3651
lt_save_LD=$LD
 
3652
lt_save_GCC=$GCC
 
3653
GCC=$GXX
 
3654
lt_save_with_gnu_ld=$with_gnu_ld
 
3655
lt_save_path_LD=$lt_cv_path_LD
 
3656
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
3657
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
3658
else
 
3659
  unset lt_cv_prog_gnu_ld
 
3660
fi
 
3661
if test -n "${lt_cv_path_LDCXX+set}"; then
 
3662
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
3663
else
 
3664
  unset lt_cv_path_LD
 
3665
fi
 
3666
test -z "${LDCXX+set}" || LD=$LDCXX
 
3667
CC=${CXX-"c++"}
 
3668
compiler=$CC
 
3669
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3670
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
3671
 
 
3672
# We don't want -fno-exception wen compiling C++ code, so set the
 
3673
# no_builtin_flag separately
 
3674
if test "$GXX" = yes; then
 
3675
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3676
else
 
3677
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3678
fi
 
3679
 
 
3680
if test "$GXX" = yes; then
 
3681
  # Set up default GNU C++ configuration
 
3682
 
 
3683
  AC_PROG_LD
 
3684
 
 
3685
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
3686
  # archiving commands below assume that GNU ld is being used.
 
3687
  if test "$with_gnu_ld" = yes; then
 
3688
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3689
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
3690
 
 
3691
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3692
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3693
 
 
3694
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
3695
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
3696
    #     investigate it a little bit more. (MM)
 
3697
    wlarc='${wl}'
 
3698
 
 
3699
    # ancient GNU ld didn't support --whole-archive et. al.
 
3700
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
3701
        grep 'no-whole-archive' > /dev/null; then
 
3702
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3703
    else
 
3704
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3705
    fi
 
3706
  else
 
3707
    with_gnu_ld=no
 
3708
    wlarc=
 
3709
 
 
3710
    # A generic and very simple default shared library creation
 
3711
    # command for GNU C++ for the case where it uses the native
 
3712
    # linker, instead of GNU ld.  If possible, this setting should
 
3713
    # overridden to take advantage of the native linker features on
 
3714
    # the platform it is being used on.
 
3715
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3716
  fi
 
3717
 
 
3718
  # Commands to make compiler produce verbose output that lists
 
3719
  # what "hidden" libraries, object files and flags are used when
 
3720
  # linking a shared library.
 
3721
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
3722
 
 
3723
else
 
3724
  GXX=no
 
3725
  with_gnu_ld=no
 
3726
  wlarc=
 
3727
fi
 
3728
 
 
3729
# PORTME: fill in a description of your system's C++ link characteristics
 
3730
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
3731
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3732
case $host_os in
 
3733
  aix3*)
 
3734
    # FIXME: insert proper C++ library support
 
3735
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3736
    ;;
 
3737
  aix4* | aix5*)
 
3738
    if test "$host_cpu" = ia64; then
 
3739
      # On IA64, the linker does run time linking by default, so we don't
 
3740
      # have to do anything special.
 
3741
      aix_use_runtimelinking=no
 
3742
      exp_sym_flag='-Bexport'
 
3743
      no_entry_flag=""
 
3744
    else
 
3745
      aix_use_runtimelinking=no
 
3746
 
 
3747
      # Test if we are trying to use run time linking or normal
 
3748
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
3749
      # need to do runtime linking.
 
3750
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
3751
        for ld_flag in $LDFLAGS; do
 
3752
          case $ld_flag in
 
3753
          *-brtl*)
 
3754
            aix_use_runtimelinking=yes
 
3755
            break
 
3756
            ;;
 
3757
          esac
 
3758
        done
 
3759
      esac
 
3760
 
 
3761
      exp_sym_flag='-bexport'
 
3762
      no_entry_flag='-bnoentry'
 
3763
    fi
 
3764
 
 
3765
    # When large executables or shared objects are built, AIX ld can
 
3766
    # have problems creating the table of contents.  If linking a library
 
3767
    # or program results in "error TOC overflow" add -mminimal-toc to
 
3768
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
3769
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
3770
 
 
3771
    _LT_AC_TAGVAR(archive_cmds, $1)=''
 
3772
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3773
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3774
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3775
 
 
3776
    if test "$GXX" = yes; then
 
3777
      case $host_os in aix4.[012]|aix4.[012].*)
 
3778
      # We only want to do this on AIX 4.2 and lower, the check
 
3779
      # below for broken collect2 doesn't work under 4.3+
 
3780
        collect2name=`${CC} -print-prog-name=collect2`
 
3781
        if test -f "$collect2name" && \
 
3782
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
3783
        then
 
3784
          # We have reworked collect2
 
3785
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3786
        else
 
3787
          # We have old collect2
 
3788
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
3789
          # It fails to find uninstalled libraries when the uninstalled
 
3790
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
3791
          # to unsupported forces relinking
 
3792
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
3793
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3794
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3795
        fi
 
3796
      esac
 
3797
      shared_flag='-shared'
 
3798
    else
 
3799
      # not using gcc
 
3800
      if test "$host_cpu" = ia64; then
 
3801
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
3802
        # chokes on -Wl,-G. The following line is correct:
 
3803
        shared_flag='-G'
 
3804
      else
 
3805
        if test "$aix_use_runtimelinking" = yes; then
 
3806
          shared_flag='${wl}-G'
 
3807
        else
 
3808
          shared_flag='${wl}-bM:SRE'
 
3809
        fi
 
3810
      fi
 
3811
    fi
 
3812
 
 
3813
    # It seems that -bexpall does not export symbols beginning with
 
3814
    # underscore (_), so it is better to generate a list of symbols to export.
 
3815
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
3816
    if test "$aix_use_runtimelinking" = yes; then
 
3817
      # Warning - without using the other runtime loading flags (-brtl),
 
3818
      # -berok will link without error, but may produce a broken library.
 
3819
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
3820
      # Determine the default libpath from the value encoded in an empty executable.
 
3821
      _LT_AC_SYS_LIBPATH_AIX
 
3822
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
3823
 
 
3824
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
3825
     else
 
3826
      if test "$host_cpu" = ia64; then
 
3827
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
3828
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
3829
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
3830
      else
 
3831
        # Determine the default libpath from the value encoded in an empty executable.
 
3832
        _LT_AC_SYS_LIBPATH_AIX
 
3833
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
3834
        # Warning - without using the other run time loading flags,
 
3835
        # -berok will link without error, but may produce a broken library.
 
3836
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
3837
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
3838
        # -bexpall does not export symbols beginning with underscore (_)
 
3839
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
3840
        # Exported symbols can be pulled into shared objects from archives
 
3841
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
3842
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
3843
        # This is similar to how AIX traditionally builds it's shared libraries.
 
3844
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
3845
      fi
 
3846
    fi
 
3847
    ;;
 
3848
  chorus*)
 
3849
    case $cc_basename in
 
3850
      *)
 
3851
        # FIXME: insert proper C++ library support
 
3852
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3853
        ;;
 
3854
    esac
 
3855
    ;;
 
3856
 
 
3857
  cygwin* | mingw* | pw32*)
 
3858
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
3859
    # as there is no search path for DLLs.
 
3860
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3861
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3862
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3863
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
3864
 
 
3865
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
3866
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3867
      # If the export-symbols file already is a .def file (1st line
 
3868
      # is EXPORTS), use it as is; otherwise, prepend...
 
3869
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
3870
        cp $export_symbols $output_objdir/$soname.def;
 
3871
      else
 
3872
        echo EXPORTS > $output_objdir/$soname.def;
 
3873
        cat $export_symbols >> $output_objdir/$soname.def;
 
3874
      fi~
 
3875
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
3876
    else
 
3877
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3878
    fi
 
3879
  ;;
 
3880
 
 
3881
  darwin* | rhapsody*)
 
3882
   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
 
3883
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3884
    case "$host_os" in
 
3885
    rhapsody* | darwin1.[[012]])
 
3886
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
 
3887
      ;;
 
3888
    *) # Darwin 1.3 on
 
3889
      test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3890
      ;;
 
3891
    esac
 
3892
        lt_int_apple_cc_single_mod=no
 
3893
        output_verbose_link_cmd='echo'
 
3894
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
3895
          lt_int_apple_cc_single_mod=yes
 
3896
        fi
 
3897
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3898
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3899
        else
 
3900
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3901
      fi
 
3902
      _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
3903
 
 
3904
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
3905
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3906
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3907
      else
 
3908
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3909
      fi
 
3910
        _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3911
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3912
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3913
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3914
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
3915
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3916
   fi 
 
3917
    ;;
 
3918
 
 
3919
  dgux*)
 
3920
    case $cc_basename in
 
3921
      ec++)
 
3922
        # FIXME: insert proper C++ library support
 
3923
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3924
        ;;
 
3925
      ghcx)
 
3926
        # Green Hills C++ Compiler
 
3927
        # FIXME: insert proper C++ library support
 
3928
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3929
        ;;
 
3930
      *)
 
3931
        # FIXME: insert proper C++ library support
 
3932
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3933
        ;;
 
3934
    esac
 
3935
    ;;
 
3936
  freebsd[12]*)
 
3937
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
3938
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3939
    ;;
 
3940
  freebsd-elf*)
 
3941
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3942
    ;;
 
3943
  freebsd*)
 
3944
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
3945
    # conventions
 
3946
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3947
    ;;
 
3948
  gnu*)
 
3949
    ;;
 
3950
  hpux9*)
 
3951
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3952
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3953
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3954
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3955
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3956
                                # but as the default
 
3957
                                # location of the library.
 
3958
 
 
3959
    case $cc_basename in
 
3960
    CC)
 
3961
      # FIXME: insert proper C++ library support
 
3962
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3963
      ;;
 
3964
    aCC)
 
3965
      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
3966
      # Commands to make compiler produce verbose output that lists
 
3967
      # what "hidden" libraries, object files and flags are used when
 
3968
      # linking a shared library.
 
3969
      #
 
3970
      # There doesn't appear to be a way to prevent this compiler from
 
3971
      # explicitly linking system object files so we need to strip them
 
3972
      # from the output so that they don't get included in the library
 
3973
      # dependencies.
 
3974
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3975
      ;;
 
3976
    *)
 
3977
      if test "$GXX" = yes; then
 
3978
        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
3979
      else
 
3980
        # FIXME: insert proper C++ library support
 
3981
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3982
      fi
 
3983
      ;;
 
3984
    esac
 
3985
    ;;
 
3986
  hpux10*|hpux11*)
 
3987
    if test $with_gnu_ld = no; then
 
3988
      case "$host_cpu" in
 
3989
      hppa*64*)
 
3990
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3991
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
3992
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3993
        ;;
 
3994
      ia64*)
 
3995
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3996
        ;;
 
3997
      *)
 
3998
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3999
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4000
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4001
        ;;
 
4002
      esac
 
4003
    fi
 
4004
    case "$host_cpu" in
 
4005
    hppa*64*)
 
4006
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4007
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4008
      ;;
 
4009
    ia64*)
 
4010
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4011
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4012
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
4013
                                              # but as the default
 
4014
                                              # location of the library.
 
4015
      ;;
 
4016
    *)
 
4017
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4018
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
4019
                                              # but as the default
 
4020
                                              # location of the library.
 
4021
      ;;
 
4022
    esac
 
4023
 
 
4024
    case $cc_basename in
 
4025
      CC)
 
4026
        # FIXME: insert proper C++ library support
 
4027
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4028
        ;;
 
4029
      aCC)
 
4030
        case "$host_cpu" in
 
4031
        hppa*64*|ia64*)
 
4032
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
4033
          ;;
 
4034
        *)
 
4035
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4036
          ;;
 
4037
        esac
 
4038
        # Commands to make compiler produce verbose output that lists
 
4039
        # what "hidden" libraries, object files and flags are used when
 
4040
        # linking a shared library.
 
4041
        #
 
4042
        # There doesn't appear to be a way to prevent this compiler from
 
4043
        # explicitly linking system object files so we need to strip them
 
4044
        # from the output so that they don't get included in the library
 
4045
        # dependencies.
 
4046
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4047
        ;;
 
4048
      *)
 
4049
        if test "$GXX" = yes; then
 
4050
          if test $with_gnu_ld = no; then
 
4051
            case "$host_cpu" in
 
4052
            ia64*|hppa*64*)
 
4053
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
4054
              ;;
 
4055
            *)
 
4056
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4057
              ;;
 
4058
            esac
 
4059
          fi
 
4060
        else
 
4061
          # FIXME: insert proper C++ library support
 
4062
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4063
        fi
 
4064
        ;;
 
4065
    esac
 
4066
    ;;
 
4067
  irix5* | irix6*)
 
4068
    case $cc_basename in
 
4069
      CC)
 
4070
        # SGI C++
 
4071
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
4072
 
 
4073
        # Archives containing C++ object files must be created using
 
4074
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
4075
        # necessary to make sure instantiated templates are included
 
4076
        # in the archive.
 
4077
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
4078
        ;;
 
4079
      *)
 
4080
        if test "$GXX" = yes; then
 
4081
          if test "$with_gnu_ld" = no; then
 
4082
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
4083
          else
 
4084
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
4085
          fi
 
4086
        fi
 
4087
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4088
        ;;
 
4089
    esac
 
4090
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4091
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4092
    ;;
 
4093
  linux*)
 
4094
    case $cc_basename in
 
4095
      KCC)
 
4096
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4097
 
 
4098
        # KCC will only create a shared library if the output file
 
4099
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4100
        # to its proper name (with version) after linking.
 
4101
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
4102
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
4103
        # Commands to make compiler produce verbose output that lists
 
4104
        # what "hidden" libraries, object files and flags are used when
 
4105
        # linking a shared library.
 
4106
        #
 
4107
        # There doesn't appear to be a way to prevent this compiler from
 
4108
        # explicitly linking system object files so we need to strip them
 
4109
        # from the output so that they don't get included in the library
 
4110
        # dependencies.
 
4111
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4112
 
 
4113
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
 
4114
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4115
 
 
4116
        # Archives containing C++ object files must be created using
 
4117
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4118
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4119
        ;;
 
4120
      icpc)
 
4121
        # Intel C++
 
4122
        with_gnu_ld=yes
 
4123
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4124
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4125
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
4126
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4127
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4128
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
4129
        ;;
 
4130
      cxx)
 
4131
        # Compaq C++
 
4132
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4133
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
4134
 
 
4135
        runpath_var=LD_RUN_PATH
 
4136
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4137
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4138
 
 
4139
        # Commands to make compiler produce verbose output that lists
 
4140
        # what "hidden" libraries, object files and flags are used when
 
4141
        # linking a shared library.
 
4142
        #
 
4143
        # There doesn't appear to be a way to prevent this compiler from
 
4144
        # explicitly linking system object files so we need to strip them
 
4145
        # from the output so that they don't get included in the library
 
4146
        # dependencies.
 
4147
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4148
        ;;
 
4149
    esac
 
4150
    ;;
 
4151
  lynxos*)
 
4152
    # FIXME: insert proper C++ library support
 
4153
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4154
    ;;
 
4155
  m88k*)
 
4156
    # FIXME: insert proper C++ library support
 
4157
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4158
    ;;
 
4159
  mvs*)
 
4160
    case $cc_basename in
 
4161
      cxx)
 
4162
        # FIXME: insert proper C++ library support
 
4163
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4164
        ;;
 
4165
      *)
 
4166
        # FIXME: insert proper C++ library support
 
4167
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4168
        ;;
 
4169
    esac
 
4170
    ;;
 
4171
  netbsd*)
 
4172
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
4173
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
4174
      wlarc=
 
4175
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4176
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4177
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4178
    fi
 
4179
    # Workaround some broken pre-1.5 toolchains
 
4180
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
4181
    ;;
 
4182
  osf3*)
 
4183
    case $cc_basename in
 
4184
      KCC)
 
4185
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4186
 
 
4187
        # KCC will only create a shared library if the output file
 
4188
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4189
        # to its proper name (with version) after linking.
 
4190
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
4191
 
 
4192
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4193
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4194
 
 
4195
        # Archives containing C++ object files must be created using
 
4196
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4197
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4198
 
 
4199
        ;;
 
4200
      RCC)
 
4201
        # Rational C++ 2.4.1
 
4202
        # FIXME: insert proper C++ library support
 
4203
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4204
        ;;
 
4205
      cxx)
 
4206
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4207
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
4208
 
 
4209
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4210
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4211
 
 
4212
        # Commands to make compiler produce verbose output that lists
 
4213
        # what "hidden" libraries, object files and flags are used when
 
4214
        # linking a shared library.
 
4215
        #
 
4216
        # There doesn't appear to be a way to prevent this compiler from
 
4217
        # explicitly linking system object files so we need to strip them
 
4218
        # from the output so that they don't get included in the library
 
4219
        # dependencies.
 
4220
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4221
        ;;
 
4222
      *)
 
4223
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4224
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4225
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
4226
 
 
4227
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4228
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4229
 
 
4230
          # Commands to make compiler produce verbose output that lists
 
4231
          # what "hidden" libraries, object files and flags are used when
 
4232
          # linking a shared library.
 
4233
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4234
 
 
4235
        else
 
4236
          # FIXME: insert proper C++ library support
 
4237
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4238
        fi
 
4239
        ;;
 
4240
    esac
 
4241
    ;;
 
4242
  osf4* | osf5*)
 
4243
    case $cc_basename in
 
4244
      KCC)
 
4245
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4246
 
 
4247
        # KCC will only create a shared library if the output file
 
4248
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4249
        # to its proper name (with version) after linking.
 
4250
        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
4251
 
 
4252
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4253
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4254
 
 
4255
        # Archives containing C++ object files must be created using
 
4256
        # the KAI C++ compiler.
 
4257
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
 
4258
        ;;
 
4259
      RCC)
 
4260
        # Rational C++ 2.4.1
 
4261
        # FIXME: insert proper C++ library support
 
4262
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4263
        ;;
 
4264
      cxx)
 
4265
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4266
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
4267
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
4268
          echo "-hidden">> $lib.exp~
 
4269
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
4270
          $rm $lib.exp'
 
4271
 
 
4272
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4273
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4274
 
 
4275
        # Commands to make compiler produce verbose output that lists
 
4276
        # what "hidden" libraries, object files and flags are used when
 
4277
        # linking a shared library.
 
4278
        #
 
4279
        # There doesn't appear to be a way to prevent this compiler from
 
4280
        # explicitly linking system object files so we need to strip them
 
4281
        # from the output so that they don't get included in the library
 
4282
        # dependencies.
 
4283
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4284
        ;;
 
4285
      *)
 
4286
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4287
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4288
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
4289
 
 
4290
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4291
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4292
 
 
4293
          # Commands to make compiler produce verbose output that lists
 
4294
          # what "hidden" libraries, object files and flags are used when
 
4295
          # linking a shared library.
 
4296
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4297
 
 
4298
        else
 
4299
          # FIXME: insert proper C++ library support
 
4300
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4301
        fi
 
4302
        ;;
 
4303
    esac
 
4304
    ;;
 
4305
  psos*)
 
4306
    # FIXME: insert proper C++ library support
 
4307
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4308
    ;;
 
4309
  sco*)
 
4310
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4311
    case $cc_basename in
 
4312
      CC)
 
4313
        # FIXME: insert proper C++ library support
 
4314
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4315
        ;;
 
4316
      *)
 
4317
        # FIXME: insert proper C++ library support
 
4318
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4319
        ;;
 
4320
    esac
 
4321
    ;;
 
4322
  sunos4*)
 
4323
    case $cc_basename in
 
4324
      CC)
 
4325
        # Sun C++ 4.x
 
4326
        # FIXME: insert proper C++ library support
 
4327
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4328
        ;;
 
4329
      lcc)
 
4330
        # Lucid
 
4331
        # FIXME: insert proper C++ library support
 
4332
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4333
        ;;
 
4334
      *)
 
4335
        # FIXME: insert proper C++ library support
 
4336
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4337
        ;;
 
4338
    esac
 
4339
    ;;
 
4340
  solaris*)
 
4341
    case $cc_basename in
 
4342
      CC)
 
4343
        # Sun C++ 4.2, 5.x and Centerline C++
 
4344
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4345
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4346
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4347
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4348
 
 
4349
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4350
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4351
        case $host_os in
 
4352
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
4353
          *)
 
4354
            # The C++ compiler is used as linker so we must use $wl
 
4355
            # flag to pass the commands to the underlying system
 
4356
            # linker.
 
4357
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
4358
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4359
            ;;
 
4360
        esac
 
4361
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4362
 
 
4363
        # Commands to make compiler produce verbose output that lists
 
4364
        # what "hidden" libraries, object files and flags are used when
 
4365
        # linking a shared library.
 
4366
        #
 
4367
        # There doesn't appear to be a way to prevent this compiler from
 
4368
        # explicitly linking system object files so we need to strip them
 
4369
        # from the output so that they don't get included in the library
 
4370
        # dependencies.
 
4371
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4372
 
 
4373
        # Archives containing C++ object files must be created using
 
4374
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4375
        # necessary to make sure instantiated templates are included
 
4376
        # in the archive.
 
4377
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4378
        ;;
 
4379
      gcx)
 
4380
        # Green Hills C++ Compiler
 
4381
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4382
 
 
4383
        # The C++ compiler must be used to create the archive.
 
4384
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
4385
        ;;
 
4386
      *)
 
4387
        # GNU C++ compiler with Solaris linker
 
4388
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4389
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
4390
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
4391
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4392
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4393
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4394
 
 
4395
            # Commands to make compiler produce verbose output that lists
 
4396
            # what "hidden" libraries, object files and flags are used when
 
4397
            # linking a shared library.
 
4398
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
4399
          else
 
4400
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
4401
            # platform.
 
4402
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4403
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4404
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4405
 
 
4406
            # Commands to make compiler produce verbose output that lists
 
4407
            # what "hidden" libraries, object files and flags are used when
 
4408
            # linking a shared library.
 
4409
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
4410
          fi
 
4411
 
 
4412
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
4413
        fi
 
4414
        ;;
 
4415
    esac
 
4416
    ;;
 
4417
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
 
4418
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4419
    ;;
 
4420
  tandem*)
 
4421
    case $cc_basename in
 
4422
      NCC)
 
4423
        # NonStop-UX NCC 3.20
 
4424
        # FIXME: insert proper C++ library support
 
4425
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4426
        ;;
 
4427
      *)
 
4428
        # FIXME: insert proper C++ library support
 
4429
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4430
        ;;
 
4431
    esac
 
4432
    ;;
 
4433
  vxworks*)
 
4434
    # FIXME: insert proper C++ library support
 
4435
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4436
    ;;
 
4437
  *)
 
4438
    # FIXME: insert proper C++ library support
 
4439
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4440
    ;;
 
4441
esac
 
4442
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
4443
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
4444
 
 
4445
_LT_AC_TAGVAR(GCC, $1)="$GXX"
 
4446
_LT_AC_TAGVAR(LD, $1)="$LD"
 
4447
 
 
4448
AC_LIBTOOL_POSTDEP_PREDEP($1)
 
4449
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4450
AC_LIBTOOL_PROG_CC_C_O($1)
 
4451
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4452
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4453
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4454
AC_LIBTOOL_SYS_LIB_STRIP
 
4455
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4456
AC_LIBTOOL_DLOPEN_SELF($1)
 
4457
 
 
4458
AC_LIBTOOL_CONFIG($1)
 
4459
 
 
4460
AC_LANG_POP
 
4461
CC=$lt_save_CC
 
4462
LDCXX=$LD
 
4463
LD=$lt_save_LD
 
4464
GCC=$lt_save_GCC
 
4465
with_gnu_ldcxx=$with_gnu_ld
 
4466
with_gnu_ld=$lt_save_with_gnu_ld
 
4467
lt_cv_path_LDCXX=$lt_cv_path_LD
 
4468
lt_cv_path_LD=$lt_save_path_LD
 
4469
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
4470
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
4471
])# AC_LIBTOOL_LANG_CXX_CONFIG
 
4472
 
 
4473
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
4474
# ------------------------
 
4475
# Figure out "hidden" library dependencies from verbose
 
4476
# compiler output when linking a shared library.
 
4477
# Parse the compiler output and extract the necessary
 
4478
# objects, libraries and library flags.
 
4479
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
4480
dnl we can't use the lt_simple_compile_test_code here,
 
4481
dnl because it contains code intended for an executable,
 
4482
dnl not a library.  It's possible we should let each
 
4483
dnl tag define a new lt_????_link_test_code variable,
 
4484
dnl but it's only used here...
 
4485
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
 
4486
int a;
 
4487
void foo (void) { a = 0; }
 
4488
EOF
 
4489
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
 
4490
class Foo
 
4491
{
 
4492
public:
 
4493
  Foo (void) { a = 0; }
 
4494
private:
 
4495
  int a;
 
4496
};
 
4497
EOF
 
4498
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
 
4499
      subroutine foo
 
4500
      implicit none
 
4501
      integer*4 a
 
4502
      a=0
 
4503
      return
 
4504
      end
 
4505
EOF
 
4506
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
 
4507
public class foo {
 
4508
  private int a;
 
4509
  public void bar (void) {
 
4510
    a = 0;
 
4511
  }
 
4512
};
 
4513
EOF
 
4514
])
 
4515
dnl Parse the compiler output and extract the necessary
 
4516
dnl objects, libraries and library flags.
 
4517
if AC_TRY_EVAL(ac_compile); then
 
4518
  # Parse the compiler output and extract the necessary
 
4519
  # objects, libraries and library flags.
 
4520
 
 
4521
  # Sentinel used to keep track of whether or not we are before
 
4522
  # the conftest object file.
 
4523
  pre_test_object_deps_done=no
 
4524
 
 
4525
  # The `*' in the case matches for architectures that use `case' in
 
4526
  # $output_verbose_cmd can trigger glob expansion during the loop
 
4527
  # eval without this substitution.
 
4528
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
4529
 
 
4530
  for p in `eval $output_verbose_link_cmd`; do
 
4531
    case $p in
 
4532
 
 
4533
    -L* | -R* | -l*)
 
4534
       # Some compilers place space between "-{L,R}" and the path.
 
4535
       # Remove the space.
 
4536
       if test $p = "-L" \
 
4537
          || test $p = "-R"; then
 
4538
         prev=$p
 
4539
         continue
 
4540
       else
 
4541
         prev=
 
4542
       fi
 
4543
 
 
4544
       if test "$pre_test_object_deps_done" = no; then
 
4545
         case $p in
 
4546
         -L* | -R*)
 
4547
           # Internal compiler library paths should come after those
 
4548
           # provided the user.  The postdeps already come after the
 
4549
           # user supplied libs so there is no need to process them.
 
4550
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4551
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
4552
           else
 
4553
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
4554
           fi
 
4555
           ;;
 
4556
         # The "-l" case would never come before the object being
 
4557
         # linked, so don't bother handling this case.
 
4558
         esac
 
4559
       else
 
4560
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
 
4561
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
 
4562
         else
 
4563
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
 
4564
         fi
 
4565
       fi
 
4566
       ;;
 
4567
 
 
4568
    *.$objext)
 
4569
       # This assumes that the test object file only shows up
 
4570
       # once in the compiler output.
 
4571
       if test "$p" = "conftest.$objext"; then
 
4572
         pre_test_object_deps_done=yes
 
4573
         continue
 
4574
       fi
 
4575
 
 
4576
       if test "$pre_test_object_deps_done" = no; then
 
4577
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
 
4578
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
 
4579
         else
 
4580
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
 
4581
         fi
 
4582
       else
 
4583
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
 
4584
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
 
4585
         else
 
4586
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
 
4587
         fi
 
4588
       fi
 
4589
       ;;
 
4590
 
 
4591
    *) ;; # Ignore the rest.
 
4592
 
 
4593
    esac
 
4594
  done
 
4595
 
 
4596
  # Clean up.
 
4597
  rm -f a.out a.exe
 
4598
else
 
4599
  echo "libtool.m4: error: problem compiling $1 test program"
 
4600
fi
 
4601
 
 
4602
$rm -f confest.$objext
 
4603
 
 
4604
case " $_LT_AC_TAGVAR(postdeps, $1) " in
 
4605
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
4606
esac
 
4607
])# AC_LIBTOOL_POSTDEP_PREDEP
 
4608
 
 
4609
# AC_LIBTOOL_LANG_F77_CONFIG
 
4610
# ------------------------
 
4611
# Ensure that the configuration vars for the C compiler are
 
4612
# suitably defined.  Those variables are subsequently used by
 
4613
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4614
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
 
4615
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
 
4616
[AC_REQUIRE([AC_PROG_F77])
 
4617
AC_LANG_PUSH(Fortran 77)
 
4618
 
 
4619
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4620
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
4621
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
4622
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
4623
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
4624
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4625
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4626
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
4627
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4628
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
4629
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
4630
_LT_AC_TAGVAR(module_cmds, $1)=
 
4631
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
4632
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
4633
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4634
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
4635
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4636
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
4637
 
 
4638
# Source file extension for f77 test sources.
 
4639
ac_ext=f
 
4640
 
 
4641
# Object file extension for compiled f77 test sources.
 
4642
objext=o
 
4643
_LT_AC_TAGVAR(objext, $1)=$objext
 
4644
 
 
4645
# Code to be used in simple compile tests
 
4646
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
4647
 
 
4648
# Code to be used in simple link tests
 
4649
lt_simple_link_test_code="      program t\n      end\n"
 
4650
 
 
4651
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4652
_LT_AC_SYS_COMPILER
 
4653
 
 
4654
# Allow CC to be a program name with arguments.
 
4655
lt_save_CC="$CC"
 
4656
CC=${F77-"f77"}
 
4657
compiler=$CC
 
4658
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4659
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
4660
 
 
4661
AC_MSG_CHECKING([if libtool supports shared libraries])
 
4662
AC_MSG_RESULT([$can_build_shared])
 
4663
 
 
4664
AC_MSG_CHECKING([whether to build shared libraries])
 
4665
test "$can_build_shared" = "no" && enable_shared=no
 
4666
 
 
4667
# On AIX, shared libraries and static libraries use the same namespace, and
 
4668
# are all built from PIC.
 
4669
case "$host_os" in
 
4670
aix3*)
 
4671
  test "$enable_shared" = yes && enable_static=no
 
4672
  if test -n "$RANLIB"; then
 
4673
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
4674
    postinstall_cmds='$RANLIB $lib'
 
4675
  fi
 
4676
  ;;
 
4677
aix4*)
 
4678
  test "$enable_shared" = yes && enable_static=no
 
4679
  ;;
 
4680
esac
 
4681
AC_MSG_RESULT([$enable_shared])
 
4682
 
 
4683
AC_MSG_CHECKING([whether to build static libraries])
 
4684
# Make sure either enable_shared or enable_static is yes.
 
4685
test "$enable_shared" = yes || enable_static=yes
 
4686
AC_MSG_RESULT([$enable_static])
 
4687
 
 
4688
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
4689
 
 
4690
_LT_AC_TAGVAR(GCC, $1)="$G77"
 
4691
_LT_AC_TAGVAR(LD, $1)="$LD"
 
4692
 
 
4693
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4694
AC_LIBTOOL_PROG_CC_C_O($1)
 
4695
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4696
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4697
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4698
AC_LIBTOOL_SYS_LIB_STRIP
 
4699
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4700
 
 
4701
AC_LIBTOOL_CONFIG($1)
 
4702
 
 
4703
AC_LANG_POP
 
4704
CC="$lt_save_CC"
 
4705
])# AC_LIBTOOL_LANG_F77_CONFIG
 
4706
 
 
4707
 
 
4708
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
4709
# --------------------------
 
4710
# Ensure that the configuration vars for the C compiler are
 
4711
# suitably defined.  Those variables are subsequently used by
 
4712
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4713
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
 
4714
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
 
4715
[AC_LANG_SAVE
 
4716
 
 
4717
# Source file extension for Java test sources.
 
4718
ac_ext=java
 
4719
 
 
4720
# Object file extension for compiled Java test sources.
 
4721
objext=o
 
4722
_LT_AC_TAGVAR(objext, $1)=$objext
 
4723
 
 
4724
# Code to be used in simple compile tests
 
4725
lt_simple_compile_test_code="class foo {}\n"
 
4726
 
 
4727
# Code to be used in simple link tests
 
4728
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
4729
 
 
4730
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4731
_LT_AC_SYS_COMPILER
 
4732
 
 
4733
# Allow CC to be a program name with arguments.
 
4734
lt_save_CC="$CC"
 
4735
CC=${GCJ-"gcj"}
 
4736
compiler=$CC
 
4737
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4738
 
 
4739
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
4740
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4741
 
 
4742
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
4743
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4744
AC_LIBTOOL_PROG_CC_C_O($1)
 
4745
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4746
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4747
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4748
AC_LIBTOOL_SYS_LIB_STRIP
 
4749
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4750
AC_LIBTOOL_DLOPEN_SELF($1)
 
4751
 
 
4752
AC_LIBTOOL_CONFIG($1)
 
4753
 
 
4754
AC_LANG_RESTORE
 
4755
CC="$lt_save_CC"
 
4756
])# AC_LIBTOOL_LANG_GCJ_CONFIG
 
4757
 
 
4758
 
 
4759
# AC_LIBTOOL_LANG_RC_CONFIG
 
4760
# --------------------------
 
4761
# Ensure that the configuration vars for the Windows resource compiler are
 
4762
# suitably defined.  Those variables are subsequently used by
 
4763
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4764
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
 
4765
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
 
4766
[AC_LANG_SAVE
 
4767
 
 
4768
# Source file extension for RC test sources.
 
4769
ac_ext=rc
 
4770
 
 
4771
# Object file extension for compiled RC test sources.
 
4772
objext=o
 
4773
_LT_AC_TAGVAR(objext, $1)=$objext
 
4774
 
 
4775
# Code to be used in simple compile tests
 
4776
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
4777
 
 
4778
# Code to be used in simple link tests
 
4779
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
4780
 
 
4781
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4782
_LT_AC_SYS_COMPILER
 
4783
 
 
4784
# Allow CC to be a program name with arguments.
 
4785
lt_save_CC="$CC"
 
4786
CC=${RC-"windres"}
 
4787
compiler=$CC
 
4788
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4789
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
4790
 
 
4791
AC_LIBTOOL_CONFIG($1)
 
4792
 
 
4793
AC_LANG_RESTORE
 
4794
CC="$lt_save_CC"
 
4795
])# AC_LIBTOOL_LANG_RC_CONFIG
 
4796
 
 
4797
 
 
4798
# AC_LIBTOOL_CONFIG([TAGNAME])
 
4799
# ----------------------------
 
4800
# If TAGNAME is not passed, then create an initial libtool script
 
4801
# with a default configuration from the untagged config vars.  Otherwise
 
4802
# add code to config.status for appending the configuration named by
 
4803
# TAGNAME from the matching tagged config vars.
 
4804
AC_DEFUN([AC_LIBTOOL_CONFIG],
 
4805
[# The else clause should only fire when bootstrapping the
 
4806
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
4807
# with your package, and you will get complaints that there are
 
4808
# no rules to generate ltmain.sh.
 
4809
if test -f "$ltmain"; then
 
4810
  # See if we are running on zsh, and set the options which allow our commands through
 
4811
  # without removal of \ escapes.
 
4812
  if test -n "${ZSH_VERSION+set}" ; then
 
4813
    setopt NO_GLOB_SUBST
 
4814
  fi  
 
4815
  # Now quote all the things that may contain metacharacters while being
 
4816
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
4817
  # variables and quote the copies for generation of the libtool script.
 
4818
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
4819
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
4820
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
4821
    deplibs_check_method reload_flag reload_cmds need_locks \
 
4822
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
4823
    lt_cv_sys_global_symbol_to_c_name_address \
 
4824
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
4825
    old_postinstall_cmds old_postuninstall_cmds \
 
4826
    _LT_AC_TAGVAR(compiler, $1) \
 
4827
    _LT_AC_TAGVAR(CC, $1) \
 
4828
    _LT_AC_TAGVAR(LD, $1) \
 
4829
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
 
4830
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
 
4831
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
 
4832
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
 
4833
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
 
4834
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
 
4835
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
 
4836
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
 
4837
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
 
4838
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
 
4839
    _LT_AC_TAGVAR(predep_objects, $1) \
 
4840
    _LT_AC_TAGVAR(postdep_objects, $1) \
 
4841
    _LT_AC_TAGVAR(predeps, $1) \
 
4842
    _LT_AC_TAGVAR(postdeps, $1) \
 
4843
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
4844
    _LT_AC_TAGVAR(archive_cmds, $1) \
 
4845
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
 
4846
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
 
4847
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
 
4848
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
 
4849
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
 
4850
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
 
4851
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
 
4852
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
 
4853
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
 
4854
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
 
4855
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
 
4856
    _LT_AC_TAGVAR(module_cmds, $1) \
 
4857
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
 
4858
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
4859
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
 
4860
    _LT_AC_TAGVAR(include_expsyms, $1); do
 
4861
 
 
4862
    case $var in
 
4863
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
 
4864
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
 
4865
    _LT_AC_TAGVAR(archive_cmds, $1) | \
 
4866
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
 
4867
    _LT_AC_TAGVAR(module_cmds, $1) | \
 
4868
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \   
 
4869
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
 
4870
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
 
4871
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
4872
    postinstall_cmds | postuninstall_cmds | \
 
4873
    old_postinstall_cmds | old_postuninstall_cmds | \
 
4874
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
4875
      # Double-quote double-evaled strings.
 
4876
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
4877
      ;;
 
4878
    *)
 
4879
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
4880
      ;;
 
4881
    esac
 
4882
  done
 
4883
 
 
4884
  case $lt_echo in
 
4885
  *'\[$]0 --fallback-echo"')
 
4886
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
 
4887
    ;;
 
4888
  esac
 
4889
 
 
4890
ifelse([$1], [],
 
4891
  [cfgfile="${ofile}T"
 
4892
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
4893
  $rm -f "$cfgfile"
 
4894
  AC_MSG_NOTICE([creating $ofile])],
 
4895
  [cfgfile="$ofile"])
 
4896
 
 
4897
  cat <<__EOF__ >> "$cfgfile"
 
4898
ifelse([$1], [],
 
4899
[#! $SHELL
 
4900
 
 
4901
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
4902
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
4903
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
4904
#
 
4905
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
4906
# Free Software Foundation, Inc.
 
4907
#
 
4908
# This file is part of GNU Libtool:
 
4909
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
4910
#
 
4911
# This program is free software; you can redistribute it and/or modify
 
4912
# it under the terms of the GNU General Public License as published by
 
4913
# the Free Software Foundation; either version 2 of the License, or
 
4914
# (at your option) any later version.
 
4915
#
 
4916
# This program is distributed in the hope that it will be useful, but
 
4917
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
4918
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
4919
# General Public License for more details.
 
4920
#
 
4921
# You should have received a copy of the GNU General Public License
 
4922
# along with this program; if not, write to the Free Software
 
4923
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
4924
#
 
4925
# As a special exception to the GNU General Public License, if you
 
4926
# distribute this file as part of a program that contains a
 
4927
# configuration script generated by Autoconf, you may include it under
 
4928
# the same distribution terms that you use for the rest of that program.
 
4929
 
 
4930
# A sed program that does not truncate output.
 
4931
SED=$lt_SED
 
4932
 
 
4933
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
4934
Xsed="$SED -e s/^X//"
 
4935
 
 
4936
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
4937
# if CDPATH is set.
 
4938
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
4939
 
 
4940
# The names of the tagged configurations supported by this script.
 
4941
available_tags=
 
4942
 
 
4943
# ### BEGIN LIBTOOL CONFIG],
 
4944
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
 
4945
 
 
4946
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
4947
 
 
4948
# Shell to use when invoking shell scripts.
 
4949
SHELL=$lt_SHELL
 
4950
 
 
4951
# Whether or not to build shared libraries.
 
4952
build_libtool_libs=$enable_shared
 
4953
 
 
4954
# Whether or not to build static libraries.
 
4955
build_old_libs=$enable_static
 
4956
 
 
4957
# Whether or not to add -lc for building shared libraries.
 
4958
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
 
4959
 
 
4960
# Whether or not to disallow shared libs when runtime libs are static
 
4961
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
 
4962
 
 
4963
# Whether or not to optimize for fast installation.
 
4964
fast_install=$enable_fast_install
 
4965
 
 
4966
# The host system.
 
4967
host_alias=$host_alias
 
4968
host=$host
 
4969
 
 
4970
# An echo program that does not interpret backslashes.
 
4971
echo=$lt_echo
 
4972
 
 
4973
# The archiver.
 
4974
AR=$lt_AR
 
4975
AR_FLAGS=$lt_AR_FLAGS
 
4976
 
 
4977
# A C compiler.
 
4978
LTCC=$lt_LTCC
 
4979
 
 
4980
# A language-specific compiler.
 
4981
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
 
4982
 
 
4983
# Is the compiler the GNU C compiler?
 
4984
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
 
4985
 
 
4986
# An ERE matcher.
 
4987
EGREP=$lt_EGREP
 
4988
 
 
4989
# The linker used to build libraries.
 
4990
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
 
4991
 
 
4992
# Whether we need hard or soft links.
 
4993
LN_S=$lt_LN_S
 
4994
 
 
4995
# A BSD-compatible nm program.
 
4996
NM=$lt_NM
 
4997
 
 
4998
# A symbol stripping program
 
4999
STRIP=$STRIP
 
5000
 
 
5001
# Used to examine libraries when file_magic_cmd begins "file"
 
5002
MAGIC_CMD=$MAGIC_CMD
 
5003
 
 
5004
# Used on cygwin: DLL creation program.
 
5005
DLLTOOL="$DLLTOOL"
 
5006
 
 
5007
# Used on cygwin: object dumper.
 
5008
OBJDUMP="$OBJDUMP"
 
5009
 
 
5010
# Used on cygwin: assembler.
 
5011
AS="$AS"
 
5012
 
 
5013
# The name of the directory that contains temporary libtool files.
 
5014
objdir=$objdir
 
5015
 
 
5016
# How to create reloadable object files.
 
5017
reload_flag=$lt_reload_flag
 
5018
reload_cmds=$lt_reload_cmds
 
5019
 
 
5020
# How to pass a linker flag through the compiler.
 
5021
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
5022
 
 
5023
# Object file suffix (normally "o").
 
5024
objext="$ac_objext"
 
5025
 
 
5026
# Old archive suffix (normally "a").
 
5027
libext="$libext"
 
5028
 
 
5029
# Shared library suffix (normally ".so").
 
5030
shrext='$shrext'
 
5031
 
 
5032
# Executable file suffix (normally "").
 
5033
exeext="$exeext"
 
5034
 
 
5035
# Additional compiler flags for building library objects.
 
5036
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
5037
pic_mode=$pic_mode
 
5038
 
 
5039
# What is the maximum length of a command?
 
5040
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5041
 
 
5042
# Does compiler simultaneously support -c and -o options?
 
5043
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
 
5044
 
 
5045
# Must we lock files when doing compilation ?
 
5046
need_locks=$lt_need_locks
 
5047
 
 
5048
# Do we need the lib prefix for modules?
 
5049
need_lib_prefix=$need_lib_prefix
 
5050
 
 
5051
# Do we need a version for libraries?
 
5052
need_version=$need_version
 
5053
 
 
5054
# Whether dlopen is supported.
 
5055
dlopen_support=$enable_dlopen
 
5056
 
 
5057
# Whether dlopen of programs is supported.
 
5058
dlopen_self=$enable_dlopen_self
 
5059
 
 
5060
# Whether dlopen of statically linked programs is supported.
 
5061
dlopen_self_static=$enable_dlopen_self_static
 
5062
 
 
5063
# Compiler flag to prevent dynamic linking.
 
5064
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
 
5065
 
 
5066
# Compiler flag to turn off builtin functions.
 
5067
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
 
5068
 
 
5069
# Compiler flag to allow reflexive dlopens.
 
5070
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
 
5071
 
 
5072
# Compiler flag to generate shared objects directly from archives.
 
5073
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
 
5074
 
 
5075
# Compiler flag to generate thread-safe objects.
 
5076
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
 
5077
 
 
5078
# Library versioning type.
 
5079
version_type=$version_type
 
5080
 
 
5081
# Format of library name prefix.
 
5082
libname_spec=$lt_libname_spec
 
5083
 
 
5084
# List of archive names.  First name is the real one, the rest are links.
 
5085
# The last name is the one that the linker finds with -lNAME.
 
5086
library_names_spec=$lt_library_names_spec
 
5087
 
 
5088
# The coded name of the library, if different from the real name.
 
5089
soname_spec=$lt_soname_spec
 
5090
 
 
5091
# Commands used to build and install an old-style archive.
 
5092
RANLIB=$lt_RANLIB
 
5093
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
 
5094
old_postinstall_cmds=$lt_old_postinstall_cmds
 
5095
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
5096
 
 
5097
# Create an old-style archive from a shared archive.
 
5098
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
 
5099
 
 
5100
# Create a temporary old-style archive to link instead of a shared archive.
 
5101
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
 
5102
 
 
5103
# Commands used to build and install a shared archive.
 
5104
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
 
5105
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
 
5106
postinstall_cmds=$lt_postinstall_cmds
 
5107
postuninstall_cmds=$lt_postuninstall_cmds
 
5108
 
 
5109
# Commands used to build a loadable module (assumed same as above if empty)
 
5110
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
 
5111
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
 
5112
 
 
5113
# Commands to strip libraries.
 
5114
old_striplib=$lt_old_striplib
 
5115
striplib=$lt_striplib
 
5116
 
 
5117
# Dependencies to place before the objects being linked to create a
 
5118
# shared library.
 
5119
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
 
5120
 
 
5121
# Dependencies to place after the objects being linked to create a
 
5122
# shared library.
 
5123
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
 
5124
 
 
5125
# Dependencies to place before the objects being linked to create a
 
5126
# shared library.
 
5127
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
 
5128
 
 
5129
# Dependencies to place after the objects being linked to create a
 
5130
# shared library.
 
5131
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
 
5132
 
 
5133
# The library search path used internally by the compiler when linking
 
5134
# a shared library.
 
5135
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
 
5136
 
 
5137
# Method to check whether dependent libraries are shared objects.
 
5138
deplibs_check_method=$lt_deplibs_check_method
 
5139
 
 
5140
# Command to use when deplibs_check_method == file_magic.
 
5141
file_magic_cmd=$lt_file_magic_cmd
 
5142
 
 
5143
# Flag that allows shared libraries with undefined symbols to be built.
 
5144
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
5145
 
 
5146
# Flag that forces no undefined symbols.
 
5147
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
 
5148
 
 
5149
# Commands used to finish a libtool library installation in a directory.
 
5150
finish_cmds=$lt_finish_cmds
 
5151
 
 
5152
# Same as above, but a single script fragment to be evaled but not shown.
 
5153
finish_eval=$lt_finish_eval
 
5154
 
 
5155
# Take the output of nm and produce a listing of raw symbols and C names.
 
5156
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
5157
 
 
5158
# Transform the output of nm in a proper C declaration
 
5159
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
5160
 
 
5161
# Transform the output of nm in a C name address pair
 
5162
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
5163
 
 
5164
# This is the shared library runtime path variable.
 
5165
runpath_var=$runpath_var
 
5166
 
 
5167
# This is the shared library path variable.
 
5168
shlibpath_var=$shlibpath_var
 
5169
 
 
5170
# Is shlibpath searched before the hard-coded library search path?
 
5171
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
5172
 
 
5173
# How to hardcode a shared library path into an executable.
 
5174
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
 
5175
 
 
5176
# Whether we should hardcode library paths into libraries.
 
5177
hardcode_into_libs=$hardcode_into_libs
 
5178
 
 
5179
# Flag to hardcode \$libdir into a binary during linking.
 
5180
# This must work even if \$libdir does not exist.
 
5181
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
 
5182
 
 
5183
# If ld is used when linking, flag to hardcode \$libdir into
 
5184
# a binary during linking. This must work even if \$libdir does
 
5185
# not exist.
 
5186
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
 
5187
 
 
5188
# Whether we need a single -rpath flag with a separated argument.
 
5189
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
 
5190
 
 
5191
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
5192
# resulting binary.
 
5193
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
 
5194
 
 
5195
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
5196
# resulting binary.
 
5197
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
 
5198
 
 
5199
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
5200
# the resulting binary.
 
5201
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
 
5202
 
 
5203
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
5204
# and all subsequent libraries and executables linked against it.
 
5205
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
 
5206
 
 
5207
# Variables whose values should be saved in libtool wrapper scripts and
 
5208
# restored at relink time.
 
5209
variables_saved_for_relink="$variables_saved_for_relink"
 
5210
 
 
5211
# Whether libtool must link a program against all its dependency libraries.
 
5212
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
 
5213
 
 
5214
# Compile-time system search path for libraries
 
5215
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
5216
 
 
5217
# Run-time system search path for libraries
 
5218
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
5219
 
 
5220
# Fix the shell variable \$srcfile for the compiler.
 
5221
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
5222
 
 
5223
# Set to yes if exported symbols are required.
 
5224
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
 
5225
 
 
5226
# The commands to list exported symbols.
 
5227
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
 
5228
 
 
5229
# The commands to extract the exported symbol list from a shared archive.
 
5230
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
5231
 
 
5232
# Symbols that should not be listed in the preloaded symbols.
 
5233
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
 
5234
 
 
5235
# Symbols that must always be exported.
 
5236
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
 
5237
 
 
5238
ifelse([$1],[],
 
5239
[# ### END LIBTOOL CONFIG],
 
5240
[# ### END LIBTOOL TAG CONFIG: $tagname])
 
5241
 
 
5242
__EOF__
 
5243
 
 
5244
ifelse([$1],[], [
 
5245
  case $host_os in
 
5246
  aix3*)
 
5247
    cat <<\EOF >> "$cfgfile"
 
5248
 
 
5249
# AIX sometimes has problems with the GCC collect2 program.  For some
 
5250
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
5251
# vanish in a puff of smoke.
 
5252
if test "X${COLLECT_NAMES+set}" != Xset; then
 
5253
  COLLECT_NAMES=
 
5254
  export COLLECT_NAMES
 
5255
fi
 
5256
EOF
 
5257
    ;;
 
5258
  esac
 
5259
 
 
5260
  # We use sed instead of cat because bash on DJGPP gets confused if
 
5261
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
5262
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
5263
  # is reportedly fixed, but why not run on old versions too?
 
5264
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
5265
 
 
5266
  mv -f "$cfgfile" "$ofile" || \
 
5267
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
5268
  chmod +x "$ofile"
 
5269
])
 
5270
else
 
5271
  # If there is no Makefile yet, we rely on a make rule to execute
 
5272
  # `config.status --recheck' to rerun these tests and create the
 
5273
  # libtool script then.
 
5274
  test -f Makefile && make "$ltmain"
 
5275
fi
 
5276
])# AC_LIBTOOL_CONFIG
 
5277
 
 
5278
 
 
5279
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 
5280
# -------------------------------------------
 
5281
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
 
5282
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
5283
 
 
5284
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
5285
 
 
5286
if test "$GCC" = yes; then
 
5287
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
5288
 
 
5289
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
5290
    lt_cv_prog_compiler_rtti_exceptions,
 
5291
    [-fno-rtti -fno-exceptions], [],
 
5292
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
5293
fi
 
5294
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 
5295
 
 
5296
 
 
5297
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
5298
# ---------------------------------
 
5299
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
 
5300
[AC_REQUIRE([AC_CANONICAL_HOST])
 
5301
AC_REQUIRE([AC_PROG_NM])
 
5302
AC_REQUIRE([AC_OBJEXT])
 
5303
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5304
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 
5305
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 
5306
[
 
5307
# These are sane defaults that work on at least a few old systems.
 
5308
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5309
 
 
5310
# Character class describing NM global symbol codes.
 
5311
symcode='[[BCDEGRST]]'
 
5312
 
 
5313
# Regexp to match symbols that can be accessed directly from C.
 
5314
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 
5315
 
 
5316
# Transform the above into a raw symbol and a C symbol.
 
5317
symxfrm='\1 \2\3 \3'
 
5318
 
 
5319
# Transform an extracted symbol line into a proper C declaration
 
5320
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5321
 
 
5322
# Transform an extracted symbol line into symbol name and symbol address
 
5323
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5324
 
 
5325
# Define system-specific variables.
 
5326
case $host_os in
 
5327
aix*)
 
5328
  symcode='[[BCDT]]'
 
5329
  ;;
 
5330
cygwin* | mingw* | pw32*)
 
5331
  symcode='[[ABCDGISTW]]'
 
5332
  ;;
 
5333
hpux*) # Its linker distinguishes data from code symbols
 
5334
  if test "$host_cpu" = ia64; then
 
5335
    symcode='[[ABCDEGRST]]'
 
5336
  fi
 
5337
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5338
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5339
  ;;
 
5340
irix* | nonstopux*)
 
5341
  symcode='[[BCDEGRST]]'
 
5342
  ;;
 
5343
osf*)
 
5344
  symcode='[[BCDEGQRST]]'
 
5345
  ;;
 
5346
solaris* | sysv5*)
 
5347
  symcode='[[BDRT]]'
 
5348
  ;;
 
5349
sysv4)
 
5350
  symcode='[[DFNSTU]]'
 
5351
  ;;
 
5352
esac
 
5353
 
 
5354
# Handle CRLF in mingw tool chain
 
5355
opt_cr=
 
5356
case $build_os in
 
5357
mingw*)
 
5358
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5359
  ;;
 
5360
esac
 
5361
 
 
5362
# If we're using GNU nm, then use its standard symbol codes.
 
5363
case `$NM -V 2>&1` in
 
5364
*GNU* | *'with BFD'*)
 
5365
  symcode='[[ABCDGIRSTW]]' ;;
 
5366
esac
 
5367
 
 
5368
# Try without a prefix undercore, then with it.
 
5369
for ac_symprfx in "" "_"; do
 
5370
 
 
5371
  # Write the raw and C identifiers.
 
5372
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5373
 
 
5374
  # Check to see that the pipe works correctly.
 
5375
  pipe_works=no
 
5376
 
 
5377
  rm -f conftest*
 
5378
  cat > conftest.$ac_ext <<EOF
 
5379
#ifdef __cplusplus
 
5380
extern "C" {
 
5381
#endif
 
5382
char nm_test_var;
 
5383
void nm_test_func(){}
 
5384
#ifdef __cplusplus
 
5385
}
 
5386
#endif
 
5387
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5388
EOF
 
5389
 
 
5390
  if AC_TRY_EVAL(ac_compile); then
 
5391
    # Now try to grab the symbols.
 
5392
    nlist=conftest.nm
 
5393
    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 
5394
      # Try sorting and uniquifying the output.
 
5395
      if sort "$nlist" | uniq > "$nlist"T; then
 
5396
        mv -f "$nlist"T "$nlist"
 
5397
      else
 
5398
        rm -f "$nlist"T
 
5399
      fi
 
5400
 
 
5401
      # Make sure that we snagged all the symbols we need.
 
5402
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5403
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5404
          cat <<EOF > conftest.$ac_ext
 
5405
#ifdef __cplusplus
 
5406
extern "C" {
 
5407
#endif
 
5408
 
 
5409
EOF
 
5410
          # Now generate the symbol file.
 
5411
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5412
 
 
5413
          cat <<EOF >> conftest.$ac_ext
 
5414
#if defined (__STDC__) && __STDC__
 
5415
# define lt_ptr_t void *
 
5416
#else
 
5417
# define lt_ptr_t char *
 
5418
# define const
 
5419
#endif
 
5420
 
 
5421
/* The mapping between symbol names and symbols. */
 
5422
const struct {
 
5423
  const char *name;
 
5424
  lt_ptr_t address;
 
5425
}
 
5426
lt_preloaded_symbols[[]] =
 
5427
{
 
5428
EOF
 
5429
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5430
          cat <<\EOF >> conftest.$ac_ext
 
5431
  {0, (lt_ptr_t) 0}
 
5432
};
 
5433
 
 
5434
#ifdef __cplusplus
 
5435
}
 
5436
#endif
 
5437
EOF
 
5438
          # Now try linking the two files.
 
5439
          mv conftest.$ac_objext conftstm.$ac_objext
 
5440
          lt_save_LIBS="$LIBS"
 
5441
          lt_save_CFLAGS="$CFLAGS"
 
5442
          LIBS="conftstm.$ac_objext"
 
5443
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
5444
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
 
5445
            pipe_works=yes
 
5446
          fi
 
5447
          LIBS="$lt_save_LIBS"
 
5448
          CFLAGS="$lt_save_CFLAGS"
 
5449
        else
 
5450
          echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 
5451
        fi
 
5452
      else
 
5453
        echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 
5454
      fi
 
5455
    else
 
5456
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 
5457
    fi
 
5458
  else
 
5459
    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 
5460
    cat conftest.$ac_ext >&5
 
5461
  fi
 
5462
  rm -f conftest* conftst*
 
5463
 
 
5464
  # Do not use the global_symbol_pipe unless it works.
 
5465
  if test "$pipe_works" = yes; then
 
5466
    break
 
5467
  else
 
5468
    lt_cv_sys_global_symbol_pipe=
 
5469
  fi
 
5470
done
 
5471
])
 
5472
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5473
  lt_cv_sys_global_symbol_to_cdecl=
 
5474
fi
 
5475
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5476
  AC_MSG_RESULT(failed)
 
5477
else
 
5478
  AC_MSG_RESULT(ok)
 
5479
fi
 
5480
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
5481
 
 
5482
 
 
5483
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 
5484
# ---------------------------------------
 
5485
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
 
5486
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
 
5487
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5488
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 
5489
 
 
5490
AC_MSG_CHECKING([for $compiler option to produce PIC])
 
5491
 ifelse([$1],[CXX],[
 
5492
  # C++ specific cases for pic, static, wl, etc.
 
5493
  if test "$GXX" = yes; then
 
5494
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5495
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5496
 
 
5497
    case $host_os in
 
5498
    aix*)
 
5499
      # All AIX code is PIC.
 
5500
      if test "$host_cpu" = ia64; then
 
5501
        # AIX 5 now supports IA64 processor
 
5502
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5503
      fi
 
5504
      ;;
 
5505
    amigaos*)
 
5506
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5507
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5508
      # like `-m68040'.
 
5509
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
5510
      ;;
 
5511
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5512
      # PIC is the default for these OSes.
 
5513
      ;;
 
5514
    mingw* | os2* | pw32*)
 
5515
      # This hack is so that the source file can tell whether it is being
 
5516
      # built for inclusion in a dll (and should export symbols for example).
 
5517
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5518
      ;;
 
5519
    darwin* | rhapsody*)
 
5520
      # PIC is the default on this platform
 
5521
      # Common symbols not allowed in MH_DYLIB files
 
5522
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5523
      ;;
 
5524
    *djgpp*)
 
5525
      # DJGPP does not support shared libraries at all
 
5526
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5527
      ;;
 
5528
    sysv4*MP*)
 
5529
      if test -d /usr/nec; then
 
5530
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5531
      fi
 
5532
      ;;
 
5533
    hpux*)
 
5534
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5535
      # not for PA HP-UX.
 
5536
      case "$host_cpu" in
 
5537
      hppa*64*|ia64*)
 
5538
        ;;
 
5539
      *)
 
5540
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5541
        ;;
 
5542
      esac
 
5543
      ;;
 
5544
    *)
 
5545
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5546
      ;;
 
5547
    esac
 
5548
  else
 
5549
    case $host_os in
 
5550
      aix4* | aix5*)
 
5551
        # All AIX code is PIC.
 
5552
        if test "$host_cpu" = ia64; then
 
5553
          # AIX 5 now supports IA64 processor
 
5554
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5555
        else
 
5556
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5557
        fi
 
5558
        ;;
 
5559
      chorus*)
 
5560
        case $cc_basename in
 
5561
        cxch68)
 
5562
          # Green Hills C++ Compiler
 
5563
          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
5564
          ;;
 
5565
        esac
 
5566
        ;;
 
5567
      dgux*)
 
5568
        case $cc_basename in
 
5569
          ec++)
 
5570
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5571
            ;;
 
5572
          ghcx)
 
5573
            # Green Hills C++ Compiler
 
5574
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5575
            ;;
 
5576
          *)
 
5577
            ;;
 
5578
        esac
 
5579
        ;;
 
5580
      freebsd*)
 
5581
        # FreeBSD uses GNU C++
 
5582
        ;;
 
5583
      hpux9* | hpux10* | hpux11*)
 
5584
        case $cc_basename in
 
5585
          CC)
 
5586
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5587
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
5588
            if test "$host_cpu" != ia64; then
 
5589
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5590
            fi
 
5591
            ;;
 
5592
          aCC)
 
5593
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5594
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
5595
            case "$host_cpu" in
 
5596
            hppa*64*|ia64*)
 
5597
              # +Z the default
 
5598
              ;;
 
5599
            *)
 
5600
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5601
              ;;
 
5602
            esac
 
5603
            ;;
 
5604
          *)
 
5605
            ;;
 
5606
        esac
 
5607
        ;;
 
5608
      irix5* | irix6* | nonstopux*)
 
5609
        case $cc_basename in
 
5610
          CC)
 
5611
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5612
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5613
            # CC pic flag -KPIC is the default.
 
5614
            ;;
 
5615
          *)
 
5616
            ;;
 
5617
        esac
 
5618
        ;;
 
5619
      linux*)
 
5620
        case $cc_basename in
 
5621
          KCC)
 
5622
            # KAI C++ Compiler
 
5623
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5624
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5625
            ;;
 
5626
          icpc)
 
5627
            # Intel C++
 
5628
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5629
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5630
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5631
            ;; 
 
5632
          cxx)
 
5633
            # Compaq C++
 
5634
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
5635
            # Linux and Compaq Tru64 Unix objects are PIC.
 
5636
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5637
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5638
            ;;
 
5639
          *)
 
5640
            ;;
 
5641
        esac
 
5642
        ;;
 
5643
      lynxos*)
 
5644
        ;;
 
5645
      m88k*)
 
5646
        ;;
 
5647
      mvs*)
 
5648
        case $cc_basename in
 
5649
          cxx)
 
5650
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
5651
            ;;
 
5652
          *)
 
5653
            ;;
 
5654
        esac
 
5655
        ;;
 
5656
      netbsd*)
 
5657
        ;;
 
5658
      osf3* | osf4* | osf5*)
 
5659
        case $cc_basename in
 
5660
          KCC)
 
5661
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5662
            ;;
 
5663
          RCC)
 
5664
            # Rational C++ 2.4.1
 
5665
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5666
            ;;
 
5667
          cxx)
 
5668
            # Digital/Compaq C++
 
5669
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5670
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
5671
            # Linux and Compaq Tru64 Unix objects are PIC.
 
5672
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5673
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5674
            ;;
 
5675
          *)
 
5676
            ;;
 
5677
        esac
 
5678
        ;;
 
5679
      psos*)
 
5680
        ;;
 
5681
      sco*)
 
5682
        case $cc_basename in
 
5683
          CC)
 
5684
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5685
            ;;
 
5686
          *)
 
5687
            ;;
 
5688
        esac
 
5689
        ;;
 
5690
      solaris*)
 
5691
        case $cc_basename in
 
5692
          CC)
 
5693
            # Sun C++ 4.2, 5.x and Centerline C++
 
5694
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5695
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5696
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5697
            ;;
 
5698
          gcx)
 
5699
            # Green Hills C++ Compiler
 
5700
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5701
            ;;
 
5702
          *)
 
5703
            ;;
 
5704
        esac
 
5705
        ;;
 
5706
      sunos4*)
 
5707
        case $cc_basename in
 
5708
          CC)
 
5709
            # Sun C++ 4.x
 
5710
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5711
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5712
            ;;
 
5713
          lcc)
 
5714
            # Lucid
 
5715
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5716
            ;;
 
5717
          *)
 
5718
            ;;
 
5719
        esac
 
5720
        ;;
 
5721
      tandem*)
 
5722
        case $cc_basename in
 
5723
          NCC)
 
5724
            # NonStop-UX NCC 3.20
 
5725
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5726
            ;;
 
5727
          *)
 
5728
            ;;
 
5729
        esac
 
5730
        ;;
 
5731
      unixware*)
 
5732
        ;;
 
5733
      vxworks*)
 
5734
        ;;
 
5735
      *)
 
5736
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5737
        ;;
 
5738
    esac
 
5739
  fi
 
5740
],
 
5741
[
 
5742
  if test "$GCC" = yes; then
 
5743
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5744
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5745
 
 
5746
    case $host_os in
 
5747
      aix*)
 
5748
      # All AIX code is PIC.
 
5749
      if test "$host_cpu" = ia64; then
 
5750
        # AIX 5 now supports IA64 processor
 
5751
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5752
      fi
 
5753
      ;;
 
5754
 
 
5755
    amigaos*)
 
5756
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5757
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5758
      # like `-m68040'.
 
5759
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 
5760
      ;;
 
5761
 
 
5762
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5763
      # PIC is the default for these OSes.
 
5764
      ;;
 
5765
 
 
5766
    mingw* | pw32* | os2*)
 
5767
      # This hack is so that the source file can tell whether it is being
 
5768
      # built for inclusion in a dll (and should export symbols for example).
 
5769
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5770
      ;;
 
5771
 
 
5772
    darwin* | rhapsody*)
 
5773
      # PIC is the default on this platform
 
5774
      # Common symbols not allowed in MH_DYLIB files
 
5775
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5776
      ;;
 
5777
 
 
5778
    msdosdjgpp*)
 
5779
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
5780
      # on systems that don't support them.
 
5781
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5782
      enable_shared=no
 
5783
      ;;
 
5784
 
 
5785
    sysv4*MP*)
 
5786
      if test -d /usr/nec; then
 
5787
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5788
      fi
 
5789
      ;;
 
5790
 
 
5791
    hpux*)
 
5792
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5793
      # not for PA HP-UX.
 
5794
      case "$host_cpu" in
 
5795
      hppa*64*|ia64*)
 
5796
        # +Z the default
 
5797
        ;;
 
5798
      *)
 
5799
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5800
        ;;
 
5801
      esac
 
5802
      ;;
 
5803
 
 
5804
    *)
 
5805
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5806
      ;;
 
5807
    esac
 
5808
  else
 
5809
    # PORTME Check for flag to pass linker flags through the system compiler.
 
5810
    case $host_os in
 
5811
    aix*)
 
5812
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5813
      if test "$host_cpu" = ia64; then
 
5814
        # AIX 5 now supports IA64 processor
 
5815
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5816
      else
 
5817
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5818
      fi
 
5819
      ;;
 
5820
 
 
5821
    mingw* | pw32* | os2*)
 
5822
      # This hack is so that the source file can tell whether it is being
 
5823
      # built for inclusion in a dll (and should export symbols for example).
 
5824
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
5825
      ;;
 
5826
 
 
5827
    hpux9* | hpux10* | hpux11*)
 
5828
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5829
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5830
      # not for PA HP-UX.
 
5831
      case "$host_cpu" in
 
5832
      hppa*64*|ia64*)
 
5833
        # +Z the default
 
5834
        ;;
 
5835
      *)
 
5836
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5837
        ;;
 
5838
      esac
 
5839
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
5840
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5841
      ;;
 
5842
 
 
5843
    irix5* | irix6* | nonstopux*)
 
5844
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5845
      # PIC (with -KPIC) is the default.
 
5846
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5847
      ;;
 
5848
 
 
5849
    newsos6)
 
5850
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5851
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5852
      ;;
 
5853
 
 
5854
    linux*)
 
5855
      case $CC in
 
5856
      icc|ecc)
 
5857
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5858
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5859
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5860
        ;;
 
5861
      ccc)
 
5862
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5863
        # All Alpha code is PIC.
 
5864
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5865
        ;;
 
5866
      esac
 
5867
      ;;
 
5868
 
 
5869
    osf3* | osf4* | osf5*)
 
5870
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5871
      # All OSF/1 code is PIC.
 
5872
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5873
      ;;
 
5874
 
 
5875
    sco3.2v5*)
 
5876
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
 
5877
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
 
5878
      ;;
 
5879
 
 
5880
    solaris*)
 
5881
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5882
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5883
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5884
      ;;
 
5885
 
 
5886
    sunos4*)
 
5887
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5888
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5889
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5890
      ;;
 
5891
 
 
5892
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5893
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5894
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5895
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5896
      ;;
 
5897
 
 
5898
    sysv4*MP*)
 
5899
      if test -d /usr/nec ;then
 
5900
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
5901
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5902
      fi
 
5903
      ;;
 
5904
 
 
5905
    uts4*)
 
5906
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5907
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5908
      ;;
 
5909
 
 
5910
    *)
 
5911
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5912
      ;;
 
5913
    esac
 
5914
  fi
 
5915
])
 
5916
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 
5917
 
 
5918
#
 
5919
# Check to make sure the PIC flag actually works.
 
5920
#
 
5921
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
5922
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
 
5923
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
5924
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
 
5925
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 
5926
     "" | " "*) ;;
 
5927
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
5928
     esac],
 
5929
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5930
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
5931
fi
 
5932
case "$host_os" in
 
5933
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5934
  *djgpp*)
 
5935
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5936
    ;;
 
5937
  *)
 
5938
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
 
5939
    ;;
 
5940
esac
 
5941
])
 
5942
 
 
5943
 
 
5944
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 
5945
# ------------------------------------
 
5946
# See if the linker supports building shared libraries.
 
5947
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
 
5948
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
5949
ifelse([$1],[CXX],[
 
5950
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5951
  case $host_os in
 
5952
  aix4* | aix5*)
 
5953
    # If we're using GNU nm, then we don't want the "-C" option.
 
5954
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
5955
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
5956
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5957
    else
 
5958
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
5959
    fi
 
5960
    ;;
 
5961
  pw32*)
 
5962
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
5963
  ;;
 
5964
  cygwin* | mingw*)
 
5965
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
5966
  ;;
 
5967
  *)
 
5968
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5969
  ;;
 
5970
  esac
 
5971
],[
 
5972
  runpath_var=
 
5973
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
5974
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
5975
  _LT_AC_TAGVAR(archive_cmds, $1)=
 
5976
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
5977
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
 
5978
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
5979
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
5980
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
5981
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
 
5982
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
5983
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
5984
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
5985
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
5986
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
5987
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
5988
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
5989
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
5990
  _LT_AC_TAGVAR(module_cmds, $1)=
 
5991
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=  
 
5992
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
5993
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5994
  # include_expsyms should be a list of space-separated symbols to be *always*
 
5995
  # included in the symbol list
 
5996
  _LT_AC_TAGVAR(include_expsyms, $1)=
 
5997
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
5998
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
5999
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6000
  # as well as any symbol that contains `d'.
 
6001
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
6002
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6003
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6004
  # the symbol is explicitly referenced.  Since portable code cannot
 
6005
  # rely on this symbol name, it's probably fine to never include it in
 
6006
  # preloaded symbol tables.
 
6007
  extract_expsyms_cmds=
 
6008
 
 
6009
  case $host_os in
 
6010
  cygwin* | mingw* | pw32*)
 
6011
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6012
    # When not using gcc, we currently assume that we are using
 
6013
    # Microsoft Visual C++.
 
6014
    if test "$GCC" != yes; then
 
6015
      with_gnu_ld=no
 
6016
    fi
 
6017
    ;;
 
6018
  openbsd*)
 
6019
    with_gnu_ld=no
 
6020
    ;;
 
6021
  esac
 
6022
 
 
6023
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
6024
  if test "$with_gnu_ld" = yes; then
 
6025
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6026
    wlarc='${wl}'
 
6027
 
 
6028
    # See if GNU ld supports shared libraries.
 
6029
    case $host_os in
 
6030
    aix3* | aix4* | aix5*)
 
6031
      # On AIX/PPC, the GNU linker is very broken
 
6032
      if test "$host_cpu" != ia64; then
 
6033
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6034
        cat <<EOF 1>&2
 
6035
 
 
6036
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6037
*** to be unable to reliably create shared libraries on AIX.
 
6038
*** Therefore, libtool is disabling shared libraries support.  If you
 
6039
*** really care for shared libraries, you may want to modify your PATH
 
6040
*** so that a non-GNU linker is found, and then restart.
 
6041
 
 
6042
EOF
 
6043
      fi
 
6044
      ;;
 
6045
 
 
6046
    amigaos*)
 
6047
      _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
 
6048
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6049
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6050
 
 
6051
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6052
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6053
      # to version 4, is to share data among multiple programs linked
 
6054
      # with the same dynamic library.  Since this doesn't match the
 
6055
      # behavior of shared libraries on other platforms, we can't use
 
6056
      # them.
 
6057
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6058
      ;;
 
6059
 
 
6060
    beos*)
 
6061
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6062
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6063
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6064
        # support --undefined.  This deserves some investigation.  FIXME
 
6065
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6066
      else
 
6067
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6068
      fi
 
6069
      ;;
 
6070
 
 
6071
    cygwin* | mingw* | pw32*)
 
6072
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6073
      # as there is no search path for DLLs.
 
6074
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6075
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6076
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
6077
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6078
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6079
 
 
6080
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6081
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6082
        # If the export-symbols file already is a .def file (1st line
 
6083
        # is EXPORTS), use it as is; otherwise, prepend...
 
6084
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6085
          cp $export_symbols $output_objdir/$soname.def;
 
6086
        else
 
6087
          echo EXPORTS > $output_objdir/$soname.def;
 
6088
          cat $export_symbols >> $output_objdir/$soname.def;
 
6089
        fi~
 
6090
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6091
      else
 
6092
        ld_shlibs=no
 
6093
      fi
 
6094
      ;;
 
6095
 
 
6096
    netbsd*)
 
6097
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6098
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6099
        wlarc=
 
6100
      else
 
6101
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6102
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6103
      fi
 
6104
      ;;
 
6105
 
 
6106
    solaris* | sysv5*)
 
6107
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6108
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6109
        cat <<EOF 1>&2
 
6110
 
 
6111
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6112
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6113
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6114
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6115
*** your PATH or compiler configuration so that the native linker is
 
6116
*** used, and then restart.
 
6117
 
 
6118
EOF
 
6119
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6120
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6121
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6122
      else
 
6123
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6124
      fi
 
6125
      ;;
 
6126
 
 
6127
    sunos4*)
 
6128
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6129
      wlarc=
 
6130
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6131
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6132
      ;;
 
6133
 
 
6134
  linux*)
 
6135
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6136
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6137
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
 
6138
      supports_anon_versioning=no
 
6139
      case `$LD -v 2>/dev/null` in
 
6140
        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6141
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6142
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6143
        *\ 2.11.*) ;; # other 2.11 versions
 
6144
        *) supports_anon_versioning=yes ;;
 
6145
      esac
 
6146
      if test $supports_anon_versioning = yes; then
 
6147
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
6148
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6149
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
6150
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6151
      else
 
6152
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
 
6153
      fi
 
6154
    else
 
6155
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6156
    fi
 
6157
    ;;
 
6158
 
 
6159
    *)
 
6160
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6161
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6162
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6163
      else
 
6164
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6165
      fi
 
6166
      ;;
 
6167
    esac
 
6168
 
 
6169
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
 
6170
      runpath_var=LD_RUN_PATH
 
6171
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6172
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6173
      # ancient GNU ld didn't support --whole-archive et. al.
 
6174
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6175
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6176
      else
 
6177
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6178
      fi
 
6179
    fi
 
6180
  else
 
6181
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6182
    case $host_os in
 
6183
    aix3*)
 
6184
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6185
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6186
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
6187
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6188
      # are no directories specified by -L.
 
6189
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6190
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
6191
        # Neither direct hardcoding nor static linking is supported with a
 
6192
        # broken collect2.
 
6193
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
6194
      fi
 
6195
      ;;
 
6196
 
 
6197
    aix4* | aix5*)
 
6198
      if test "$host_cpu" = ia64; then
 
6199
        # On IA64, the linker does run time linking by default, so we don't
 
6200
        # have to do anything special.
 
6201
        aix_use_runtimelinking=no
 
6202
        exp_sym_flag='-Bexport'
 
6203
        no_entry_flag=""
 
6204
      else
 
6205
        # If we're using GNU nm, then we don't want the "-C" option.
 
6206
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6207
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6208
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
6209
        else
 
6210
          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
 
6211
        fi
 
6212
        aix_use_runtimelinking=no
 
6213
 
 
6214
        # Test if we are trying to use run time linking or normal
 
6215
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6216
        # need to do runtime linking.
 
6217
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
6218
          for ld_flag in $LDFLAGS; do
 
6219
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6220
            aix_use_runtimelinking=yes
 
6221
            break
 
6222
          fi
 
6223
          done
 
6224
        esac
 
6225
 
 
6226
        exp_sym_flag='-bexport'
 
6227
        no_entry_flag='-bnoentry'
 
6228
      fi
 
6229
 
 
6230
      # When large executables or shared objects are built, AIX ld can
 
6231
      # have problems creating the table of contents.  If linking a library
 
6232
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6233
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6234
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6235
 
 
6236
      _LT_AC_TAGVAR(archive_cmds, $1)=''
 
6237
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6238
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6239
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6240
 
 
6241
      if test "$GCC" = yes; then
 
6242
        case $host_os in aix4.[012]|aix4.[012].*)
 
6243
        # We only want to do this on AIX 4.2 and lower, the check
 
6244
        # below for broken collect2 doesn't work under 4.3+
 
6245
          collect2name=`${CC} -print-prog-name=collect2`
 
6246
          if test -f "$collect2name" && \
 
6247
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6248
          then
 
6249
          # We have reworked collect2
 
6250
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6251
          else
 
6252
          # We have old collect2
 
6253
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
6254
          # It fails to find uninstalled libraries when the uninstalled
 
6255
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6256
          # to unsupported forces relinking
 
6257
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6258
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6259
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
6260
          fi
 
6261
        esac
 
6262
        shared_flag='-shared'
 
6263
      else
 
6264
        # not using gcc
 
6265
        if test "$host_cpu" = ia64; then
 
6266
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6267
        # chokes on -Wl,-G. The following line is correct:
 
6268
          shared_flag='-G'
 
6269
        else
 
6270
        if test "$aix_use_runtimelinking" = yes; then
 
6271
            shared_flag='${wl}-G'
 
6272
          else
 
6273
            shared_flag='${wl}-bM:SRE'
 
6274
        fi
 
6275
        fi
 
6276
      fi
 
6277
 
 
6278
      # It seems that -bexpall does not export symbols beginning with
 
6279
      # underscore (_), so it is better to generate a list of symbols to export.
 
6280
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6281
      if test "$aix_use_runtimelinking" = yes; then
 
6282
        # Warning - without using the other runtime loading flags (-brtl),
 
6283
        # -berok will link without error, but may produce a broken library.
 
6284
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6285
       # Determine the default libpath from the value encoded in an empty executable.
 
6286
       _LT_AC_SYS_LIBPATH_AIX
 
6287
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6288
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6289
       else
 
6290
        if test "$host_cpu" = ia64; then
 
6291
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6292
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6293
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
6294
        else
 
6295
         # Determine the default libpath from the value encoded in an empty executable.
 
6296
         _LT_AC_SYS_LIBPATH_AIX
 
6297
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6298
          # Warning - without using the other run time loading flags,
 
6299
          # -berok will link without error, but may produce a broken library.
 
6300
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6301
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6302
          # -bexpall does not export symbols beginning with underscore (_)
 
6303
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6304
          # Exported symbols can be pulled into shared objects from archives
 
6305
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
6306
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6307
          # This is similar to how AIX traditionally builds it's shared libraries.
 
6308
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
6309
        fi
 
6310
      fi
 
6311
      ;;
 
6312
 
 
6313
    amigaos*)
 
6314
      _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
 
6315
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6316
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6317
      # see comment about different semantics on the GNU ld section
 
6318
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6319
      ;;
 
6320
 
 
6321
    bsdi4*)
 
6322
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
6323
      ;;
 
6324
 
 
6325
    cygwin* | mingw* | pw32*)
 
6326
      # When not using gcc, we currently assume that we are using
 
6327
      # Microsoft Visual C++.
 
6328
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6329
      # no search path for DLLs.
 
6330
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6331
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6332
      # Tell ltmain to make .lib files, not .a files.
 
6333
      libext=lib
 
6334
      # Tell ltmain to make .dll files, not .so files.
 
6335
      shrext=".dll"
 
6336
      # FIXME: Setting linknames here is a bad hack.
 
6337
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6338
      # The linker will automatically build a .lib file if we build a DLL.
 
6339
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
 
6340
      # FIXME: Should let the user specify the lib program.
 
6341
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6342
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6343
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6344
      ;;
 
6345
 
 
6346
    darwin* | rhapsody*)
 
6347
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
 
6348
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6349
      case "$host_os" in
 
6350
      rhapsody* | darwin1.[[012]])
 
6351
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
 
6352
        ;;
 
6353
      *) # Darwin 1.3 on
 
6354
        test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
6355
        ;;
 
6356
      esac
 
6357
      # FIXME: Relying on posixy $() will cause problems for
 
6358
      #        cross-compilation, but unfortunately the echo tests do not
 
6359
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
6360
      #        `"' quotes if we put them in here... so don't!
 
6361
        lt_int_apple_cc_single_mod=no
 
6362
        output_verbose_link_cmd='echo'
 
6363
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
6364
          lt_int_apple_cc_single_mod=yes
 
6365
        fi
 
6366
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
6367
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6368
        else
 
6369
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6370
      fi
 
6371
      _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
6372
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
6373
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
6374
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6375
        else
 
6376
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6377
        fi
 
6378
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6379
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6380
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
6381
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6382
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
 
6383
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6384
    fi  
 
6385
      ;;
 
6386
 
 
6387
    dgux*)
 
6388
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6389
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6390
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6391
      ;;
 
6392
 
 
6393
    freebsd1*)
 
6394
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6395
      ;;
 
6396
 
 
6397
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6398
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6399
    # does not break anything, and helps significantly (at the cost of a little
 
6400
    # extra space).
 
6401
    freebsd2.2*)
 
6402
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6403
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6404
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6405
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6406
      ;;
 
6407
 
 
6408
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6409
    freebsd2*)
 
6410
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6411
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6412
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6413
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6414
      ;;
 
6415
 
 
6416
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6417
    freebsd*)
 
6418
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6419
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6420
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6421
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6422
      ;;
 
6423
 
 
6424
    hpux9*)
 
6425
      if test "$GCC" = yes; then
 
6426
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
6427
      else
 
6428
        _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
6429
      fi
 
6430
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6431
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6432
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6433
 
 
6434
      # hardcode_minus_L: Not really in the search PATH,
 
6435
      # but as the default location of the library.
 
6436
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6437
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6438
      ;;
 
6439
 
 
6440
    hpux10* | hpux11*)
 
6441
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6442
        case "$host_cpu" in
 
6443
        hppa*64*|ia64*)
 
6444
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6445
          ;;
 
6446
        *)
 
6447
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6448
          ;;
 
6449
        esac
 
6450
      else
 
6451
        case "$host_cpu" in
 
6452
        hppa*64*|ia64*)
 
6453
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6454
          ;;
 
6455
        *)
 
6456
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6457
          ;;
 
6458
        esac
 
6459
      fi
 
6460
      if test "$with_gnu_ld" = no; then
 
6461
        case "$host_cpu" in
 
6462
        hppa*64*)
 
6463
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6464
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
6465
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6466
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6467
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6468
          ;;
 
6469
        ia64*)
 
6470
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6471
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6472
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6473
 
 
6474
          # hardcode_minus_L: Not really in the search PATH,
 
6475
          # but as the default location of the library.
 
6476
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6477
          ;;
 
6478
        *)
 
6479
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6480
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6481
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6482
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6483
 
 
6484
          # hardcode_minus_L: Not really in the search PATH,
 
6485
          # but as the default location of the library.
 
6486
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6487
          ;;
 
6488
        esac
 
6489
      fi
 
6490
      ;;
 
6491
 
 
6492
    irix5* | irix6* | nonstopux*)
 
6493
      if test "$GCC" = yes; then
 
6494
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6495
      else
 
6496
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
6497
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
 
6498
      fi
 
6499
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6500
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6501
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6502
      ;;
 
6503
 
 
6504
    netbsd*)
 
6505
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6506
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6507
      else
 
6508
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6509
      fi
 
6510
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6511
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6512
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6513
      ;;
 
6514
 
 
6515
    newsos6)
 
6516
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6517
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6518
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6519
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6520
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6521
      ;;
 
6522
 
 
6523
    openbsd*)
 
6524
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6525
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6526
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6527
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6528
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6529
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6530
      else
 
6531
       case $host_os in
 
6532
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
6533
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6534
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6535
           ;;
 
6536
         *)
 
6537
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6538
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6539
           ;;
 
6540
       esac
 
6541
      fi
 
6542
      ;;
 
6543
 
 
6544
    os2*)
 
6545
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6546
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6547
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6548
      _LT_AC_TAGVAR(archive_cmds, $1)='$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'
 
6549
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6550
      ;;
 
6551
 
 
6552
    osf3*)
 
6553
      if test "$GCC" = yes; then
 
6554
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6555
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6556
      else
 
6557
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6558
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
6559
      fi
 
6560
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6561
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6562
      ;;
 
6563
 
 
6564
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
6565
      if test "$GCC" = yes; then
 
6566
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6567
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6568
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6569
      else
 
6570
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6571
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
6572
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
6573
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
6574
 
 
6575
        # Both c and cxx compiler support -rpath directly
 
6576
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
6577
      fi
 
6578
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6579
      ;;
 
6580
 
 
6581
    sco3.2v5*)
 
6582
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6583
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6584
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6585
      runpath_var=LD_RUN_PATH
 
6586
      hardcode_runpath_var=yes
 
6587
      ;;
 
6588
 
 
6589
    solaris*)
 
6590
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
6591
      if test "$GCC" = yes; then
 
6592
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6593
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6594
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
6595
      else
 
6596
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6597
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6598
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6599
      fi
 
6600
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6601
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6602
      case $host_os in
 
6603
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6604
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6605
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
 
6606
      esac
 
6607
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6608
      ;;
 
6609
 
 
6610
    sunos4*)
 
6611
      if test "x$host_vendor" = xsequent; then
 
6612
        # Use $CC to link under sequent, because it throws in some extra .o
 
6613
        # files that make .init and .fini sections work.
 
6614
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6615
      else
 
6616
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6617
      fi
 
6618
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6619
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6620
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6621
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6622
      ;;
 
6623
 
 
6624
    sysv4)
 
6625
      case $host_vendor in
 
6626
        sni)
 
6627
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6628
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
6629
        ;;
 
6630
        siemens)
 
6631
          ## LD is ld it makes a PLAMLIB
 
6632
          ## CC just makes a GrossModule.
 
6633
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6634
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
6635
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6636
        ;;
 
6637
        motorola)
 
6638
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6639
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
6640
        ;;
 
6641
      esac
 
6642
      runpath_var='LD_RUN_PATH'
 
6643
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6644
      ;;
 
6645
 
 
6646
    sysv4.3*)
 
6647
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6648
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6649
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
6650
      ;;
 
6651
 
 
6652
    sysv4*MP*)
 
6653
      if test -d /usr/nec; then
 
6654
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6655
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6656
        runpath_var=LD_RUN_PATH
 
6657
        hardcode_runpath_var=yes
 
6658
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
6659
      fi
 
6660
      ;;
 
6661
 
 
6662
    sysv4.2uw2*)
 
6663
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6664
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6665
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
6666
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6667
      hardcode_runpath_var=yes
 
6668
      runpath_var=LD_RUN_PATH
 
6669
      ;;
 
6670
 
 
6671
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
 
6672
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
 
6673
      if test "$GCC" = yes; then
 
6674
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6675
      else
 
6676
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6677
      fi
 
6678
      runpath_var='LD_RUN_PATH'
 
6679
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6680
      ;;
 
6681
 
 
6682
    sysv5*)
 
6683
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
 
6684
      # $CC -shared without GNU ld will not create a library from C++
 
6685
      # object files and a static libstdc++, better avoid it by now
 
6686
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6687
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6688
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6689
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6690
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6691
      runpath_var='LD_RUN_PATH'
 
6692
      ;;
 
6693
 
 
6694
    uts4*)
 
6695
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6696
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6697
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6698
      ;;
 
6699
 
 
6700
    *)
 
6701
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6702
      ;;
 
6703
    esac
 
6704
  fi
 
6705
])
 
6706
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
6707
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
6708
 
 
6709
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
6710
if test "$GCC" = yes; then
 
6711
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
6712
fi
 
6713
 
 
6714
#
 
6715
# Do we need to explicitly link libc?
 
6716
#
 
6717
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
 
6718
x|xyes)
 
6719
  # Assume -lc should be added
 
6720
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6721
 
 
6722
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
6723
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
 
6724
    *'~'*)
 
6725
      # FIXME: we may have to deal with multi-command sequences.
 
6726
      ;;
 
6727
    '$CC '*)
 
6728
      # Test whether the compiler implicitly links with -lc since on some
 
6729
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
6730
      # to ld, don't add -lc before -lgcc.
 
6731
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
 
6732
      $rm conftest*
 
6733
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6734
  
 
6735
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 
6736
        soname=conftest
 
6737
        lib=conftest
 
6738
        libobjs=conftest.$ac_objext
 
6739
        deplibs=
 
6740
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
6741
        compiler_flags=-v
 
6742
        linker_flags=-v
 
6743
        verstring=
 
6744
        output_objdir=.
 
6745
        libname=conftest
 
6746
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
6747
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
6748
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
 
6749
        then
 
6750
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6751
        else
 
6752
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6753
        fi
 
6754
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
6755
      else
 
6756
        cat conftest.err 1>&5
 
6757
      fi
 
6758
      $rm conftest*
 
6759
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
 
6760
      ;;
 
6761
    esac
 
6762
  fi
 
6763
  ;;
 
6764
esac
 
6765
])# AC_LIBTOOL_PROG_LD_SHLIBS
 
6766
 
 
6767
 
 
6768
# _LT_AC_FILE_LTDLL_C
 
6769
# -------------------
 
6770
# Be careful that the start marker always follows a newline.
 
6771
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
 
6772
# /* ltdll.c starts here */
 
6773
# #define WIN32_LEAN_AND_MEAN
 
6774
# #include <windows.h>
 
6775
# #undef WIN32_LEAN_AND_MEAN
 
6776
# #include <stdio.h>
 
6777
#
 
6778
# #ifndef __CYGWIN__
 
6779
# #  ifdef __CYGWIN32__
 
6780
# #    define __CYGWIN__ __CYGWIN32__
 
6781
# #  endif
 
6782
# #endif
 
6783
#
 
6784
# #ifdef __cplusplus
 
6785
# extern "C" {
 
6786
# #endif
 
6787
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
6788
# #ifdef __cplusplus
 
6789
# }
 
6790
# #endif
 
6791
#
 
6792
# #ifdef __CYGWIN__
 
6793
# #include <cygwin/cygwin_dll.h>
 
6794
# DECLARE_CYGWIN_DLL( DllMain );
 
6795
# #endif
 
6796
# HINSTANCE __hDllInstance_base;
 
6797
#
 
6798
# BOOL APIENTRY
 
6799
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
6800
# {
 
6801
#   __hDllInstance_base = hInst;
 
6802
#   return TRUE;
 
6803
# }
 
6804
# /* ltdll.c ends here */
 
6805
])# _LT_AC_FILE_LTDLL_C
 
6806
 
 
6807
 
 
6808
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
 
6809
# ---------------------------------
 
6810
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
 
6811
 
4490
6812
 
4491
6813
# old names
4492
6814
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
4500
6822
# This is just to silence aclocal about the macro not being used
4501
6823
ifelse([AC_DISABLE_FAST_INSTALL])
4502
6824
 
 
6825
AC_DEFUN([LT_AC_PROG_GCJ],
 
6826
[AC_CHECK_TOOL(GCJ, gcj, no)
 
6827
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
6828
  AC_SUBST(GCJFLAGS)
 
6829
])
 
6830
 
 
6831
AC_DEFUN([LT_AC_PROG_RC],
 
6832
[AC_CHECK_TOOL(RC, windres, no)
 
6833
])
 
6834
 
4503
6835
# NOTE: This macro has been submitted for inclusion into   #
4504
6836
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
4505
6837
#  a released version of Autoconf we should remove this    #
4513
6845
AC_CACHE_VAL(lt_cv_path_SED,
4514
6846
[# Loop through the user's path and test for sed and gsed.
4515
6847
# Then use that list of sed's as ones to test for truncation.
4516
 
as_executable_p="test -f"
4517
6848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518
6849
for as_dir in $PATH
4519
6850
do
4520
6851
  IFS=$as_save_IFS
4521
6852
  test -z "$as_dir" && as_dir=.
4522
 
  for ac_prog in sed gsed; do
 
6853
  for lt_ac_prog in sed gsed; do
4523
6854
    for ac_exec_ext in '' $ac_executable_extensions; do
4524
 
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4525
 
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
 
6855
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
6856
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4526
6857
      fi
4527
6858
    done
4528
6859
  done
4529
6860
done
4530
 
 
4531
 
  # Create a temporary directory, and hook for its removal unless debugging.
4532
 
$debug ||
4533
 
{
4534
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4535
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
4536
 
}
4537
 
 
4538
 
# Create a (secure) tmp directory for tmp files.
4539
 
: ${TMPDIR=/tmp}
4540
 
{
4541
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4542
 
  test -n "$tmp" && test -d "$tmp"
4543
 
}  ||
4544
 
{
4545
 
  tmp=$TMPDIR/sed$$-$RANDOM
4546
 
  (umask 077 && mkdir $tmp)
4547
 
} ||
4548
 
{
4549
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4550
 
   { (exit 1); exit 1; }
4551
 
}
4552
 
  _max=0
4553
 
  _count=0
4554
 
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4555
 
  # along with /bin/sed that truncates output.
4556
 
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
4557
 
    test ! -f ${_sed} && break
4558
 
    cat /dev/null > "$tmp/sed.in"
4559
 
    _count=0
4560
 
    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4561
 
    # Check for GNU sed and select it if it is found.
4562
 
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4563
 
      lt_cv_path_SED=${_sed}
4564
 
      break
 
6861
lt_ac_max=0
 
6862
lt_ac_count=0
 
6863
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
6864
# along with /bin/sed that truncates output.
 
6865
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
6866
  test ! -f $lt_ac_sed && break
 
6867
  cat /dev/null > conftest.in
 
6868
  lt_ac_count=0
 
6869
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
6870
  # Check for GNU sed and select it if it is found.
 
6871
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
6872
    lt_cv_path_SED=$lt_ac_sed
 
6873
    break
 
6874
  fi
 
6875
  while true; do
 
6876
    cat conftest.in conftest.in >conftest.tmp
 
6877
    mv conftest.tmp conftest.in
 
6878
    cp conftest.in conftest.nl
 
6879
    echo >>conftest.nl
 
6880
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
6881
    cmp -s conftest.out conftest.nl || break
 
6882
    # 10000 chars as input seems more than enough
 
6883
    test $lt_ac_count -gt 10 && break
 
6884
    lt_ac_count=`expr $lt_ac_count + 1`
 
6885
    if test $lt_ac_count -gt $lt_ac_max; then
 
6886
      lt_ac_max=$lt_ac_count
 
6887
      lt_cv_path_SED=$lt_ac_sed
4565
6888
    fi
4566
 
    while true; do
4567
 
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4568
 
      mv "$tmp/sed.tmp" "$tmp/sed.in"
4569
 
      cp "$tmp/sed.in" "$tmp/sed.nl"
4570
 
      echo >>"$tmp/sed.nl"
4571
 
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4572
 
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4573
 
      # 40000 chars as input seems more than enough
4574
 
      test $_count -gt 10 && break
4575
 
      _count=`expr $_count + 1`
4576
 
      if test $_count -gt $_max; then
4577
 
        _max=$_count
4578
 
        lt_cv_path_SED=$_sed
4579
 
      fi
4580
 
    done
4581
6889
  done
4582
 
  rm -rf "$tmp"
 
6890
done
 
6891
SED=$lt_cv_path_SED
4583
6892
])
4584
 
if test "X$SED" != "X"; then
4585
 
  lt_cv_path_SED=$SED
4586
 
else
4587
 
  SED=$lt_cv_path_SED
4588
 
fi
4589
6893
AC_MSG_RESULT([$SED])
4590
6894
])
4591
6895
 
4654
6958
dnl  you should install foo.schemas files
4655
6959
dnl
4656
6960
 
4657
 
AC_DEFUN(AM_GCONF_SOURCE_2,
 
6961
AC_DEFUN([AM_GCONF_SOURCE_2],
4658
6962
[
4659
6963
  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
4660
6964
    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
4669
6973
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
4670
6974
 
4671
6975
  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
4672
 
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas/'
4673
 
  else
4674
 
    GCONF_SCHEMA_FILE_DIR=$GCONF_SCHEMA_FILE_DIR
 
6976
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
4675
6977
  fi
4676
6978
 
4677
6979
  AC_ARG_WITH(gconf-schema-file-dir,