/[debian]/mimetic/branches/upstream/current/ltmain.sh
ViewVC logotype

Diff of /mimetic/branches/upstream/current/ltmain.sh

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

revision 1728 by gregoa, Wed Oct 8 16:15:50 2008 UTC revision 1729 by gregoa, Fri May 15 15:30:29 2009 UTC
# Line 1  Line 1 
1  # ltmain.sh - Provide generalized library-building support services.  # ltmain.sh - Provide generalized library-building support services.
2  # NOTE: Changing this file will not affect anything until you rerun configure.  # NOTE: Changing this file will not affect anything until you rerun configure.
3  #  #
4  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5  # Free Software Foundation, Inc.  # 2007, 2008  Free Software Foundation, Inc.
6  # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996  # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7  #  #
8  # This program is free software; you can redistribute it and/or modify  # This program is free software; you can redistribute it and/or modify
# Line 43  EXIT_FAILURE=1 Line 43  EXIT_FAILURE=1
43    
44  PROGRAM=ltmain.sh  PROGRAM=ltmain.sh
45  PACKAGE=libtool  PACKAGE=libtool
46  VERSION="1.5.22 Debian 1.5.22-4"  VERSION="1.5.26 Debian 1.5.26-1ubuntu1"
47  TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"  TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
48    
49  # See if we are running on zsh, and set the options which allow our  # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
50  # commands through without removal of \ escapes.  if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51  if test -n "${ZSH_VERSION+set}" ; then    emulate sh
52      NULLCMD=:
53      # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
54      # is contrary to our usage.  Disable this feature.
55      alias -g '${1+"$@"}'='"$@"'
56    setopt NO_GLOB_SUBST    setopt NO_GLOB_SUBST
57    else
58      case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
59  fi  fi
60    BIN_SH=xpg4; export BIN_SH # for Tru64
61    DUALCASE=1; export DUALCASE # for MKS sh
62    
63  # Check that we have a working $echo.  # Check that we have a working $echo.
64  if test "X$1" = X--no-reexec; then  if test "X$1" = X--no-reexec; then
# Line 105  esac Line 113  esac
113  # These must not be set unconditionally because not all systems understand  # These must not be set unconditionally because not all systems understand
114  # e.g. LANG=C (notably SCO).  # e.g. LANG=C (notably SCO).
115  # We save the old values to restore during execute mode.  # We save the old values to restore during execute mode.
116  if test "${LC_ALL+set}" = set; then  lt_env=
117    save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL  for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
118  fi  do
119  if test "${LANG+set}" = set; then    eval "if test \"\${$lt_var+set}\" = set; then
120    save_LANG="$LANG"; LANG=C; export LANG            save_$lt_var=\$$lt_var
121              lt_env=\"$lt_var=\$$lt_var \$lt_env\"
122              $lt_var=C
123              export $lt_var
124            fi"
125    done
126    
127    if test -n "$lt_env"; then
128      lt_env="env $lt_env"
129  fi  fi
130    
131  # Make sure IFS has a sensible default  # Make sure IFS has a sensible default
# Line 136  duplicate_deps=no Line 152  duplicate_deps=no
152  preserve_args=  preserve_args=
153  lo2o="s/\\.lo\$/.${objext}/"  lo2o="s/\\.lo\$/.${objext}/"
154  o2lo="s/\\.${objext}\$/.lo/"  o2lo="s/\\.${objext}\$/.lo/"
155    extracted_archives=
156    extracted_serial=0
157    
158  #####################################  #####################################
159  # Shell function definitions:  # Shell function definitions:
# Line 196  func_win32_libid () Line 214  func_win32_libid ()
214      if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \      if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
215        $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then        $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
216        win32_nmres=`eval $NM -f posix -A $1 | \        win32_nmres=`eval $NM -f posix -A $1 | \
217          $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`          $SED -n -e '1,100{
218                    / I /{
219                            s,.*,import,
220                            p
221                            q
222                            }
223                    }'`
224        case $win32_nmres in        case $win32_nmres in
225        import*)  win32_libid_type="x86 archive import";;        import*)  win32_libid_type="x86 archive import";;
226        *)        win32_libid_type="x86 archive static";;        *)        win32_libid_type="x86 archive static";;
# Line 327  func_extract_archives () Line 351  func_extract_archives ()
351          *) my_xabs=`pwd`"/$my_xlib" ;;          *) my_xabs=`pwd`"/$my_xlib" ;;
352        esac        esac
353        my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`        my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
354        my_xdir="$my_gentop/$my_xlib"        my_xlib_u=$my_xlib
355          while :; do
356            case " $extracted_archives " in
357            *" $my_xlib_u "*)
358              extracted_serial=`expr $extracted_serial + 1`
359              my_xlib_u=lt$extracted_serial-$my_xlib ;;
360            *) break ;;
361            esac
362          done
363          extracted_archives="$extracted_archives $my_xlib_u"
364          my_xdir="$my_gentop/$my_xlib_u"
365    
366        $show "${rm}r $my_xdir"        $show "${rm}r $my_xdir"
367        $run ${rm}r "$my_xdir"        $run ${rm}r "$my_xdir"
# Line 454  do Line 488  do
488      ;;      ;;
489    
490    --version)    --version)
491      $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"      echo "\
492      $echo  $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
493      $echo "Copyright (C) 2005  Free Software Foundation, Inc."  
494      $echo "This is free software; see the source for copying conditions.  There is NO"  Copyright (C) 2008  Free Software Foundation, Inc.
495      $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."  This is free software; see the source for copying conditions.  There is NO
496    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
497      exit $?      exit $?
498      ;;      ;;
499    
# Line 755  if test -z "$show_help"; then Line 790  if test -z "$show_help"; then
790      *.class) xform=class ;;      *.class) xform=class ;;
791      *.cpp) xform=cpp ;;      *.cpp) xform=cpp ;;
792      *.cxx) xform=cxx ;;      *.cxx) xform=cxx ;;
793      *.f90) xform=f90 ;;      *.[fF][09]?) xform=[fF][09]. ;;
794      *.for) xform=for ;;      *.for) xform=for ;;
795      *.java) xform=java ;;      *.java) xform=java ;;
796        *.obj) xform=obj ;;
797        *.sx) xform=sx ;;
798      esac      esac
799    
800      libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`      libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
# Line 926  EOF Line 963  EOF
963        $run $rm "$lobj" "$output_obj"        $run $rm "$lobj" "$output_obj"
964    
965        $show "$command"        $show "$command"
966        if $run eval "$command"; then :        if $run eval $lt_env "$command"; then :
967        else        else
968          test -n "$output_obj" && $run $rm $removelist          test -n "$output_obj" && $run $rm $removelist
969          exit $EXIT_FAILURE          exit $EXIT_FAILURE
# Line 998  EOF Line 1035  EOF
1035        command="$command$suppress_output"        command="$command$suppress_output"
1036        $run $rm "$obj" "$output_obj"        $run $rm "$obj" "$output_obj"
1037        $show "$command"        $show "$command"
1038        if $run eval "$command"; then :        if $run eval $lt_env "$command"; then :
1039        else        else
1040          $run $rm $removelist          $run $rm $removelist
1041          exit $EXIT_FAILURE          exit $EXIT_FAILURE
# Line 1131  EOF Line 1168  EOF
1168      thread_safe=no      thread_safe=no
1169      vinfo=      vinfo=
1170      vinfo_number=no      vinfo_number=no
1171        single_module="${wl}-single_module"
1172    
1173      func_infer_tag $base_compile      func_infer_tag $base_compile
1174    
# Line 1138  EOF Line 1176  EOF
1176      for arg      for arg
1177      do      do
1178        case $arg in        case $arg in
1179        -all-static | -static)        -all-static | -static | -static-libtool-libs)
1180          if test "X$arg" = "X-all-static"; then          case $arg in
1181            -all-static)
1182            if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then            if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1183              $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2              $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1184            fi            fi
# Line 1147  EOF Line 1186  EOF
1186              dlopen_self=$dlopen_self_static              dlopen_self=$dlopen_self_static
1187            fi            fi
1188            prefer_static_libs=yes            prefer_static_libs=yes
1189          else            ;;
1190            -static)
1191            if test -z "$pic_flag" && test -n "$link_static_flag"; then            if test -z "$pic_flag" && test -n "$link_static_flag"; then
1192              dlopen_self=$dlopen_self_static              dlopen_self=$dlopen_self_static
1193            fi            fi
1194            prefer_static_libs=built            prefer_static_libs=built
1195          fi            ;;
1196            -static-libtool-libs)
1197              if test -z "$pic_flag" && test -n "$link_static_flag"; then
1198                dlopen_self=$dlopen_self_static
1199              fi
1200              prefer_static_libs=yes
1201              ;;
1202            esac
1203          build_libtool_libs=no          build_libtool_libs=no
1204          build_old_libs=yes          build_old_libs=yes
1205          break          break
# Line 1600  EOF Line 1647  EOF
1647          continue          continue
1648          ;;          ;;
1649    
1650       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1651          compiler_flags="$compiler_flags $arg"          compiler_flags="$compiler_flags $arg"
1652          compile_command="$compile_command $arg"          compile_command="$compile_command $arg"
1653          finalize_command="$finalize_command $arg"          finalize_command="$finalize_command $arg"
1654          continue          continue
1655          ;;          ;;
1656    
1657          -multi_module)
1658            single_module="${wl}-multi_module"
1659            continue
1660            ;;
1661    
1662        -module)        -module)
1663          module=yes          module=yes
1664          continue          continue
# Line 1620  EOF Line 1672  EOF
1672        # -m* pass through architecture-specific compiler args for GCC        # -m* pass through architecture-specific compiler args for GCC
1673        # -m*, -t[45]*, -txscale* pass through architecture-specific        # -m*, -t[45]*, -txscale* pass through architecture-specific
1674        # compiler args for GCC        # compiler args for GCC
1675        # -pg pass through profiling flag for GCC        # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
1676          # -F/path gives path to uninstalled frameworks, gcc on darwin
1677        # @file GCC response files        # @file GCC response files
1678        -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \        -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
1679        -t[45]*|-txscale*|@*)        -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1680    
1681          # Unknown arguments in both finalize_command and compile_command need          # Unknown arguments in both finalize_command and compile_command need
1682          # to be aesthetically quoted because they are evaled later.          # to be aesthetically quoted because they are evaled later.
# Line 1651  EOF Line 1704  EOF
1704    
1705        -no-install)        -no-install)
1706          case $host in          case $host in
1707          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)          *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
1708            # The PATH hackery in wrapper scripts is required on Windows            # The PATH hackery in wrapper scripts is required on Windows
1709            # in order for the loader to find any dlls it needs.            # and Darwin in order for the loader to find any dlls it needs.
1710            $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2            $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1711            $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2            $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1712            fast_install=no            fast_install=no
# Line 1712  EOF Line 1765  EOF
1765          continue          continue
1766          ;;          ;;
1767    
1768        -static)        -static | -static-libtool-libs)
1769          # The effects of -static are defined in a previous loop.          # The effects of -static are defined in a previous loop.
1770          # We used to do the same as -all-static on platforms that          # We used to do the same as -all-static on platforms that
1771          # didn't have a PIC flag, but the assumption that the effects          # didn't have a PIC flag, but the assumption that the effects
# Line 2097  EOF Line 2150  EOF
2150          lib=          lib=
2151          found=no          found=no
2152          case $deplib in          case $deplib in
2153          -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)          -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
2154            if test "$linkmode,$pass" = "prog,link"; then            if test "$linkmode,$pass" = "prog,link"; then
2155              compile_deplibs="$deplib $compile_deplibs"              compile_deplibs="$deplib $compile_deplibs"
2156              finalize_deplibs="$deplib $finalize_deplibs"              finalize_deplibs="$deplib $finalize_deplibs"
# Line 2112  EOF Line 2165  EOF
2165              continue              continue
2166            fi            fi
2167            name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`            name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2168            for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do            if test "$linkmode" = lib; then
2169                searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
2170              else
2171                searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
2172              fi
2173              for searchdir in $searchdirs; do
2174              for search_ext in .la $std_shrext .so .a; do              for search_ext in .la $std_shrext .so .a; do
2175                # Search the libtool library                # Search the libtool library
2176                lib="$searchdir/lib${name}${search_ext}"                lib="$searchdir/lib${name}${search_ext}"
# Line 2493  EOF Line 2551  EOF
2551    
2552          if test "$linkmode,$pass" = "prog,link"; then          if test "$linkmode,$pass" = "prog,link"; then
2553            if test -n "$library_names" &&            if test -n "$library_names" &&
2554               { test "$prefer_static_libs" = no || test -z "$old_library"; }; then               { { test "$prefer_static_libs" = no ||
2555                     test "$prefer_static_libs,$installed" = "built,yes"; } ||
2556                   test -z "$old_library"; }; then
2557              # We need to hardcode the library path              # We need to hardcode the library path
2558              if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then              if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2559                # Make sure the rpath contains only unique directories.                # Make sure the rpath contains only unique directories.
# Line 2906  EOF Line 2966  EOF
2966                    # we do not want to link against static libs,                    # we do not want to link against static libs,
2967                    # but need to link against shared                    # but need to link against shared
2968                    eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`                    eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2969                      eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2970                    if test -n "$deplibrary_names" ; then                    if test -n "$deplibrary_names" ; then
2971                      for tmp in $deplibrary_names ; do                      for tmp in $deplibrary_names ; do
2972                        depdepl=$tmp                        depdepl=$tmp
2973                      done                      done
2974                      if test -f "$path/$depdepl" ; then                      if test -f "$deplibdir/$depdepl" ; then
2975                          depdepl="$deplibdir/$depdepl"
2976                        elif test -f "$path/$depdepl" ; then
2977                        depdepl="$path/$depdepl"                        depdepl="$path/$depdepl"
2978                        else
2979                          # Can't find it, oh well...
2980                          depdepl=
2981                      fi                      fi
2982                      # do not add paths which are already there                      # do not add paths which are already there
2983                      case " $newlib_search_path " in                      case " $newlib_search_path " in
# Line 3059  EOF Line 3125  EOF
3125    
3126      case $linkmode in      case $linkmode in
3127      oldlib)      oldlib)
3128        if test -n "$deplibs"; then        case " $deplibs" in
3129          $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2        *\ -l* | *\ -L*)
3130        fi          $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
3131          esac
3132    
3133        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3134          $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2          $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
# Line 3189  EOF Line 3256  EOF
3256            # which has an extra 1 added just for fun            # which has an extra 1 added just for fun
3257            #            #
3258            case $version_type in            case $version_type in
3259            darwin|linux|osf|windows)            darwin|linux|osf|windows|none)
3260              current=`expr $number_major + $number_minor`              current=`expr $number_major + $number_minor`
3261              age="$number_minor"              age="$number_minor"
3262              revision="$number_revision"              revision="$number_revision"
# Line 3200  EOF Line 3267  EOF
3267              age="0"              age="0"
3268              ;;              ;;
3269            irix|nonstopux)            irix|nonstopux)
3270              current=`expr $number_major + $number_minor - 1`              current=`expr $number_major + $number_minor`
3271              age="$number_minor"              age="$number_minor"
3272              revision="$number_minor"              revision="$number_minor"
3273                lt_irix_increment=no
3274              ;;              ;;
3275            *)            *)
3276              $echo "$modename: unknown library version type \`$version_type'" 1>&2              $echo "$modename: unknown library version type \`$version_type'" 1>&2
# Line 3266  EOF Line 3334  EOF
3334            versuffix="$major.$age.$revision"            versuffix="$major.$age.$revision"
3335            # Darwin ld doesn't like 0 for these options...            # Darwin ld doesn't like 0 for these options...
3336            minor_current=`expr $current + 1`            minor_current=`expr $current + 1`
3337            verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"            xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3338              verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
3339            ;;            ;;
3340    
3341          freebsd-aout)          freebsd-aout)
# Line 3280  EOF Line 3349  EOF
3349            ;;            ;;
3350    
3351          irix | nonstopux)          irix | nonstopux)
3352            major=`expr $current - $age + 1`            if test "X$lt_irix_increment" = "Xno"; then
3353                major=`expr $current - $age`
3354              else
3355                major=`expr $current - $age + 1`
3356              fi
3357            case $version_type in            case $version_type in
3358              nonstopux) verstring_prefix=nonstopux ;;              nonstopux) verstring_prefix=nonstopux ;;
3359              *)         verstring_prefix=sgi ;;              *)         verstring_prefix=sgi ;;
# Line 3418  EOF Line 3490  EOF
3490        fi        fi
3491    
3492        # Eliminate all temporary directories.        # Eliminate all temporary directories.
3493        for path in $notinst_path; do        #for path in $notinst_path; do
3494          lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`        # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3495          deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`        # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3496          dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`        # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3497        done        #done
3498    
3499        if test -n "$xrpath"; then        if test -n "$xrpath"; then
3500          # If the user specified any rpath flags, then add them.          # If the user specified any rpath flags, then add them.
# Line 3523  EOF Line 3595  EOF
3595            int main() { return 0; }            int main() { return 0; }
3596  EOF  EOF
3597            $rm conftest            $rm conftest
3598            $LTCC $LTCFLAGS -o conftest conftest.c $deplibs            if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
           if test "$?" -eq 0 ; then  
