ICU-1227 support for a --with-library-suffix option.

X-SVN-Rev: 5861
This commit is contained in:
Yves Arrouye 2001-09-21 03:41:21 +00:00
parent b5aae87f9e
commit ac99345a41
9 changed files with 215 additions and 178 deletions

View file

@ -33,12 +33,12 @@ ENABLE_STATIC = @ENABLE_STATIC@
ENABLE_SHARED = @ENABLE_SHARED@
ifneq ($(ENABLE_STATIC),)
TARGET = $(LIBICU)uc.a
TARGET = $(LIBICU)uc$(ICULIBSUFFIX).a
RANLIB = @RANLIB@
endif
ifneq ($(ENABLE_SHARED),)
SO_TARGET = $(LIBICU)uc.$(SO)
SO_TARGET = $(LIBICU)uc$(ICULIBSUFFIX).$(SO)
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
ifeq ($(OS390BATCH),1)

View file

@ -3,7 +3,7 @@
## Copyright (c) 1999-2000, International Business Machines Corporation and
## others. All Rights Reserved.
##
## $Id: mh-linux,v 1.25 2001/09/06 21:51:49 aheninger-oss Exp $
## $Id: mh-linux,v 1.26 2001/09/21 03:41:20 yves-oss Exp $
## Commands to generate dependency files
GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
@ -61,11 +61,11 @@ INSTALL-L = $(INSTALL_DATA)
## Link commands to link to ICU libs
LIBICUDT= -L$(top_builddir)/data -L$(top_builddir)/stubdata -l$(ICUPREFIX)data
LIBICUUC= -L$(top_builddir)/common -l$(ICUPREFIX)uc $(LIBICUDT) -Wl,-rpath-link $(top_builddir)/data
LIBICUI18N= -L$(top_builddir)/i18n -l$(ICUPREFIX)i18n
LIBICUUC= -L$(top_builddir)/common -l$(ICUPREFIX)uc$(ICULIBSUFFIX) $(LIBICUDT) -Wl,-rpath-link $(top_builddir)/data
LIBICUI18N= -L$(top_builddir)/i18n -l$(ICUPREFIX)i18n$(ICULIBSUFFIX)
LIBCTESTFW= -L$(top_builddir)/tools/ctestfw -lctestfw
LIBICUTOOLUTIL= -L$(top_builddir)/tools/toolutil -l$(ICUPREFIX)toolutil
LIBUSTDIO= -L$(top_builddir)/extra/ustdio -lustdio
LIBICUTOOLUTIL= -L$(top_builddir)/tools/toolutil -l$(ICUPREFIX)toolutil$(ICULIBSUFFIX)
LIBUSTDIO= -L$(top_builddir)/extra/ustdio -lustdio$(ICULIBSUFFIX)
## Compilation rules
%.$(STATIC_O): $(srcdir)/%.c

344
icu4c/source/configure vendored

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,7 @@ dnl Copyright (c) 1999-2000, International Business Machines Corporation and
dnl others. All Rights Reserved.
dnl Stephen F. Booth, heavily modified by Yves and others
dnl $Id: configure.in,v 1.117 2001/09/19 23:43:43 yves-oss Exp $
dnl $Id: configure.in,v 1.118 2001/09/21 03:41:20 yves-oss Exp $
dnl Process this file with autoconf to produce a configure script
AC_INIT(common/unicode/utypes.h)
@ -647,6 +647,19 @@ esac
AC_SUBST(DATA_PACKAGING_CPPFLAGS)
AC_SUBST(DATA_PACKAGING_MODE)
dnl Sets a library suffix
AC_MSG_CHECKING([for a library suffix to use])
AC_ARG_WITH(library-suffix,
[ --with-library-suffix=suffix tag a suffix to the library names [default=]],
[ICULIBSUFFIX="${withval}"],
[ICULIBSUFFIX=])
msg=$ICULIBSUFFIX
if test x"$msg" = x; then
msg=none
fi
AC_MSG_RESULT($msg)
AC_SUBST(ICULIBSUFFIX)
dnl Enable/disable tests
AC_ARG_ENABLE(tests,
[ --enable-tests build ICU tests [default=yes]],

View file

@ -33,12 +33,12 @@ ENABLE_STATIC = @ENABLE_STATIC@
ENABLE_SHARED = @ENABLE_SHARED@
ifneq ($(ENABLE_STATIC),)
TARGET = libustdio.a
TARGET = libustdio$(ICULIBSUFFIX).a
RANLIB = @RANLIB@
endif
ifneq ($(ENABLE_SHARED),)
SO_TARGET = libustdio.$(SO)
SO_TARGET = libustdio$(ICULIBSUFFIX).$(SO)
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
endif

View file

@ -33,12 +33,12 @@ ENABLE_STATIC = @ENABLE_STATIC@
ENABLE_SHARED = @ENABLE_SHARED@
ifneq ($(ENABLE_STATIC),)
TARGET = $(LIBICU)i18n.a
TARGET = $(LIBICU)i18n$(ICULIBSUFFIX).a
RANLIB = @RANLIB@
endif
ifneq ($(ENABLE_SHARED),)
SO_TARGET = $(LIBICU)i18n.$(SO)
SO_TARGET = $(LIBICU)i18n$(ICULIBSUFFIX).$(SO)
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
endif

View file

@ -55,6 +55,10 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
# Library suffix (to support different C++ compilers)
ICULIBSUFFIX=@ICULIBSUFFIX@
# Compiler and tools
CC = @CC@

View file

@ -28,12 +28,12 @@ ENABLE_SHARED = @ENABLE_SHARED@
TARGET_STUBNAME=layout
ifneq ($(ENABLE_STATIC),)
TARGET = $(LIBICU)$(TARGET_STUBNAME).a
TARGET = $(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).a
RANLIB = @RANLIB@
endif
ifneq ($(ENABLE_SHARED),)
SO_TARGET = $(LIBICU)$(TARGET_STUBNAME).$(SO)
SO_TARGET = $(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
endif

View file

@ -31,12 +31,12 @@ ENABLE_STATIC = @ENABLE_STATIC@
ENABLE_SHARED = @ENABLE_SHARED@
ifneq ($(ENABLE_STATIC),)
TARGET = $(LIBICU)toolutil.a
TARGET = $(LIBICU)toolutil$(ICULIBSUFFIX).a
RANLIB = @RANLIB@
endif
ifneq ($(ENABLE_SHARED),)
SO_TARGET = $(LIBICU)toolutil.$(SO)
SO_TARGET = $(LIBICU)toolutil$(ICULIBSUFFIX).$(SO)
ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET)
endif