From: Peter O'Gorman Date: Thu, 5 Feb 2004 14:53:16 +0000 (+0000) Subject: * ltmain.in (infer_tag, win32_libid): Style changes. Rename X-Git-Tag: release-1-9b~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9151fe677b548353390150e4a304f930622fa86;p=thirdparty%2Flibtool.git * ltmain.in (infer_tag, win32_libid): Style changes. Rename infer_tag to func_infer_tag and win32_libid to func_win32_libid. * m4/libtool.m4 (cygwin): rename win32_libid to func_win32_libid. --- diff --git a/ChangeLog b/ChangeLog index 99d04103c..9f9874237 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-02-05 Peter O'Gorman + + * ltmain.in (infer_tag, win32_libid): Style changes. Rename + infer_tag to func_infer_tag and win32_libid to func_win32_libid. + * m4/libtool.m4 (cygwin): rename win32_libid to func_win32_libid. + 2004-02-04 Peter O'Gorman * ltmain.in (infer_tag): Move tag inferrence to a shell function. diff --git a/ltmain.in b/ltmain.in index f0bb046ec..30a20e3c3 100644 --- a/ltmain.in +++ b/ltmain.in @@ -119,10 +119,13 @@ o2lo="s/\\.${objext}\$/.lo/" # Shell function definitions: # This seems to be the best place for them +# func_win32_libid arg +# return the library type of file 'arg' +# # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. -win32_libid () { +func_win32_libid () { win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in @@ -157,11 +160,13 @@ win32_libid () { -infer_tag () { - # Infer tagged configuration to use if any are available and - # if one wasn't chosen via the "--tag" command line option. - # Only attempt this if the compiler in the base compile - # command doesn't match the default compiler. +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () { if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do @@ -567,7 +572,7 @@ exec_cmd= ;; esac - infer_tag $base_compile + func_infer_tag $base_compile for arg in $later; do case $arg in @@ -926,7 +931,7 @@ EOF vinfo= vinfo_number=no - infer_tag $base_compile + func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg diff --git a/m4/libtool.m4 b/m4/libtool.m4 index d5a7b1461..43924aab3 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -2546,13 +2546,13 @@ bsdi4*) ;; cygwin*) - # win32_libid is a shell function defined in ltmain.sh + # func_win32_libid is a shell function defined in ltmain.sh lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='win32_libid' + lt_cv_file_magic_cmd='func_win32_libid' ;; # Base MSYS/MinGW do not provide the 'file' command needed by - # win32_libid shell function, so use a weaker test based on 'objdump'. + # func_win32_libid shell function, so use a weaker test based on 'objdump'. mingw* | pw32*) lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f'