144 |
# Need a lot of goo to handle *both* DLLs and import libs |
# Need a lot of goo to handle *both* DLLs and import libs |
145 |
# Has to be a shell function in order to 'eat' the argument |
# Has to be a shell function in order to 'eat' the argument |
146 |
# that is supplied when $file_magic_command is called. |
# that is supplied when $file_magic_command is called. |
147 |
func_win32_libid () { |
func_win32_libid () |
148 |
|
{ |
149 |
win32_libid_type="unknown" |
win32_libid_type="unknown" |
150 |
win32_fileres=`file -L $1 2>/dev/null` |
win32_fileres=`file -L $1 2>/dev/null` |
151 |
case $win32_fileres in |
case $win32_fileres in |
185 |
# Only attempt this if the compiler in the base compile |
# Only attempt this if the compiler in the base compile |
186 |
# command doesn't match the default compiler. |
# command doesn't match the default compiler. |
187 |
# arg is usually of the form 'gcc ...' |
# arg is usually of the form 'gcc ...' |
188 |
func_infer_tag () { |
func_infer_tag () |
189 |
|
{ |
190 |
if test -n "$available_tags" && test -z "$tagname"; then |
if test -n "$available_tags" && test -z "$tagname"; then |
191 |
CC_quoted= |
CC_quoted= |
192 |
for arg in $CC; do |
for arg in $CC; do |
246 |
|
|
247 |
|
|
248 |
# func_extract_an_archive dir oldlib |
# func_extract_an_archive dir oldlib |
249 |
func_extract_an_archive () { |
func_extract_an_archive () |
250 |
|
{ |
251 |
f_ex_an_ar_dir="$1"; shift |
f_ex_an_ar_dir="$1"; shift |
252 |
f_ex_an_ar_oldlib="$1" |
f_ex_an_ar_oldlib="$1" |
253 |
f_ex_an_ar_lib=`$echo "X$f_ex_an_ar_oldlib" | $Xsed -e 's%^.*/%%'` |
f_ex_an_ar_lib=`$echo "X$f_ex_an_ar_oldlib" | $Xsed -e 's%^.*/%%'` |
285 |
} |
} |
286 |
|
|
287 |
# func_extract_archives gentop oldlib ... |
# func_extract_archives gentop oldlib ... |
288 |
func_extract_archives () { |
func_extract_archives () |
289 |
|
{ |
290 |
my_gentop="$1"; shift |
my_gentop="$1"; shift |
291 |
my_oldlibs=${1+"$@"} |
my_oldlibs=${1+"$@"} |
292 |
my_oldobjs="" |
my_oldobjs="" |