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

Diff of /libtool/libtool.m4

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

revision 1.220 by rboehne, Fri Aug 31 16:59:56 2001 UTC revision 1.221 by gary, Sun Sep 2 22:07:38 2001 UTC
# Line 227  compiler="[$]2" Line 227  compiler="[$]2"
227  # for the system default hardcoded library path. In most cases,  # for the system default hardcoded library path. In most cases,
228  # this is /usr/lib:/lib, but when the MPI compilers are used  # this is /usr/lib:/lib, but when the MPI compilers are used
229  # the location of the communication and MPI libs are included too.  # the location of the communication and MPI libs are included too.
230  # If we don't find anything, use the default library path according  # If we don't find anything, use the default library path according
231  # to the aix ld manual.  # to the aix ld manual.
232  AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],  AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
233  [AC_LINK_IFELSE(AC_LANG_PROGRAM,[  [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
# Line 547  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], Line 547  AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
547         $2=yes         $2=yes
548       fi       fi
549     fi     fi
550     $rm conftest*     $rm conftest*
551     LDFLAGS="$save_LDFLAGS"     LDFLAGS="$save_LDFLAGS"
552  ])  ])
553    
# Line 569  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d Line 569  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
569    testring="ABCD"    testring="ABCD"
570    
571    case $host_os in    case $host_os in
572    msdosdjgpp*)    msdosdjgpp*)
573      # On DJGPP, this test can blow up pretty badly due to problems in libc      # On DJGPP, this test can blow up pretty badly due to problems in libc
574      # (any single argument exceeding 2000 bytes causes a buffer overrun      # (any single argument exceeding 2000 bytes causes a buffer overrun
575      # during glob expansion).  Even if it were fixed, the result of this      # during glob expansion).  Even if it were fixed, the result of this
576      # check would be larger than it should be.      # check would be larger than it should be.
577      lt_cv_sys_max_cmd_len=12288;    # 12K is about right      lt_cv_sys_max_cmd_len=12288;    # 12K is about right
578      ;;      ;;
579        
580    gnu*)    gnu*)
581      # Under GNU Hurd, this test is not required because there is      # Under GNU Hurd, this test is not required because there is
582      # no limit to the length of command line arguments.      # no limit to the length of command line arguments.
583      # Libtool will interpret -1 as no limit whatsoever      # Libtool will interpret -1 as no limit whatsoever
584      lt_cv_sys_max_cmd_len=-1;      lt_cv_sys_max_cmd_len=-1;
585      ;;      ;;
586        
587    *)    *)
588      # 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
589      # maximum length that is only half of the actual maximum length, but      # maximum length that is only half of the actual maximum length, but
# Line 1386  test "$dynamic_linker" = no && can_build Line 1386  test "$dynamic_linker" = no && can_build
1386  # _LT_AC_TAGCONFIG  # _LT_AC_TAGCONFIG
1387  # ----------------  # ----------------
1388  AC_DEFUN([_LT_AC_TAGCONFIG],  AC_DEFUN([_LT_AC_TAGCONFIG],
1389  [AC_ARG_WITH([tags],  [AC_ARG_WITH([tags],
1390      [AC_HELP_STRING([--with-tags=TAGS],      [AC_HELP_STRING([--with-tags=TAGS],
1391          [include additional configurations @<:@CXX,GCJ@:>@])],          [include additional configurations @<:@CXX,GCJ@:>@])],
1392      [tagnames="$withval"],      [tagnames="$withval"],
# Line 1430  if test -f "$ltmain" && test -n "$tagnam Line 1430  if test -f "$ltmain" && test -n "$tagnam
1430        echo appending configuration tag \"$tagname\" to $ofile        echo appending configuration tag \"$tagname\" to $ofile
1431    
1432        case $tagname in        case $tagname in
1433        CXX)        CXX)
1434          AC_LIBTOOL_LANG_CXX_CONFIG          AC_LIBTOOL_LANG_CXX_CONFIG
1435          ;;          ;;
1436    
# Line 1938  openbsd*) Line 1938  openbsd*)
1938      lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'      lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1939    fi    fi
1940    ;;    ;;
1941        
1942  osf3* | osf4* | osf5*)  osf3* | osf4* | osf5*)
1943    # this will be overridden with pass_all, but let us keep it just in case    # this will be overridden with pass_all, but let us keep it just in case
1944    lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'    lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
# Line 2048  esac Line 2048  esac
2048    
2049  # AC_LIBLTDL_CONVENIENCE([DIRECTORY])  # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2050  # -----------------------------------  # -----------------------------------
2051  # sets LIBLTDL to the link flags for the libltdl convenience library and  # sets LIBLTDL to the link flags for the libltdl convenience library and
2052  # INCLTDL to the include flags for the libltdl header and adds  # INCLTDL to the include flags for the libltdl header and adds
2053  # --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL  # --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
2054  # and INCLTDL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If  # and INCLTDL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
# Line 3144  CC="$lt_save_CC" Line 3144  CC="$lt_save_CC"
3144  # with a default configuration from the untagged config vars.  Otherwise  # with a default configuration from the untagged config vars.  Otherwise
3145  # add code to config.status for appending the configuration named by  # add code to config.status for appending the configuration named by
3146  # TAGNAME from the matching tagged config vars.  # TAGNAME from the matching tagged config vars.
3147  AC_DEFUN([AC_LIBTOOL_CONFIG],  AC_DEFUN([AC_LIBTOOL_CONFIG],
3148  [# The else clause should only fire when bootstrapping the  [# The else clause should only fire when bootstrapping the
3149  # libtool distribution, otherwise you forgot to ship ltmain.sh  # libtool distribution, otherwise you forgot to ship ltmain.sh
3150  # with your package, and you will get complaints that there are  # with your package, and you will get complaints that there are
# Line 3226  ifelse([$1], [], Line 3226  ifelse([$1], [],
3226    [cfgfile="$ofile"])    [cfgfile="$ofile"])
3227    
3228    cat <<__EOF__ >> "$cfgfile"    cat <<__EOF__ >> "$cfgfile"
3229  ifelse([$1], [],  ifelse([$1], [],
3230  [#! $SHELL  [#! $SHELL
3231    
3232  # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.  # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
# Line 3542  exclude_expsyms=$lt_[]_LT_AC_TAGVAR(excl Line 3542  exclude_expsyms=$lt_[]_LT_AC_TAGVAR(excl
3542  include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)  include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
3543    
3544  ifelse([$1],[],  ifelse([$1],[],
3545  [# ### END LIBTOOL CONFIG],  [# ### END LIBTOOL CONFIG],
3546  [# ### END LIBTOOL TAG CONFIG: $tagname])  [# ### END LIBTOOL TAG CONFIG: $tagname])
3547    
3548  __EOF__  __EOF__
# Line 3807  AC_MSG_CHECKING([for $compiler option to Line 3807  AC_MSG_CHECKING([for $compiler option to
3807    if test "$GXX" = yes; then    if test "$GXX" = yes; then
3808      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3809      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3810      
3811      case $host_os in      case $host_os in
3812      aix*)      aix*)
3813        # All AIX code is PIC.        # All AIX code is PIC.
# Line 4040  AC_MSG_CHECKING([for $compiler option to Line 4040  AC_MSG_CHECKING([for $compiler option to
4040    if test "$GCC" = yes; then    if test "$GCC" = yes; then
4041      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4042      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4043      
4044      case $host_os in      case $host_os in
4045        aix*)        aix*)
4046        # All AIX code is PIC.        # All AIX code is PIC.
# Line 4049  AC_MSG_CHECKING([for $compiler option to Line 4049  AC_MSG_CHECKING([for $compiler option to
4049          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4050        fi        fi
4051        ;;        ;;
4052      
4053      amigaos*)      amigaos*)
4054        # FIXME: we need at least 68020 code to build shared libraries, but        # FIXME: we need at least 68020 code to build shared libraries, but
4055        # adding the `-m68020' flag to GCC prevents building anything better,        # adding the `-m68020' flag to GCC prevents building anything better,
4056        # like `-m68040'.        # like `-m68040'.
4057        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4058        ;;        ;;
4059      
4060      beos* | irix5* | irix6* | osf3* | osf4* | osf5*)      beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4061        # PIC is the default for these OSes.        # PIC is the default for these OSes.
4062        ;;        ;;
4063      
4064      cygwin* | mingw* | pw32* | os2*)      cygwin* | mingw* | pw32* | os2*)
4065        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
4066        # built for inclusion in a dll (and should export symbols for example).        # built for inclusion in a dll (and should export symbols for example).
4067        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4068        ;;        ;;
4069      
4070      darwin* | rhapsody*)      darwin* | rhapsody*)
4071        # PIC is the default on this platform        # PIC is the default on this platform
4072        # Common symbols not allowed in MH_DYLIB files        # Common symbols not allowed in MH_DYLIB files
4073        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4074        ;;        ;;
4075      
4076      msdosdjgpp*)      msdosdjgpp*)
4077        # Just because we use GCC doesn't mean we suddenly get shared libraries        # Just because we use GCC doesn't mean we suddenly get shared libraries
4078        # on systems that don't support them.        # on systems that don't support them.
4079        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4080        enable_shared=no        enable_shared=no
4081        ;;        ;;
4082      
4083      sysv4*MP*)      sysv4*MP*)
4084        if test -d /usr/nec; then        if test -d /usr/nec; then
4085          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
# Line 4092  AC_MSG_CHECKING([for $compiler option to Line 4092  AC_MSG_CHECKING([for $compiler option to
4092          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4093        fi        fi
4094        ;;        ;;
4095      
4096      *)      *)
4097        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4098        ;;        ;;
# Line 4109  AC_MSG_CHECKING([for $compiler option to Line 4109  AC_MSG_CHECKING([for $compiler option to
4109          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4110        fi        fi
4111        ;;        ;;
4112      
4113      cygwin* | mingw* | pw32* | os2*)      cygwin* | mingw* | pw32* | os2*)
4114        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
4115        # built for inclusion in a dll (and should export symbols for example).        # built for inclusion in a dll (and should export symbols for example).
4116        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4117        ;;        ;;
4118      
4119      hpux9* | hpux10* | hpux11*)      hpux9* | hpux10* | hpux11*)
4120        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4121        if test "$host_cpu" != ia64; then        if test "$host_cpu" != ia64; then
# Line 4124  AC_MSG_CHECKING([for $compiler option to Line 4124  AC_MSG_CHECKING([for $compiler option to
4124        # Is there a better lt_prog_compiler_static that works with the bundled CC?        # Is there a better lt_prog_compiler_static that works with the bundled CC?
4125        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4126        ;;        ;;
4127      
4128      irix5* | irix6*)      irix5* | irix6*)
4129        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4130        # PIC (with -KPIC) is the default.        # PIC (with -KPIC) is the default.
4131        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4132        ;;        ;;
4133      
4134      newsos6)      newsos6)
4135        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4136        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4137        ;;        ;;
4138      
4139      osf3* | osf4* | osf5*)      osf3* | osf4* | osf5*)
4140        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4141        # All OSF/1 code is PIC.        # All OSF/1 code is PIC.
4142        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4143        ;;        ;;
4144      
4145      sco3.2v5*)      sco3.2v5*)
4146        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
4147        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
4148        ;;        ;;
4149      
4150      solaris*)      solaris*)
4151        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4152        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4153        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4154        ;;        ;;
4155      
4156      sunos4*)      sunos4*)
4157        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4158        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4159        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4160        ;;        ;;
4161      
4162      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4163        if test "x$host_vendor" = xsni; then        if test "x$host_vendor" = xsni; then
4164          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-LD'          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-LD'
# Line 4168  AC_MSG_CHECKING([for $compiler option to Line 4168  AC_MSG_CHECKING([for $compiler option to
4168        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4169        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4170        ;;        ;;
4171      
4172      sysv4*MP*)      sysv4*MP*)
4173        if test -d /usr/nec ;then        if test -d /usr/nec ;then
4174          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4175          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4176        fi        fi
4177        ;;        ;;
4178      
4179      uts4*)      uts4*)
4180        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4181        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4182        ;;        ;;
4183      
4184      *)      *)
4185        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4186        ;;        ;;
# Line 4242  ifelse([$1],[CXX],[ Line 4242  ifelse([$1],[CXX],[
4242  ],[  ],[
4243    runpath_var=    runpath_var=
4244    _LT_AC_TAGVAR(allow_undefined_flag, $1)=    _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4245      
4246    _LT_AC_TAGVAR(archive_cmds, $1)=    _LT_AC_TAGVAR(archive_cmds, $1)=
4247    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=
4248    _LT_AC_TAGVAR(archive_expsym_cmds, $1)=    _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
# Line 4273  ifelse([$1],[CXX],[ Line 4273  ifelse([$1],[CXX],[
4273    # rely on this symbol name, it's probably fine to never include it in    # rely on this symbol name, it's probably fine to never include it in
4274    # preloaded symbol tables.    # preloaded symbol tables.
4275    extract_expsyms_cmds=    extract_expsyms_cmds=
4276      
4277    case $host_os in    case $host_os in
4278    cygwin* | mingw* | pw32*)    cygwin* | mingw* | pw32*)
4279      # FIXME: the MSVC++ port hasn't been tested in a loooong time      # FIXME: the MSVC++ port hasn't been tested in a loooong time
# Line 4287  ifelse([$1],[CXX],[ Line 4287  ifelse([$1],[CXX],[
4287      with_gnu_ld=no      with_gnu_ld=no
4288      ;;      ;;
4289    esac    esac
4290      
4291    _LT_AC_TAGVAR(ld_shlibs, $1)=yes    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4292    if test "$with_gnu_ld" = yes; then    if test "$with_gnu_ld" = yes; then
4293      # If archive_cmds runs LD, not CC, wlarc should be empty      # If archive_cmds runs LD, not CC, wlarc should be empty
4294      wlarc='${wl}'      wlarc='${wl}'
4295      
4296      # See if GNU ld supports shared libraries.      # See if GNU ld supports shared libraries.
4297      case $host_os in      case $host_os in
4298      aix3* | aix4* | aix5*)      aix3* | aix4* | aix5*)
# Line 4310  ifelse([$1],[CXX],[ Line 4310  ifelse([$1],[CXX],[
4310  EOF  EOF
4311        fi        fi
4312        ;;        ;;
4313      
4314      amigaos*)      amigaos*)
4315        _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)'        _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)'
4316        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4317        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4318      
4319        # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports        # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4320        # that the semantics of dynamic libraries on AmigaOS, at least up        # that the semantics of dynamic libraries on AmigaOS, at least up
4321        # to version 4, is to share data among multiple programs linked        # to version 4, is to share data among multiple programs linked
# Line 4324  EOF Line 4324  EOF
4324        # them.        # them.
4325        _LT_AC_TAGVAR(ld_shlibs, $1)=no        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4326        ;;        ;;
4327      
4328      beos*)      beos*)
4329        if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4330          _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported          _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
# Line 4335  EOF Line 4335  EOF
4335          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4336        fi        fi
4337        ;;        ;;
4338      
4339      cygwin* | mingw* | pw32*)      cygwin* | mingw* | pw32*)
4340        # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, as there is        # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, as there is
4341        # no search path for DLLs.        # no search path for DLLs.
4342        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4343        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4344        _LT_AC_TAGVAR(always_export_symbols, $1)=yes        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4345      
4346        extract_expsyms_cmds='test -f $output_objdir/impgen.c || \        extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4347          sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~          sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4348          test -f $output_objdir/impgen.exe || (cd $output_objdir && \          test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4349          if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \          if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4350          else $CC -o impgen impgen.c ; fi)~          else $CC -o impgen impgen.c ; fi)~
4351          $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'          $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4352      
4353        _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'        _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4354      
4355        # cygwin and mingw dlls have different entry points and sets of symbols        # cygwin and mingw dlls have different entry points and sets of symbols
4356        # to exclude.        # to exclude.
4357        # FIXME: what about values for MSVC?        # FIXME: what about values for MSVC?
# Line 4364  EOF Line 4364  EOF
4364          dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~          dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4365          ;;          ;;
4366        esac        esac
4367      
4368        # mingw and cygwin differ, and it's simplest to just exclude the union        # mingw and cygwin differ, and it's simplest to just exclude the union
4369        # of the two symbol sets.        # of the two symbol sets.
4370        dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12        dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4371      
4372        # recent cygwin and mingw systems supply a stub DllMain which the user        # recent cygwin and mingw systems supply a stub DllMain which the user
4373        # can override, but on older systems we have to supply one (in ltdll.c)        # can override, but on older systems we have to supply one (in ltdll.c)
4374        if test "x$lt_cv_need_dllmain" = "xyes"; then        if test "x$lt_cv_need_dllmain" = "xyes"; then
# Line 4379  EOF Line 4379  EOF
4379          ltdll_obj=          ltdll_obj=
4380          ltdll_cmds=          ltdll_cmds=
4381        fi        fi
4382      
4383        # Extract the symbol export list from an `--export-all' def file,        # Extract the symbol export list from an `--export-all' def file,
4384        # then regenerate the def file from the symbol export list, so that        # then regenerate the def file from the symbol export list, so that
4385        # the compiled dll only exports the symbol export list.        # the compiled dll only exports the symbol export list.
# Line 4387  EOF Line 4387  EOF
4387        _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"'        _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"'
4388          $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~          $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4389          [sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"] < $output_objdir/$soname-def > $export_symbols'          [sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"] < $output_objdir/$soname-def > $export_symbols'
4390      
4391        # If the export-symbols file already is a .def file (1st line        # If the export-symbols file already is a .def file (1st line
4392        # is EXPORTS), use it as is.        # is EXPORTS), use it as is.
4393        # If DATA tags from a recent dlltool are present, honour them!        # If DATA tags from a recent dlltool are present, honour them!
# Line 4412  EOF Line 4412  EOF
4412          $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~          $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4413          $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'          $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4414        ;;        ;;
4415      
4416      darwin* | rhapsody*)      darwin* | rhapsody*)
4417        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'        case "$host_os" in
4418          rhapsody* | darwin1.[[012]])
4419            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4420            ;;
4421          *) # Darwin 1.3 on
4422            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4423            ;;
4424          esac
4425    
4426        # FIXME: Relying on posixy $() will cause problems for        # FIXME: Relying on posixy $() will cause problems for
4427        #        cross-compilation, but unfortunately the echo tests do not        #        cross-compilation, but unfortunately the echo tests do not
4428        #        yet detect zsh echo's removal of \ escapes.        #        yet detect zsh echo's removal of \ escapes.
4429        _LT_AC_TAGVAR(archive_cmds, $1)='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'        _LT_AC_TAGVAR(archive_cmds, $1)='$CC $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
4430        # We need to add '_' to the symbols in $export_symbols first        # We need to add '_' to the symbols in $export_symbols first
4431        #_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$_LT_AC_TAGVAR(archive_cmds, $1)"' && strip -s $export_symbols'        #_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$_LT_AC_TAGVAR(archive_cmds, $1)"' && strip -s $export_symbols'
4432        _LT_AC_TAGVAR(hardcode_direct, $1)=yes        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4433        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4434        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4435        ;;        ;;
4436      
4437      netbsd*)      netbsd*)
4438        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4439          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
# Line 4435  EOF Line 4443  EOF
4443          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nodefaultlibs $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 -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4444        fi        fi
4445        ;;        ;;
4446      
4447      solaris* | sysv5*)      solaris* | sysv5*)
4448        if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then        if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4449          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4450          cat <<EOF 1>&2          cat <<EOF 1>&2
4451      
4452  *** Warning: The releases 2.8.* of the GNU linker cannot reliably  *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4453  *** create shared libraries on Solaris systems.  Therefore, libtool  *** create shared libraries on Solaris systems.  Therefore, libtool
4454  *** is disabling shared libraries support.  We urge you to upgrade GNU  *** is disabling shared libraries support.  We urge you to upgrade GNU
4455  *** binutils to release 2.9.1 or newer.  Another option is to modify  *** binutils to release 2.9.1 or newer.  Another option is to modify
4456  *** your PATH or compiler configuration so that the native linker is  *** your PATH or compiler configuration so that the native linker is
4457  *** used, and then restart.  *** used, and then restart.
4458      
4459  EOF  EOF
4460        elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then        elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4461          _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 4456  EOF Line 4464  EOF
4464          _LT_AC_TAGVAR(ld_shlibs, $1)=no          _LT_AC_TAGVAR(ld_shlibs, $1)=no
4465        fi        fi
4466        ;;        ;;
4467      
4468      sunos4*)      sunos4*)
4469        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4470        wlarc=        wlarc=
4471        _LT_AC_TAGVAR(hardcode_direct, $1)=yes        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4472        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4473        ;;        ;;
4474      
4475      *)      *)
4476        if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4477          _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 4473  EOF Line 4481  EOF
4481        fi        fi
4482        ;;        ;;
4483      esac      esac
4484      
4485      if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then      if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
4486        runpath_var=LD_RUN_PATH        runpath_var=LD_RUN_PATH
4487        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
# Line 4509  EOF Line 4517  EOF
4517          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4518        fi        fi
4519        ;;        ;;
4520      
4521      aix4* | aix5*)      aix4* | aix5*)
4522        if test "$host_cpu" = ia64; then        if test "$host_cpu" = ia64; then
4523          # On IA64, the linker does run time linking by default, so we don't          # On IA64, the linker does run time linking by default, so we don't
# Line 4526  EOF Line 4534  EOF
4534            _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'            _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4535          fi          fi
4536          aix_use_runtimelinking=no          aix_use_runtimelinking=no
4537      
4538          # Test if we are trying to use run time linking or normal          # Test if we are trying to use run time linking or normal
4539          # AIX style linking. If -brtl is somewhere in LDFLAGS, we          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4540          # need to do runtime linking.          # need to do runtime linking.
# Line 4538  EOF Line 4546  EOF
4546            fi            fi
4547            done            done
4548          esac          esac
4549      
4550          exp_sym_flag='-bexport'          exp_sym_flag='-bexport'
4551          no_entry_flag='-bnoentry'          no_entry_flag='-bnoentry'
4552        fi        fi
4553      
4554        # When large executables or shared objects are built, AIX ld can        # When large executables or shared objects are built, AIX ld can
4555        # have problems creating the table of contents.  If linking a library        # have problems creating the table of contents.  If linking a library
4556        # or program results in "error TOC overflow" add -mminimal-toc to        # or program results in "error TOC overflow" add -mminimal-toc to
4557        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4558        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4559      
4560        _LT_AC_TAGVAR(archive_cmds, $1)=''        _LT_AC_TAGVAR(archive_cmds, $1)=''
4561        _LT_AC_TAGVAR(hardcode_direct, $1)=yes        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4562        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4563        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4564      
4565        if test "$GCC" = yes; then        if test "$GCC" = yes; then
4566          case $host_os in aix4.[012]|aix4.[012].*)          case $host_os in aix4.[012]|aix4.[012].*)
4567          # We only want to do this on AIX 4.2 and lower, the check          # We only want to do this on AIX 4.2 and lower, the check
# Line 4590  EOF Line 4598  EOF
4598          fi          fi
4599          fi          fi
4600        fi        fi
4601      
4602        # It seems that -bexpall does not export symbols beginning with        # It seems that -bexpall does not export symbols beginning with
4603        # underscore (_), so it is better to generate a list of symbols to export.        # underscore (_), so it is better to generate a list of symbols to export.
4604        _LT_AC_TAGVAR(always_export_symbols, $1)=yes        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
# Line 4625  EOF Line 4633  EOF
4633          fi          fi
4634        fi        fi
4635        ;;        ;;
4636      
4637      amigaos*)      amigaos*)
4638        _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)'        _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)'
4639        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
# Line 4633  EOF Line 4641  EOF
4641        # see comment about different semantics on the GNU ld section        # see comment about different semantics on the GNU ld section
4642        _LT_AC_TAGVAR(ld_shlibs, $1)=no        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4643        ;;        ;;
4644      
4645      bsdi4*)      bsdi4*)
4646        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4647        ;;        ;;
4648      
4649      cygwin* | mingw* | pw32*)      cygwin* | mingw* | pw32*)
4650        # When not using gcc, we currently assume that we are using        # When not using gcc, we currently assume that we are using
4651        # Microsoft Visual C++.        # Microsoft Visual C++.
# Line 4655  EOF Line 4663  EOF
4663        _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'        _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
4664        fix_srcfile_path='`cygpath -w "$srcfile"`'        fix_srcfile_path='`cygpath -w "$srcfile"`'
4665        ;;        ;;
4666      
4667      dgux*)      dgux*)
4668        _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'
4669        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4670        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4671        ;;        ;;
4672      
4673      freebsd1*)      freebsd1*)
4674        _LT_AC_TAGVAR(ld_shlibs, $1)=no        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4675        ;;        ;;
4676      
4677      # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor      # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4678      # support.  Future versions do this automatically, but an explicit c++rt0.o      # support.  Future versions do this automatically, but an explicit c++rt0.o
4679      # does not break anything, and helps significantly (at the cost of a little      # does not break anything, and helps significantly (at the cost of a little
# Line 4676  EOF Line 4684  EOF
4684        _LT_AC_TAGVAR(hardcode_direct, $1)=yes        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4685        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4686        ;;        ;;
4687      
4688      # Unfortunately, older versions of FreeBSD 2 do not have this feature.      # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4689      freebsd2*)      freebsd2*)
4690        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
# Line 4684  EOF Line 4692  EOF
4692        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4693        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4694        ;;        ;;
4695      
4696      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4697      freebsd*)      freebsd*)
4698        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
# Line 4692  EOF Line 4700  EOF
4700        _LT_AC_TAGVAR(hardcode_direct, $1)=yes        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4701        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4702        ;;        ;;
4703      
4704      hpux9* | hpux10* | hpux11*)      hpux9* | hpux10* | hpux11*)
4705        if test $GXX = yes; then        if test $GXX = yes; then
4706          case $host_os in          case $host_os in
# Line 4712  EOF Line 4720  EOF
4720            hpux9*)            hpux9*)
4721              _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'              _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4722              ;;              ;;
4723            *)            *)
4724              if test "$host_cpu" = ia64; then              if test "$host_cpu" = ia64; then
4725                _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'                _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
4726              else              else
# Line 4735  EOF Line 4743  EOF
4743        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4744        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4745        ;;        ;;
4746      
4747      irix5* | irix6*)      irix5* | irix6*)
4748        if test "$GCC" = yes; then        if test "$GCC" = yes; then
4749          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
# Line 4746  EOF Line 4754  EOF
4754        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4755        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4756        ;;        ;;
4757      
4758      netbsd*)      netbsd*)
4759        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4760          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
# Line 4757  EOF Line 4765  EOF
4765        _LT_AC_TAGVAR(hardcode_direct, $1)=yes        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4766        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4767        ;;        ;;
4768      
4769      newsos6)      newsos6)
4770        _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'
4771        _LT_AC_TAGVAR(hardcode_direct, $1)=yes        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
# Line 4765  EOF Line 4773  EOF
4773        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4774        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4775        ;;        ;;
4776      
4777      openbsd*)      openbsd*)
4778        _LT_AC_TAGVAR(hardcode_direct, $1)=yes        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4779        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4780        
4781        case "$host_os" in        case "$host_os" in
4782          openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)          openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4783            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
# Line 4784  EOF Line 4792  EOF
4792          ;;          ;;
4793        esac        esac
4794        ;;        ;;
4795      
4796      os2*)      os2*)
4797        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4798        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
# Line 4792  EOF Line 4800  EOF
4800        _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'        _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4801        _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'        _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4802        ;;        ;;
4803      
4804      osf3*)      osf3*)
4805        if test "$GCC" = yes; then        if test "$GCC" = yes; then
4806          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
# Line 4804  EOF Line 4812  EOF
4812        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4813        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4814        ;;        ;;
4815      
4816      osf4* | osf5*)      # as osf3* with the addition of -msym flag      osf4* | osf5*)      # as osf3* with the addition of -msym flag
4817        if test "$GCC" = yes; then        if test "$GCC" = yes; then
4818          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
# Line 4815  EOF Line 4823  EOF
4823          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4824          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4825          $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'          $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4826      
4827          # Both c and cxx compiler support -rpath directly          # Both c and cxx compiler support -rpath directly
4828          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4829        fi        fi
4830        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4831        ;;        ;;
4832      
4833      sco3.2v5*)      sco3.2v5*)
4834        _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'
4835        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
# Line 4829  EOF Line 4837  EOF
4837        runpath_var=LD_RUN_PATH        runpath_var=LD_RUN_PATH
4838        hardcode_runpath_var=yes        hardcode_runpath_var=yes
4839        ;;        ;;
4840      
4841      solaris*)      solaris*)
4842        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z defs'        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z defs'
4843        if test "$GXX" = yes; then        if test "$GXX" = yes; then
# Line 4850  EOF Line 4858  EOF
4858        esac        esac
4859        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4860        ;;        ;;
4861      
4862      sunos4*)      sunos4*)
4863        if test "x$host_vendor" = xsequent; then        if test "x$host_vendor" = xsequent; then
4864          # Use $CC to link under sequent, because it throws in some extra .o          # Use $CC to link under sequent, because it throws in some extra .o
# Line 4864  EOF Line 4872  EOF
4872        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4873        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4874        ;;        ;;
4875      
4876      sysv4)      sysv4)
4877        if test "x$host_vendor" = xsni; then        if test "x$host_vendor" = xsni; then
4878          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
# Line 4876  EOF Line 4884  EOF
4884        runpath_var='LD_RUN_PATH'        runpath_var='LD_RUN_PATH'
4885        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4886        ;;        ;;
4887      
4888      sysv4.3*)      sysv4.3*)
4889        _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'
4890        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4891        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
4892        ;;        ;;
4893      
4894      sysv4*MP*)      sysv4*MP*)
4895        if test -d /usr/nec; then        if test -d /usr/nec; then
4896          _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'
# Line 4892  EOF Line 4900  EOF
4900          _LT_AC_TAGVAR(ld_shlibs, $1)=yes          _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4901        fi        fi
4902        ;;        ;;
4903      
4904      sysv4.2uw2*)      sysv4.2uw2*)
4905        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4906        _LT_AC_TAGVAR(hardcode_direct, $1)=yes        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
# Line 4901  EOF Line 4909  EOF
4909        hardcode_runpath_var=yes        hardcode_runpath_var=yes
4910        runpath_var=LD_RUN_PATH        runpath_var=LD_RUN_PATH
4911        ;;        ;;
4912      
4913     sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)     sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
4914        _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'        _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
4915        if test "$GCC" = yes; then        if test "$GCC" = yes; then
# Line 4912  EOF Line 4920  EOF
4920        runpath_var='LD_RUN_PATH'        runpath_var='LD_RUN_PATH'
4921        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4922        ;;        ;;
4923      
4924      sysv5*)      sysv5*)
4925        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4926        # $CC -shared without GNU ld will not create a library from C++        # $CC -shared without GNU ld will not create a library from C++
# Line 4924  EOF Line 4932  EOF
4932        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4933        runpath_var='LD_RUN_PATH'        runpath_var='LD_RUN_PATH'
4934        ;;        ;;
4935      
4936      uts4*)      uts4*)
4937        _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'
4938        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4939        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4940        ;;        ;;
4941      
4942      *)      *)
4943        _LT_AC_TAGVAR(ld_shlibs, $1)=no        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4944        ;;        ;;

Legend:
Removed from v.1.220  
changed lines
  Added in v.1.221

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