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

Diff of /libtool/libtool.m4

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

revision 1.219 by othman, Sun Aug 19 20:20:25 2001 UTC revision 1.220 by rboehne, Fri Aug 31 16:59:56 2001 UTC
# Line 3801  AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], Line 3801  AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
3801  _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=  _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3802  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
3803    
3804  ifelse([$1],[CXX],[  AC_MSG_CHECKING([for $compiler option to produce PIC])
3805     ifelse([$1],[CXX],[
3806    # C++ specific cases for pic, static, wl, etc.    # C++ specific cases for pic, static, wl, etc.
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,'
# Line 4035  ifelse([$1],[CXX],[ Line 4036  ifelse([$1],[CXX],[
4036      esac      esac
4037    fi    fi
4038  ],  ],
4039  [AC_MSG_CHECKING([for $compiler option to produce PIC])  [
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'
# Line 4219  esac Line 4220  esac
4220  # See if the linker supports building shared libraries.  # See if the linker supports building shared libraries.
4221  AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],  AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
4222  [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])  [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4223  ifelse([$1],[CXX],[],[  ifelse([$1],[CXX],[
4224      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4225      case $host_os in
4226      aix4* | aix5*)
4227        # If we're using GNU nm, then we don't want the "-C" option.
4228        # -C means demangle to AIX nm, but means don't demangle with GNU nm
4229        if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
4230          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4231        else
4232          _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'
4233        fi
4234        ;;
4235      cygwin* | mingw* | pw32*)
4236        _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"'
4237      ;;
4238      *)
4239        _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4240      ;;
4241      esac
4242    ],[
4243    runpath_var=    runpath_var=
4244    _LT_AC_TAGVAR(allow_undefined_flag, $1)=    _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4245        
# Line 4498  EOF Line 4518  EOF
4518          exp_sym_flag='-Bexport'          exp_sym_flag='-Bexport'
4519          no_entry_flag=""          no_entry_flag=""
4520        else        else
4521            # If we're using GNU nm, then we don't want the "-C" option.
4522            # -C means demangle to AIX nm, but means don't demangle with GNU nm
4523            if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
4524              _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4525            else
4526              _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'
4527            fi
4528          aix_use_runtimelinking=no          aix_use_runtimelinking=no
4529        
4530          # Test if we are trying to use run time linking or normal          # Test if we are trying to use run time linking or normal

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

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