3599              ldd_output=`ldd conftest`              ldd_output=`ldd conftest`
3600              for i in $deplibs; do              for i in $deplibs; do
3601                name=`expr $i : '-l\(.*\)'`                name=`expr $i : '-l\(.*\)'`
3602                # If $name is empty we are operating on a -L argument.                # If $name is empty we are operating on a -L argument.
3603                if test "$name" != "" && test "$name" -ne "0"; then                if test "$name" != "" && test "$name" != "0"; then
3604                  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then                  if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3605                    case " $predeps $postdeps " in                    case " $predeps $postdeps " in
3606                    *" $i "*)                    *" $i "*)
# Line 3568  EOF Line 3639  EOF
3639                # If $name is empty we are operating on a -L argument.                # If $name is empty we are operating on a -L argument.
3640                if test "$name" != "" && test "$name" != "0"; then                if test "$name" != "" && test "$name" != "0"; then
3641                  $rm conftest                  $rm conftest
3642                  $LTCC $LTCFLAGS -o conftest conftest.c $i                  if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
                 # Did it work?  
                 if test "$?" -eq 0 ; then  
3643                    ldd_output=`ldd conftest`                    ldd_output=`ldd conftest`
3644                    if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then                    if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3645                      case " $predeps $postdeps " in                      case " $predeps $postdeps " in
# Line 3602  EOF Line 3671  EOF
3671                    droppeddeps=yes                    droppeddeps=yes
3672                    $echo                    $echo
3673                    $echo "*** Warning!  Library $i is needed by this library but I was not able to"                    $echo "*** Warning!  Library $i is needed by this library but I was not able to"
3674                    $echo "***  make it link in!  You will probably need to install it or some"                    $echo "*** make it link in!  You will probably need to install it or some"
3675                    $echo "*** library that it depends on before this library will be fully"                    $echo "*** library that it depends on before this library will be fully"
3676                    $echo "*** functional.  Installing it before continuing would be even better."                    $echo "*** functional.  Installing it before continuing would be even better."
3677                  fi                  fi
# Line 3888  EOF Line 3957  EOF
3957               test -n "$hardcode_libdirs"; then               test -n "$hardcode_libdirs"; then
3958              libdir="$hardcode_libdirs"              libdir="$hardcode_libdirs"
3959              if test -n "$hardcode_libdir_flag_spec_ld"; then              if test -n "$hardcode_libdir_flag_spec_ld"; then
3960                eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"                case $archive_cmds in
3961                  *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
3962                  *)      eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
3963                  esac
3964              else              else
3965                eval dep_rpath=\"$hardcode_libdir_flag_spec\"                eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3966              fi              fi
# Line 4198  EOF Line 4270  EOF
4270        ;;        ;;
4271    
4272      obj)      obj)
4273        if test -n "$deplibs"; then        case " $deplibs" in
4274          $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2        *\ -l* | *\ -L*)
4275        fi          $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
4276          esac
4277    
4278        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then        if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4279          $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2          $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
# Line 4247  EOF Line 4320  EOF
4320        reload_conv_objs=        reload_conv_objs=
4321        gentop=        gentop=
4322        # reload_cmds runs $LD directly, so let us get rid of        # reload_cmds runs $LD directly, so let us get rid of
4323        # -Wl from whole_archive_flag_spec        # -Wl from whole_archive_flag_spec and hope we can get by with
4324          # turning comma into space..
4325        wl=        wl=
4326    
4327        if test -n "$convenience"; then        if test -n "$convenience"; then
4328          if test -n "$whole_archive_flag_spec"; then          if test -n "$whole_archive_flag_spec"; then
4329            eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"            eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
4330              reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
4331          else          else
4332            gentop="$output_objdir/${obj}x"            gentop="$output_objdir/${obj}x"
4333            generated="$generated $gentop"            generated="$generated $gentop"
# Line 4700  static const void *lt_preloaded_setup() Line 4775  static const void *lt_preloaded_setup()
4775            case $host in            case $host in
4776            *cygwin* | *mingw* )            *cygwin* | *mingw* )
4777              if test -f "$output_objdir/${outputname}.def" ; then              if test -f "$output_objdir/${outputname}.def" ; then
4778                compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`                compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4779                finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`                finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4780              else              else
4781                compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`                compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4782                finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`                finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4783               fi               fi
4784              ;;              ;;
4785            * )            * )
4786              compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`              compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4787              finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`              finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4788              ;;              ;;
4789            esac            esac
4790            ;;            ;;
# Line 4724  static const void *lt_preloaded_setup() Line 4799  static const void *lt_preloaded_setup()
4799          # really was required.          # really was required.
4800    
4801          # Nullify the symbol file.          # Nullify the symbol file.
4802          compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`          compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4803          finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`          finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4804        fi        fi
4805    
4806        if test "$need_relink" = no || test "$build_libtool_libs" != yes; then        if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4807          # Replace the output file specification.          # Replace the output file specification.
4808          compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`          compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
4809          link_command="$compile_command$compile_rpath"          link_command="$compile_command$compile_rpath"
4810    
4811          # We have no uninstalled library dependencies, so finalize right now.          # We have no uninstalled library dependencies, so finalize right now.
# Line 4817  static const void *lt_preloaded_setup() Line 4892  static const void *lt_preloaded_setup()
4892          if test "$fast_install" != no; then          if test "$fast_install" != no; then
4893            link_command="$finalize_var$compile_command$finalize_rpath"            link_command="$finalize_var$compile_command$finalize_rpath"
4894            if test "$fast_install" = yes; then            if test "$fast_install" = yes; then
4895              relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`              relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
4896            else            else
4897              # fast_install is set to needless              # fast_install is set to needless
4898              relink_command=              relink_command=
# Line 4854  static const void *lt_preloaded_setup() Line 4929  static const void *lt_preloaded_setup()
4929            fi            fi
4930          done          done
4931          relink_command="(cd `pwd`; $relink_command)"          relink_command="(cd `pwd`; $relink_command)"
4932          relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`          relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
4933        fi        fi
4934    
4935        # Quote $echo for shipping.        # Quote $echo for shipping.
# Line 5261  EOF Line 5336  EOF
5336  Xsed='${SED} -e 1s/^X//'  Xsed='${SED} -e 1s/^X//'
5337  sed_quote_subst='$sed_quote_subst'  sed_quote_subst='$sed_quote_subst'
5338    
5339    # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
5340    if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5341      emulate sh
5342      NULLCMD=:
5343      # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5344      # is contrary to our usage.  Disable this feature.
5345      alias -g '\${1+\"\$@\"}'='\"\$@\"'
5346      setopt NO_GLOB_SUBST
5347    else
5348      case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5349    fi
5350    BIN_SH=xpg4; export BIN_SH # for Tru64
5351    DUALCASE=1; export DUALCASE # for MKS sh
5352    
5353  # The HP-UX ksh and POSIX shell print the target directory to stdout  # The HP-UX ksh and POSIX shell print the target directory to stdout
5354  # if CDPATH is set.  # if CDPATH is set.
5355  (unset CDPATH) >/dev/null 2>&1 && unset CDPATH  (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
# Line 5403  else Line 5492  else
5492            ;;            ;;
5493          esac          esac
5494          $echo >> $output "\          $echo >> $output "\
5495        \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"        \$echo \"\$0: cannot exec \$program \$*\"
5496        exit $EXIT_FAILURE        exit $EXIT_FAILURE
5497      fi      fi
5498    else    else
# Line 5589  fi\ Line 5678  fi\
5678        done        done
5679        # Quote the link command for shipping.        # Quote the link command for shipping.
5680        relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"        relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5681        relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`        relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
5682        if test "$hardcode_automatic" = yes ; then        if test "$hardcode_automatic" = yes ; then
5683          relink_command=          relink_command=
5684        fi        fi
# Line 5934  relink_command=\"$relink_command\"" Line 6023  relink_command=\"$relink_command\""
6023    
6024            if test -n "$inst_prefix_dir"; then            if test -n "$inst_prefix_dir"; then
6025              # Stick the inst_prefix_dir data into the link command.              # Stick the inst_prefix_dir data into the link command.
6026              relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`              relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
6027            else            else
6028              relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`              relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
6029            fi            fi
6030    
6031            $echo "$modename: warning: relinking \`$file'" 1>&2            $echo "$modename: warning: relinking \`$file'" 1>&2
# Line 6145  relink_command=\"$relink_command\"" Line 6234  relink_command=\"$relink_command\""
6234                file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`                file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6235                outputname="$tmpdir/$file"                outputname="$tmpdir/$file"
6236                # Replace the output file specification.                # Replace the output file specification.
6237                relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`                relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6238    
6239                $show "$relink_command"                $show "$relink_command"
6240                if $run eval "$relink_command"; then :                if $run eval "$relink_command"; then :
# Line 6356  relink_command=\"$relink_command\"" Line 6445  relink_command=\"$relink_command\""
6445          if test -f "$dir/$objdir/$dlname"; then          if test -f "$dir/$objdir/$dlname"; then
6446            dir="$dir/$objdir"            dir="$dir/$objdir"
6447          else          else
6448            $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2            if test ! -f "$dir/$dlname"; then
6449            exit $EXIT_FAILURE              $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6450                exit $EXIT_FAILURE
6451              fi
6452          fi          fi
6453          ;;          ;;
6454    
# Line 6421  relink_command=\"$relink_command\"" Line 6512  relink_command=\"$relink_command\""
6512        fi        fi
6513    
6514        # Restore saved environment variables        # Restore saved environment variables
6515        if test "${save_LC_ALL+set}" = set; then        for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6516          LC_ALL="$save_LC_ALL"; export LC_ALL        do
6517        fi          eval "if test \"\${save_$lt_var+set}\" = set; then
6518        if test "${save_LANG+set}" = set; then                  $lt_var=\$save_$lt_var; export $lt_var
6519          LANG="$save_LANG"; export LANG                fi"
6520        fi        done
6521    
6522        # Now prepare to actually exec the command.        # Now prepare to actually exec the command.
6523        exec_cmd="\$cmd$args"        exec_cmd="\$cmd$args"
# Line 6783  The following components of LINK-COMMAND Line 6874  The following components of LINK-COMMAND
6874    -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols    -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
6875    -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)    -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6876    -export-symbols SYMFILE    -export-symbols SYMFILE
6877                      try to export only the symbols listed in SYMFILE                      try to export only the symbols listed in SYMFILE
6878    -export-symbols-regex REGEX    -export-symbols-regex REGEX
6879                      try to export only the symbols matching REGEX                      try to export only the symbols matching REGEX
6880    -LLIBDIR          search LIBDIR for required installed libraries    -LLIBDIR          search LIBDIR for required installed libraries
6881    -lNAME            OUTPUT-FILE requires the installed library libNAME    -lNAME            OUTPUT-FILE requires the installed library libNAME
6882    -module           build a library that can dlopened    -module           build a library that can dlopened
# Line 6799  The following components of LINK-COMMAND Line 6890  The following components of LINK-COMMAND
6890    -release RELEASE  specify package release information    -release RELEASE  specify package release information
6891    -rpath LIBDIR     the created library will eventually be installed in LIBDIR    -rpath LIBDIR     the created library will eventually be installed in LIBDIR
6892    -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries    -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
6893    -static           do not do any dynamic linking of libtool libraries    -static           do not do any dynamic linking of uninstalled libtool libraries
6894      -static-libtool-libs
6895                        do not do any dynamic linking of libtool libraries
6896    -version-info CURRENT[:REVISION[:AGE]]    -version-info CURRENT[:REVISION[:AGE]]
6897                      specify library version info [each variable defaults to 0]                      specify library version info [each variable defaults to 0]
6898    
6899  All other options (arguments beginning with \`-') are ignored.  All other options (arguments beginning with \`-') are ignored.
6900    

Legend:
Removed from v.1728  
changed lines
  Added in v.1729

  ViewVC Help
Powered by ViewVC 1.1.26