/[m4]/m4/gnulib/acm4/libtool.m4
ViewVC logotype

Diff of /m4/gnulib/acm4/libtool.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by gary, Tue Oct 7 14:10:10 2003 UTC revision 1.2 by gary, Thu Nov 13 12:05:57 2003 UTC
# Line 1  Line 1 
1  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2  ## Copyright 1996, 1997, 1998, 1999, 2000, 2001  ## Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003
3  ## Free Software Foundation, Inc.  ## Free Software Foundation, Inc.
4  ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996  ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5  ##  ##
# Line 22  Line 22 
22  ## configuration script generated by Autoconf, you may include it under  ## configuration script generated by Autoconf, you may include it under
23  ## the same distribution terms that you use for the rest of that program.  ## the same distribution terms that you use for the rest of that program.
24    
25  # serial 48 AC_PROG_LIBTOOL  # serial 49 AC_PROG_LIBTOOL
26    
27    
28  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
# Line 39  m4_ifdef([AC_PROVIDE_IFELSE], Line 39  m4_ifdef([AC_PROVIDE_IFELSE],
39  # ---------------  # ---------------
40  AC_DEFUN([AC_PROG_LIBTOOL],  AC_DEFUN([AC_PROG_LIBTOOL],
41  [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl  [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
42  dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX  ]) # AC_PROG_LIBTOOL
 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.  
   AC_PROVIDE_IFELSE([AC_PROG_CXX],  
     [AC_LIBTOOL_CXX],  
     [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX  
   ])])  
 dnl And a similar setup for Fortran 77 support  
   AC_PROVIDE_IFELSE([AC_PROG_F77],  
     [AC_LIBTOOL_F77],  
     [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77  
 ])])  
   
 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.  
 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run  
 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.  
   AC_PROVIDE_IFELSE([AC_PROG_GCJ],  
     [AC_LIBTOOL_GCJ],  
     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],  
       [AC_LIBTOOL_GCJ],  
       [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],  
         [AC_LIBTOOL_GCJ],  
       [ifdef([AC_PROG_GCJ],  
              [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])  
        ifdef([A][M_PROG_GCJ],  
              [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])  
        ifdef([LT_AC_PROG_GCJ],  
              [define([LT_AC_PROG_GCJ],  
                 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])  
 ])])# AC_PROG_LIBTOOL  
