libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Grand Renaming pre-patch


From: Gary V. Vaughan
Subject: Grand Renaming pre-patch
Date: Thu, 05 Aug 2004 14:05:01 +0100
User-agent: Mozilla Thunderbird 0.7 (X11/20040615)

Gary V. Vaughan wrote:
> It would be nice to do the
> Grand Renaming to move all of libtool's m4 macros into the LT_ and _LT_
> namespace before the final release.

I'm lost in a sea of shell script at the moment.  As a break from working
out the propogated deplibs from preopened libraries problem, I decided to
make a start at the grand renaming.

Comments on the attached annotated sed script that I plan to run to effect
the rename will be much appreciated -- particularly on the choice of symbol
names that we will have to live with after the release...

Cheers,
        Gary.
-- 
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook
## The only documented macros are:
##   LT_PREREQ
##   LT_INIT
##   LT_LANG
##   LT_SUPPORTED_TAG
##   AC_LIBLTDL_CONVENIENCE
##   AC_LIBLTDL_INSTALLABLE
##   AC_WITH_LTDL
## The rest should be m4_defined as _LT, or else documented in the manual.
## I think the following are the only ones that should be AC_DEFUNed:
##   LT_CMD_MAX_LEN
##   LT_COMPILER_OPTION
##   LT_LIB_M
##   LT_LIB_DLLOAD
##   LT_FUNC_DLSYM_USCORE
##   LT_PATH_TOOL_PREFIX
##   LT_PATH_LD
##   LT_PATH_NM
##   LT_SYS_DLOPEN_DEPLIBS
##   LT_SYS_DLOPEN_SELF
##   LT_SYS_HIDDEN_LIBDEPS
##   LT_SYS_LIBSEARCH_PATH
##   LT_SYS_SHLIBEXT
##   LT_SYS_SHLIBPATH
##   LT_SYS_SYMBOL_USCORE

## Not sure what to do about AU_DEFUNs.  Leaning towards providing an
## AU_DEFUN only for those symbols that are (or become due to the sentence
## above) documented.

## Make these work like LT_INIT eventually
s,AC_LIB_LTDL,LTDL_INIT,g
s,AC_LIBLTDL_CONVENIENCE,LTDL_CONVENIENCE,g
s,AC_LIBLTDL_INSTALLABLE,LTDL_INSTALLABLE,g

s,AC_WITH_LTDL,LT_WITH_LTDL,g
s,AC_LTDL_ENABLE_INSTALL,_LT_ENABLE_INSTALL,g

## LT_CHECK_ macros test for some non-compiler specific compilation behaviour
s,AC_DEPLIBS_CHECK_METHOD,_LT_CHECK_MAGIC_METHOD,g
## these next two should be combined
s,AC_LIBTOOL_OBJDIR,_LT_CHECK_OBJDIR,g
s,AC_LTDL_OBJDIR,_LT_CHECK_OBJDIR,g
## this is rubbish, and should be removed asap
s,AC_LTDL_DLPREOPEN,_LT_CHECK_DLPREOPEN,g

## LT_CMD_ macros probe for shell command sequences used by libtool
s,AC_LIBTOOL_SYS_MAX_CMD_LEN,LT_CMD_MAX_LEN,g
s,AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE,_LT_CMD_GLOBAL_SYMBOLS,g
s,AC_LIBTOOL_SYS_OLD_ARCHIVE,_LT_CMD_OLD_ARCHIVE,g
s,AC_PROG_LD_RELOAD_FLAG,_LT_CMD_RELOAD,g
s,AC_LIBTOOL_SYS_LIB_STRIP,_LT_CMD_STRIPLIB,g

## LT_LIB macros look for C libraries
s,AC_CHECK_LIBM,LT_LIB_M,g
s,AC_LTDL_DLLIB,LT_LIB_DLLOAD,g

## LT_COMPILER macros probe for compiler behaviour (per language)
s,AC_LIBTOOL_COMPILER_OPTION,LT_COMPILER_OPTION,g
s,AC_LIBTOOL_PROG_CC_C_O,_LT_COMPILER_C_O,g
s,AC_LIBTOOL_PROG_COMPILER_NO_RTTI,_LT_COMPILER_NO_RTTI,g
s,AC_LIBTOOL_PROG_COMPILER_PIC,_LT_COMPILER_PIC,g
s,AC_LIBTOOL_SYS_HARD_LINK_LOCKS,_LT_COMPILER_FILE_LOCKS,g

## LT_FUNC macros test library function semantics
s,AC_LTDL_DLSYM_USCORE,LT_FUNC_DLSYM_USCORE,g

## LT_LINKER macros probe for linker behaviour (per language)
s,AC_LIBTOOL_LINKER_OPTION,_LT_LINKER_OPTION,g
s,AC_LIBTOOL_PROG_LD_SHLIBS,_LT_LINKER_SHLIBS,g
s,AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH,_LT_LINKER_HARDCODE_LIBPATH,g

## LT_PATH macros look for full pathname to programs
s,AC_PATH_MAGIC,_LT_PATH_MAGIC,g
s,AC_PATH_TOOL_PREFIX,LT_PATH_TOOL_PREFIX,g
## The code should be split between the next two macros more carefully
s,AC_PROG_LD,_LT_PATH_LD,g
s,AC_PROG_LD_GNU,LT_PATH_LD,g
s,AC_PROG_NM,LT_PATH_NM,g

## LT_SYS macros probe abi features
s,AC_LTDL_SYS_DLOPEN_DEPLIBS,LT_SYS_DLOPEN_DEPLIBS,g
s,AC_LIBTOOL_DLOPEN_SELF,LT_SYS_DLOPEN_SELF,g
s,AC_LIBTOOL_POSTDEP_PREDEP,LT_SYS_HIDDEN_LIBDEPS,g
s,AC_LTDL_SYSSEARCHPATH,LT_SYS_LIBSEARCH_PATH,g
s,AC_LTDL_SHLIBEXT,LT_SYS_SHLIBEXT,g
s,AC_LTDL_SHLIBPATH,LT_SYS_SHLIBPATH,g
s,AC_LTDL_SYMBOL_USCORE,LT_SYS_SYMBOL_USCORE,g

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]