aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build-aux/ltmain.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/ltmain.sh')
-rw-r--r--build-aux/ltmain.sh58
1 files changed, 42 insertions, 16 deletions
diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
index 4598ec6..27d498a 100644
--- a/build-aux/ltmain.sh
+++ b/build-aux/ltmain.sh
@@ -2,7 +2,7 @@
2# NOTE: Changing this file will not affect anything until you rerun configure. 2# NOTE: Changing this file will not affect anything until you rerun configure.
3# 3#
4# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 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# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 6# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7# 7#
8# This program is free software; you can redistribute it and/or modify 8# This program is free software; you can redistribute it and/or modify
@@ -43,8 +43,8 @@ EXIT_FAILURE=1
43 43
44PROGRAM=ltmain.sh 44PROGRAM=ltmain.sh
45PACKAGE=libtool 45PACKAGE=libtool
46VERSION=1.5.24 46VERSION=1.5.26
47TIMESTAMP=" (1.1220.2.455 2007/06/24 02:13:29)" 47TIMESTAMP=" (1.1220.2.492 2008/01/30 06:40:56)"
48 48
49# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE). 49# Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
50if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 50if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
@@ -113,15 +113,21 @@ esac
113# These must not be set unconditionally because not all systems understand 113# These must not be set unconditionally because not all systems understand
114# e.g. LANG=C (notably SCO). 114# e.g. LANG=C (notably SCO).
115# We save the old values to restore during execute mode. 115# We save the old values to restore during execute mode.
116for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES 116lt_env=
117for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
117do 118do
118 eval "if test \"\${$lt_var+set}\" = set; then 119 eval "if test \"\${$lt_var+set}\" = set; then
119 save_$lt_var=\$$lt_var 120 save_$lt_var=\$$lt_var
121 lt_env=\"$lt_var=\$$lt_var \$lt_env\"
120 $lt_var=C 122 $lt_var=C
121 export $lt_var 123 export $lt_var
122 fi" 124 fi"
123done 125done
124 126
127if test -n "$lt_env"; then
128 lt_env="env $lt_env"
129fi
130
125# Make sure IFS has a sensible default 131# Make sure IFS has a sensible default
126lt_nl=' 132lt_nl='
127' 133'
@@ -485,7 +491,7 @@ do
485 echo "\ 491 echo "\
486$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP 492$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
487 493
488Copyright (C) 2007 Free Software Foundation, Inc. 494Copyright (C) 2008 Free Software Foundation, Inc.
489This is free software; see the source for copying conditions. There is NO 495This is free software; see the source for copying conditions. There is NO
490warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 496warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
491 exit $? 497 exit $?
@@ -788,6 +794,7 @@ if test -z "$show_help"; then
788 *.for) xform=for ;; 794 *.for) xform=for ;;
789 *.java) xform=java ;; 795 *.java) xform=java ;;
790 *.obj) xform=obj ;; 796 *.obj) xform=obj ;;
797 *.sx) xform=sx ;;
791 esac 798 esac
792 799
793 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` 800 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
@@ -956,7 +963,7 @@ EOF
956 $run $rm "$lobj" "$output_obj" 963 $run $rm "$lobj" "$output_obj"
957 964
958 $show "$command" 965 $show "$command"
959 if $run eval "$command"; then : 966 if $run eval $lt_env "$command"; then :
960 else 967 else
961 test -n "$output_obj" && $run $rm $removelist 968 test -n "$output_obj" && $run $rm $removelist
962 exit $EXIT_FAILURE 969 exit $EXIT_FAILURE
@@ -1028,7 +1035,7 @@ EOF
1028 command="$command$suppress_output" 1035 command="$command$suppress_output"
1029 $run $rm "$obj" "$output_obj" 1036 $run $rm "$obj" "$output_obj"
1030 $show "$command" 1037 $show "$command"
1031 if $run eval "$command"; then : 1038 if $run eval $lt_env "$command"; then :
1032 else 1039 else
1033 $run $rm $removelist 1040 $run $rm $removelist
1034 exit $EXIT_FAILURE 1041 exit $EXIT_FAILURE
@@ -1161,6 +1168,7 @@ EOF
1161 thread_safe=no 1168 thread_safe=no
1162 vinfo= 1169 vinfo=
1163 vinfo_number=no 1170 vinfo_number=no
1171 single_module="${wl}-single_module"
1164 1172
1165 func_infer_tag $base_compile 1173 func_infer_tag $base_compile
1166 1174
@@ -1646,6 +1654,11 @@ EOF
1646 continue 1654 continue
1647 ;; 1655 ;;
1648 1656
1657 -multi_module)
1658 single_module="${wl}-multi_module"
1659 continue
1660 ;;
1661
1649 -module) 1662 -module)
1650 module=yes 1663 module=yes
1651 continue 1664 continue
@@ -2149,7 +2162,12 @@ EOF
2149 continue 2162 continue
2150 fi 2163 fi
2151 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` 2164 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2152 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do 2165 if test "$linkmode" = lib; then
2166 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
2167 else
2168 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
2169 fi
2170 for searchdir in $searchdirs; do
2153 for search_ext in .la $std_shrext .so .a; do 2171 for search_ext in .la $std_shrext .so .a; do
2154 # Search the libtool library 2172 # Search the libtool library
2155 lib="$searchdir/lib${name}${search_ext}" 2173 lib="$searchdir/lib${name}${search_ext}"
@@ -2945,12 +2963,18 @@ EOF
2945 # we do not want to link against static libs, 2963 # we do not want to link against static libs,
2946 # but need to link against shared 2964 # but need to link against shared
2947 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` 2965 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2966 eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2948 if test -n "$deplibrary_names" ; then 2967 if test -n "$deplibrary_names" ; then
2949 for tmp in $deplibrary_names ; do 2968 for tmp in $deplibrary_names ; do
2950 depdepl=$tmp 2969 depdepl=$tmp
2951 done 2970 done
2952 if test -f "$path/$depdepl" ; then 2971 if test -f "$deplibdir/$depdepl" ; then
2972 depdepl="$deplibdir/$depdepl"
2973 elif test -f "$path/$depdepl" ; then
2953 depdepl="$path/$depdepl" 2974 depdepl="$path/$depdepl"
2975 else
2976 # Can't find it, oh well...
2977 depdepl=
2954 fi 2978 fi
2955 # do not add paths which are already there 2979 # do not add paths which are already there
2956 case " $newlib_search_path " in 2980 case " $newlib_search_path " in
@@ -3098,9 +3122,10 @@ EOF
3098 3122
3099 case $linkmode in 3123 case $linkmode in
3100 oldlib) 3124 oldlib)
3101 if test -n "$deplibs"; then 3125 case " $deplibs" in
3102 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 3126 *\ -l* | *\ -L*)
3103 fi 3127 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
3128 esac
3104 3129
3105 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then 3130 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3106 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 3131 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
@@ -4237,9 +4262,10 @@ EOF
4237 ;; 4262 ;;
4238 4263
4239 obj) 4264 obj)
4240 if test -n "$deplibs"; then 4265 case " $deplibs" in
4241 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 4266 *\ -l* | *\ -L*)
4242 fi 4267 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
4268 esac
4243 4269
4244 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then 4270 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4245 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 4271 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
@@ -6478,7 +6504,7 @@ relink_command=\"$relink_command\""
6478 fi 6504 fi
6479 6505
6480 # Restore saved environment variables 6506 # Restore saved environment variables
6481 for lt_var in LANG LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES 6507 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6482 do 6508 do
6483 eval "if test \"\${save_$lt_var+set}\" = set; then 6509 eval "if test \"\${save_$lt_var+set}\" = set; then
6484 $lt_var=\$save_$lt_var; export $lt_var 6510 $lt_var=\$save_$lt_var; export $lt_var