43    
44    
45  # _AC_PROG_LIBTOOL  # _AC_PROG_LIBTOOL
# Line 79  AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl Line 51  AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
51  AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl  AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
52    
53  # This can be used to rebuild libtool when needed  # This can be used to rebuild libtool when needed
54  LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"  for LIBTOOL_DEPS in "$ac_aux_dir/ltmain.sh" "config/ltmain.sh" "./ltmain.sh"
55    do
56      test -f "$LIBTOOL_DEPS" && break
57    done
58    
59  # Always use our own libtool.  # Always use our own libtool.
60  LIBTOOL='$(SHELL) $(top_builddir)/libtool'  LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Line 94  define([AC_PROG_LIBTOOL], []) Line 69  define([AC_PROG_LIBTOOL], [])
69  # ----------------  # ----------------
70  AC_DEFUN([AC_LIBTOOL_SETUP],  AC_DEFUN([AC_LIBTOOL_SETUP],
71  [AC_PREREQ(2.56)dnl We use the new compiler based header checking in 2.56  [AC_PREREQ(2.56)dnl We use the new compiler based header checking in 2.56
 AC_REQUIRE([AC_ENABLE_SHARED])dnl  
 AC_REQUIRE([AC_ENABLE_STATIC])dnl  
 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl  
72  AC_REQUIRE([AC_CANONICAL_HOST])dnl  AC_REQUIRE([AC_CANONICAL_HOST])dnl
73  AC_REQUIRE([AC_CANONICAL_BUILD])dnl  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
74  AC_REQUIRE([AC_PROG_CC])dnl  AC_REQUIRE([AC_PROG_CC])dnl
# Line 111  AC_REQUIRE([AC_OBJEXT])dnl Line 83  AC_REQUIRE([AC_OBJEXT])dnl
83  AC_REQUIRE([AC_EXEEXT])dnl  AC_REQUIRE([AC_EXEEXT])dnl
84  dnl  dnl
85    
86    AC_ENABLE_SHARED
87    AC_ENABLE_STATIC
88    AC_ENABLE_FAST_INSTALL
89  AC_LIBTOOL_SYS_MAX_CMD_LEN  AC_LIBTOOL_SYS_MAX_CMD_LEN
90  AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE  AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
91  AC_LIBTOOL_OBJDIR  AC_LIBTOOL_OBJDIR
# Line 142  Xsed='sed -e s/^X//' Line 117  Xsed='sed -e s/^X//'
117  # double_quote_subst'ed string.  # double_quote_subst'ed string.
118  delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'  delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
119    
120    # Sed substitution to delay expansion of an escaped single quote.
121    delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
122    
123  # Sed substitution to avoid accidental globbing in evaled expressions  # Sed substitution to avoid accidental globbing in evaled expressions
124  no_glob_subst='s/\*/\\\*/g'  no_glob_subst='s/\*/\\\*/g'
125    
# Line 150  rm="rm -f" Line 128  rm="rm -f"
128    
129  # Global variables:  # Global variables:
130  default_ofile=libtool  default_ofile=libtool
131    ofile="$default_ofile"
132  can_build_shared=yes  can_build_shared=yes
133    
134  # All known linkers require a `.a' archive for static linking (except M$VC,  # All known linkers require a `.a' archive for static linking (except M$VC,
135  # which needs '.lib').  # which needs '.lib').
136  libext=a  libext=a
137  ltmain="$ac_aux_dir/ltmain.sh"  
 ofile="$default_ofile"  
138  with_gnu_ld="$lt_cv_prog_gnu_ld"  with_gnu_ld="$lt_cv_prog_gnu_ld"
139    
140    
141  AC_CHECK_TOOL(AR, ar, false)  AC_CHECK_TOOL(AR, ar, false)
142  AC_CHECK_TOOL(RANLIB, ranlib, :)  AC_CHECK_TOOL(RANLIB, ranlib, :)
143  AC_CHECK_TOOL(STRIP, strip, :)  AC_CHECK_TOOL(STRIP, strip, :)
# Line 226  AC_ARG_WITH([pic], Line 205  AC_ARG_WITH([pic],
205  test -z "$pic_mode" && pic_mode=default  test -z "$pic_mode" && pic_mode=default
206    
207  # Use C for the default configuration in the libtool script  # Use C for the default configuration in the libtool script
 tagname=  
208  AC_LIBTOOL_LANG_C_CONFIG  AC_LIBTOOL_LANG_C_CONFIG
209  _LT_AC_TAGCONFIG  _LT_AC_TAG_CONFIG
210    dnl _LT_CONFIG_COMMANDS
211  ])# AC_LIBTOOL_SETUP  ])# AC_LIBTOOL_SETUP
212    
213    
214    
215    
216    ## ------------------------------------- ##
217    ## Accumulate code for creating libtool. ##
218    ## ------------------------------------- ##
219    
220    # So that we can recreate a full libtool script including additional
221    # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
222    # in macros and then make a single call at the end using the `libtool'
223    # label.
224    
225    # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
226    # ----------------------------------------
227    # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
228    m4_define([_LT_CONFIG_LIBTOOL_INIT],
229    [m4_ifval([$1],
230              [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
231                         [$1
232    ])])])
233    
234    # Initialize.
235    m4_define([_LT_OUTPUT_LIBTOOL_INIT])
236    
237    # _LT_CONFIG_LIBTOOL([COMMANDS])
238    # ------------------------------
239    # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
240    m4_define([_LT_CONFIG_LIBTOOL],
241    [m4_ifval([$1],
242              [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
243                         [$1
244    ])])])
245    
246    # Initialize.
247    m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
248    
249    # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
250    # ---------------------------------------------------
251    m4_define([_LT_CONFIG_SAVE_COMMANDS],
252    [_LT_CONFIG_LIBTOOL([$1])
253    _LT_CONFIG_LIBTOOL_INIT([$2])
254    ])
255    
256    # _LT_CONFIG_COMMANDS
257    # -------------------
258    # Send accumulated output to $CONFIG_STATUS.
259    m4_define([_LT_CONFIG_COMMANDS],
260    [AC_CONFIG_COMMANDS([libtool-bogus],
261        [_LT_OUTPUT_LIBTOOL_COMMANDS],  [_LT_OUTPUT_LIBTOOL_INIT])
262    ])
263    
264    
265    
266  # _LT_AC_SYS_COMPILER  # _LT_AC_SYS_COMPILER
267  # -------------------  # -------------------
268  AC_DEFUN([_LT_AC_SYS_COMPILER],  AC_DEFUN([_LT_AC_SYS_COMPILER],
# Line 253  compiler=$CC Line 284  compiler=$CC
284  # the location of the communication and MPI libs are included too.  # the location of the communication and MPI libs are included too.
285  # If we don't find anything, use the default library path according  # If we don't find anything, use the default library path according
286  # to the aix ld manual.  # to the aix ld manual.
287  AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],  m4_define([_LT_AC_SYS_LIBPATH_AIX],
288  [AC_LINK_IFELSE(AC_LANG_PROGRAM,[  [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
289  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
290  }'`  }'`
# Line 266  if test -z "$aix_libpath"; then aix_libp Line 297  if test -z "$aix_libpath"; then aix_libp
297    
298  # _LT_AC_SHELL_INIT(ARG)  # _LT_AC_SHELL_INIT(ARG)
299  # ----------------------  # ----------------------
300  AC_DEFUN([_LT_AC_SHELL_INIT],  m4_define([_LT_AC_SHELL_INIT],
301  [ifdef([AC_DIVERSION_NOTICE],  [ifdef([AC_DIVERSION_NOTICE],
302               [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],               [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
303           [AC_DIVERT_PUSH(NOTICE)])           [AC_DIVERT_PUSH(NOTICE)])
# Line 279  AC_DIVERT_POP Line 310  AC_DIVERT_POP
310  # --------------------------  # --------------------------
311  # Add some code to the start of the generated configure script which  # Add some code to the start of the generated configure script which
312  # will find an echo command which doesn't interpret backslashes.  # will find an echo command which doesn't interpret backslashes.
313  AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],  m4_define([_LT_AC_PROG_ECHO_BACKSLASH],
314  [_LT_AC_SHELL_INIT([  [_LT_AC_SHELL_INIT([
315  # Check that we are running under the correct shell.  # Check that we are running under the correct shell.
316  SHELL=${CONFIG_SHELL-/bin/sh}  SHELL=${CONFIG_SHELL-/bin/sh}
# Line 309  fi Line 340  fi
340  if test "X[$]1" = X--fallback-echo; then  if test "X[$]1" = X--fallback-echo; then
341    # used as fallback echo    # used as fallback echo
342    shift    shift
343    cat <<EOF    cat <<_LT_EOF
344  [$]*  [$]*
345  EOF  _LT_EOF
346    exit 0    exit 0
347  fi  fi
348    
# Line 567  AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], Line 598  AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
598  [AC_REQUIRE([LT_AC_PROG_SED])  [AC_REQUIRE([LT_AC_PROG_SED])
599  AC_CACHE_CHECK([$1], [$2],  AC_CACHE_CHECK([$1], [$2],
600    [$2=no    [$2=no
601    ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])    m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
602     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     printf "$lt_simple_compile_test_code" > conftest.$ac_ext
603     lt_compiler_flag="$3"     lt_compiler_flag="$3"
604     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
# Line 595  AC_CACHE_CHECK([$1], [$2], Line 626  AC_CACHE_CHECK([$1], [$2],
626  ])  ])
627    
628  if test x"[$]$2" = xyes; then  if test x"[$]$2" = xyes; then
629      ifelse([$5], , :, [$5])      m4_if([$5], , :, [$5])
630  else  else
631      ifelse([$6], , :, [$6])      m4_if([$6], , :, [$6])
632  fi  fi
633  ])# AC_LIBTOOL_COMPILER_OPTION  ])# AC_LIBTOOL_COMPILER_OPTION
634    
# Line 606  fi Line 637  fi
637  #                          [ACTION-SUCCESS], [ACTION-FAILURE])  #                          [ACTION-SUCCESS], [ACTION-FAILURE])
638  # ------------------------------------------------------------  # ------------------------------------------------------------
639  # Check whether the given compiler option works  # Check whether the given compiler option works
640  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],  m4_define([AC_LIBTOOL_LINKER_OPTION],
641  [AC_CACHE_CHECK([$1], [$2],  [AC_CACHE_CHECK([$1], [$2],
642    [$2=no    [$2=no
643     save_LDFLAGS="$LDFLAGS"     save_LDFLAGS="$LDFLAGS"
# Line 627  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], Line 658  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
658  ])  ])
659    
660  if test x"[$]$2" = xyes; then  if test x"[$]$2" = xyes; then
661      ifelse([$4], , :, [$4])      m4_if([$4], , :, [$4])
662  else  else
663      ifelse([$5], , :, [$5])      m4_if([$5], , :, [$5])
664  fi  fi
665  ])# AC_LIBTOOL_LINKER_OPTION  ])# AC_LIBTOOL_LINKER_OPTION
666    
# Line 677  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d Line 708  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
708      ;;      ;;
709    
710   *)   *)
711        # Make testring a little bigger before we do anything with it.
712        # a 1K string should be a reasonable start.
713        for i in 1 2 3 4 5 6 7 8 ; do
714          testring=$testring$testring
715        done
716      # If test is not a shell built-in, we'll probably end up computing a      # If test is not a shell built-in, we'll probably end up computing a
717      # maximum length that is only half of the actual maximum length, but      # maximum length that is only half of the actual maximum length, but
718      # we can't tell.      # we can't tell.
719      while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \      while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring$testring" 2>/dev/null` \
720                 = "XX$testring") >/dev/null 2>&1 &&                 = "XX$testring$testring") >/dev/null 2>&1 &&
             new_result=`expr "X$testring" : ".*" 2>&1` &&  
             lt_cv_sys_max_cmd_len=$new_result &&  
721              test $i != 17 # 1/2 MB should be enough              test $i != 17 # 1/2 MB should be enough
722      do      do
723        i=`expr $i + 1`        i=`expr $i + 1`
724        testring=$testring$testring        testring=$testring$testring
725      done      done
726        # Only check the string length outside the loop.
727        lt_cv_sys_max_cmd_len=`expr "X$testring" : ".*" 2>&1`
728      testring=      testring=
729      # Add a significant safety factor because C++ compilers can tack on massive      # Add a significant safety factor because C++ compilers can tack on massive
730      # amounts of additional arguments before passing them to the linker.      # amounts of additional arguments before passing them to the linker.
# Line 722  if test "$cross_compiling" = yes; then : Line 758  if test "$cross_compiling" = yes; then :
758  else  else
759    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
760    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
761    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<_LT_EOF
762  [#line __oline__ "configure"  [#line __oline__ "configure"
763  #include "confdefs.h"  #include "confdefs.h"
764    
# Line 783  int main () Line 819  int main ()
819    
820      exit (status);      exit (status);
821  }]  }]
822  EOF  _LT_EOF
823    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
824      (./conftest; exit; ) 2>/dev/null      (./conftest; exit; ) 2>/dev/null
825      lt_status=$?      lt_status=$?
# Line 1178  aix4* | aix5*) Line 1214  aix4* | aix5*)
1214    ;;    ;;
1215    
1216  amigaos*)  amigaos*)
1217    library_names_spec='$libname.ixlibrary $libname.a'    if test "$host_cpu" = m68k; then
1218    # Create ${libname}_ixlibrary.a entries in /sys/libs.      library_names_spec='$libname.ixlibrary $libname.a'
1219    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'      # Create ${libname}_ixlibrary.a entries in /sys/libs.
1220        finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1221      else
1222        dynamic_linker=no
1223      fi
1224    ;;    ;;
1225    
1226  beos*)  beos*)
# Line 1626  test "$dynamic_linker" = no && can_build Line 1666  test "$dynamic_linker" = no && can_build
1666  ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER  ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1667    
1668    
1669  # _LT_AC_TAGCONFIG  # AC_LIBTOOL_TAGS
1670  # ----------------  # ---------------
1671  AC_DEFUN([_LT_AC_TAGCONFIG],  # tags to enable
1672  [AC_ARG_WITH([tags],  AC_DEFUN([AC_LIBTOOL_TAGS],
1673      [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],  [m4_define([_LT_TAGS],[$1])
1674          [include additional configurations @<:@automatic@:>@])],  ]) # AC_LIBTOOL_TAGS
     [tagnames="$withval"])  
   
 if test -f "$ltmain" && test -n "$tagnames"; then  
   if test ! -f "${ofile}"; then  
     AC_MSG_WARN([output file `$ofile' does not exist])  
   fi  
   
   if test -z "$LTCC"; then  
     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"  
     if test -z "$LTCC"; then  
       AC_MSG_WARN([output file `$ofile' does not look like a libtool script])  
     else  
       AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])  
     fi  
   fi  
   
   # Extract list of available tagged configurations in $ofile.  
   # Note that this assumes the entire list is on one line.  
   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`  
   
   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"  
   for tagname in $tagnames; do  
     IFS="$lt_save_ifs"  
     # Check whether tagname contains only valid characters  
     case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in  
     "") ;;  
     *)  AC_MSG_ERROR([invalid tag name: $tagname])  
         ;;  
     esac  
   
     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null  
     then  
       AC_MSG_ERROR([tag name \"$tagname\" already exists])  
     fi  
   
     # Update the list of available tags.  
     if test -n "$tagname"; then  
       echo appending configuration tag \"$tagname\" to $ofile  
   
       case $tagname in  
       CXX)  
         if test -n "$CXX" && test "X$CXX" != "Xno"; then  
           AC_LIBTOOL_LANG_CXX_CONFIG  
         else  
           tagname=""  
         fi  
         ;;  
   
       F77)  
         if test -n "$F77" && test "X$F77" != "Xno"; then  
           AC_LIBTOOL_LANG_F77_CONFIG  
         else  
           tagname=""  
         fi  
         ;;  
1675    
1676        GCJ)  # _LT_AC_TAG_CHECK
1677          if test -n "$GCJ" && test "X$GCJ" != "Xno"; then  # ----------------
1678            AC_LIBTOOL_LANG_GCJ_CONFIG  m4_define([_LT_AC_TAG_CHECK],
1679          else  [m4_ifdef([_LT_TAG_]$1,
1680            tagname=""    [m4_errprintn(m4_location[: error: duplicate tag: ]"$1")
1681          fi    m4_exit(1)],
1682          ;;    [m4_define([_LT_TAG_]$1, [])])
1683    ]) # _LT_AC_TAG_CHECK
1684    
1685        RC)  # _LT_AC_TAG_CONFIG
1686          AC_LIBTOOL_LANG_RC_CONFIG  # -----------------
1687          ;;  m4_define([_LT_AC_TAG_CONFIG],
1688    [AC_PROVIDE_IFELSE([AC_LIBTOOL_TAGS], [], [
1689      AC_LIBTOOL_TAGS([CXX F77 GCJ RC])])dnl
1690      available_tags=""
1691      AC_FOREACH([_LT_TAG], _LT_TAGS,
1692          [m4_case(_LT_TAG,
1693          [CXX], [_LT_AC_TAG_CHECK([CXX])
1694      if test -n "$CXX" && test "X$CXX" != "Xno"; then
1695          AC_LIBTOOL_LANG_CXX_CONFIG
1696          available_tags="$available_tags _LT_TAG"
1697      fi],
1698          [F77], [_LT_AC_TAG_CHECK(_LT_TAG)
1699      if test -n "$F77" && test "X$F77" != "Xno"; then
1700          AC_LIBTOOL_LANG_F77_CONFIG
1701          available_tags="$available_tags _LT_TAG"
1702      fi],
1703          [GCJ], [_LT_AC_TAG_CHECK(_LT_TAG)
1704      if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1705          AC_LIBTOOL_LANG_GCJ_CONFIG
1706          available_tags="$available_tags _LT_TAG"
1707      fi],
1708          [RC], [_LT_AC_TAG_CHECK(_LT_TAG)
1709      if test -n "$RC" && test "X$RC" != "Xno"; then
1710          AC_LIBTOOL_LANG_RC_CONFIG
1711          available_tags="$available_tags _LT_TAG"
1712      fi],
1713          [m4_errprintn(m4_location[: error: invalid tag name: ]"_LT_TAG")
1714          m4_exit(1)])
1715      ])
1716    
1717        *)    AC_CONFIG_COMMANDS([libtool-tags], [
1718          AC_MSG_ERROR([Unsupported tag name: $tagname])      for ltmain in "$ac_aux_dir/ltmain.sh" "config/ltmain.sh" "./ltmain.sh"
1719          ;;      do
1720        esac        test -f "$ltmain" && break
1721        done
1722        if test -f "$ltmain"; then
1723          if test ! -f "${ofile}"; then
1724            AC_MSG_ERROR([output file `$ofile' does not exist])
1725          fi
1726          if test -z "$LTCC"; then
1727            eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1728            if test -z "$LTCC"; then
1729              AC_MSG_ERROR([output file `$ofile' does not look like a libtool script])
1730            else
1731              AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1732            fi
1733          fi
1734    
1735        # Append the new tag name to the list of available tags.        # Now substitute the updated list of available tags.
1736        if test -n "$tagname" ; then        if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1737        available_tags="$available_tags $tagname"          mv "${ofile}T" "$ofile"
1738      fi          chmod +x "$ofile"
1739          else
1740            rm -f "${ofile}T"
1741            AC_MSG_ERROR([unable to update list of available tagged configurations.])
1742          fi
1743      fi      fi
1744    done    ], [
1745    IFS="$lt_save_ifs"      libtool='$ofile'
1746        available_tags='$available_tags'
1747    # Now substitute the updated list of available tags.    ])dnl
1748    if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then  ])# _LT_AC_TAG_CONFIG
     mv "${ofile}T" "$ofile"  
     chmod +x "$ofile"  
   else  
     rm -f "${ofile}T"  
     AC_MSG_ERROR([unable to update list of available tagged configurations.])  
   fi  
 fi  
 ])# _LT_AC_TAGCONFIG  
1749    
1750    
1751  # AC_LIBTOOL_DLOPEN  # AC_LIBTOOL_DLOPEN
# Line 1746  AC_DEFUN([AC_LIBTOOL_WIN32_DLL], Line 1769  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1769  # implement the --enable-shared flag  # implement the --enable-shared flag
1770  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1771  AC_DEFUN([AC_ENABLE_SHARED],  AC_DEFUN([AC_ENABLE_SHARED],
1772  [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl  [m4_define([AC_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
1773  AC_ARG_ENABLE([shared],  AC_ARG_ENABLE([shared],
1774      [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],      [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1775          [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],          [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
# Line 1785  AC_ENABLE_SHARED(no) Line 1808  AC_ENABLE_SHARED(no)
1808  # implement the --enable-static flag  # implement the --enable-static flag
1809  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1810  AC_DEFUN([AC_ENABLE_STATIC],  AC_DEFUN([AC_ENABLE_STATIC],
1811  [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl  [m4_define([AC_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
1812  AC_ARG_ENABLE([static],  AC_ARG_ENABLE([static],
1813      [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],      [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1814          [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],          [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
# Line 1824  AC_ENABLE_STATIC(no) Line 1847  AC_ENABLE_STATIC(no)
1847  # implement the --enable-fast-install flag  # implement the --enable-fast-install flag
1848  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.  # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1849  AC_DEFUN([AC_ENABLE_FAST_INSTALL],  AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1850  [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl  [m4_define([AC_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
1851  AC_ARG_ENABLE([fast-install],  AC_ARG_ENABLE([fast-install],
1852      [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],      [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1853      [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],      [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
# Line 1864  AC_ENABLE_FAST_INSTALL(no) Line 1887  AC_ENABLE_FAST_INSTALL(no)
1887  # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.  # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
1888  AC_DEFUN([AC_LIBTOOL_PICMODE],  AC_DEFUN([AC_LIBTOOL_PICMODE],
1889  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1890  pic_mode=ifelse($#,1,$1,default)  pic_mode=m4_if($#, 1, $1, default)
1891  ])# AC_LIBTOOL_PICMODE  ])# AC_LIBTOOL_PICMODE
1892    
1893    
# Line 1885  AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, Line 1908  AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
1908  dnl $ac_dummy forces splitting on constant user-supplied paths.  dnl $ac_dummy forces splitting on constant user-supplied paths.
1909  dnl POSIX.2 word splitting is done only on the output of word expansions,  dnl POSIX.2 word splitting is done only on the output of word expansions,
1910  dnl not every word.  This closes a longstanding sh security hole.  dnl not every word.  This closes a longstanding sh security hole.
1911    ac_dummy="ifelse([$2], , $PATH, [$2])"    ac_dummy="m4_if([$2], , $PATH, [$2])"
1912    for ac_dir in $ac_dummy; do    for ac_dir in $ac_dummy; do
1913      IFS="$lt_save_ifs"      IFS="$lt_save_ifs"
1914      test -z "$ac_dir" && ac_dir=.      test -z "$ac_dir" && ac_dir=.
# Line 1900  dnl not every word.  This closes a longs Line 1923  dnl not every word.  This closes a longs
1923              $EGREP "$file_magic_regex" > /dev/null; then              $EGREP "$file_magic_regex" > /dev/null; then
1924              :              :
1925            else            else
1926              cat <<EOF 1>&2              cat <<_LT_EOF 1>&2
1927    
1928  *** Warning: the command libtool uses to detect shared libraries,  *** Warning: the command libtool uses to detect shared libraries,
1929  *** $file_magic_cmd, produces output that libtool cannot recognize.  *** $file_magic_cmd, produces output that libtool cannot recognize.
# Line 1911  dnl not every word.  This closes a longs Line 1934  dnl not every word.  This closes a longs
1934  *** may want to report the problem to your system manager and/or to  *** may want to report the problem to your system manager and/or to
1935  *** bug-libtool@gnu.org  *** bug-libtool@gnu.org
1936    
1937  EOF  _LT_EOF
1938            fi ;;            fi ;;
1939          esac          esac
1940        fi        fi
# Line 2102  bsdi4*) Line 2125  bsdi4*)
2125    lt_cv_file_magic_test_file=/shlib/libc.so    lt_cv_file_magic_test_file=/shlib/libc.so
2126    ;;    ;;
2127    
2128  cygwin* | mingw* | pw32*)  cygwin*)
2129    # win32_libid is a shell function defined in ltmain.sh    # win32_libid is a shell function defined in ltmain.sh
2130    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2131    lt_cv_file_magic_cmd='win32_libid'    lt_cv_file_magic_cmd='win32_libid'
2132    ;;    ;;
2133    
2134      # Base MSYS/MinGW do not provide the 'file' command needed by
2135      # win32_libid shell function, so use a weaker test based on 'objdump'.
2136    mingw* | pw32*)
2137      lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2138      lt_cv_file_magic_cmd='$OBJDUMP -f'
2139      ;;
2140    
2141  darwin* | rhapsody*)  darwin* | rhapsody*)
   # this will be overwritten by pass_all, but leave it in just in case  
   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'  
   lt_cv_file_magic_cmd='/usr/bin/file -L'  
   case "$host_os" in  
   rhapsody* | darwin1.[[012]])  
     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`  
     ;;  
   *) # Darwin 1.3 on  
     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'  
     ;;  
   esac  
2142    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
2143    ;;    ;;
2144    
# Line 2162  hpux10.20* | hpux11*) Line 2181  hpux10.20* | hpux11*)
2181    ;;    ;;
2182    
2183  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
2184    case $host_os in    case $LD in
2185    irix5* | nonstopux*)    *-32|*"-32 ") libmagic=32-bit;;
2186      # this will be overridden with pass_all, but let us keep it just in case    *-n32|*"-n32 ") libmagic=N32;;
2187      lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"    *-64|*"-64 ") libmagic=64-bit;;
2188      ;;    *) libmagic=never-match;;
   *)  
     case $LD in  
     *-32|*"-32 ") libmagic=32-bit;;  
     *-n32|*"-n32 ") libmagic=N32;;  
     *-64|*"-64 ") libmagic=64-bit;;  
     *) libmagic=never-match;;  
     esac  
     # this will be overridden with pass_all, but let us keep it just in case  
     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"  
     ;;  
