ICU-978 cygwin port, inital commit
X-SVN-Rev: 7381
This commit is contained in:
parent
e278496ce4
commit
93bca8f03a
@ -3,7 +3,7 @@
|
||||
## Copyright (c) 2001, International Business Machines Corporation and
|
||||
## others. All Rights Reserved.
|
||||
##
|
||||
## $Id: mh-cygwin,v 1.3 2001/10/03 23:32:11 grhoten-oss Exp $
|
||||
## $Id: mh-cygwin,v 1.4 2002/01/03 22:35:03 weiv-oss Exp $
|
||||
|
||||
## Commands to generate dependency files
|
||||
GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
|
||||
@ -30,9 +30,9 @@ LD_RPATH_PRE= -Wl,-rpath,
|
||||
LD_SONAME = -Wl,-soname -Wl,$(MIDDLE_SO_TARGET)
|
||||
|
||||
## Shared object suffix
|
||||
SO = so
|
||||
SO = dll
|
||||
## Non-shared intermediate object suffix
|
||||
STATIC_O = ao
|
||||
STATIC_O = lib
|
||||
|
||||
## Compilation rules
|
||||
%.$(STATIC_O): $(srcdir)/%.c
|
||||
@ -64,9 +64,9 @@ STATIC_O = ao
|
||||
## Versioned libraries rules
|
||||
|
||||
%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
|
||||
$(RM) $@ && ln -s $< $@
|
||||
$(RM) $@ && cp $< $@
|
||||
%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
|
||||
$(RM) $@ && ln -s $*.$(SO).$(SO_TARGET_VERSION) $@
|
||||
$(RM) $@ && cp $*.$(SO).$(SO_TARGET_VERSION) $@
|
||||
|
||||
## Bind internal references
|
||||
|
||||
@ -79,5 +79,11 @@ BIR_CPPFLAGS= -DU_HAVE_BIND_INTERNAL_REFERENCES
|
||||
# Dependencies [i.e. map files] for the final library
|
||||
BIR_DEPS=
|
||||
|
||||
## End Linux-specific setup
|
||||
# Environment variable to set a runtime search path
|
||||
LDLIBRARYPATH_ENVVAR = PATH
|
||||
|
||||
# Invoke, set library path for all ICU libraries.
|
||||
INVOKE = $(LDLIBRARYPATH_ENVVAR)=$$$(LDLIBRARYPATH_ENVVAR):$(top_builddir)/common:$(top_builddir)/i18n:$(top_builddir)/tools/toolutil:$(top_builddir)/extra/ustdio:$(top_builddir)/tools/ctestfw:$(top_builddir)/data:$(top_builddir)/stubdata/
|
||||
|
||||
## End Cygwin-specific setup
|
||||
|
||||
|
365
icu4c/source/configure
vendored
365
icu4c/source/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -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.144 2001/12/21 17:45:53 yves-oss Exp $
|
||||
dnl $Id: configure.in,v 1.145 2002/01/03 22:35:02 weiv-oss Exp $
|
||||
|
||||
dnl Process this file with autoconf to produce a configure script
|
||||
AC_INIT(common/unicode/utypes.h)
|
||||
@ -79,6 +79,7 @@ AC_CHECK_STRICT_COMPILE
|
||||
|
||||
dnl Determine the host system and Makefile fragment
|
||||
AC_CANONICAL_HOST
|
||||
AC_EXEEXT
|
||||
|
||||
dnl Check if we can build and use 64-bit libraries
|
||||
OLD_CPPFLAGS="${CPPFLAGS}"
|
||||
@ -557,12 +558,18 @@ AC_DO_CHECK_SIZEOF(wchar_t,$ac_default_sizeof_wchar_t,[
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
#if HAVE_WCHAR_H
|
||||
#include <string.h>
|
||||
#include <wchar.h>
|
||||
#endif])
|
||||
dnl We could set ac_cv_sizeof_wchar_t to the default if the check returned
|
||||
dnl 0 (unknown) but we'd rather do it in the headers, so we know we had no
|
||||
dnl clue at configure time.
|
||||
U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
|
||||
if test $U_SIZEOF_WCHAR_T = 0; then
|
||||
if test $U_HAVE_WCHAR_H=1; then
|
||||
AC_MSG_ERROR(There is wchar.h but the size of wchar_t is 0)
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(U_SIZEOF_WCHAR_T)
|
||||
|
||||
dnl Checks for typedefs
|
||||
@ -780,6 +787,7 @@ case "${host}" in
|
||||
*-*-os400*) platform=OS400
|
||||
ICUDATA_CHAR="e" ;;
|
||||
*-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;;
|
||||
*-*-cygwin*) platform=U_CYGWIN ;;
|
||||
*) platform=U_UNKNOWN_PLATFORM ;;
|
||||
esac
|
||||
AC_SUBST(ICUDATA_CHAR)
|
||||
|
@ -5,6 +5,7 @@
|
||||
## Source directory information
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
EXEEXT=@EXEEXT@
|
||||
|
||||
top_builddir = ../..
|
||||
|
||||
@ -136,37 +137,37 @@ build-testdata: $(ALL_TEST_FILES) $(TESTOBJDATADIR)/testdata.lst ja_data.bin
|
||||
# DAT FILES
|
||||
|
||||
# uprops.dat
|
||||
uprops.dat: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/BidiMirroring.txt $(TOOLDIR)/genprops/genprops
|
||||
uprops.dat: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/BidiMirroring.txt $(TOOLDIR)/genprops/genprops$(EXEEXT)
|
||||
@echo Creating uprops.dat
|
||||
@ICU_DATA=. $(INVOKE) $(TOOLDIR)/genprops/genprops -s $(UNICODEDATADIR) -d . -u $(UNICODE_VERSION)
|
||||
|
||||
# unorm.dat
|
||||
unorm.dat: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/DerivedNormalizationProperties.txt $(UNICODEDATADIR)/BidiMirroring.txt $(TOOLDIR)/gennorm/gennorm
|
||||
unorm.dat: $(UNICODEDATADIR)/UnicodeData.txt $(UNICODEDATADIR)/DerivedNormalizationProperties.txt $(UNICODEDATADIR)/BidiMirroring.txt $(TOOLDIR)/gennorm/gennorm$(EXEEXT)
|
||||
@echo Creating unorm.dat
|
||||
@ICU_DATA=. $(INVOKE) $(TOOLDIR)/gennorm/gennorm -s $(UNICODEDATADIR) -d . -u $(UNICODE_VERSION)
|
||||
|
||||
# ucadata.dat
|
||||
ucadata.dat: $(UNICODEDATADIR)/FractionalUCA.txt $(TOOLDIR)/genuca/genuca
|
||||
ucadata.dat: $(UNICODEDATADIR)/FractionalUCA.txt $(TOOLDIR)/genuca/genuca$(EXEEXT)
|
||||
@echo Creating ucadata.dat and invuca.dat
|
||||
@ICU_DATA=. $(INVOKE) $(TOOLDIR)/genuca/genuca -s $(UNICODEDATADIR) -d .
|
||||
|
||||
# unames.dat
|
||||
unames.dat: $(UNICODEDATADIR)/UnicodeData.txt $(TOOLDIR)/gennames/gennames
|
||||
unames.dat: $(UNICODEDATADIR)/UnicodeData.txt $(TOOLDIR)/gennames/gennames$(EXEEXT)
|
||||
@echo Creating unames.dat
|
||||
@ICU_DATA=. $(INVOKE) $(TOOLDIR)/gennames/gennames -d . $(UNICODEDATADIR)/UnicodeData.txt -u $(UNICODE_VERSION)
|
||||
|
||||
# cnvalias.dat
|
||||
cnvalias.dat: $(SRCDATADIR)/convrtrs.txt $(TOOLDIR)/gencnval/gencnval
|
||||
cnvalias.dat: $(SRCDATADIR)/convrtrs.txt $(TOOLDIR)/gencnval/gencnval$(EXEEXT)
|
||||
@echo Creating $@
|
||||
@ICU_DATA=. $(INVOKE) $(TOOLDIR)/gencnval/gencnval -d . $(SRCDATADIR)/convrtrs.txt
|
||||
|
||||
# tz.dat
|
||||
tz.dat: $(SRCDATADIR)/timezone.txt $(TOOLDIR)/gentz/gentz
|
||||
tz.dat: $(SRCDATADIR)/timezone.txt $(TOOLDIR)/gentz/gentz$(EXEEXT)
|
||||
@echo Creating $@
|
||||
@ICU_DATA=. $(INVOKE) $(TOOLDIR)/gentz/gentz -d . $(SRCDATADIR)/timezone.txt
|
||||
|
||||
# test.dat
|
||||
$(TESTOBJDATADIR)/test.dat: $(TOOLDIR)/gentest/gentest
|
||||
$(TESTOBJDATADIR)/test.dat: $(TOOLDIR)/gentest/gentest$(EXEEXT)
|
||||
@echo Creating $@
|
||||
@ICU_DATA=. $(INVOKE) $(TOOLDIR)/gentest/gentest -d $(TESTOBJDATADIR)
|
||||
|
||||
@ -189,24 +190,24 @@ endif
|
||||
|
||||
#################################################### CNV
|
||||
# CNV FILES
|
||||
%.cnv: $(SRCDATADIR)/%.ucm $(TOOLDIR)/makeconv/makeconv
|
||||
%.cnv: $(SRCDATADIR)/%.ucm $(TOOLDIR)/makeconv/makeconv$(EXEEXT)
|
||||
@ICU_DATA=. $(INVOKE) $(TOOLDIR)/makeconv/makeconv -c -d . $(SRCDATADIR)/$(<F)
|
||||
|
||||
%.cnv: $(TESTSRCDATADIR)/%.ucm $(TOOLDIR)/makeconv/makeconv
|
||||
%.cnv: $(TESTSRCDATADIR)/%.ucm $(TOOLDIR)/makeconv/makeconv$(EXEEXT)
|
||||
@ICU_DATA=. $(INVOKE) $(TOOLDIR)/makeconv/makeconv -c -d . $(TESTSRCDATADIR)/$(<F)
|
||||
|
||||
#################################################### RES
|
||||
# RES FILES
|
||||
$(TESTOBJDATADIR)/%.res: $(TESTSRCDATADIR)/%.txt $(TOOLDIR)/genrb/genrb
|
||||
$(TESTOBJDATADIR)/%.res: $(TESTSRCDATADIR)/%.txt $(TOOLDIR)/genrb/genrb$(EXEEXT)
|
||||
@ICU_DATA=. $(INVOKE) $(TOOLDIR)/genrb/genrb -q -s $(TESTSRCDATADIR) -d $(TESTOBJDATADIR) $(<F)
|
||||
|
||||
ja_data.bin: $(TESTSRCDATADIR)/ja_data.bin $(TOOLDIR)/genrb/genrb
|
||||
ja_data.bin: $(TESTSRCDATADIR)/ja_data.bin $(TOOLDIR)/genrb/genrb$(EXEEXT)
|
||||
echo Creating $@
|
||||
@ICU_DATA=. $(INVOKE) $(TOOLDIR)/genrb/genrb -q -s $(TESTSRCDATADIR) -eISO_2022_JP -d $(TESTOBJDATADIR) $(<F) >/dev/null
|
||||
|
||||
|
||||
|
||||
%.res: $(SRCDATADIR)/%.txt $(TOOLDIR)/genrb/genrb ucadata.dat uprops.dat unorm.dat
|
||||
%.res: $(SRCDATADIR)/%.txt $(TOOLDIR)/genrb/genrb$(EXEEXT) ucadata.dat uprops.dat unorm.dat
|
||||
@ICU_DATA=. $(INVOKE) $(TOOLDIR)/genrb/genrb -q -s $(SRCDATADIR) -d . $(<F)
|
||||
|
||||
###################################################################
|
||||
|
@ -34,6 +34,7 @@ The following names can be supplied as the argument for platform:
|
||||
HP/UX11CC Use HP's C++ compiler on HP-UX 11
|
||||
HP/UX11ACC Use the Advanced C++ compiler on HP-UX 11
|
||||
LinuxRedHat Use the GNU C++ compiler on Linux
|
||||
CygWin Use the GNU C++ compiler on CygWin
|
||||
SOLARISCC Use Sun's CC compiler on Solaris
|
||||
SOLARISGCC Use the GNU C++ compiler on Solaris
|
||||
SOLARISX86 Use Sun's CC compiler on Solaris x86
|
||||
@ -192,6 +193,8 @@ case $platform in
|
||||
CC=gcc; export CC
|
||||
CXX=g++; export CXX
|
||||
;;
|
||||
CygWin)
|
||||
;;
|
||||
*BSD)
|
||||
THE_OS="BSD"
|
||||
THE_COMP="the GNU C++"
|
||||
|
Loading…
Reference in New Issue
Block a user