~ubuntu-branches/ubuntu/oneiric/gnome-system-monitor/oneiric-updates

« back to all changes in this revision

Viewing changes to ltmain.sh

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Sauthier
  • Date: 2009-01-22 14:34:04 UTC
  • mfrom: (1.1.49 upstream)
  • Revision ID: james.westby@ubuntu.com-20090122143404-dcjv5ffybudeija2
Tags: 2.24.4-0ubuntu1
* New upstream version (LP: #320030).
  - Replacement of debian/patches/70_autoconf_update.patch by
    debian/patches/70_autoreconf.patch to enable the build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# NOTE: Changing this file will not affect anything until you rerun configure.
3
3
#
4
4
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5
 
# 2007  Free Software Foundation, Inc.
 
5
# 2007, 2008  Free Software Foundation, Inc.
6
6
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7
7
#
8
8
# This program is free software; you can redistribute it and/or modify
43
43
 
44
44
PROGRAM=ltmain.sh
45
45
PACKAGE=libtool
46
 
VERSION="1.5.24 Debian 1.5.24-1"
47
 
TIMESTAMP=" (1.1220.2.456 2007/06/24 02:25:32)"
 
46
VERSION="1.5.26 Debian 1.5.26-4"
 
47
TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
48
48
 
49
49
# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
50
50
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
113
113
# These must not be set unconditionally because not all systems understand
114
114
# e.g. LANG=C (notably SCO).
115
115
# We save the old values to restore during execute mode.
116
 
for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
116
lt_env=
 
117
for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
117
118
do
118
119
  eval "if test \"\${$lt_var+set}\" = set; then
119
120
          save_$lt_var=\$$lt_var
 
121
          lt_env=\"$lt_var=\$$lt_var \$lt_env\"
120
122
          $lt_var=C
121
123
          export $lt_var
122
124
        fi"
123
125
done
124
126
 
 
127
if test -n "$lt_env"; then
 
128
  lt_env="env $lt_env"
 
129
fi
 
130
 
125
131
# Make sure IFS has a sensible default
126
132
lt_nl='
127
133
'
485
491
    echo "\
486
492
$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
487
493
 
488
 
Copyright (C) 2007  Free Software Foundation, Inc.
 
494
Copyright (C) 2008  Free Software Foundation, Inc.
489
495
This is free software; see the source for copying conditions.  There is NO
490
496
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
491
497
    exit $?
788
794
    *.for) xform=for ;;
789
795
    *.java) xform=java ;;
790
796
    *.obj) xform=obj ;;
 
797
    *.sx) xform=sx ;;
791
798
    esac
792
799
 
793
800
    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
956
963
      $run $rm "$lobj" "$output_obj"
957
964
 
958
965
      $show "$command"
959
 
      if $run eval "$command"; then :
 
966
      if $run eval $lt_env "$command"; then :
960
967
      else
961
968
        test -n "$output_obj" && $run $rm $removelist
962
969
        exit $EXIT_FAILURE
1028
1035
      command="$command$suppress_output"
1029
1036
      $run $rm "$obj" "$output_obj"
1030
1037
      $show "$command"
1031
 
      if $run eval "$command"; then :
 
1038
      if $run eval $lt_env "$command"; then :
1032
1039
      else
1033
1040
        $run $rm $removelist
1034
1041
        exit $EXIT_FAILURE
1161
1168
    thread_safe=no
1162
1169
    vinfo=
1163
1170
    vinfo_number=no
 
1171
    single_module="${wl}-single_module"
1164
1172
 
1165
1173
    func_infer_tag $base_compile
1166
1174
 
1646
1654
        continue
1647
1655
        ;;
1648
1656
 
 
1657
      -multi_module)
 
1658
        single_module="${wl}-multi_module"
 
1659
        continue
 
1660
        ;;
 
1661
 
1649
1662
      -module)
1650
1663
        module=yes
1651
1664
        continue
2152
2165
            continue
2153
2166
          fi
2154
2167
          name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2155
 
          for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
 
2168
          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
2156
2174
            for search_ext in .la $std_shrext .so .a; do
2157
2175
              # Search the libtool library
2158
2176
              lib="$searchdir/lib${name}${search_ext}"
2948
2966
                  # we do not want to link against static libs,
2949
2967
                  # but need to link against shared
2950
2968
                  eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
 
2969
                  eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2951
2970
                  if test -n "$deplibrary_names" ; then
2952
2971
                    for tmp in $deplibrary_names ; do
2953
2972
                      depdepl=$tmp
2954
2973
                    done
2955
 
                    if test -f "$path/$depdepl" ; then
 
2974
                    if test -f "$deplibdir/$depdepl" ; then
 
2975
                      depdepl="$deplibdir/$depdepl"
 
2976
                    elif test -f "$path/$depdepl" ; then
2956
2977
                      depdepl="$path/$depdepl"
 
2978
                    else
 
2979
                      # Can't find it, oh well...
 
2980
                      depdepl=
2957
2981
                    fi
2958
2982
                    # do not add paths which are already there
2959
2983
                    case " $newlib_search_path " in
3101
3125
 
3102
3126
    case $linkmode in
3103
3127
    oldlib)
3104
 
      if test -n "$deplibs"; then
3105
 
        $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
3106
 
      fi
 
3128
      case " $deplibs" in
 
3129
      *\ -l* | *\ -L*)
 
3130
        $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
 
3131
      esac
3107
3132
 
3108
3133
      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3109
3134
        $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
4245
4270
      ;;
4246
4271
 
4247
4272
    obj)
4248
 
      if test -n "$deplibs"; then
4249
 
        $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
4250
 
      fi
 
4273
      case " $deplibs" in
 
4274
      *\ -l* | *\ -L*)
 
4275
        $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
 
4276
      esac
4251
4277
 
4252
4278
      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4253
4279
        $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
6486
6512
      fi
6487
6513
 
6488
6514
      # Restore saved environment variables
6489
 
      for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
 
6515
      for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6490
6516
      do
6491
6517
        eval "if test \"\${save_$lt_var+set}\" = set; then
6492
6518
                $lt_var=\$save_$lt_var; export $lt_var