From fcbf63e62c627deae76c1b8cb8c0876c536ed811 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Mon, 16 Mar 2020 18:49:26 +0900 Subject: Fresh start --- jni/iconv/libcharset/djgpp/Makefile.maint | 32 +++ jni/iconv/libcharset/djgpp/README | 123 +++++++++++ jni/iconv/libcharset/djgpp/README.in | 120 +++++++++++ jni/iconv/libcharset/djgpp/config.bat | 326 ++++++++++++++++++++++++++++++ jni/iconv/libcharset/djgpp/config.sed | 149 ++++++++++++++ jni/iconv/libcharset/djgpp/config.site | 73 +++++++ jni/iconv/libcharset/djgpp/fnchange.in | 22 ++ jni/iconv/libcharset/djgpp/fnchange.lst | 67 ++++++ 8 files changed, 912 insertions(+) create mode 100644 jni/iconv/libcharset/djgpp/Makefile.maint create mode 100644 jni/iconv/libcharset/djgpp/README create mode 100644 jni/iconv/libcharset/djgpp/README.in create mode 100644 jni/iconv/libcharset/djgpp/config.bat create mode 100644 jni/iconv/libcharset/djgpp/config.sed create mode 100644 jni/iconv/libcharset/djgpp/config.site create mode 100644 jni/iconv/libcharset/djgpp/fnchange.in create mode 100644 jni/iconv/libcharset/djgpp/fnchange.lst (limited to 'jni/iconv/libcharset/djgpp') diff --git a/jni/iconv/libcharset/djgpp/Makefile.maint b/jni/iconv/libcharset/djgpp/Makefile.maint new file mode 100644 index 0000000..30ae168 --- /dev/null +++ b/jni/iconv/libcharset/djgpp/Makefile.maint @@ -0,0 +1,32 @@ +# Maintainer's Makefile -*-Makefile-*- + +top_srcdir = .. +srcdir = . + +SHELL = /bin/sh + +all: README fnchange.lst + +fnchange.lst: fnchange.in $(top_srcdir)/configure.ac + rm -f $@; \ + PACKAGE=`grep "^PACKAGE=" $(top_srcdir)/configure.ac | sed -e 's/^PACKAGE=//'`; \ + VERSION=`grep "^VERSION=" $(top_srcdir)/configure.ac | sed -e 's/^VERSION=//'`; \ + sed \ + -e '/^#/d' \ + -e "s/@V@/$${PACKAGE}-$${VERSION}/g" \ + $(srcdir)/fnchange.in > t-$@ + mv t-$@ $@ + +README: README.in $(top_srcdir)/configure.ac + rm -f $@; \ + PACKAGE=`grep "^PACKAGE=" $(top_srcdir)/configure.ac | sed -e 's/^PACKAGE=//'`; \ + VERSION=`grep "^VERSION=" $(top_srcdir)/configure.ac | sed -e 's/^VERSION=//'`; \ + packageversion=`echo "$${VERSION}" | sed 's/\.//g'`; \ + treeversion=`echo "$${VERSION}" | sed 's/\.//g'`; \ + sed \ + -e "s/@V@/$${PACKAGE}-$${VERSION}/g" \ + -e "s/@VER@/$${VERSION}/g" \ + -e "s/@packageversion@/$$packageversion/g" \ + -e "s/@treeversion@/$$treeversion/g" \ + $(srcdir)/README.in > t-$@ + mv t-$@ $@ diff --git a/jni/iconv/libcharset/djgpp/README b/jni/iconv/libcharset/djgpp/README new file mode 100644 index 0000000..7680fb0 --- /dev/null +++ b/jni/iconv/libcharset/djgpp/README @@ -0,0 +1,123 @@ +This is a port of GNU Libiconv 1.11 to MSDOS/DJGPP. + +1.: DJGPP specific changes. + ======================= + There are no DJGPP specific changes. This package should + configure and compile out-of-the-box. + Please read the documentation to become familiar with this + product. + + +2.: Installing the binary package. + ============================== + +2.1.: Copy the binary distribution into the top DJGPP installation + directory and unzip the binary distribution running *ONE* of + the following commands: + unzip32 licv111b.zip or + djtarx licv111b.zip or + pkunzip -d licv111b.zip + + + +3.: Building the binaries from sources. + =================================== + +3.1.: To build the binaries you will need the following binary packages: + djdev203.zip, bsh204b.zip, gcc2952b.zip, + bnu210b.zip, mak3791b.zip, fil316b.zip, + shl112b.zip, txt20b.zip, txi40b.zip, + grep24b.zip and sed302b.zip + + + All this packages can be found in the v2gnu directory of any + Simtel.NET mirror. + You will need bsh204b.zip and *NOT* a prior version or the build will fail. + The same applies to djdev203.zip. You *MUST* use the updated versions of + fil316b.zip (date: 2000-05-30) and shl112b.zip (date: 2000-08-11). This + updated versions have been recompiled with djdev203.zip and know about + the "/dev/env" functionality introduced with djdev203.zip. All the other + packages are the ones I have used to build the binaries from this sources. + Previuos and/or later versions of this packages may do the job as well but + I have not tested this. + +3.2.: Create a temporary directory and copy the source package: licv111s.zip + into the temporary directory. If you download the source distribution + from one of the DJGPP archives, just unzip it preserving the directory + structure, runnig ONE of the following commands: + unzip32 licv111s.zip or + djtarx licv111s.zip or + pkunzip -d licv111s.zip + + Source distributions downloaded from one of the GNU FTP sites need + some more work to unpack. First, you MUST use the `djtar' program to + unzip the package. That's because some file names in the official + distributions need to be changed to avoid problems on the various + platforms supported by DJGPP. `djtar' can rename files on the fly + given a file with name mappings. The distribution includes a file + `djgpp/fnchange.lst' with the necessary mappings. So you need first + to retrieve that file, and then invoke `djtar' to unpack the + distribution. Here's how: + + djtar -x -p -o libiconv-1.11/djgpp/fnchange.lst libiconv-1.11.tar.gz > lst + djtar -x -n lst libiconv-1.11.tar.gz + + (The name of the distribution archive and the top-level directory will + be different for versions other than 1.11.) + + +3.3.: The package is preconfigured for djdev203. To build the products you + should run the following command: + make + + After the compilation has finished, you can check the products + running the command: + make check + + To install the products run the command: + make install + + This will install the products (iconv.exe iconv.h localcharset.h libconv.a + libcharset.a iconv.1 iconv.3 iconv_open.3 iconv_close.3) into your DJGPP + installation tree. As usual, prefix is defined as "/dev/env/DJDIR". + If you prefer to install into same other directory run the command: + make install prefix=z:/some/other/dir + + Of course, you should replace "z:/some/other/dir" by an appropriate path + that will meet your requeriments. + +3.4.: If you need/want to reconfigure the package you will have to run the + following commands: + make distclean + djgpp\config + + Please note that you *MUST* use the "distclean" option or the config.cache + file will *NOT* be deleted. In this case you are *NOT* reconfiguring + because the configuration informations is read from the cache file instead + of being newly computed. + To build the programs in a directory other than where the sources are, + you must add the parameter that specifies the source directory, + e.g: + x:\src\gnu\libiconv.16\djgpp\config x:/src/gnu/libiconv.16 + + Lets assume you want to build the binaries in a directory placed on a + different drive (z:\build in this case) from where the sources are, + then you will run the following commands: + z: + md \build + cd \build + x:\src\gnu\libiconv.16\djgpp\config x:/src/gnu/libiconv.16 + + You *MUST* use forward slashes to specify the source directory. + After having configured the package run the folowing commands to create + the binaries and docs and install them: + make + make check + make install + + Send suggestions and bug reports concerning the DJGPP port to + comp.os.msdos.djgpp or djgpp@delorie.com. Libiconv specific bugs + must be reported to Bruno Haible . + + + Guerrero, Juan Manuel diff --git a/jni/iconv/libcharset/djgpp/README.in b/jni/iconv/libcharset/djgpp/README.in new file mode 100644 index 0000000..f0bf77e --- /dev/null +++ b/jni/iconv/libcharset/djgpp/README.in @@ -0,0 +1,120 @@ +This is a port of GNU Libcharset @VER@ to MSDOS/DJGPP. + +1.: DJGPP specific changes. + ======================= + There are no DJGPP specific changes. This package should + configure and compile out-of-the-box. + Please read the documentation to become familiar with this + product. + + +2.: Installing the binary package. + ============================== + +2.1.: Copy the binary distribution into the top DJGPP installation + directory and unzip the binary distribution running *ONE* of + the following commands: + unzip32 lcset@packageversion@b.zip or + djtarx lcset@packageversion@b.zip or + pkunzip -d lcset@packageversion@b.zip + + + +3.: Building the binaries from sources. + =================================== + +3.1.: To build the binaries you will need the following binary packages: + djdev203.zip (patchlevel 2), + bshNNNb.zip, gccNNNb.zip, bnuNNNb.zip, makNNNb.zip, filNNNb.zip, + shlNNNb.zip, txtNNNb.zip, txiNNNb.zip, grepNNNb.zip and sedNNNb.zip + + NNN represents the latest version number of the binary packages. All + this packages can be found in the current/v2gnu/ directory of any + ftp.delorie.com mirror. + +3.2.: Create a temporary directory and copy the source package: lcset@packageversion@s.zip + into the temporary directory. If you download the source distribution + from one of the DJGPP archives, just unzip it preserving the directory + structure, runnig ONE of the following commands: + unzip32 lcset@packageversion@s.zip or + djtarx lcset@packageversion@s.zip or + pkunzip -d lcset@packageversion@s.zip + + Source distributions downloaded from one of the GNU FTP sites need + some more work to unpack. First, you MUST use the `djtar' program + to unzip the package. That's because some file names in the official + distributions need to be changed to avoid problems on the various + platforms supported by DJGPP. `djtar' can rename files on the fly + given a file with name mappings. The distribution includes a file + `djgpp/fnchange.lst' with the necessary mappings. So you need first + to retrieve that file, and then invoke `djtar' to unpack the + distribution. Here's how: + + djtar -x -p -o @V@/djgpp/fnchange.lst @V@.tar.gz > lst + djtar -x -n lst @V@.tar.gz + + (The name of the distribution archive and the top-level directory will + be different for versions other than @VER@.) + + +3.3.: If you have downloaded the source package from one of the GNU FTP sites + you will have to configure the package running the command: + djgpp\config.bat + +3.4.: If you have downloaded the source package from one of the delorie FTP + sites the package is already preconfigured for djdev203 or later. In + any case, to build the products you must run the following command: + make + + After the compilation has finished, you can check the products + running the command: + make check + + To install the products run the command: + make install + + This will install the products (localcharset.h, libcharset.a) into your + DJGPP installation tree. As usual, prefix is defined as "/dev/env/DJDIR". + If you prefer to install into same other directory, run the command: + make install prefix=z:/some/other/dir + + Of course, you should replace "z:/some/other/dir" by an appropriate path + that will meet your requeriments. + + +3.5.: If for some reason you want to reconfigure the package cd into the top + srcdir (libchset.@treeversion@) and run the following commands: + del djgpp\config.cache + make distclean + djgpp\config + + Please note that you *MUST* delete the config.cache file in the djgpp + subdir or you will not really reconfigure the sources because the + configuration informations will be read from the cache file instead + of being newly computed. + To build the programs in a directory other than where the sources are, + you must add the parameter that specifies the source directory, + e.g: + x:\src\gnu\libchset.@treeversion@\djgpp\config x:/src/gnu/libchset.@treeversion@ + + Lets assume you want to build the binaries in a directory placed on a + different drive (z:\build in this case) from where the sources are, + then you will run the following commands: + z: + md \build + cd \build + x:\src\gnu\libchset.@treeversion@\djgpp\config x:/src/gnu/libchset.@treeversion@ + + You *MUST* use forward slashes to specify the source directory. + After having configured the package run the folowing commands to create + the binaries and docs and install them: + make + make check + make install + + Send suggestions and bug reports concerning the DJGPP port to + comp.os.msdos.djgpp or djgpp@delorie.com. Libcharset specific + bugs must be reported to . + + + Guerrero, Juan Manuel diff --git a/jni/iconv/libcharset/djgpp/config.bat b/jni/iconv/libcharset/djgpp/config.bat new file mode 100644 index 0000000..1910ca7 --- /dev/null +++ b/jni/iconv/libcharset/djgpp/config.bat @@ -0,0 +1,326 @@ +@echo off +echo Configuring GNU libcharset for DJGPP v2.x... +Rem The SmallEnv tests protect against fixed and too small size +Rem of the environment in stock DOS shell. + +Rem Find out if NLS is wanted or not, +Rem if dependency-tracking is wanted or not, +Rem if caching is wanted or not +Rem and where the sources are. +Rem We always default to NLS support, +Rem no dependency tracking +Rem and to in place configuration. +set ARGS= +set NLS=disabled +if not "%NLS%" == "disabled" goto SmallEnv +set CACHING=enabled +if not "%CACHING%" == "enabled" goto SmallEnv +set DEPENDENCY_TRACKING=disabled +if not "%DEPENDENCY_TRACKING%" == "disabled" goto SmallEnv +set LIBICONV_PREFIX=disabled +if not "%LIBICONV_PREFIX%" == "disabled" goto SmallEnv +set LIBINTL_PREFIX=disabled +if not "%LIBINTL_PREFIX%" == "disabled" goto SmallEnv +set HTML=enabled +if not "%HTML%" == "enabled" goto SmallEnv +set XSRC=. +if not "%XSRC%" == "." goto SmallEnv + +Rem Loop over all arguments. +Rem Special arguments are: NLS, XSRC, CACHE, STATIC_LIBS, LIBICONV_PREFIX, LIBINTL_PREFIX and DEPS. +Rem All other arguments are stored into ARGS. +:ArgLoop +if "%1" == "nls" goto NextArgument +if "%1" == "NLS" goto NextArgument +if "%1" == "no-nls" goto NoNLS +if "%1" == "no-NLS" goto NoNLS +if "%1" == "NO-NLS" goto NoNLS +goto CachingOption +:NoNLS +if "%1" == "no-nls" set NLS=disabled +if "%1" == "no-NLS" set NLS=disabled +if "%1" == "NO-NLS" set NLS=disabled +if not "%NLS%" == "disabled" goto SmallEnv +goto NextArgument +:CachingOption +if "%1" == "cache" goto NextArgument +if "%1" == "CACHE" goto NextArgument +if "%1" == "no-cache" goto NoCaching +if "%1" == "no-CACHE" goto NoCaching +if "%1" == "NO-CACHE" goto NoCaching +goto DependencyOption +:NoCaching +if "%1" == "no-cache" set CACHING=disabled +if "%1" == "no-CACHE" set CACHING=disabled +if "%1" == "NO-CACHE" set CACHING=disabled +if not "%CACHING%" == "disabled" goto SmallEnv +goto NextArgument +:DependencyOption +if "%1" == "no-dep" goto NextArgument +if "%1" == "no-DEP" goto NextArgument +if "%1" == "NO-DEP" goto NextArgument +if "%1" == "dep" goto DependecyTraking +if "%1" == "DEP" goto DependecyTraking +goto LibiconvPrefixOption +:DependecyTraking +if "%1" == "dep" set DEPENDENCY_TRACKING=enabled +if "%1" == "DEP" set DEPENDENCY_TRACKING=enabled +if not "%DEPENDENCY_TRACKING%" == "enabled" goto SmallEnv +goto NextArgument +:LibiconvPrefixOption +if "%1" == "no-libiconvprefix" goto NextArgument +if "%1" == "no-LIBICONVPREFIX" goto NextArgument +if "%1" == "NO-LIBICONVPREFIX" goto NextArgument +if "%1" == "libiconvprefix" goto WithLibiconvPrefix +if "%1" == "LIBICONVPREFIX" goto WithLibiconvPrefix +goto LibintlPrefixOption +:WithLibiconvPrefix +if "%1" == "libiconvprefix" set LIBICONV_PREFIX=enabled +if "%1" == "LIBICONVPREFIX" set LIBICONV_PREFIX=enabled +if not "%LIBICONV_PREFIX%" == "enabled" goto SmallEnv +goto NextArgument +:LibintlPrefixOption +if "%1" == "no-libiconvprefix" goto NextArgument +if "%1" == "no-LIBICONVPREFIX" goto NextArgument +if "%1" == "NO-LIBICONVPREFIX" goto NextArgument +if "%1" == "libintlprefix" goto _WithLibintlPrefix +if "%1" == "LIBINTLPREFIX" goto _WithLibintlPrefix +goto HTMLOption +:_WithLibintlPrefix +if "%1" == "libintlprefix" set LIBINTL_PREFIX=enabled +if "%1" == "LIBINTLPREFIX" set LIBINTL_PREFIX=enabled +if not "%LIBINTL_PREFIX%" == "enabled" goto SmallEnv +:HTMLOption +if "%1" == "withhtml" goto NextArgument +if "%1" == "withHTML" goto NextArgument +if "%1" == "WITHHTML" goto NextArgument +if "%1" == "withouthtml" goto _WithoutHTML +if "%1" == "withoutHTML" goto _WithoutHTML +if "%1" == "WITHOUTHTML" goto _WithoutHTML +goto SrcDirOption +:_WithoutHTML +if "%1" == "withouthtml" set HTML=disabled +if "%1" == "withoutHTML" set HTML=disabled +if "%1" == "WITHOUTHTML" set HTML=disabled +if not "%HTML%" == "disabled" goto SmallEnv +goto NextArgument +:SrcDirOption +echo %1 | grep -q "/" +if errorlevel 1 goto CollectArgument +set XSRC=%1 +if not "%XSRC%" == "%1" goto SmallEnv +goto NextArgument +:CollectArgument +set _ARGS=#%ARGS%#%1# +if not "%_ARGS%" == "#%ARGS%#%1#" goto SmallEnv +echo %_ARGS% | grep -q "###" +if errorlevel 1 set ARGS=%ARGS% %1 +set _ARGS= +:NextArgument +shift +if not "%1" == "" goto ArgLoop + +Rem Create an arguments file for the configure script. +echo --srcdir=%XSRC% > arguments +if "%CACHING%" == "enabled" echo --cache-file=%XSRC%/djgpp/config.cache >> arguments +if "%DEPENDENCY_TRACKING%" == "enabled" echo --enable-dependency-tracking >> arguments +if "%DEPENDENCY_TRACKING%" == "disabled" echo --disable-dependency-tracking >> arguments +if "%LIBICONV_PREFIX%" == "enabled" echo --with-libiconv-prefix >> arguments +if "%LIBICONV_PREFIX%" == "disabled" echo --without-libiconv-prefix >> arguments +if "%LIBINTL_PREFIX%" == "enabled" echo --with-libintl-prefix >> arguments +if "%LIBINTL_PREFIX%" == "disabled" echo --without-libintl-prefix >> arguments +if "%HTML%" == "enabled" echo --enable-html >> arguments +if "%HTML%" == "disabled" echo --disable-html >> arguments +if not "%ARGS%" == "" echo %ARGS% >> arguments +set ARGS= +set CACHING= +set DEPENDENCY_TRACKING= +set LIBICONV_PREFIX= +set LIBINTL_PREFIX= +set HTML= + +Rem Find out where the sources are +if "%XSRC%" == "." goto InPlace + +:NotInPlace +redir -e /dev/null update %XSRC%/configure.org ./configure +test -f ./configure +if errorlevel 1 update %XSRC%/configure ./configure + +:InPlace +Rem Update configuration files +echo Updating configuration scripts... +test -f ./configure.org +if errorlevel 1 update ./configure ./configure.org +sed -f %XSRC%/djgpp/config.sed ./configure.org > configure +if errorlevel 1 goto SedError + +Rem Make sure they have a config.site file +set CONFIG_SITE=%XSRC%/djgpp/config.site +if not "%CONFIG_SITE%" == "%XSRC%/djgpp/config.site" goto SmallEnv + +Rem Make sure crucial file names are not munged by unpacking +test -f %XSRC%/config.h.in +if not errorlevel 1 redir -e /dev/null mv -f %XSRC%/config.h.in %XSRC%/config.h-in +test -f %XSRC%/config.h-in +if errorlevel 1 redir -e /dev/null mv -f %XSRC%/config.h %XSRC%/config.h-in +test -f %XSRC%/config.h-in +if errorlevel 1 redir -e /dev/null mv -f %XSRC%/configh.in %XSRC%/config.h-in +test -f %XSRC%/config.h-in +if errorlevel 1 redir -e /dev/null mv -f %XSRC%/config_h.in %XSRC%/config.h-in +test -f %XSRC%/include/libcharset.h-in +if not errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/libcharset.h-in %XSRC%/include/libcharset.h-in +test -f %XSRC%/include/libcharset.h-in +if errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/libcharset.h %XSRC%/include/libcharset.h-in +test -f %XSRC%/include/libcharset.h-in +if errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/libcharseth.in %XSRC%/include/libcharset.h-in +test -f %XSRC%/include/libcharset.h-in +if errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/libcharset_h.in %XSRC%/include/libcharset.h-in +test -f %XSRC%/include/localcharset.h-in +if not errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/localcharset.h-in %XSRC%/include/localcharset.h-in +test -f %XSRC%/include/localcharset.h-in +if errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/localcharset.h %XSRC%/include/localcharset.h-in +test -f %XSRC%/include/localcharset.h-in +if errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/localcharseth.in %XSRC%/include/localcharset.h-in +test -f %XSRC%/include/localcharset.h-in +if errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/localcharset_h.in %XSRC%/include/localcharset.h-in +test -f %XSRC%/include/localcharset.h.build.in +if not errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/localcharset.h.build.in %XSRC%/include/localcharset.h-build-in +test -f %XSRC%/include/localcharset.h-build-in +if errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/localcharset.h %XSRC%/include/localcharset.h-build-in +test -f %XSRC%/include/localcharset.h-build-in +if errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/localcharseth.build %XSRC%/include/localcharset.h-build-in +test -f %XSRC%/include/localcharset.h-build-in +if errorlevel 1 redir -e /dev/null mv -f %XSRC%/include/localcharset_h.build %XSRC%/include/localcharset.h-build-in + +Rem This is required because DOS/Windows are case-insensitive +Rem to file names, and "make install" will do nothing if Make +Rem finds a file called `install'. +if exist INSTALL mv -f INSTALL INSTALL.txt + +Rem Set SHELL to a sane default or some configure tests stop working +Rem if the package is configured across partitions. +if not "%SHELL%" == "" goto HomeName +set SHELL=/bin/sh +if not "%SHELL%" == "/bin/sh" goto SmallEnv +echo No SHELL found in the environment, using default value + +:HomeName +Rem Set HOME to a sane default so configure stops complaining. +if not "%HOME%" == "" goto HostName +set HOME=%XSRC%/djgpp +if not "%HOME%" == "%XSRC%/djgpp" goto SmallEnv +echo No HOME found in the environment, using default value + +:HostName +Rem Set HOSTNAME so it shows in config.status +if not "%HOSTNAME%" == "" goto hostdone +if "%windir%" == "" goto msdos +set OS=MS-Windows +if not "%OS%" == "MS-Windows" goto SmallEnv +goto haveos +:msdos +set OS=MS-DOS +if not "%OS%" == "MS-DOS" goto SmallEnv +:haveos +if not "%USERNAME%" == "" goto haveuname +if not "%USER%" == "" goto haveuser +echo No USERNAME and no USER found in the environment, using default values +set HOSTNAME=Unknown PC +if not "%HOSTNAME%" == "Unknown PC" goto SmallEnv +goto userdone +:haveuser +set HOSTNAME=%USER%'s PC +if not "%HOSTNAME%" == "%USER%'s PC" goto SmallEnv +goto userdone +:haveuname +set HOSTNAME=%USERNAME%'s PC +if not "%HOSTNAME%" == "%USERNAME%'s PC" goto SmallEnv +:userdone +set _HOSTNAME=%HOSTNAME%, %OS% +if not "%_HOSTNAME%" == "%HOSTNAME%, %OS%" goto SmallEnv +set HOSTNAME=%_HOSTNAME% +:hostdone +set _HOSTNAME= +set OS= + +Rem install-sh is required by the configure script but clashes with the +Rem various Makefile install-foo targets, so we MUST have it before the +Rem script runs and rename it afterwards +test -f %XSRC%/install-sh +if not errorlevel 1 goto NoRen0 +test -f %XSRC%/install-sh.sh +if not errorlevel 1 mv -f %XSRC%/install-sh.sh %XSRC%/install-sh +:NoRen0 + +if "%NLS%" == "disabled" goto WithoutNLS + +:WithNLS +test -d %XSRC%/po +if errorlevel 1 goto WithoutNLS + +Rem Check for the needed libraries and binaries. +test -x /dev/env/DJDIR/bin/msgfmt.exe +if not errorlevel 0 goto MissingNLSTools +test -x /dev/env/DJDIR/bin/xgettext.exe +if not errorlevel 0 goto MissingNLSTools +test -f /dev/env/DJDIR/include/libcharset.h +if not errorlevel 0 goto MissingNLSTools +test -f /dev/env/DJDIR/lib/libcharset.a +if not errorlevel 0 goto MissingNLSTools +test -f /dev/env/DJDIR/include/iconv.h +if not errorlevel 0 goto MissingNLSTools +test -f /dev/env/DJDIR/lib/libiconv.a +if not errorlevel 0 goto MissingNLSTools +test -f /dev/env/DJDIR/include/libintl.h +if not errorlevel 0 goto MissingNLSTools +test -f /dev/env/DJDIR/lib/libintl.a +if not errorlevel 0 goto MissingNLSTools + +Rem Recreate the files in the %XSRC%/po subdir with our ported tools. +redir -e /dev/null rm %XSRC%/po/*.gmo +redir -e /dev/null rm %XSRC%/po/libcharset.pot +redir -e /dev/null rm %XSRC%/po/cat-id-tbl.c +redir -e /dev/null rm %XSRC%/po/stamp-cat-id + +Rem Update the arguments file for the configure script. +Rem We prefer without-included-gettext because libintl.a from gettext package +Rem is the only one that is garanteed to have been ported to DJGPP. +echo --enable-nls --without-included-gettext >> arguments +goto ConfigurePackage + +:MissingNLSTools +echo Needed libs/tools for NLS not found. Configuring without NLS. +:WithoutNLS +Rem Update the arguments file for the configure script. +echo --disable-nls >> arguments + +:ConfigurePackage +echo Running the ./configure script... +sh ./configure @arguments +if errorlevel 1 goto CfgError +rm arguments +echo Done. +goto End + +:SedError +echo ./configure script editing failed! +goto End + +:CfgError +echo ./configure script exited abnormally! +goto End + +:SmallEnv +echo Your environment size is too small. Enlarge it and run me again. +echo Configuration NOT done! + +:End +test -f %XSRC%/install-sh.sh +if not errorlevel 1 goto NoRen1 +test -f %XSRC%/install-sh +if not errorlevel 1 mv -f %XSRC%/install-sh %XSRC%/install-sh.sh +:NoRen1 +set CONFIG_SITE= +set HOSTNAME= +set XSRC= diff --git a/jni/iconv/libcharset/djgpp/config.sed b/jni/iconv/libcharset/djgpp/config.sed new file mode 100644 index 0000000..18496e2 --- /dev/null +++ b/jni/iconv/libcharset/djgpp/config.sed @@ -0,0 +1,149 @@ +# DJGPP specific configuration file. +# Sed script for additional DJGPP specific editing +# of the configure script generated by autoconf 2.60. + + +# Additional editing of Makefiles +/^".*ac_file_inputs.*tmp\/out$/ a\ +cat > "$tmp/subs-3.sed" << eof_djgpp\ +# DJGPP specific Makefile changes.\ +s,\\.deps,_deps,g\ +s,\\.libs,_libs,g\ +s,\\.new\\.,_new.,g\ +s,\\.old\\.,_old.,g\ +s,\\.tab\\.,_tab.,g\ +s,config\\.h\\.in,config.h-in,g\ +s,\\.\\([1-9]\\)\\.html,.\\1-html,g\ +s,\\.html,-html,g\ +s,libcharset\\.h\\.in,libcharset.h-in,g\ +s,localcharset\\.h\\.inst,localcharset_h.ins,g\ +s,localcharset\\.h\\.in,localcharset.h-in,g\ +s,localcharset\\.h\\.build\\.in,localcharset.h-build-in,g\ +s,Makefile\\.am\\.in,Makefile.am-in,g\ +s,Makefile\\.in\\.in,Makefile.in-in,g\ +/^\\.y\\.c:/,/^$/ {\ + /\\\$(YACCCOMPILE)/ {\ + a\\\\\ + -@test -f y.tab.c && mv -f y.tab.c y_tab.c\\\\\ + -@test -f y.tab.h && mv -f y.tab.h y_tab.h\ + }\ +}\ +eof_djgpp\ +sed -f "\$tmp/subs-3.sed" \$tmp/out > \$tmp/out.djgpp\ +mv -f \$tmp/out.djgpp \$tmp/out + + +# Rename config.h.in into config.h-in +/ac_config_headers=/s|config\.h|&:config.h-in|g +/CONFIG_HEADERS=/ s|config\.h\.in|&:config.h-in|2 + +# Rename localcharset.h.build.in, localcharset.h.inst, localcharset.h.in and Makefile.in.in into localcharset.h-build-in, localcharset_h.ins, localcharset.h-in and Makefile.in-in +/ac_config_files=/ { + s|localcharset\.h\.build\.in|localcharset.h-build-in| + s|localcharset\.h\.inst|localcharset_h.ins| + s|localcharset\.h\.in|localcharset.h-in| + s|po/Makefile\.in|&:po/Makefile.in-in| +} +/CONFIG_FILES=/ { + s|localcharset\.h\.build\.in|localcharset.h-build-in| + s|localcharset\.h\.inst|localcharset_h.ins| + s|localcharset\.h\.in|localcharset.h-in| + s|po/Makefile\.in|&:po/Makefile.in-in|2 +} + + +# We always use _deps and _libs instead of .deps and .libs, because +# the latter is an invalid name on 8+3 MS-DOS file system. This makes +# the generated Makefiles good for every DJGPP installation, not only +# the one where the package was configured (which could happen to be +# a Windows box, where leading dots in file names are allowed). +s,\.deps,_deps,g +s,\.libs,_libs,g +/^rmdir[ ]*\.tst/ i\ +am__leading_dot=_ + +# Replace (command) > /dev/null with `command > /dev/null`, since +# parenthesized commands always return zero status in the ported Bash, +# even if the named command doesn't exist +/if ([^|;`]*null/{ + s,(,`, + s,),, + /null[ ]*2>&1/ s,2>&1,&`, + /null.*null/ s,null.*null,&`, + /null.*null/ !{ + /null[ ]*2>&1/ !s,null,&`, + } +} + +# DOS-style absolute file names should be supported as well +/\*) top_srcdir=/s,/\*,[\\\\/]* | ?:[\\\\/]*, + +# The following two items are changes needed for configuring +# and compiling across partitions. +# 1) The given srcdir value is always translated from the +# "x:" syntax into "/dev/x" syntax while we run configure. +/^[ ]*-srcdir=\*.*$/ a\ + ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"` +/set X `ls -Lt \$srcdir/ i\ + if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\ + srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\ + fi + +# Autoconf 2.52e generated configure scripts +# write absolute paths into Makefiles and bison.in +# making them useless for DJGPP installations for +# which the package has not been configured for. +/MISSING=/,/^$/ { + /^fi$/ a\ +am_missing_run=`echo "$am_missing_run" | sed 's%/dev/.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%${top_srcdir}%;s%.:.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%${top_srcdir}%'` +} +/^install_sh=/a\ +install_sh=`echo "$install_sh" | sed 's%/dev/.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%${top_srcdir}%;s%.:.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%${top_srcdir}%'` + +# This will only work if the assumption that the +# testsuite is ran from the following path: +# ${top_srcdir}/tests/testsuite.dir +# holds. The explicit names are of no importance. +# ../../. == ${top_srcdir} +#/^esac$/,/^ac_abs_srcdir=/ { +/^ac_abs_srcdir=/ i\ +ac_abs_builddir=`echo "$ac_abs_builddir" | sed "s%/dev/.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../.%;s%.:.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../.%"`\ +ac_abs_top_builddir=`echo "$ac_abs_top_builddir" | sed "s%/dev/.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../..%;s%.:.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../..%"`\ +ac_abs_top_srcdir=`echo "$ac_abs_top_srcdir" | sed "s%/dev/.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../..%;s%.:.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../..%"` +#ac_abs_srcdir=`echo "$ac_abs_srcdir" | sed "s%/dev/.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../.%;s%.:.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../.%"` +/^ac_abs_srcdir=/ a\ +for dj_dir in $ac_abs_builddir $ac_abs_top_builddir $ac_abs_top_srcdir $ac_abs_srcdir\ +do\ + ac_abs_builddir=`echo "$ac_abs_builddir" | sed "s%//%/%g"`\ + ac_abs_top_builddir=`echo "$ac_abs_top_builddir" | sed "s%//%/%g"`\ + ac_abs_top_srcdir=`echo "$ac_abs_top_srcdir" | sed "s%//%/%g"`\ + ac_abs_srcdir=`echo "$ac_abs_srcdir" | sed "s%//%/%g"`\ +done + +# Add DJGPP version information. +/^#define VERSION/ s/\$VERSION/& (DJGPP port (r1))/ + +# We need makeinfo to make the html formated docs. +/\$am_missing_run[ ]*makeinfo/ s,\$am_missing_run,, + +# The path to the FORTRAN compiler and libraries +# shall contain no absolute path reference so it +# will be good for all djgpp installations. +/^FLIBS="\$ac_cv_flibs"/ i\ +ac_djgpp_path=`echo "$DJDIR" | sed 's%\\\\\\%/%g' | tr $as_cr_LETTERS $as_cr_letters`\ +ac_cv_flibs=`echo "$ac_cv_flibs" | sed "s%-L$ac_djgpp_path%-L/dev/env/DJDIR%g"` + +# Autoconf generated configure scripts write absolute +# paths of certain header files into Makefiles making +# them useless for DJGPP installations for which the +# package has not been configured for. +/^.*echo "\$as_me:\$LINENO: result: \$gl_cv_absolute_.*$/ { +h +s,^.*\(gl_cv_absolute_\)\([a-z0-9_]*\)\(_h\).*$,\1\2\3=`echo $\1\2\3 | sed "s%[^:]:.*/include/%/dev/env/DJDIR/include/%"`, +G +} +/^.*echo "\$as_me:\$LINENO: result: \$gl_cv_full_.*$/ { +h +s,^.*\(gl_cv_full_\)\([a-z0-9_]*\)\(_h\).*$,\1\2\3=`echo $\1\2\3 | sed "s%[^:]:.*/include/%/dev/env/DJDIR/include/%"`, +G +} diff --git a/jni/iconv/libcharset/djgpp/config.site b/jni/iconv/libcharset/djgpp/config.site new file mode 100644 index 0000000..66cd725 --- /dev/null +++ b/jni/iconv/libcharset/djgpp/config.site @@ -0,0 +1,73 @@ +#! /bin/sh + +# This is the config.site file for configuring GNU packages +# which are to be built with DJGPP tools. + + +# Include the djgpp subdirectory in PATH, so that getconf is found +PATH="$srcdir/djgpp:$PATH" + +# These two variables are required, otherwise looking for +# programs along the PATH will not work. +PATH_SEPARATOR=: +PATH_EXPAND=y + +# This is required in for "test -f foo" to find foo.exe +export TEST_FINDS_EXE=y + +# The root of the DJGPP tree serves as the default prefix +test "x$prefix" = xNONE && prefix='/dev/env/DJDIR' + +# This is required for config.status script to be run, since +# ./configure runs it by invoking ${CONFIG_SHELL-/bin/sh} +CONFIG_SHELL=${CONFIG_SHELL='sh'} + +# These are set here so the generated Makefile's will be good +# for every DJGPP installation, not only the one where the +# package was configured. +# $INSTALL must be an absolute path name, otherwise config.status +# will try to prepend ./ and ../ to it when it goes into subdirs. +INSTALL=${INSTALL='/dev/env/DJDIR/bin/ginstall -c'} +RANLIB=${RANLIB='ranlib'} +#GMSGFMT=${GMSGFMT='/dev/env/DJDIR/bin/msgfmt'} +#MSGFMT=${MSGFMT='/dev/env/DJDIR/bin/msgfmt'} +#XGETTEXT=${XGETTEXT='/dev/env/DJDIR/bin/xgettext'} +AWK=${AWK='gawk'} + +# A sane default for emacs. +ac_cv_path_EMACS=${EMACS='/dev/env/DJDIR/gnu/emacs/bin/emacs'} + +# A sane default for m4. +ac_cv_path_M4=${M4='/dev/env/DJDIR/bin/m4'} + +# A sane default for grep. +ac_cv_path_GREP=${GREP='/dev/env/DJDIR/bin/grep'} + +# A sane default for egrep. +ac_cv_path_EGREP=${EGREP='/dev/env/DJDIR/bin/egrep'} + +# A sane default for fgrep. +ac_cv_path_FGREP=${FGREP='/dev/env/DJDIR/bin/fgrep'} + +# A sane default for sed. +lt_cv_path_SED=${SED='/dev/env/DJDIR/bin/sed'} + +# A sane default for mkdir. +ac_cv_path_mkdir=${MKDIR_P='/dev/env/DJDIR/bin/mkdir -p'} + +# These are set here so the generated libtool will be good +# for every DJGPP installation, not only the one where the +# package was configured. +NM=${NM='nm'} +LD=${LD='ld'} + +# Force the test for 'ln -s' to report 'cp -pf'. +ac_cv_prog_LN_S='cp -pf' + +# There is no fork and vfork functionality. +ac_cv_func_fork=no +ac_cv_func_vfork=no +ac_cv_func_pipe=no + +# DJGPP needs ICONV_CONST set to const +am_cv_proto_iconv_arg1="const" diff --git a/jni/iconv/libcharset/djgpp/fnchange.in b/jni/iconv/libcharset/djgpp/fnchange.in new file mode 100644 index 0000000..c43d25b --- /dev/null +++ b/jni/iconv/libcharset/djgpp/fnchange.in @@ -0,0 +1,22 @@ +@V@/tools/aix-3.2.5 @V@/tools/aix-3.2-5 +@V@/tools/aix-4.1.5 @V@/tools/aix-4.1-5 +@V@/tools/aix-4.2.0 @V@/tools/aix-4.2-0 +@V@/tools/aix-4.3.2 @V@/tools/aix-4.3-2 +@V@/tools/glibc-2.1.3 @V@/tools/glibc-2.1-3 +@V@/tools/glibc-2.1.90 @V@/tools/glibc-2.1-90 +@V@/tools/locale_charmap @V@/tools/locale_charmap +@V@/tools/locale_charset.c @V@/tools/charset_locale.c +@V@/tools/locale_codeset.c @V@/tools/codeset_locale.c +@V@/tools/solaris-2.5.1 @V@/tools/solaris-2.5-1 +@V@/tools/sunos-4.1.4 @V@/tools/sunos-4.1-4 +@V@/tools/all-charsets-X11 @V@/tools/all-charsets.X11 +@V@/tools/glibc-2.2-XF86-3.3.6 @V@/tools/glibc22XF86-3.3-6 +@V@/tools/glibc-2.2-XF86-4.0.1f @V@/tools/glibc22XF86-4.0-1f +@V@/tools/locale_x11encoding.c @V@/tools/x11encoding_locale.c +@V@/include/libcharset.h.in @V@/include/libcharset.h-in +@V@/include/libcharset.h.msvc-shared @V@/include/libcharset.h-msvc-shared +@V@/include/localcharset.h.in @V@/include/localcharset.h-in +@V@/include/localcharset.h.build.in @V@/include/localcharset.h-build-in +@V@/include/localcharset.h.msvc-shared @V@/include/localcharset.h-msvc-shared +@V@/config.h.in @V@/config.h-in +@V@/config.h.msvc @V@/config.h-msvc diff --git a/jni/iconv/libcharset/djgpp/fnchange.lst b/jni/iconv/libcharset/djgpp/fnchange.lst new file mode 100644 index 0000000..36a3e46 --- /dev/null +++ b/jni/iconv/libcharset/djgpp/fnchange.lst @@ -0,0 +1,67 @@ +libcharset-1.1/tools/README libcharset-1.1/tools/README +libcharset-1.1/tools/aix-3.2.5 libcharset-1.1/tools/aix-3.2.5 +libcharset-1.1/tools/aix-4.1.5 libcharset-1.1/tools/aix-4.1.5 +libcharset-1.1/tools/aix-4.2.0 libcharset-1.1/tools/aix-4.2.0 +libcharset-1.1/tools/aix-4.3.2 libcharset-1.1/tools/aix-4.3.2 +libcharset-1.1/tools/all-charsets libcharset-1.1/tools/all-charsets +libcharset-1.1/tools/all-locales libcharset-1.1/tools/all-locales +libcharset-1.1/tools/freebsd-3.3 libcharset-1.1/tools/freebsd-3.3 +libcharset-1.1/tools/glibc-2.1.3 libcharset-1.1/tools/glibc-2.1.3 +libcharset-1.1/tools/glibc-2.1.90 libcharset-1.1/tools/glibc-2.1.90 +libcharset-1.1/tools/hpux-10.01 libcharset-1.1/tools/hpux-10.01 +libcharset-1.1/tools/hpux-10.20 libcharset-1.1/tools/hpux-10.20 +libcharset-1.1/tools/hpux-11.00 libcharset-1.1/tools/hpux-11.00 +libcharset-1.1/tools/irix-6.5 libcharset-1.1/tools/irix-6.5 +libcharset-1.1/tools/locale_charmap libcharset-1.1/tools/locale_charmap +libcharset-1.1/tools/locale_charset.c libcharset-1.1/tools/locale_charset.c +libcharset-1.1/tools/locale_codeset.c libcharset-1.1/tools/localecodeset.c +libcharset-1.1/tools/osf1-4.0a libcharset-1.1/tools/osf1-4.0a +libcharset-1.1/tools/osf1-4.0d libcharset-1.1/tools/osf1-4.0d +libcharset-1.1/tools/osf1-5.1 libcharset-1.1/tools/osf1-5.1 +libcharset-1.1/tools/solaris-2.4 libcharset-1.1/tools/solaris-2.4 +libcharset-1.1/tools/solaris-2.5.1 libcharset-1.1/tools/solaris-2.5.1 +libcharset-1.1/tools/solaris-2.6 libcharset-1.1/tools/solaris-2.6 +libcharset-1.1/tools/solaris-2.6-cjk libcharset-1.1/tools/solaris-2.6-cjk +libcharset-1.1/tools/solaris-2.7 libcharset-1.1/tools/solaris-2.7 +libcharset-1.1/tools/sunos-4.1.4 libcharset-1.1/tools/sunos-4.1.4 +libcharset-1.1/tools/win32 libcharset-1.1/tools/win32 +libcharset-1.1/tools/glibc-2.2 libcharset-1.1/tools/glibc-2.2 +libcharset-1.1/tools/all-charsets-X11 libcharset-1.1/tools/all-charsets.X11 +libcharset-1.1/tools/glibc-2.2-XF86-3.3.6 libcharset-1.1/tools/glibc-2.2-XF86-3.3.6 +libcharset-1.1/tools/glibc-2.2-XF86-4.0.1f libcharset-1.1/tools/glibc-2.2XF86-4.0.1f +libcharset-1.1/tools/locale_x11encoding.c libcharset-1.1/tools/locale_x11encoding.c +libcharset-1.1/tools/beos-5 libcharset-1.1/tools/beos-5 +libcharset-1.1/m4/ChangeLog libcharset-1.1/m4/ChangeLog +libcharset-1.1/m4/codeset.m4 libcharset-1.1/m4/codeset.m4 +libcharset-1.1/m4/glibc21.m4 libcharset-1.1/m4/glibc21.m4 +libcharset-1.1/m4/libtool.m4 libcharset-1.1/m4/libtool.m4 +libcharset-1.1/lib/config.charset libcharset-1.1/lib/config.charset +libcharset-1.1/lib/localcharset.c libcharset-1.1/lib/localcharset.c +libcharset-1.1/lib/ref-add.sin libcharset-1.1/lib/ref-add.sin +libcharset-1.1/lib/ref-del.sin libcharset-1.1/lib/ref-del.sin +libcharset-1.1/lib/ChangeLog libcharset-1.1/lib/ChangeLog +libcharset-1.1/lib/Makefile.in libcharset-1.1/lib/Makefile.in +libcharset-1.1/lib/Makefile.msvc libcharset-1.1/lib/Makefile.msvc +libcharset-1.1/AUTHORS libcharset-1.1/AUTHORS +libcharset-1.1/COPYING.LIB libcharset-1.1/COPYING.LIB +libcharset-1.1/INSTALL.generic libcharset-1.1/INSTALL.generic +libcharset-1.1/README libcharset-1.1/README +libcharset-1.1/Makefile.devel libcharset-1.1/Makefile.devel +libcharset-1.1/Makefile.in libcharset-1.1/Makefile.in +libcharset-1.1/configure.ac libcharset-1.1/configure.ac +libcharset-1.1/configure libcharset-1.1/configure +libcharset-1.1/INTEGRATE libcharset-1.1/INTEGRATE +libcharset-1.1/include/localcharset.h.in libcharset-1.1/include/localcharset.h.in +libcharset-1.1/include/localcharset.h.msvc-shared libcharset-1.1/include/localcharset_h.shared-msvc +libcharset-1.1/autoconf/config.guess libcharset-1.1/autoconf/config.guess +libcharset-1.1/autoconf/config.sub libcharset-1.1/autoconf/config.sub +libcharset-1.1/autoconf/ltmain.sh libcharset-1.1/autoconf/ltmain.sh +libcharset-1.1/autoconf/install-sh libcharset-1.1/autoconf/install-sh +libcharset-1.1/autoconf/aclocal.m4 libcharset-1.1/autoconf/aclocal.m4 +libcharset-1.1/autoconf/mkinstalldirs libcharset-1.1/autoconf/mkinstalldirs +libcharset-1.1/config.h.in libcharset-1.1/config.h.in +libcharset-1.1/windows/dllexport.h libcharset-1.1/windows/dllexport.h +libcharset-1.1/ChangeLog libcharset-1.1/ChangeLog +libcharset-1.1/Makefile.msvc libcharset-1.1/Makefile.msvc +libcharset-1.1/README.win32 libcharset-1.1/README.win32 +libcharset-1.1/config.h.msvc libcharset-1.1/config.h.msvc -- cgit v1.2.3-70-g09d2