2189    esac    esac
   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`  
2190    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
2191    ;;    ;;
2192    
# Line 2196  linux*) Line 2204  linux*)
2204    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
2205    ;;    ;;
2206    
2207  netbsd*)  netbsd* | knetbsd*-gnu)
2208    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2209      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2210    else    else
# Line 2225  openbsd*) Line 2233  openbsd*)
2233    ;;    ;;
2234    
2235  osf3* | osf4* | osf5*)  osf3* | osf4* | osf5*)
   # this will be overridden with pass_all, but let us keep it just in case  
   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'  
   lt_cv_file_magic_test_file=/shlib/libc.so  
2236    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
2237    ;;    ;;
2238    
# Line 2237  sco3.2v5*) Line 2242  sco3.2v5*)
2242    
2243  solaris*)  solaris*)
2244    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
   lt_cv_file_magic_test_file=/lib/libc.so  
2245    ;;    ;;
2246    
2247  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
# Line 2359  AC_DEFUN([AC_LIBLTDL_CONVENIENCE], Line 2363  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2363    "") enable_ltdl_convenience=yes    "") enable_ltdl_convenience=yes
2364        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;        ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2365    esac    esac
2366    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la    LIBLTDL='${top_builddir}/'m4_if($#, 1,[$1], ['libltdl'])/libltdlc.la
2367    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])    LTDLINCL='-I${top_srcdir}/'m4_if($#, 1, [$1], ['libltdl'])
2368    # For backwards non-gettext consistent compatibility...    # For backwards non-gettext consistent compatibility...
2369    INCLTDL="$LTDLINCL"    INCLTDL="$LTDLINCL"
2370  ])# AC_LIBLTDL_CONVENIENCE  ])# AC_LIBLTDL_CONVENIENCE
# Line 2390  AC_DEFUN([AC_LIBLTDL_INSTALLABLE], Line 2394  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2394    ])    ])
2395    if test x"$enable_ltdl_install" = x"yes"; then    if test x"$enable_ltdl_install" = x"yes"; then
2396      ac_configure_args="$ac_configure_args --enable-ltdl-install"      ac_configure_args="$ac_configure_args --enable-ltdl-install"
2397      LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la      LIBLTDL='${top_builddir}/'m4_if($#, 1, [$1], ['libltdl'])/libltdl.la
2398      LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])      LTDLINCL='-I${top_srcdir}/'m4_if($#, 1, [$1], ['libltdl'])
2399    else    else
2400      ac_configure_args="$ac_configure_args --enable-ltdl-install=no"      ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2401      LIBLTDL="-lltdl"      LIBLTDL="-lltdl"
# Line 2471  _LT_AC_SHELL_INIT([tagnames=${tagnames+$ Line 2475  _LT_AC_SHELL_INIT([tagnames=${tagnames+$
2475  # suitably defined.  Those variables are subsequently used by  # suitably defined.  Those variables are subsequently used by
2476  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2477  AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])  AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2478  AC_DEFUN([_LT_AC_LANG_C_CONFIG],  m4_define([_LT_AC_LANG_C_CONFIG],
2479  [lt_save_CC="$CC"  [lt_save_CC="$CC"
2480  AC_LANG_PUSH(C)  AC_LANG_PUSH(C)
2481    
# Line 2489  lt_simple_compile_test_code="int some_va Line 2493  lt_simple_compile_test_code="int some_va
2493  lt_simple_link_test_code='int main(){return(0);}\n'  lt_simple_link_test_code='int main(){return(0);}\n'
2494    
2495  _LT_AC_SYS_COMPILER  _LT_AC_SYS_COMPILER
2496    # Save the default compiler, since it gets overwritten when the other
2497    # tags are being tested, and _LT_AC_TAGVAR(compiler, []) is a NOP.
2498    compiler_DEFAULT=$CC
2499    
2500  #  #
2501  # Check for any special shared library compilation flags.  # Check for any special shared library compilation flags.
# Line 2535  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) Line 2542  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2542  AC_LIBTOOL_SYS_LIB_STRIP  AC_LIBTOOL_SYS_LIB_STRIP
2543  AC_LIBTOOL_DLOPEN_SELF($1)  AC_LIBTOOL_DLOPEN_SELF($1)
2544    
2545  # Report which librarie types wil actually be built  # Report which library types wil actually be built
2546  AC_MSG_CHECKING([if libtool supports shared libraries])  AC_MSG_CHECKING([if libtool supports shared libraries])
2547  AC_MSG_RESULT([$can_build_shared])  AC_MSG_RESULT([$can_build_shared])
2548    
# Line 2558  aix4*) Line 2565  aix4*)
2565      test "$enable_shared" = yes && enable_static=no      test "$enable_shared" = yes && enable_static=no
2566    fi    fi
2567    ;;    ;;
   darwin* | rhapsody*)  
   if test "$GCC" = yes; then  
     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no  
     case "$host_os" in  
     rhapsody* | darwin1.[[012]])  
       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'  
       ;;  
     *) # Darwin 1.3 on  
       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then  
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'  
       else  
         case ${MACOSX_DEPLOYMENT_TARGET} in  
           10.[[012]])  
             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'  
             ;;  
           10.*)  
             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'  
             ;;  
         esac  
       fi  
       ;;  
     esac  
     output_verbose_link_cmd='echo'  
     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'  
     _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'  
     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's  
     _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}'  
     _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
     _LT_AC_TAGVAR(hardcode_direct, $1)=no  
     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes  
     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported  
     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'  
     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes  
   else  
     _LT_AC_TAGVAR(ld_shlibs, $1)=no  
   fi  
     ;;  
2568  esac  esac
2569  AC_MSG_RESULT([$enable_shared])  AC_MSG_RESULT([$enable_shared])
2570    
# Line 2834  case $host_os in Line 2804  case $host_os in
2804        # Warning - without using the other runtime loading flags (-brtl),        # Warning - without using the other runtime loading flags (-brtl),
2805        # -berok will link without error, but may produce a broken library.        # -berok will link without error, but may produce a broken library.
2806        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2807        # Determine the default libpath from the value encoded in an empty executable.        # Determine the default libpath from the value encoded in an empty
2808          # executable.
2809        _LT_AC_SYS_LIBPATH_AIX        _LT_AC_SYS_LIBPATH_AIX
2810        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2811    
# Line 2845  case $host_os in Line 2816  case $host_os in
2816          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2817          _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"          _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"
2818        else        else
2819          # Determine the default libpath from the value encoded in an empty executable.          # Determine the default libpath from the value encoded in an
2820            # empty executable.
2821          _LT_AC_SYS_LIBPATH_AIX          _LT_AC_SYS_LIBPATH_AIX
2822          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2823          # Warning - without using the other run time loading flags,          # Warning - without using the other run time loading flags,
# Line 2894  case $host_os in Line 2866  case $host_os in
2866        _LT_AC_TAGVAR(ld_shlibs, $1)=no        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2867      fi      fi
2868    ;;    ;;
2869        darwin* | rhapsody*)
2870    darwin* | rhapsody*)      if test "$GXX" = yes ; then
2871    if test "$GXX" = yes; then        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2872      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no        case "$host_os" in
2873      case "$host_os" in        rhapsody* | darwin1.[[012]])
2874      rhapsody* | darwin1.[[012]])          _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
2875        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'          ;;
2876        ;;        *) # Darwin 1.3 on
     *) # Darwin 1.3 on  
2877        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2878          _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'          _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
2879        else        else
# Line 2915  case $host_os in Line 2886  case $host_os in
2886              ;;              ;;
2887          esac          esac
2888        fi        fi
2889        ;;          ;;
2890      esac        esac
2891      lt_int_apple_cc_single_mod=no          lt_int_apple_cc_single_mod=no
2892      output_verbose_link_cmd='echo'          output_verbose_link_cmd='echo'
2893      if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then          if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
2894        lt_int_apple_cc_single_mod=yes            lt_int_apple_cc_single_mod=yes
2895      fi          fi
2896      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2897        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2898      else          else
2899        _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'          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2900      fi        fi
2901      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2902          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
2903      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2904      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then            _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}'
2905        _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}'          else
2906              _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2907            fi
2908              _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
2909          _LT_AC_TAGVAR(hardcode_direct, $1)=no
2910          _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2911          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2912          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
2913          _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2914      else      else
2915        _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}'        _LT_AC_TAGVAR(ld_shlibs, $1)=no
2916      fi      fi
2917      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'        ;;
     _LT_AC_TAGVAR(hardcode_direct, $1)=no  
     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes  
     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported  
     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'  
     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes  
   else  
     _LT_AC_TAGVAR(ld_shlibs, $1)=no  
   fi  
     ;;  
2918    
2919    dgux*)    dgux*)
2920      case $cc_basename in      case $cc_basename in
# Line 3516  dnl because it contains code intended fo Line 3486  dnl because it contains code intended fo
3486  dnl not a library.  It's possible we should let each  dnl not a library.  It's possible we should let each
3487  dnl tag define a new lt_????_link_test_code variable,  dnl tag define a new lt_????_link_test_code variable,
3488  dnl but it's only used here...  dnl but it's only used here...
3489  ifelse([$1],[],[cat > conftest.$ac_ext <<EOF  m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
3490  int a;  int a;
3491  void foo (void) { a = 0; }  void foo (void) { a = 0; }
3492  EOF  _LT_EOF
3493  ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF  ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
3494  class Foo  class Foo
3495  {  {
3496  public:  public:
# Line 3528  public: Line 3498  public:
3498  private:  private:
3499    int a;    int a;
3500  };  };
3501  EOF  _LT_EOF
3502  ],[$1],[F77],[cat > conftest.$ac_ext <<EOF  ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
3503        subroutine foo        subroutine foo
3504        implicit none        implicit none
3505        integer*4 a        integer*4 a
3506        a=0        a=0
3507        return        return
3508        end        end
3509  EOF  _LT_EOF
3510  ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF  ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
3511  public class foo {  public class foo {
3512    private int a;    private int a;
3513    public void bar (void) {    public void bar (void) {
3514      a = 0;      a = 0;
3515    }    }
3516  };  };
3517  EOF  _LT_EOF
3518  ])  ])
3519  dnl Parse the compiler output and extract the necessary  dnl Parse the compiler output and extract the necessary
3520  dnl objects, libraries and library flags.  dnl objects, libraries and library flags.
# Line 3746  CC="$lt_save_CC" Line 3716  CC="$lt_save_CC"
3716  # suitably defined.  Those variables are subsequently used by  # suitably defined.  Those variables are subsequently used by
3717  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3718  AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])  AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
3719  AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],  m4_define([_LT_AC_LANG_GCJ_CONFIG],
3720  [AC_LANG_SAVE  [AC_LANG_SAVE
3721    
3722  # Source file extension for Java test sources.  # Source file extension for Java test sources.
# Line 3801  CC="$lt_save_CC" Line 3771  CC="$lt_save_CC"
3771  # suitably defined.  Those variables are subsequently used by  # suitably defined.  Those variables are subsequently used by
3772  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3773  AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])  AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
3774  AC_DEFUN([_LT_AC_LANG_RC_CONFIG],  m4_define([_LT_AC_LANG_RC_CONFIG],
3775  [AC_LANG_SAVE  [AC_LANG_SAVE
3776    
3777  # Source file extension for RC test sources.  # Source file extension for RC test sources.
# Line 3834  CC="$lt_save_CC" Line 3804  CC="$lt_save_CC"
3804  ])# AC_LIBTOOL_LANG_RC_CONFIG  ])# AC_LIBTOOL_LANG_RC_CONFIG
3805    
3806    
3807    # _LT_CONFIG_STATUS_DECLARE([VARNAME])
3808    # ------------------------------------
3809    # Quote a variable value, and forward it to `config.status' so that its
3810    # declaration there will have the same value as in `configure'.  VARNAME
3811    # must have a single quote delimited value for this to work.
3812    m4_define([_LT_CONFIG_STATUS_DECLARE],
3813    [$1='`echo "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
3814    
3815    
3816  # AC_LIBTOOL_CONFIG([TAGNAME])  # AC_LIBTOOL_CONFIG([TAGNAME])
3817  # ----------------------------  # ----------------------------
3818  # If TAGNAME is not passed, then create an initial libtool script  # If TAGNAME is not passed, then create an initial libtool script
3819  # with a default configuration from the untagged config vars.  Otherwise  # with a default configuration from the untagged config vars.  Otherwise
3820  # add code to config.status for appending the configuration named by  # add code to config.status for appending the configuration named by
3821  # TAGNAME from the matching tagged config vars.  # TAGNAME from the matching tagged config vars.
3822  AC_DEFUN([AC_LIBTOOL_CONFIG],  m4_define([AC_LIBTOOL_CONFIG],
3823  [# The else clause should only fire when bootstrapping the  [AC_CONFIG_COMMANDS([libtool]$1, [
3824  # libtool distribution, otherwise you forgot to ship ltmain.sh    # See if we are running on zsh, and set the options which allow our
3825  # with your package, and you will get complaints that there are    # commands through without removal of \ escapes.
 # no rules to generate ltmain.sh.  
 if test -f "$ltmain"; then  
   # See if we are running on zsh, and set the options which allow our commands through  
   # without removal of \ escapes.  
3826    if test -n "${ZSH_VERSION+set}" ; then    if test -n "${ZSH_VERSION+set}" ; then
3827      setopt NO_GLOB_SUBST      setopt NO_GLOB_SUBST
3828    fi    fi
   # Now quote all the things that may contain metacharacters while being  
   # careful not to overquote the AC_SUBSTed values.  We take copies of the  
   # variables and quote the copies for generation of the libtool script.  
   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL STRIP \  
     libname_spec library_names_spec soname_spec extract_expsyms_cmds \  
     old_striplib striplib file_magic_cmd finish_cmds finish_eval \  
     deplibs_check_method reload_flag reload_cmds need_locks \  
     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \  
     lt_cv_sys_global_symbol_to_c_name_address \  
     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \  
     old_postinstall_cmds old_postuninstall_cmds \  
     _LT_AC_TAGVAR(compiler, $1) \  
     _LT_AC_TAGVAR(CC, $1) \  
     _LT_AC_TAGVAR(LD, $1) \  
     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \  
     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \  
     _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \  
     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \  
     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \  
     _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \  
     _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \  
     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \  
     _LT_AC_TAGVAR(old_archive_cmds, $1) \  
     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \  
     _LT_AC_TAGVAR(predep_objects, $1) \  
     _LT_AC_TAGVAR(postdep_objects, $1) \  
     _LT_AC_TAGVAR(predeps, $1) \  
     _LT_AC_TAGVAR(postdeps, $1) \  
     _LT_AC_TAGVAR(compiler_lib_search_path, $1) \  
     _LT_AC_TAGVAR(archive_cmds, $1) \  
     _LT_AC_TAGVAR(archive_expsym_cmds, $1) \  
     _LT_AC_TAGVAR(postinstall_cmds, $1) \  
     _LT_AC_TAGVAR(postuninstall_cmds, $1) \  
     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \  
     _LT_AC_TAGVAR(allow_undefined_flag, $1) \  
     _LT_AC_TAGVAR(no_undefined_flag, $1) \  
     _LT_AC_TAGVAR(export_symbols_cmds, $1) \  
     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \  
     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \  
     _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \  
     _LT_AC_TAGVAR(hardcode_automatic, $1) \  
     _LT_AC_TAGVAR(module_cmds, $1) \  
     _LT_AC_TAGVAR(module_expsym_cmds, $1) \  
     _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \  
     _LT_AC_TAGVAR(exclude_expsyms, $1) \  
     _LT_AC_TAGVAR(include_expsyms, $1); do  
3829    
3830      case $var in    m4_if([$1], [],
3831      _LT_AC_TAGVAR(old_archive_cmds, $1) | \        [cfgfile="${ofile}T"
3832      _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \        trap "$rm \"$cfgfile\"; exit 1" 1 2 15
3833      _LT_AC_TAGVAR(archive_cmds, $1) | \        $rm -f "$cfgfile"
3834      _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \        AC_MSG_NOTICE([creating $ofile])],
3835      _LT_AC_TAGVAR(module_cmds, $1) | \      [cfgfile="$ofile"
3836      _LT_AC_TAGVAR(module_expsym_cmds, $1) | \      AC_MSG_NOTICE([appending configuration tag `$1' to $ofile])
3837      _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \    ])
     _LT_AC_TAGVAR(export_symbols_cmds, $1) | \  
     extract_expsyms_cmds | reload_cmds | finish_cmds | \  
     postinstall_cmds | postuninstall_cmds | \  
     old_postinstall_cmds | old_postuninstall_cmds | \  
     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)  
       # Double-quote double-evaled strings.  
       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""  
       ;;  
     *)  
       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""  
       ;;  
     esac  
   done  
   
   case $lt_echo in  
   *'\[$]0 --fallback-echo"')  
     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`  
     ;;  
   esac  
   
 ifelse([$1], [],  
   [cfgfile="${ofile}T"  
   trap "$rm \"$cfgfile\"; exit 1" 1 2 15  
   $rm -f "$cfgfile"  
   AC_MSG_NOTICE([creating $ofile])],  
   [cfgfile="$ofile"])  
3838    
3839    cat <<__EOF__ >> "$cfgfile"    cat <<_LT_EOF >> "$cfgfile"
3840  ifelse([$1], [],  m4_if([$1], [],
3841  [#! $SHELL  [#! $SHELL
3842    
3843  # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.  # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Line 3980  if test "X\${CDPATH+set}" = Xset; then C Line 3883  if test "X\${CDPATH+set}" = Xset; then C
3883  available_tags=  available_tags=
3884    
3885  # ### BEGIN LIBTOOL CONFIG],  # ### BEGIN LIBTOOL CONFIG],
3886  [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])  [# ### BEGIN LIBTOOL TAG CONFIG: $1])
3887    
3888  # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:  # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3889    
# Line 4274  exclude_expsyms=$lt_[]_LT_AC_TAGVAR(excl Line 4177  exclude_expsyms=$lt_[]_LT_AC_TAGVAR(excl
4177  # Symbols that must always be exported.  # Symbols that must always be exported.
4178  include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)  include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4179    
4180  ifelse([$1],[],  m4_if([$1],[],
4181  [# ### END LIBTOOL CONFIG],  [# ### END LIBTOOL CONFIG],
4182  [# ### END LIBTOOL TAG CONFIG: $tagname])  [# ### END LIBTOOL TAG CONFIG: $1])
4183    
4184  __EOF__  _LT_EOF
4185    
4186  ifelse([$1],[], [  m4_if([$1],[], [
4187    case $host_os in    case $host_os in
4188    aix3*)    aix3*)
4189      cat <<\EOF >> "$cfgfile"      cat <<\_LT_EOF >> "$cfgfile"
4190    
4191  # AIX sometimes has problems with the GCC collect2 program.  For some  # AIX sometimes has problems with the GCC collect2 program.  For some
4192  # reason, if we set the COLLECT_NAMES environment variable, the problems  # reason, if we set the COLLECT_NAMES environment variable, the problems
# Line 4292  if test "X${COLLECT_NAMES+set}" != Xset; Line 4195  if test "X${COLLECT_NAMES+set}" != Xset;
4195    COLLECT_NAMES=    COLLECT_NAMES=
4196    export COLLECT_NAMES    export COLLECT_NAMES
4197  fi  fi
4198  EOF  _LT_EOF
4199      ;;      ;;
4200    esac    esac
4201    
4202      # In libtool itself `ltmain.sh' is in the build tree, but everything else
4203      # ships it in the source tree, so we test for the general case first, but
4204      # have hardcoded special cases for building libtool and libltdl:
4205      for ltmain in "$ac_aux_dir/ltmain.sh" "config/ltmain.sh" "./ltmain.sh"
4206      do
4207        test -f "$ltmain" && break
4208      done
4209    
4210    # We use sed instead of cat because bash on DJGPP gets confused if    # We use sed instead of cat because bash on DJGPP gets confused if
4211    # if finds mixed CR/LF and LF-only lines.  Since sed operates in    # if finds mixed CR/LF and LF-only lines.  Since sed operates in
4212    # text mode, it properly converts lines to CR/LF.  This bash problem    # text mode, it properly converts lines to CR/LF.  This bash problem
# Line 4306  EOF Line 4217  EOF
4217      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4218    chmod +x "$ofile"    chmod +x "$ofile"
4219  ])  ])
4220  else  ],
4221    # If there is no Makefile yet, we rely on a make rule to execute  [m4_if([$1], [], [
4222    # `config.status --recheck' to rerun these tests and create the    rm='$rm'
4223    # libtool script then.    PACKAGE='$PACKAGE'
4224    test -f Makefile && make "$ltmain"    VERSION='$VERSION'
4225  fi    TIMESTAMP='$TIMESTAMP'
4226      ofile='$ofile'
4227      sed_quote_subst='$sed_quote_subst'
4228      double_quote_subst='$double_quote_subst'
4229      delay_variable_subst='$delay_variable_subst'
4230      SED='$SED'
4231      Xsed='$Xsed'
4232    
4233      _LT_CONFIG_STATUS_DECLARE([SHELL])
4234      _LT_CONFIG_STATUS_DECLARE([enable_shared])
4235      _LT_CONFIG_STATUS_DECLARE([enable_static])
4236      _LT_CONFIG_STATUS_DECLARE([enable_fast_install])
4237      _LT_CONFIG_STATUS_DECLARE([host_alias])
4238      _LT_CONFIG_STATUS_DECLARE([host])
4239      _LT_CONFIG_STATUS_DECLARE([echo])
4240      _LT_CONFIG_STATUS_DECLARE([AR])
4241      _LT_CONFIG_STATUS_DECLARE([AR_FLAGS])
4242      _LT_CONFIG_STATUS_DECLARE([LTCC])
4243      _LT_CONFIG_STATUS_DECLARE([EGREP])
4244      _LT_CONFIG_STATUS_DECLARE([LN_S])
4245      _LT_CONFIG_STATUS_DECLARE([NM])
4246      _LT_CONFIG_STATUS_DECLARE([STRIP])
4247      _LT_CONFIG_STATUS_DECLARE([MAGIC_CMD])
4248      _LT_CONFIG_STATUS_DECLARE([DLLTOOL])
4249      _LT_CONFIG_STATUS_DECLARE([OBJDUMP])
4250      _LT_CONFIG_STATUS_DECLARE([AS])
4251      _LT_CONFIG_STATUS_DECLARE([objdir])
4252      _LT_CONFIG_STATUS_DECLARE([reload_flag])
4253      _LT_CONFIG_STATUS_DECLARE([reload_cmds])
4254      _LT_CONFIG_STATUS_DECLARE([ac_objext])
4255      _LT_CONFIG_STATUS_DECLARE([libext])
4256      _LT_CONFIG_STATUS_DECLARE([shrext])
4257      _LT_CONFIG_STATUS_DECLARE([exeext])
4258      _LT_CONFIG_STATUS_DECLARE([pic_mode])
4259      _LT_CONFIG_STATUS_DECLARE([lt_cv_sys_max_cmd_len])
4260      _LT_CONFIG_STATUS_DECLARE([need_locks])
4261      _LT_CONFIG_STATUS_DECLARE([need_lib_prefix])
4262      _LT_CONFIG_STATUS_DECLARE([need_version])
4263      _LT_CONFIG_STATUS_DECLARE([enable_dlopen])
4264      _LT_CONFIG_STATUS_DECLARE([enable_dlopen_self])
4265      _LT_CONFIG_STATUS_DECLARE([enable_dlopen_self_static])
4266      _LT_CONFIG_STATUS_DECLARE([version_type])
4267      _LT_CONFIG_STATUS_DECLARE([libname_spec])
4268      _LT_CONFIG_STATUS_DECLARE([library_names_spec])
4269      _LT_CONFIG_STATUS_DECLARE([soname_spec])
4270      _LT_CONFIG_STATUS_DECLARE([RANLIB])
4271      _LT_CONFIG_STATUS_DECLARE([old_postinstall_cmds])
4272      _LT_CONFIG_STATUS_DECLARE([old_postuninstall_cmds])
4273      _LT_CONFIG_STATUS_DECLARE([postinstall_cmds])
4274      _LT_CONFIG_STATUS_DECLARE([postuninstall_cmds])
4275      _LT_CONFIG_STATUS_DECLARE([striplib])
4276      _LT_CONFIG_STATUS_DECLARE([old_striplib])
4277      _LT_CONFIG_STATUS_DECLARE([deplibs_check_method])
4278      _LT_CONFIG_STATUS_DECLARE([file_magic_cmd])
4279      _LT_CONFIG_STATUS_DECLARE([finish_cmds])
4280      _LT_CONFIG_STATUS_DECLARE([finish_eval])
4281      _LT_CONFIG_STATUS_DECLARE([lt_cv_sys_global_symbol_pipe])
4282      _LT_CONFIG_STATUS_DECLARE([lt_cv_sys_global_symbol_to_cdecl])
4283      _LT_CONFIG_STATUS_DECLARE([lt_cv_sys_global_symbol_to_c_name_address])
4284      _LT_CONFIG_STATUS_DECLARE([runpath_var])
4285      _LT_CONFIG_STATUS_DECLARE([shlibpath_var])
4286      _LT_CONFIG_STATUS_DECLARE([hardcode_into_libs])
4287      _LT_CONFIG_STATUS_DECLARE([shlibpath_overrides_runpath])
4288      _LT_CONFIG_STATUS_DECLARE([variables_saved_for_relink])
4289      _LT_CONFIG_STATUS_DECLARE([sys_lib_search_path_spec])
4290      _LT_CONFIG_STATUS_DECLARE([sys_lib_dlsearch_path_spec])
4291      _LT_CONFIG_STATUS_DECLARE([extract_expsyms_cmds])
4292    
4293      dnl ## --------------------------------------- ##
4294      dnl ## Carefully restore the default compiler. ##
4295      dnl ## --------------------------------------- ##
4296      compiler='$compiler_DEFAULT'],
4297      [_LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(compiler, $1)])])
4298      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
4299      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)])
4300      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(GCC, $1)])
4301      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(LD, $1)])
4302      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)])
4303      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4304      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)])
4305      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(lt_prog_compiler_static, $1)])
4306      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)])
4307      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)])
4308      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(whole_archive_flag_spec, $1)])
4309      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(thread_safe_flag_spec, $1)])
4310      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(old_archive_cmds, $1)])
4311      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)])
4312      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)])
4313      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(archive_cmds, $1)])
4314      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(archive_expsym_cmds, $1)])
4315      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(module_cmds, $1)])
4316      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(module_expsym_cmds, $1)])
4317      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(predep_objects, $1)])
4318      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(postdep_objects, $1)])
4319      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(predeps, $1)])
4320      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(postdeps, $1)])
4321      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(compiler_lib_search_path, $1)])
4322      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(allow_undefined_flag, $1)])
4323      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(no_undefined_flag, $1)])
4324      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(hardcode_action, $1)])
4325      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)])
4326      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)])
4327      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(hardcode_libdir_separator, $1)])
4328      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(hardcode_direct, $1)])
4329      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(hardcode_minus_L, $1)])
4330      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)])
4331      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(hardcode_automatic, $1)])
4332      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(link_all_deplibs, $1)])
4333      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(fix_srcfile_path, $1)])
4334      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(always_export_symbols, $1)])
4335      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(export_symbols_cmds, $1)])
4336      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(exclude_expsyms, $1)])
4337      _LT_CONFIG_STATUS_DECLARE([_LT_AC_TAGVAR(include_expsyms, $1)])
4338    
4339    
4340      # Now quote all the things that may contain metacharacters while being
4341      # careful not to overquote the AC_SUBSTed values.  We take copies of the
4342      # variables and quote the copies for generation of the libtool script.
4343      for var in m4_if([$1], [],
4344        [SED SHELL echo AR AR_FLAGS LTCC EGREP RANLIB LN_S NM STRIP \
4345        libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4346        old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4347        deplibs_check_method reload_flag reload_cmds need_locks \
4348        lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4349        lt_cv_sys_global_symbol_to_c_name_address \
4350        sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4351        old_postinstall_cmds old_postuninstall_cmds \
4352    ])dnl
4353        _LT_AC_TAGVAR(compiler, $1) \
4354        _LT_AC_TAGVAR(CC, $1) \
4355        _LT_AC_TAGVAR(LD, $1) \
4356        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4357        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4358        _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4359        _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4360        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4361        _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4362        _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4363        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4364        _LT_AC_TAGVAR(old_archive_cmds, $1) \
4365        _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4366        _LT_AC_TAGVAR(predep_objects, $1) \
4367        _LT_AC_TAGVAR(postdep_objects, $1) \
4368        _LT_AC_TAGVAR(predeps, $1) \
4369        _LT_AC_TAGVAR(postdeps, $1) \
4370        _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4371        _LT_AC_TAGVAR(archive_cmds, $1) \
4372        _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4373        _LT_AC_TAGVAR(postinstall_cmds, $1) \
4374        _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4375        _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4376        _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4377        _LT_AC_TAGVAR(no_undefined_flag, $1) \
4378        _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4379        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4380        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4381        _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4382        _LT_AC_TAGVAR(hardcode_automatic, $1) \
4383        _LT_AC_TAGVAR(module_cmds, $1) \
4384        _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4385        _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4386        _LT_AC_TAGVAR(exclude_expsyms, $1) \
4387        _LT_AC_TAGVAR(include_expsyms, $1); do
4388    
4389        case \$var in \
4390        _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4391        _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4392        _LT_AC_TAGVAR(archive_cmds, $1) | \
4393        _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4394        _LT_AC_TAGVAR(module_cmds, $1) | \
4395        _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4396        _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4397        _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4398        extract_expsyms_cmds | reload_cmds | finish_cmds | \
4399        postinstall_cmds | postuninstall_cmds | \
4400        old_postinstall_cmds | old_postuninstall_cmds | \
4401        sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4402          # Double-quote double-evaled strings.
4403          eval "lt_\$var=\\\\\"\\\`\\\$echo \"X\\\$\$var\" | \\\$Xsed -e \"\\\$double_quote_subst\" -e \"\\\$sed_quote_subst\" -e \"\\\$delay_variable_subst\"\\\`\\\\\""
4404          ;;
4405        *)
4406          eval "lt_\$var=\\\\\"\\\`\\\$echo \"X\\\$\$var\" | \\\$Xsed -e \"\\\$sed_quote_subst\"\\\`\\\\\""
4407          ;;
4408        esac
4409      done
4410    
4411      case \$lt_echo in
4412      *'\\\[$]0 --fallback-echo"')
4413        lt_echo=\`\$echo "X\$lt_echo" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
4414        ;;
4415      esac
4416    ])
4417  ])# AC_LIBTOOL_CONFIG  ])# AC_LIBTOOL_CONFIG
4418    
4419    
# Line 4383  osf*) Line 4485  osf*)
4485    symcode='[[BCDEGQRST]]'    symcode='[[BCDEGQRST]]'
4486    ;;    ;;
4487  solaris* | sysv5*)  solaris* | sysv5*)
4488    symcode='[[BDT]]'    symcode='[[BDRT]]'
4489    ;;    ;;
4490  sysv4)  sysv4)
4491    symcode='[[DFNSTU]]'    symcode='[[DFNSTU]]'
# Line 4401  esac Line 4503  esac
4503  # If we're using GNU nm, then use its standard symbol codes.  # If we're using GNU nm, then use its standard symbol codes.
4504  case `$NM -V 2>&1` in  case `$NM -V 2>&1` in
4505  *GNU* | *'with BFD'*)  *GNU* | *'with BFD'*)
4506    symcode='[[ABCDGISTW]]' ;;    symcode='[[ABCDGIRSTW]]' ;;
4507  esac  esac
4508    
4509  # Try without a prefix undercore, then with it.  # Try without a prefix undercore, then with it.
# Line 4414  for ac_symprfx in "" "_"; do Line 4516  for ac_symprfx in "" "_"; do
4516    pipe_works=no    pipe_works=no
4517    
4518    rm -f conftest*    rm -f conftest*
4519    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<_LT_EOF
4520  #ifdef __cplusplus  #ifdef __cplusplus
4521  extern "C" {  extern "C" {
4522  #endif  #endif
# Line 4424  void nm_test_func(){} Line 4526  void nm_test_func(){}
4526  }  }
4527  #endif  #endif
4528  int main(){nm_test_var='a';nm_test_func();return(0);}  int main(){nm_test_var='a';nm_test_func();return(0);}
4529  EOF  _LT_EOF
4530    
4531    if AC_TRY_EVAL(ac_compile); then    if AC_TRY_EVAL(ac_compile); then
4532      # Now try to grab the symbols.      # Now try to grab the symbols.
# Line 4440  EOF Line 4542  EOF
4542        # Make sure that we snagged all the symbols we need.        # Make sure that we snagged all the symbols we need.
4543        if grep ' nm_test_var$' "$nlist" >/dev/null; then        if grep ' nm_test_var$' "$nlist" >/dev/null; then
4544          if grep ' nm_test_func$' "$nlist" >/dev/null; then          if grep ' nm_test_func$' "$nlist" >/dev/null; then
4545            cat <<EOF > conftest.$ac_ext            cat <<_LT_EOF > conftest.$ac_ext
4546  #ifdef __cplusplus  #ifdef __cplusplus
4547  extern "C" {  extern "C" {
4548  #endif  #endif
4549    
4550  EOF  _LT_EOF
4551            # Now generate the symbol file.            # Now generate the symbol file.
4552            eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'            eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4553    
4554            cat <<EOF >> conftest.$ac_ext            cat <<_LT_EOF >> conftest.$ac_ext
4555  #if defined (__STDC__) && __STDC__  #if defined (__STDC__) && __STDC__
4556  # define lt_ptr_t void *  # define lt_ptr_t void *
4557  #else  #else
# Line 4464  const struct { Line 4566  const struct {
4566  }  }
4567  lt_preloaded_symbols[[]] =  lt_preloaded_symbols[[]] =
4568  {  {
4569  EOF  _LT_EOF
4570            $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext            $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4571            cat <<\EOF >> conftest.$ac_ext            cat <<\_LT_EOF >> conftest.$ac_ext
4572    {0, (lt_ptr_t) 0}    {0, (lt_ptr_t) 0}
4573  };  };
4574    
4575  #ifdef __cplusplus  #ifdef __cplusplus
4576  }  }
4577  #endif  #endif
4578  EOF  _LT_EOF
4579            # Now try linking the two files.            # Now try linking the two files.
4580            mv conftest.$ac_objext conftstm.$ac_objext            mv conftest.$ac_objext conftstm.$ac_objext
4581            lt_save_LIBS="$LIBS"            lt_save_LIBS="$LIBS"
# Line 4527  _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= Line 4629  _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4629  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4630    
4631  AC_MSG_CHECKING([for $compiler option to produce PIC])  AC_MSG_CHECKING([for $compiler option to produce PIC])
4632   ifelse([$1],[CXX],[   m4_if([$1], [CXX], [
4633    # C++ specific cases for pic, static, wl, etc.    # C++ specific cases for pic, static, wl, etc.
4634    if test "$GXX" = yes; then    if test "$GXX" = yes; then
4635      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
# Line 4542  AC_MSG_CHECKING([for $compiler option to Line 4644  AC_MSG_CHECKING([for $compiler option to
4644        fi        fi
4645        ;;        ;;
4646      amigaos*)      amigaos*)
4647        # FIXME: we need at least 68020 code to build shared libraries, but        if test "$host_cpu" = m68k; then
4648        # adding the `-m68020' flag to GCC prevents building anything better,          # FIXME: we need at least 68020 code to build shared libraries, but
4649        # like `-m68040'.          # adding the `-m68020' flag to GCC prevents building anything better,
4650        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'          # like `-m68040'.
4651            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4652          fi
4653        ;;        ;;
4654      beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)      beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4655        # PIC is the default for these OSes.        # PIC is the default for these OSes.
# Line 4792  AC_MSG_CHECKING([for $compiler option to Line 4896  AC_MSG_CHECKING([for $compiler option to
4896        ;;        ;;
4897    
4898      amigaos*)      amigaos*)
4899        # FIXME: we need at least 68020 code to build shared libraries, but        if test "$host_cpu" = m68k; then
4900        # adding the `-m68020' flag to GCC prevents building anything better,          # FIXME: we need at least 68020 code to build shared libraries, but
4901        # like `-m68040'.          # adding the `-m68020' flag to GCC prevents building anything better,
4902        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'          # like `-m68040'.
4903            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4904          fi
4905        ;;        ;;
4906    
4907      beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)      beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
# Line 4960  AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_co Line 5066  AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_co
5066  if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then  if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5067    AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],    AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5068      _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),      _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5069      [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],      [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5070      [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in      [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5071       "" | " "*) ;;       "" | " "*) ;;
5072       *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;       *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
# Line 4974  case "$host_os" in Line 5080  case "$host_os" in
5080      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5081      ;;      ;;
5082    *)    *)
5083      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5084      ;;      ;;
5085  esac  esac
5086  ])  ])
# Line 4985  esac Line 5091  esac
5091  # See if the linker supports building shared libraries.  # See if the linker supports building shared libraries.
5092  AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],  AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5093  [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])  [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5094  ifelse([$1],[CXX],[  m4_if([$1], [CXX], [
5095    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5096    case $host_os in    case $host_os in
5097    aix4* | aix5*)    aix4* | aix5*)
# Line 5001  ifelse([$1],[CXX],[ Line 5107  ifelse([$1],[CXX],[
5107      _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"      _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5108    ;;    ;;
5109    cygwin* | mingw*)    cygwin* | mingw*)
5110      _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'      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5111    ;;    ;;
5112    *)    *)
5113      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5114    ;;    ;;
5115    esac    esac
5116  ],[  ], [
5117    runpath_var=    runpath_var=
5118    _LT_AC_TAGVAR(allow_undefined_flag, $1)=    _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5119    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
# Line 5070  ifelse([$1],[CXX],[ Line 5176  ifelse([$1],[CXX],[
5176        # On AIX/PPC, the GNU linker is very broken        # On AIX/PPC, the GNU linker is very broken
5177        if test "$host_cpu" != ia64; then        if test "$host_cpu" != ia64; then
5178          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
5179          cat <<EOF 1>&2          cat <<_LT_EOF 1>&2
5180    
5181  *** Warning: the GNU linker, at least up to release 2.9.1, is reported  *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5182  *** to be unable to reliably create shared libraries on AIX.  *** to be unable to reliably create shared libraries on AIX.
# Line 5078  ifelse([$1],[CXX],[ Line 5184  ifelse([$1],[CXX],[
5184  *** really care for shared libraries, you may want to modify your PATH  *** really care for shared libraries, you may want to modify your PATH
5185  *** so that a non-GNU linker is found, and then restart.  *** so that a non-GNU linker is found, and then restart.
5186    
5187  EOF  _LT_EOF
5188        fi        fi
5189        ;;        ;;
5190    
5191      amigaos*)      amigaos*)
5192        _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)'        if test "$host_cpu" = m68k; then
5193        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'          _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)'
5194        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5195            _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5196          fi
5197    
5198        # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports        # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5199        # that the semantics of dynamic libraries on AmigaOS, at least up        # that the semantics of dynamic libraries on AmigaOS, at least up
# Line 5145  EOF Line 5253  EOF
5253      solaris* | sysv5*)      solaris* | sysv5*)
5254        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5255          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
5256          cat <<EOF 1>&2          cat <<_LT_EOF 1>&2
5257    
5258  *** Warning: The releases 2.8.* of the GNU linker cannot reliably  *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5259  *** create shared libraries on Solaris systems.  Therefore, libtool  *** create shared libraries on Solaris systems.  Therefore, libtool
# Line 5154  EOF Line 5262  EOF
5262  *** your PATH or compiler configuration so that the native linker is  *** your PATH or compiler configuration so that the native linker is
5263  *** used, and then restart.  *** used, and then restart.
5264    
5265  EOF  _LT_EOF
5266        elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then        elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5267          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5268          _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'          _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'
# Line 5170  EOF Line 5278  EOF
5278        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5279        ;;        ;;
5280    
5281      linux*)
5282        if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5283          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5284          case `$LD -v 2>&1` in
5285            *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5286            *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5287            *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5288            *\ 2.11.*) ;; # other 2.11 versions
5289            *) supports_anon_versioning=yes ;;
5290          esac
5291          if test "x$supports_anon_versioning" = xyes; then
5292            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~$echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5293          else
5294            _LT_AC_TAGVAR(archive_expsym_cmds, $1)=$_LT_AC_TAGVAR(archive_cmds, $1)
5295          fi
5296        else
5297          _LT_AC_TAGVAR(ld_shlibs, $1)=no
5298        fi
5299        ;;
5300    
5301      *)      *)
5302        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5303          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
# Line 5296  EOF Line 5424  EOF
5424          # Warning - without using the other runtime loading flags (-brtl),          # Warning - without using the other runtime loading flags (-brtl),
5425          # -berok will link without error, but may produce a broken library.          # -berok will link without error, but may produce a broken library.
5426          _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'          _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5427         # Determine the default libpath from the value encoded in an empty executable.          # Determine the default libpath from the value encoded in an
5428            # empty executable.
5429         _LT_AC_SYS_LIBPATH_AIX         _LT_AC_SYS_LIBPATH_AIX
5430         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5431          _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"          _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"
5432         else        else
5433          if test "$host_cpu" = ia64; then          if test "$host_cpu" = ia64; then
5434            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5435            _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"            _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5436            _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"            _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"
5437          else          else
5438           # Determine the default libpath from the value encoded in an empty executable.           # Determine the default libpath from the value encoded in an
5439             # empty executable.
5440           _LT_AC_SYS_LIBPATH_AIX           _LT_AC_SYS_LIBPATH_AIX
5441           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5442            # Warning - without using the other run time loading flags,            # Warning - without using the other run time loading flags,
# Line 5325  EOF Line 5455  EOF
5455        ;;        ;;
5456    
5457      amigaos*)      amigaos*)
5458        _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)'        if test "$host_cpu" = m68k; then
5459        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'          _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)'
5460        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5461            _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5462          fi
5463        # see comment about different semantics on the GNU ld section        # see comment about different semantics on the GNU ld section
5464        _LT_AC_TAGVAR(ld_shlibs, $1)=no        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5465        ;;        ;;
# Line 5358  EOF Line 5490  EOF
5490        ;;        ;;
5491    
5492      darwin* | rhapsody*)      darwin* | rhapsody*)
5493      if test "$GXX" = yes ; then      if test "$GCC" = yes ; then
5494        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5495        case "$host_os" in        case "$host_os" in
5496        rhapsody* | darwin1.[[012]])        rhapsody* | darwin1.[[012]])
# Line 5379  EOF Line 5511  EOF
5511        fi        fi
5512          ;;          ;;
5513        esac        esac
         lt_int_apple_cc_single_mod=no  
5514          output_verbose_link_cmd='echo'          output_verbose_link_cmd='echo'
5515          if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5516            lt_int_apple_cc_single_mod=yes        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
         fi  
         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then  
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'  
         else  
         _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'  
       fi  
       _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'  
5517        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5518          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then        _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}'
5519            _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}'        _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
         else  
           _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}'  
         fi  
           _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
5520        _LT_AC_TAGVAR(hardcode_direct, $1)=no        _LT_AC_TAGVAR(hardcode_direct, $1)=no
5521        _LT_AC_TAGVAR(hardcode_automatic, $1)=yes        _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5522        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
# Line 5406  EOF Line 5526  EOF
5526        _LT_AC_TAGVAR(ld_shlibs, $1)=no        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5527      fi      fi
5528        ;;        ;;
   
5529      dgux*)      dgux*)
5530        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5531        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
# Line 5788  esac Line 5907  esac
5907  ])# AC_LIBTOOL_PROG_LD_SHLIBS  ])# AC_LIBTOOL_PROG_LD_SHLIBS
5908    
5909    
 # _LT_AC_FILE_LTDLL_C  
 # -------------------  
 # Be careful that the start marker always follows a newline.  
 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [  
 # /* ltdll.c starts here */  
 # #define WIN32_LEAN_AND_MEAN  
 # #include <windows.h>  
 # #undef WIN32_LEAN_AND_MEAN  
 # #include <stdio.h>  
 #  
 # #ifndef __CYGWIN__  
 # #  ifdef __CYGWIN32__  
 # #    define __CYGWIN__ __CYGWIN32__  
 # #  endif  
 # #endif  
 #  
 # #ifdef __cplusplus  
 # extern "C" {  
 # #endif  
 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);  
 # #ifdef __cplusplus  
 # }  
 # #endif  
 #  
 # #ifdef __CYGWIN__  
 # #include <cygwin/cygwin_dll.h>  
 # DECLARE_CYGWIN_DLL( DllMain );  
 # #endif  
 # HINSTANCE __hDllInstance_base;  
 #  
 # BOOL APIENTRY  
 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)  
 # {  
 #   __hDllInstance_base = hInst;  
 #   return TRUE;  
 # }  
 # /* ltdll.c ends here */  
 ])# _LT_AC_FILE_LTDLL_C  
   
   
5910  # _LT_AC_TAGVAR(VARNAME, [TAGNAME])  # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5911  # ---------------------------------  # ---------------------------------
5912  AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])  m4_define([_LT_AC_TAGVAR], [m4_if([$2], [], [$1], [$1_$2])])
5913    
5914    
5915  # old names  # old names
# Line 5843  AC_DEFUN([AM_PROG_LD],        [AC_PROG_L Line 5922  AC_DEFUN([AM_PROG_LD],        [AC_PROG_L
5922  AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])  AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
5923    
5924  # This is just to silence aclocal about the macro not being used  # This is just to silence aclocal about the macro not being used
5925  ifelse([AC_DISABLE_FAST_INSTALL])  m4_if([AC_DISABLE_FAST_INSTALL])
5926    
5927  AC_DEFUN([LT_AC_PROG_GCJ],  AC_DEFUN([LT_AC_PROG_GCJ],
5928  [AC_CHECK_TOOL(GCJ, gcj, no)  [AC_CHECK_TOOL(GCJ, gcj, no)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26