Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Port to DJGPP, contributed by

Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>
  • Loading branch information...
commit 7860209897bc23eaaba67019bf370e16da6efbd8 1 parent c2c4101
Bruno Haible bhaible authored
3  README.djgpp
View
@@ -0,0 +1,3 @@
+Installation on DJGPP:
+
+See the file djgpp/README.
122 djgpp/README
View
@@ -0,0 +1,122 @@
+This is a port of GNU Libiconv 1.6 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 licv16b.zip or
+ djtarx licv16b.zip or
+ pkunzip -d licv16b.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: licv16s.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 licv16s.zip or
+ djtarx licv16s.zip or
+ pkunzip -d licv16s.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.6/djgpp/fnchange.lst libiconv-1.6.tar.gz > lst
+ djtar -x -n lst libiconv-1.6.tar.gz
+
+ (The name of the distribution archive and the top-level directory will
+ be different for versions other than 1.6.)
+
+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 libcharset.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 <haible@clisp.cons.org>.
+
+
+ Guerrero, Juan Manuel <st001906@hrz1.hrz.tu-darmstadt.de>
210 djgpp/config.bat
View
@@ -0,0 +1,210 @@
+@echo off
+echo Configuring GNU libiconv 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 where the sources are
+set XSRC=.
+if not "%XSRC%" == "." goto SmallEnv
+if "%1" == "" goto InPlace
+set XSRC=%1
+if not "%XSRC%" == "%1" goto SmallEnv
+redir -e /dev/null update %XSRC%/configure.orig ./configure
+test -f ./configure
+if errorlevel 1 update %XSRC%/configure ./configure
+test -d ./libcharset
+if errorlevel 1 md libcharset
+redir -e /dev/null update %XSRC%/libcharset/configure.orig ./libcharset/configure
+test -f ./libcharset/configure
+if errorlevel 1 update %XSRC%/libcharset/configure ./libcharset/configure
+
+:InPlace
+Rem Update configuration files
+echo Updating configuration scripts...
+test -f ./configure.orig
+if errorlevel 1 update ./configure ./configure.orig
+sed -f %XSRC%/djgpp/config.sed ./configure.orig > configure
+if errorlevel 1 goto SedError
+test -f ./libcharset/configure.orig
+if errorlevel 1 update ./libcharset/configure ./libcharset/configure.orig
+sed -f %XSRC%/djgpp/config.sed ./libcharset/configure.orig > configure.tmp
+if errorlevel 1 goto SedError
+Rem The following is needed because the toplevel configure script calls the
+Rem %XSRC%/libcharset/configure script instead of ./libcharset/configure.
+test -f %XSRC%/libcharset/configure.orig
+if errorlevel 1 update %XSRC%/libcharset/configure %XSRC%/libcharset/configure.orig
+update configure.tmp %XSRC%/libcharset/configure
+rm ./configure.tmp
+
+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 mv -f %XSRC%/config.h.in %XSRC%/config.h-in
+test -f %XSRC%/lib/config.h.in
+if not errorlevel 1 mv -f %XSRC%/lib/config.h.in %XSRC%/lib/config.h-in
+test -f %XSRC%/libcharset/config.h.in
+if not errorlevel 1 mv -f %XSRC%/libcharset/config.h.in %XSRC%/libcharset/config.h-in
+test -f %XSRC%/libcharset/include/libcharset.h.in
+if not errorlevel 1 mv -f %XSRC%/libcharset/include/libcharset.h.in %XSRC%/libcharset/include/libcharset.h-in
+test -f %XSRC%/include/iconv.h.in
+if not errorlevel 1 mv -f %XSRC%/include/iconv.h.in %XSRC%/include/iconv.h-in
+
+Rem All fixes needed to get the package configured, compiled and tested.
+Rem 1: Change the stateless-check script so it knowns about the
+Rem new filenames.
+Rem 2: Ditto for Makefile.in
+Rem 3: Ditto for source files.
+Rem 4: Change the files contained in the tests subdirectory from
+Rem UNIX-style EOL into DOS-style EOL so the testsuit works.
+
+test -f %XSRC%/stamp-djgppfixes
+if not errorlevel 1 goto TestsuitFixed
+Rem Fix the Makefile.ins.
+test -f %XSRC%/lib/Makefile.orig
+if errorlevel 1 update %XSRC%/lib/Makefile.in %XSRC%/lib/Makefile.orig
+sed -f %XSRC%/djgpp/makefile.sed %XSRC%/lib/Makefile.in > Makefile.tmp
+if errorlevel 1 goto SedError
+update Makefile.tmp %XSRC%/lib/Makefile.in
+rm Makefile.tmp
+test -f %XSRC%/tests/Makefile.orig
+if errorlevel 1 update %XSRC%/tests/Makefile.in %XSRC%/tests/Makefile.orig
+sed -f %XSRC%/djgpp/makefile.sed %XSRC%/tests/Makefile.in > Makefile.tmp
+if errorlevel 1 goto SedError
+update Makefile.tmp %XSRC%/tests/Makefile.in
+rm Makefile.tmp
+
+Rem Fix the source files.
+test -f %XSRC%/lib/iconv.orig
+if errorlevel 1 update %XSRC%/lib/iconv.c %XSRC%/lib/iconv.orig
+sed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/iconv.c > iconv.tmp
+if errorlevel 1 goto SedError
+update iconv.tmp %XSRC%/lib/iconv.c
+rm iconv.tmp
+test -f %XSRC%/lib/converters.orig
+if errorlevel 1 update %XSRC%/lib/converters.h %XSRC%/lib/converters.orig
+sed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/converters.h > converters.tmp
+if errorlevel 1 goto SedError
+update converters.tmp %XSRC%/lib/converters.h
+rm converters.tmp
+test -f %XSRC%/lib/cns/11643.orig
+if errorlevel 1 update %XSRC%/lib/cns/11643.h %XSRC%/lib/cns/11643.orig
+sed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/cns/11643.h > 11643.tmp
+if errorlevel 1 goto SedError
+update 11643.tmp %XSRC%/lib/cns/11643.h
+rm 11643.tmp
+test -f %XSRC%/lib/iso/ir165.orig
+if errorlevel 1 update %XSRC%/lib/iso/ir165.h %XSRC%/lib/iso/ir165.orig
+sed -f %XSRC%/djgpp/sources.sed %XSRC%/lib/iso/ir165.h > ir165.tmp
+if errorlevel 1 goto SedError
+update ir165.tmp %XSRC%/lib/iso/ir165.h
+rm ir165.tmp
+
+Rem Let libtool use _libs all the time.
+test -f %XSRC%/autoconf/ltconfig.orig
+if errorlevel 1 update %XSRC%/autoconf/ltconfig %XSRC%/autoconf/ltconfig.orig
+sed "/objdir=/s|\.libs|_libs|" %XSRC%/autoconf/ltconfig > ltconfig.tmp
+if errorlevel 1 goto SedError
+update ltconfig.tmp %XSRC%/autoconf/ltconfig
+test -f %XSRC%/libcharset/autoconf/ltconfig.orig
+if errorlevel 1 update %XSRC%/libcharset/autoconf/ltconfig %XSRC%/libcharset/autoconf/ltconfig.orig
+update ltconfig.tmp %XSRC%/libcharset/autoconf/ltconfig
+rm ltconfig.tmp
+
+Rem Change file's NL to CRLF.
+utod %XSRC%/tests/*.txt
+utod %XSRC%/tests/GEORGIAN/*.txt
+utod %XSRC%/tests/ISO/*.txt
+utod %XSRC%/tests/MAC/*.txt
+
+Rem Fix the test scripts.
+if "%XSRC%" == "." goto NoDirChange
+cd | sed "s|:.*$|:|" > cd_BuildDir.bat
+cd | sed "s|^.:|cd |" >> cd_BuildDir.bat
+mv -f cd_BuildDir.bat %XSRC%/cd_BuildDir.bat
+echo %XSRC% | sed -e "s|^/dev/||" -e "s|/|:|" -e "s|:.*$|:|g" > cd_SrcDir.bat
+echo %XSRC% | sed -e "s|^/dev/||" -e "s|/|:/|" -e "s|^.*:|cd |" -e "s|^\.\.|cd &|" -e "s|/|\\|g" >> cd_SrcDir.bat
+call cd_SrcDir.bat
+call djgpp\edtest.bat
+call cd_BuildDir.bat
+rm -f cd_SrcDir.bat cd_BuildDir.bat %XSRC%/cd_BuildDir.bat
+goto TestsuitFixed
+:NoDirChange
+call djgpp\edtest.bat
+:TestsuitFixed
+touch %XSRC%/stamp-djgppfixes
+
+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 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
+
+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=
+
+echo Running the ./configure script...
+sh ./configure --src=%XSRC%
+if errorlevel 1 goto CfgError
+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=
85 djgpp/config.sed
View
@@ -0,0 +1,85 @@
+# Additional editing of Makefiles
+/ac_given_INSTALL=/,/^CEOF/ {
+ /^CEOF$/ i\
+# DJGPP specific Makefile changes.\
+ /^aliaspath * *=/s,:,";",g\
+ /^lispdir * *=/ c\\\\\
+lispdir = \\$(prefix)/gnu/emacs/site-lisp\
+ /TEXINPUTS=/s,:,";",g\
+ /PATH=/s,:,";",g\
+ s,config\\.h\\.in,config.h-in,g\
+ s,\\.tab\\.c,_tab.c,g\
+ s,\\.tab\\.h,_tab.h,g\
+ s,\\.old\\.,_old.,g\
+ s,libcharset\\.h\\.in,libcharset.h-in,g\
+ s,Makefile\\.in\\.in,Makefile.in-in,g\
+ s,Makefile\\.am\\.in,Makefile.am-in,g\
+ /^install-info-am:/,/^$/ s,file-\\[0-9\\]\\[0-9\\],& \\$\\$file[0-9] \\$\\$file[0-9][0-9],\
+ /^\\.y\\.c:/,/^$/ {\
+ /\\\$(YACC)/ {\
+ s,[ ]*&&.*$,,\
+ a\\\\\
+ -mv -f y_tab.c \\$*.c\\\\\
+ -@test -f y.tab.c && mv -f y.tab.c \\$*.c\\\\\
+ -@test -f y.tab.h && mv -f y.tab.h y_tab.h\
+ }\
+ }
+}
+
+# Rename config.h.in into config.h-in
+/^ *CONFIG_HEADERS=/,/^EOF/ {
+ s|"lib/config\.h|&:lib/config.h-in|
+ s|"config\.h|&:config.h-in|
+}
+
+# Rename iconv.h.in into iconv.h-in
+/^ *CONFIG_FILES=/,/^EOF/ {
+ s|include/iconv\.h|&:include/iconv.h-in|
+}
+
+# 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,),,
+ s,; *then,`; then,
+}
+
+# DOS-style absolute file names should be supported as well
+/\*) srcdir=/s,/\*,[\\\\/]* | [A-z]:[\\\\/]*,
+/\$]\*) INSTALL=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
+/\$]\*) ac_rel_source=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
+
+# Switch the order of the two Sed commands, since DOS path names
+# could include a colon
+/ac_file_inputs=/s,\( -e "s%\^%\$ac_given_srcdir/%"\)\( -e "s%:% $ac_given_srcdir/%g"\),\2\1,
+
+# Prevent the spliting of conftest.subs.
+# The sed script: conftest.subs is split into 48 or 90 lines long files.
+# This will produce sed scripts called conftest.s1, conftest.s2, etc.
+# that will not work if conftest.subs contains a multi line sed command
+# at line #90. In this case the first part of the sed command will be the
+# last line of conftest.s1 and the rest of the command will be the first lines
+# of conftest.s2. So both script will not work properly.
+# This matches the configure script produced by Autoconf 2.12
+/ac_max_sed_cmds=[0-9]/ s,=.*$,=`sed -n "$=" conftest.subs`,
+# This matches the configure script produced by Autoconf 2.14a
+/ac_max_sed_lines=[0-9]/ s,=.*$,=`sed -n "$=" $ac_cs_root.subs `,
+
+# 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
+
+# 2) We need links across partitions,
+# so we will use "cp -pf" instead of "ln".
+/# Make a symlink if possible; otherwise try a hard link./,/EOF/ {
+ s,;.*then, 2>/dev/null || cp -pf \$srcdir/\$ac_source \$ac_dest&,
+}
43 djgpp/config.site
View
@@ -0,0 +1,43 @@
+#! /bin/sh
+
+# 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
+# for all paths that are hardcoded in the binaries.
+# When installing the installation prefix must be supplied.
+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='/dev/env/DJDIR/bin/ranlib'}
+GMSGFMT=${GMSGFMT='/dev/env/DJDIR/bin/msgfmt'}
+MSGFMT=${MSGFMT='/dev/env/DJDIR/bin/msgfmt'}
+XGETTEXT=${XGETTEXT='/dev/env/DJDIR/bin/xgettext'}
+
+# A sane default for emacs.
+ac_cv_path_EMACS=${EMACS='/dev/env/DJDIR/gnu/emacs/bin/emacs'}
+
+# 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='/dev/env/DJDIR/bin/nm'}
+LD=${LD='/dev/env/DJDIR/bin/ld'}
+
+# Force the test for 'ln -s' to report no.
+ac_cv_prog_LN_S='cp -p'
+cl_cv_prog_LN_S='cp -p'
+cl_cv_prog_LN='cp -p'
28 djgpp/edtest.bat
View
@@ -0,0 +1,28 @@
+@echo off
+if "%XSRC%" == "" set XSRC=.
+test -f %XSRC%/tests/stateful-check.orig
+if errorlevel 1 update %XSRC%/tests/stateful-check %XSRC%/tests/stateful-check.orig
+sed -f %XSRC%/djgpp/stateful-check.sed %XSRC%/tests/stateful-check.orig > stateful-check
+if errorlevel 1 goto SedError
+update ./stateful-check %XSRC%/tests/stateful-check
+rm -f ./stateful-check
+
+test -f %XSRC%/tests/stateless-check.orig
+if errorlevel 1 update %XSRC%/tests/stateless-check %XSRC%/tests/stateless-check.orig
+sed -f %XSRC%/djgpp/stateless-check.sed %XSRC%/tests/stateless-check.orig > stateless-check
+if errorlevel 1 goto SedError
+update ./stateless-check %XSRC%/tests/stateless-check
+rm -f ./stateless-check
+
+test -f %XSRC%/tests/translit-check.orig
+if errorlevel 1 update %XSRC%/tests/translit-check %XSRC%/tests/translit-check.orig
+sed -f %XSRC%/djgpp/translit-check.sed %XSRC%/tests/translit-check.orig > translit-check
+if errorlevel 1 goto SedError
+update ./translit-check %XSRC%/tests/translit-check
+rm -f ./translit-check
+goto End
+
+:SedError
+echo test script editing failed!
+
+:End
180 djgpp/fnchange.lst
View
@@ -0,0 +1,180 @@
+libiconv-1.6/include/iconv.h.msvc-static libiconv-1.6/include/iconv_h.static-msvc
+libiconv-1.6/include/iconv.h.msvc-shared libiconv-1.6/include/iconv_h.shared-msvc
+libiconv-1.6/tests/Georgian-PS.TXT libiconv-1.6/tests/Georgian/PS.TXT
+libiconv-1.6/tests/ARMSCII-8.IRREVERSIBLE.TXT libiconv-1.6/tests/ARMSCII-8.IRREVERSIBLE-TXT
+libiconv-1.6/tests/CP932.IRREVERSIBLE.TXT libiconv-1.6/tests/CP932.IRREVERSIBLE-TXT
+libiconv-1.6/tests/CP950.IRREVERSIBLE.TXT libiconv-1.6/tests/CP950.IRREVERSIBLE-TXT
+libiconv-1.6/tests/EUC-JP.IRREVERSIBLE.TXT libiconv-1.6/tests/EUC-JP.IRREVERSIBLE-TXT
+libiconv-1.6/tests/EUC-TW.IRREVERSIBLE.TXT libiconv-1.6/tests/EUC-TW.IRREVERSIBLE-TXT
+libiconv-1.6/tests/ISO-2022-CN-EXT-snippet libiconv-1.6/tests/ISO/2022CN-EXT-snippet
+libiconv-1.6/tests/Georgian-Academy.TXT libiconv-1.6/tests/Georgian/Academy.TXT
+libiconv-1.6/tests/ISO-2022-CN-EXT-snippet.UTF-8 libiconv-1.6/tests/ISO/2022CN-EXT-snippet.UTF-8
+libiconv-1.6/tests/ISO-2022-CN-snippet libiconv-1.6/tests/ISO/2022CN-snippet
+libiconv-1.6/tests/ISO-2022-CN-snippet.UTF-8 libiconv-1.6/tests/ISO/2022CN-snippet.UTF-8
+libiconv-1.6/tests/ISO-2022-JP-1-snippet libiconv-1.6/tests/ISO/2022JP-1-snippet
+libiconv-1.6/tests/ISO-2022-JP-1-snippet.UTF-8 libiconv-1.6/tests/ISO/2022JP-1-snippet.UTF-8
+libiconv-1.6/tests/ISO-2022-JP-2-snippet libiconv-1.6/tests/ISO/2022JP-2-snippet
+libiconv-1.6/tests/ISO-2022-JP-2-snippet.UTF-8 libiconv-1.6/tests/ISO/2022JP-2-snippet.UTF-8
+libiconv-1.6/tests/ISO-2022-JP-snippet libiconv-1.6/tests/ISO/2022JP-snippet
+libiconv-1.6/tests/ISO-2022-JP-snippet.UTF-8 libiconv-1.6/tests/ISO/2022JP-snippet.UTF-8
+libiconv-1.6/tests/ISO-2022-KR-snippet libiconv-1.6/tests/ISO/2022KR-snippet
+libiconv-1.6/tests/ISO-2022-KR-snippet.UTF-8 libiconv-1.6/tests/ISO/2022KR-snippet.UTF-8
+libiconv-1.6/tests/ISO-8859-1.TXT libiconv-1.6/tests/ISO/8859-1.TXT
+libiconv-1.6/tests/ISO-8859-10.TXT libiconv-1.6/tests/ISO/8859-10.TXT
+libiconv-1.6/tests/ISO-8859-13.TXT libiconv-1.6/tests/ISO/8859-13.TXT
+libiconv-1.6/tests/ISO-8859-14.TXT libiconv-1.6/tests/ISO/8859-14.TXT
+libiconv-1.6/tests/ISO-8859-15.TXT libiconv-1.6/tests/ISO/8859-15.TXT
+libiconv-1.6/tests/ISO-8859-16.TXT libiconv-1.6/tests/ISO/8859-16.TXT
+libiconv-1.6/tests/ISO-8859-2.TXT libiconv-1.6/tests/ISO/8859-2.TXT
+libiconv-1.6/tests/ISO-8859-3.TXT libiconv-1.6/tests/ISO/8859-3.TXT
+libiconv-1.6/tests/ISO-8859-4.TXT libiconv-1.6/tests/ISO/8859-4.TXT
+libiconv-1.6/tests/ISO-8859-5.TXT libiconv-1.6/tests/ISO/8859-5.TXT
+libiconv-1.6/tests/ISO-8859-6.TXT libiconv-1.6/tests/ISO/8859-6.TXT
+libiconv-1.6/tests/ISO-8859-7.TXT libiconv-1.6/tests/ISO/8859-7.TXT
+libiconv-1.6/tests/ISO-8859-8.TXT libiconv-1.6/tests/ISO/8859-8.TXT
+libiconv-1.6/tests/ISO-8859-9.TXT libiconv-1.6/tests/ISO/8859-9.TXT
+libiconv-1.6/tests/ISO-IR-165.IRREVERSIBLE.TXT libiconv-1.6/tests/ISO/IR-165.IRREVERSIBLE-TXT
+libiconv-1.6/tests/ISO-IR-165.TXT libiconv-1.6/tests/ISO/IR-165.TXT
+libiconv-1.6/tests/ISO646-CN.TXT libiconv-1.6/tests/ISO646-CN.TXT
+libiconv-1.6/tests/ISO646-JP.TXT libiconv-1.6/tests/ISO646-JP.TXT
+libiconv-1.6/tests/MacArabic.TXT libiconv-1.6/tests/Mac/Arabic.TXT
+libiconv-1.6/tests/MacCentralEurope.TXT libiconv-1.6/tests/Mac/CentralEurope.TXT
+libiconv-1.6/tests/MacCroatian.TXT libiconv-1.6/tests/Mac/Croatian.TXT
+libiconv-1.6/tests/MacCyrillic.TXT libiconv-1.6/tests/Mac/Cyrillic.TXT
+libiconv-1.6/tests/MacGreek.TXT libiconv-1.6/tests/Mac/Greek.TXT
+libiconv-1.6/tests/MacHebrew.TXT libiconv-1.6/tests/Mac/Hebrew.TXT
+libiconv-1.6/tests/MacIceland.TXT libiconv-1.6/tests/Mac/Iceland.TXT
+libiconv-1.6/tests/MacRoman.TXT libiconv-1.6/tests/Mac/Roman.TXT
+libiconv-1.6/tests/MacRomania.TXT libiconv-1.6/tests/Mac/Romania.TXT
+libiconv-1.6/tests/MacThai.TXT libiconv-1.6/tests/Mac/Thai.TXT
+libiconv-1.6/tests/MacTurkish.TXT libiconv-1.6/tests/Mac/Turkish.TXT
+libiconv-1.6/tests/MacUkraine.TXT libiconv-1.6/tests/Mac/Ukraine.TXT
+libiconv-1.6/tests/Makefile.in libiconv-1.6/tests/Makefile.in
+libiconv-1.6/tests/MuleLao-1.TXT libiconv-1.6/tests/MuleLao-1.TXT
+libiconv-1.6/tests/NEXTSTEP.TXT libiconv-1.6/tests/NEXTSTEP.TXT
+libiconv-1.6/tests/Quotes.ASCII libiconv-1.6/tests/Quotes.ASCII
+libiconv-1.6/tests/Quotes.ISO-8859-1 libiconv-1.6/tests/Quotes.ISO-8859-1
+libiconv-1.6/tests/Quotes.UTF-8 libiconv-1.6/tests/Quotes.UTF-8
+libiconv-1.6/tests/SHIFT-JIS.TXT libiconv-1.6/tests/SHIFT-JIS.TXT
+libiconv-1.6/tests/TCVN.TXT libiconv-1.6/tests/TCVN.TXT
+libiconv-1.6/tests/TIS-620.TXT libiconv-1.6/tests/TIS-620.TXT
+libiconv-1.6/tests/UTF-7-snippet libiconv-1.6/tests/UTF-7-snippet
+libiconv-1.6/tests/UTF-7-snippet.UTF-8 libiconv-1.6/tests/UTF-7-snippet.UTF-8
+libiconv-1.6/tests/VISCII.TXT libiconv-1.6/tests/VISCII.TXT
+libiconv-1.6/tests/check-stateful libiconv-1.6/tests/stateful-check
+libiconv-1.6/tests/check-stateless libiconv-1.6/tests/stateless-check
+libiconv-1.6/tests/check-translit libiconv-1.6/tests/translit-check
+libiconv-1.6/tests/check-translit.bat libiconv-1.6/tests/translit-check.bat
+libiconv-1.6/tests/check-stateless.bat libiconv-1.6/tests/stateless-check.bat
+libiconv-1.6/tests/check-stateful.bat libiconv-1.6/tests/stateful-check.bat
+libiconv-1.6/tests/check-stateful.cmd libiconv-1.6/tests/stateful-check.cmd
+libiconv-1.6/tests/check-stateless.cmd libiconv-1.6/tests/stateless-check.cmd
+libiconv-1.6/tests/check-translit.cmd libiconv-1.6/tests/translit-check.cmd
+libiconv-1.6/tests/BIG5HKSCS.IRREVERSIBLE.TXT libiconv-1.6/tests/BIG5HKSCS.IRREVERSIBLE-TXT
+libiconv-1.6/libcharset/tools/aix-3.2.5 libiconv-1.6/libcharset/tools/aix-3.2.5
+libiconv-1.6/libcharset/tools/aix-4.1.5 libiconv-1.6/libcharset/tools/aix-4.1.5
+libiconv-1.6/libcharset/tools/aix-4.2.0 libiconv-1.6/libcharset/tools/aix-4.2.0
+libiconv-1.6/libcharset/tools/aix-4.3.2 libiconv-1.6/libcharset/tools/aix-4.3.2
+libiconv-1.6/libcharset/tools/all-charsets libiconv-1.6/libcharset/tools/all-charsets
+libiconv-1.6/libcharset/tools/all-locales libiconv-1.6/libcharset/tools/all-locales
+libiconv-1.6/libcharset/tools/freebsd-3.3 libiconv-1.6/libcharset/tools/freebsd-3.3
+libiconv-1.6/libcharset/tools/glibc-2.1.3 libiconv-1.6/libcharset/tools/glibc-2.1.3
+libiconv-1.6/libcharset/tools/glibc-2.1.90 libiconv-1.6/libcharset/tools/glibc-2.1.90
+libiconv-1.6/libcharset/tools/hpux-10.01 libiconv-1.6/libcharset/tools/hpux-10.01
+libiconv-1.6/libcharset/tools/hpux-10.20 libiconv-1.6/libcharset/tools/hpux-10.20
+libiconv-1.6/libcharset/tools/hpux-11.00 libiconv-1.6/libcharset/tools/hpux-11.00
+libiconv-1.6/libcharset/tools/irix-6.5 libiconv-1.6/libcharset/tools/irix-6.5
+libiconv-1.6/libcharset/tools/locale_charmap libiconv-1.6/libcharset/tools/locale_charmap
+libiconv-1.6/libcharset/tools/locale_charset.c libiconv-1.6/libcharset/tools/locale_charset.c
+libiconv-1.6/libcharset/tools/locale_codeset.c libiconv-1.6/libcharset/tools/localecodeset.c
+libiconv-1.6/libcharset/tools/osf1-4.0a libiconv-1.6/libcharset/tools/osf1-4.0a
+libiconv-1.6/libcharset/tools/osf1-4.0d libiconv-1.6/libcharset/tools/osf1-4.0d
+libiconv-1.6/libcharset/tools/solaris-2.4 libiconv-1.6/libcharset/tools/solaris-2.4
+libiconv-1.6/libcharset/tools/solaris-2.5.1 libiconv-1.6/libcharset/tools/solaris-2.5.1
+libiconv-1.6/libcharset/tools/solaris-2.6 libiconv-1.6/libcharset/tools/solaris-2.6
+libiconv-1.6/libcharset/tools/solaris-2.6-cjk libiconv-1.6/libcharset/tools/solaris-2.6-cjk
+libiconv-1.6/libcharset/tools/solaris-2.7 libiconv-1.6/libcharset/tools/solaris-2.7
+libiconv-1.6/libcharset/tools/sunos-4.1.4 libiconv-1.6/libcharset/tools/sunos-4.1.4
+libiconv-1.6/libcharset/tools/win32 libiconv-1.6/libcharset/tools/win32
+libiconv-1.6/libcharset/tools/glibc-2.2 libiconv-1.6/libcharset/tools/glibc-2.2
+libiconv-1.6/libcharset/tools/all-charsets-X11 libiconv-1.6/libcharset/tools/all-charsets.X11
+libiconv-1.6/libcharset/tools/glibc-2.2-XF86-3.3.6 libiconv-1.6/libcharset/tools/glibc-2.2-XF86-3.3.6
+libiconv-1.6/libcharset/tools/glibc-2.2-XF86-4.0.1f libiconv-1.6/libcharset/tools/glibc-2.2XF86-4.0.1f
+libiconv-1.6/libcharset/tools/locale_x11encoding.c libiconv-1.6/libcharset/tools/locale_x11encoding.c
+libiconv-1.6/lib/aliases.gperf libiconv-1.6/lib/aliases/aliases.gperf
+libiconv-1.6/lib/aliases.h libiconv-1.6/lib/aliases/aliases.h
+libiconv-1.6/lib/aliases_aix.h libiconv-1.6/lib/aliases/aix.h
+libiconv-1.6/lib/cns11643.h libiconv-1.6/lib/cns/11643.h
+libiconv-1.6/lib/cns11643_1.h libiconv-1.6/lib/cns/11643_1.h
+libiconv-1.6/lib/cns11643_2.h libiconv-1.6/lib/cns/11643_2.h
+libiconv-1.6/lib/cns11643_3.h libiconv-1.6/lib/cns/11643_3.h
+libiconv-1.6/lib/cns11643_inv.h libiconv-1.6/lib/cns/11643_inv.h
+libiconv-1.6/lib/encodings.def libiconv-1.6/lib/encodings/encodings.def
+libiconv-1.6/lib/encodings_aix.def libiconv-1.6/lib/encodings/aix.def
+libiconv-1.6/lib/encodings_local.def libiconv-1.6/lib/encodings/local.def
+libiconv-1.6/lib/genaliases2.c libiconv-1.6/lib/2genaliases.c
+libiconv-1.6/lib/georgian_academy.h libiconv-1.6/lib/georgian/academy.h
+libiconv-1.6/lib/georgian_ps.h libiconv-1.6/lib/georgian/ps.h
+libiconv-1.6/lib/iso2022_cn.h libiconv-1.6/lib/iso/2022_cn.h
+libiconv-1.6/lib/iso2022_cnext.h libiconv-1.6/lib/iso/2022_cnext.h
+libiconv-1.6/lib/iso2022_jp.h libiconv-1.6/lib/iso/2022_jp.h
+libiconv-1.6/lib/iso2022_jp1.h libiconv-1.6/lib/iso/2022_jp1.h
+libiconv-1.6/lib/iso2022_jp2.h libiconv-1.6/lib/iso/2022_jp2.h
+libiconv-1.6/lib/iso2022_kr.h libiconv-1.6/lib/iso/2022_kr.h
+libiconv-1.6/lib/iso646_cn.h libiconv-1.6/lib/iso/646_cn.h
+libiconv-1.6/lib/iso646_jp.h libiconv-1.6/lib/iso/646_jp.h
+libiconv-1.6/lib/iso8859_1.h libiconv-1.6/lib/iso/8859_1.h
+libiconv-1.6/lib/iso8859_10.h libiconv-1.6/lib/iso/8859_10.h
+libiconv-1.6/lib/iso8859_13.h libiconv-1.6/lib/iso/8859_13.h
+libiconv-1.6/lib/iso8859_14.h libiconv-1.6/lib/iso/8859_14.h
+libiconv-1.6/lib/iso8859_15.h libiconv-1.6/lib/iso/8859_15.h
+libiconv-1.6/lib/iso8859_16.h libiconv-1.6/lib/iso/8859_16.h
+libiconv-1.6/lib/iso8859_2.h libiconv-1.6/lib/iso/8859_2.h
+libiconv-1.6/lib/iso8859_3.h libiconv-1.6/lib/iso/8859_3.h
+libiconv-1.6/lib/iso8859_4.h libiconv-1.6/lib/iso/8859_4.h
+libiconv-1.6/lib/iso8859_5.h libiconv-1.6/lib/iso/8859_5.h
+libiconv-1.6/lib/iso8859_6.h libiconv-1.6/lib/iso/8859_6.h
+libiconv-1.6/lib/iso8859_7.h libiconv-1.6/lib/iso/8859_7.h
+libiconv-1.6/lib/iso8859_8.h libiconv-1.6/lib/iso/8859_8.h
+libiconv-1.6/lib/iso8859_9.h libiconv-1.6/lib/iso/8859_9.h
+libiconv-1.6/lib/isoir165.h libiconv-1.6/lib/iso/ir165.h
+libiconv-1.6/lib/isoir165ext.h libiconv-1.6/lib/iso/ir165ext.h
+libiconv-1.6/lib/mac_arabic.h libiconv-1.6/lib/mac/arabic.h
+libiconv-1.6/lib/mac_centraleurope.h libiconv-1.6/lib/mac/centraleurope.h
+libiconv-1.6/lib/mac_croatian.h libiconv-1.6/lib/mac/croatian.h
+libiconv-1.6/lib/mac_cyrillic.h libiconv-1.6/lib/mac/cyrillic.h
+libiconv-1.6/lib/mac_greek.h libiconv-1.6/lib/mac/greek.h
+libiconv-1.6/lib/mac_hebrew.h libiconv-1.6/lib/mac/hebrew.h
+libiconv-1.6/lib/mac_iceland.h libiconv-1.6/lib/mac/iceland.h
+libiconv-1.6/lib/mac_roman.h libiconv-1.6/lib/mac/roman.h
+libiconv-1.6/lib/mac_romania.h libiconv-1.6/lib/mac/romania.h
+libiconv-1.6/lib/mac_thai.h libiconv-1.6/lib/mac/thai.h
+libiconv-1.6/lib/mac_turkish.h libiconv-1.6/lib/mac/turkish.h
+libiconv-1.6/lib/mac_ukraine.h libiconv-1.6/lib/mac/ukraine.h
+libiconv-1.6/lib/mulelao.h libiconv-1.6/lib/mulelao.h
+libiconv-1.6/lib/nextstep.h libiconv-1.6/lib/nextstep.h
+libiconv-1.6/lib/sjis.h libiconv-1.6/lib/sjis.h
+libiconv-1.6/lib/tcvn.h libiconv-1.6/lib/tcvn.h
+libiconv-1.6/lib/tis620.h libiconv-1.6/lib/tis620.h
+libiconv-1.6/lib/translit.def libiconv-1.6/lib/translit.def
+libiconv-1.6/lib/translit.h libiconv-1.6/lib/translit.h
+libiconv-1.6/lib/ucs2.h libiconv-1.6/lib/ucs2.h
+libiconv-1.6/lib/ucs2be.h libiconv-1.6/lib/ucs2be.h
+libiconv-1.6/lib/ucs2internal.h libiconv-1.6/lib/ucs2internal.h
+libiconv-1.6/lib/ucs2le.h libiconv-1.6/lib/ucs2le.h
+libiconv-1.6/lib/ucs2swapped.h libiconv-1.6/lib/ucs2swapped.h
+libiconv-1.6/lib/ucs4.h libiconv-1.6/lib/ucs4.h
+libiconv-1.6/lib/ucs4be.h libiconv-1.6/lib/ucs4be.h
+libiconv-1.6/lib/ucs4internal.h libiconv-1.6/lib/ucs4internal.h
+libiconv-1.6/lib/ucs4le.h libiconv-1.6/lib/ucs4le.h
+libiconv-1.6/lib/ucs4swapped.h libiconv-1.6/lib/ucs4swapped.h
+libiconv-1.6/lib/uhc_1.h libiconv-1.6/lib/uhc_1.h
+libiconv-1.6/lib/uhc_2.h libiconv-1.6/lib/uhc_2.h
+libiconv-1.6/lib/utf16.h libiconv-1.6/lib/utf16.h
+libiconv-1.6/lib/utf16be.h libiconv-1.6/lib/utf16be.h
+libiconv-1.6/lib/utf16le.h libiconv-1.6/lib/utf16le.h
+libiconv-1.6/lib/utf7.h libiconv-1.6/lib/utf7.h
+libiconv-1.6/lib/utf8.h libiconv-1.6/lib/utf8.h
+libiconv-1.6/lib/viscii.h libiconv-1.6/lib/viscii.h
+libiconv-1.6/lib/encodings_dos.def libiconv-1.6/lib/encodings/dos.def
+libiconv-1.6/lib/aliases_dos.h libiconv-1.6/lib/aliases/dos.h
16 djgpp/makefile.sed
View
@@ -0,0 +1,16 @@
+# Fixes for lib/Makefile.in
+s|encodings\.def|encodings/&|g
+s|encodings_aix\.def|encodings/aix.def|g
+s|encodings_dos\.def|encodings/dos\.def|g
+s|encodings_local\.def|encodings/local\.def|g
+s|aliases\.h|aliases/&|g
+s|aliases_aix\.h|aliases/aix.h|g
+s|aliases_dos\.h|aliases/dos\.h|g
+s|aliases_local\.h|aliases/local\.h|g
+
+
+# Fixes for tests/Makefile.in
+/^check[ ]*:.*table-from[ ]*table-to/,/^$/ s,^ \+\$(srcdir)/, $(SHELL) $(srcdir)/,
+s/check-stateless/stateless-check/g
+s/check-stateful/stateful-check/g
+s/check-translit/translit-check/g
17 djgpp/sources.sed
View
@@ -0,0 +1,17 @@
+# Fixes for lib/iconv.c.
+# All encodings files recide in encdings dir now.
+/^#[ ]*include/ s|"encodings\.def|"encodings/encodings.def|
+/^#[ ]*include/ s|"encodings_aix\.def|"encodings/aix.def|
+/^#[ ]*include/ s|"encodings_dos\.def|"encodings/dos.def|
+/^#[ ]*include/ s|"encodings_local\.def|"encodings/local.def|
+/^#[ ]*include/ s|"aliases\.h|"aliases/aliases.h|
+/^#[ ]*include/ s|"aliases_aix\.h|"aliases/aix.h|
+/^#[ ]*include/ s|"aliases_dos\.h|"aliases/dos.h|
+/^#[ ]*include/ s|"aliases_local\.h|"aliases/local.h|
+
+# Fixes for lib/converters\.h.
+# All cns, iso, georgian and mac files recide in their respective dirs now.
+/^#[ ]*include/ s|"cns|&/|
+/^#[ ]*include/ s|"iso|&/|
+/^#[ ]*include/ s|"georgian_|"georgian/|
+/^#[ ]*include/ s|"mac_|"mac/|
16 djgpp/stateful-check.sed
View
@@ -0,0 +1,16 @@
+# Sed script for tests/stateful-check editing.
+
+/set -e/ a\
+# For systems that distinguish between text and binary I/O\
+# the binary mode of iconv must be selected and for\
+# systems with severe filename restrictions allow for\
+# an alternate filename.\
+UNAME=${UNAME-`uname 2>/dev/null`}\
+case X$UNAME in\
+ *-DOS) MODE='--binary'\
+ filename=`echo "$charset" | sed "s|ISO-|ISO/|;s|2022-|2022|"` ;;\
+ *) MODE=''\
+ filename="$charset" ;;\
+esac
+/iconv/ s/iconv/& $MODE/
+s/\$charset"-snippet/$filename"-snippet/g
20 djgpp/stateless-check.sed
View
@@ -0,0 +1,20 @@
+# Sed script for tests/stateless-check editing.
+/set -e/ a\
+# For systems with severe filename restrictions\
+# allow for an alternate filename.\
+UNAME=${UNAME-`uname 2>/dev/null`}\
+case X$UNAME in\
+ *-DOS) filename=`echo "$charset" | sed "s|ISO-|ISO/|; \\\
+ s|Mac|Mac/|; \\\
+ s|Georgian-|Georgian/|"`\
+ tmp_filename=`echo "$filename" | sed "s|/|/tmp-|"`\
+ tmp_orig_filename=`echo "$filename" | sed "s|/|/tmp-orig-|"` ;;\
+ *) filename="$charset"\
+ tmp_filename="$charset"\
+ tmp_orig_filename="$charset" ;;\
+esac
+s|/"\$charset"|/"$filename"|g
+s|tmp-"\$charset"|"${srcdir}"/"$tmp_filename"|g
+s|tmp-orig"\$charset"|"${srcdir}"/"$tmp_orig_filename"|g
+s|\.INVERSE\.|.INVERSE-|g
+s|\.IRREVERSIBLE\.|.IRREVERSIBLE-|g
10 djgpp/translit-check.sed
View
@@ -0,0 +1,10 @@
+# Sed script for tests/translit-check editing.
+/set -e/ a\
+# For systems that distinguish between text and binary I/O\
+# the binary mode of iconv must be selected.\
+UNAME=${UNAME-`uname 2>/dev/null`}\
+case X$UNAME in\
+ *-DOS) MODE='--binary' ;;\
+ *) MODE='' ;;\
+esac
+/iconv/ s/iconv/& $MODE/
3  libcharset/README.djgpp
View
@@ -0,0 +1,3 @@
+Installation on DJGPP:
+
+See the file djgpp/README.
123 libcharset/djgpp/README
View
@@ -0,0 +1,123 @@
+This is a port of GNU Libiconv 1.6 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 licv16b.zip or
+ djtarx licv16b.zip or
+ pkunzip -d licv16b.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: licv16s.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 licv16s.zip or
+ djtarx licv16s.zip or
+ pkunzip -d licv16s.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.6/djgpp/fnchange.lst libiconv-1.6.tar.gz > lst
+ djtar -x -n lst libiconv-1.6.tar.gz
+
+ (The name of the distribution archive and the top-level directory will
+ be different for versions other than 1.6.)
+
+
+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 libcharset.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 <haible@clisp.cons.org>.
+
+
+ Guerrero, Juan Manuel <st001906@hrz1.hrz.tu-darmstadt.de>
113 libcharset/djgpp/config.bat
View
@@ -0,0 +1,113 @@
+@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 where the sources are
+set XSRC=.
+if not "%XSRC%" == "." goto SmallEnv
+if "%1" == "" goto InPlace
+set XSRC=%1
+if not "%XSRC%" == "%1" goto SmallEnv
+redir -e /dev/null update %XSRC%/configure.orig ./configure
+test -f ./configure
+if errorlevel 1 update %XSRC%/configure ./configure
+
+:InPlace
+Rem Update configuration files
+echo Updating configuration scripts...
+test -f ./configure.orig
+if errorlevel 1 update ./configure ./configure.orig
+sed -f %XSRC%/djgpp/config.sed ./configure.orig > 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 mv -f %XSRC%/config.h.in %XSRC%/config.h-in
+test -f %XSRC%/include/libcharset.h.in
+if not errorlevel 1 mv -f %XSRC%/include/libcharset.h.in %XSRC%/include/libcharset.h-in
+
+Rem Let libtool use _libs all the time.
+test -f %XSRC%/autoconf/ltconfig.orig
+if errorlevel 1 update %XSRC%/autoconf/ltconfig %XSRC%/autoconf/ltconfig.orig
+sed "/objdir=/s|\.libs|_libs|" %XSRC%/autoconf/ltconfig > ltconfig.tmp
+if errorlevel 1 goto SedError
+update ltconfig.tmp %XSRC%/autoconf/ltconfig
+rm ltconfig.tmp
+
+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 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
+
+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=
+
+echo Running the ./configure script...
+sh ./configure --src=%XSRC%
+if errorlevel 1 goto CfgError
+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=
85 libcharset/djgpp/config.sed
View
@@ -0,0 +1,85 @@
+# Additional editing of Makefiles
+/ac_given_INSTALL=/,/^CEOF/ {
+ /^CEOF$/ i\
+# DJGPP specific Makefile changes.\
+ /^aliaspath * *=/s,:,";",g\
+ /^lispdir * *=/ c\\\\\
+lispdir = \\$(prefix)/gnu/emacs/site-lisp\
+ /TEXINPUTS=/s,:,";",g\
+ /PATH=/s,:,";",g\
+ s,config\\.h\\.in,config.h-in,g\
+ s,\\.tab\\.c,_tab.c,g\
+ s,\\.tab\\.h,_tab.h,g\
+ s,\\.old\\.,_old.,g\
+ s,libcharset\\.h\\.in,libcharset.h-in,g\
+ s,Makefile\\.in\\.in,Makefile.in-in,g\
+ s,Makefile\\.am\\.in,Makefile.am-in,g\
+ /^install-info-am:/,/^$/ s,file-\\[0-9\\]\\[0-9\\],& \\$\\$file[0-9] \\$\\$file[0-9][0-9],\
+ /^\\.y\\.c:/,/^$/ {\
+ /\\\$(YACC)/ {\
+ s,[ ]*&&.*$,,\
+ a\\\\\
+ -mv -f y_tab.c \\$*.c\\\\\
+ -@test -f y.tab.c && mv -f y.tab.c \\$*.c\\\\\
+ -@test -f y.tab.h && mv -f y.tab.h y_tab.h\
+ }\
+ }
+}
+
+# Rename config.h.in into config.h-in
+/^ *CONFIG_HEADERS=/,/^EOF/ {
+ s|"lib/config\.h|&:lib/config.h-in|
+ s|"config\.h|&:config.h-in|
+}
+
+# Rename iconv.h.in into iconv.h-in
+/^ *CONFIG_FILES=/,/^EOF/ {
+ s|include/iconv\.h|&:include/iconv.h-in|
+}
+
+# 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,),,
+ s,; *then,`; then,
+}
+
+# DOS-style absolute file names should be supported as well
+/\*) srcdir=/s,/\*,[\\\\/]* | [A-z]:[\\\\/]*,
+/\$]\*) INSTALL=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
+/\$]\*) ac_rel_source=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*,
+
+# Switch the order of the two Sed commands, since DOS path names
+# could include a colon
+/ac_file_inputs=/s,\( -e "s%\^%\$ac_given_srcdir/%"\)\( -e "s%:% $ac_given_srcdir/%g"\),\2\1,
+
+# Prevent the spliting of conftest.subs.
+# The sed script: conftest.subs is split into 48 or 90 lines long files.
+# This will produce sed scripts called conftest.s1, conftest.s2, etc.
+# that will not work if conftest.subs contains a multi line sed command
+# at line #90. In this case the first part of the sed command will be the
+# last line of conftest.s1 and the rest of the command will be the first lines
+# of conftest.s2. So both script will not work properly.
+# This matches the configure script produced by Autoconf 2.12
+/ac_max_sed_cmds=[0-9]/ s,=.*$,=`sed -n "$=" conftest.subs`,
+# This matches the configure script produced by Autoconf 2.14a
+/ac_max_sed_lines=[0-9]/ s,=.*$,=`sed -n "$=" $ac_cs_root.subs `,
+
+# 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
+
+# 2) We need links across partitions,
+# so we will use "cp -pf" instead of "ln".
+/# Make a symlink if possible; otherwise try a hard link./,/EOF/ {
+ s,;.*then, 2>/dev/null || cp -pf \$srcdir/\$ac_source \$ac_dest&,
+}
43 libcharset/djgpp/config.site
View
@@ -0,0 +1,43 @@
+#! /bin/sh
+
+# 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
+# for all paths that are hardcoded in the binaries.
+# When installing the installation prefix must be supplied.
+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='/dev/env/DJDIR/bin/ranlib'}
+GMSGFMT=${GMSGFMT='/dev/env/DJDIR/bin/msgfmt'}
+MSGFMT=${MSGFMT='/dev/env/DJDIR/bin/msgfmt'}
+XGETTEXT=${XGETTEXT='/dev/env/DJDIR/bin/xgettext'}
+
+# A sane default for emacs.
+ac_cv_path_EMACS=${EMACS='/dev/env/DJDIR/gnu/emacs/bin/emacs'}
+
+# 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='/dev/env/DJDIR/bin/nm'}
+LD=${LD='/dev/env/DJDIR/bin/ld'}
+
+# Force the test for 'ln -s' to report no.
+ac_cv_prog_LN_S='cp -p'
+cl_cv_prog_LN_S='cp -p'
+cl_cv_prog_LN='cp -p'
74 libcharset/djgpp/fnchange.lst
View
@@ -0,0 +1,74 @@
+libiconv-1.6/libcharset/ libiconv-1.6/libcharset/
+libiconv-1.6/libcharset/tools/ libiconv-1.6/libcharset/tools/
+libiconv-1.6/libcharset/tools/README libiconv-1.6/libcharset/tools/README
+libiconv-1.6/libcharset/tools/aix-3.2.5 libiconv-1.6/libcharset/tools/aix-3.2.5
+libiconv-1.6/libcharset/tools/aix-4.1.5 libiconv-1.6/libcharset/tools/aix-4.1.5
+libiconv-1.6/libcharset/tools/aix-4.2.0 libiconv-1.6/libcharset/tools/aix-4.2.0
+libiconv-1.6/libcharset/tools/aix-4.3.2 libiconv-1.6/libcharset/tools/aix-4.3.2
+libiconv-1.6/libcharset/tools/all-charsets libiconv-1.6/libcharset/tools/all-charsets
+libiconv-1.6/libcharset/tools/all-locales libiconv-1.6/libcharset/tools/all-locales
+libiconv-1.6/libcharset/tools/freebsd-3.3 libiconv-1.6/libcharset/tools/freebsd-3.3
+libiconv-1.6/libcharset/tools/glibc-2.1.3 libiconv-1.6/libcharset/tools/glibc-2.1.3
+libiconv-1.6/libcharset/tools/glibc-2.1.90 libiconv-1.6/libcharset/tools/glibc-2.1.90
+libiconv-1.6/libcharset/tools/hpux-10.01 libiconv-1.6/libcharset/tools/hpux-10.01
+libiconv-1.6/libcharset/tools/hpux-10.20 libiconv-1.6/libcharset/tools/hpux-10.20
+libiconv-1.6/libcharset/tools/hpux-11.00 libiconv-1.6/libcharset/tools/hpux-11.00
+libiconv-1.6/libcharset/tools/irix-6.5 libiconv-1.6/libcharset/tools/irix-6.5
+libiconv-1.6/libcharset/tools/locale_charmap libiconv-1.6/libcharset/tools/locale_charmap
+libiconv-1.6/libcharset/tools/locale_charset.c libiconv-1.6/libcharset/tools/locale_charset.c
+libiconv-1.6/libcharset/tools/locale_codeset.c libiconv-1.6/libcharset/tools/localecodeset.c
+libiconv-1.6/libcharset/tools/osf1-4.0a libiconv-1.6/libcharset/tools/osf1-4.0a
+libiconv-1.6/libcharset/tools/osf1-4.0d libiconv-1.6/libcharset/tools/osf1-4.0d
+libiconv-1.6/libcharset/tools/solaris-2.4 libiconv-1.6/libcharset/tools/solaris-2.4
+libiconv-1.6/libcharset/tools/solaris-2.5.1 libiconv-1.6/libcharset/tools/solaris-2.5.1
+libiconv-1.6/libcharset/tools/solaris-2.6 libiconv-1.6/libcharset/tools/solaris-2.6
+libiconv-1.6/libcharset/tools/solaris-2.6-cjk libiconv-1.6/libcharset/tools/solaris-2.6-cjk
+libiconv-1.6/libcharset/tools/solaris-2.7 libiconv-1.6/libcharset/tools/solaris-2.7
+libiconv-1.6/libcharset/tools/sunos-4.1.4 libiconv-1.6/libcharset/tools/sunos-4.1.4
+libiconv-1.6/libcharset/tools/win32 libiconv-1.6/libcharset/tools/win32
+libiconv-1.6/libcharset/tools/glibc-2.2 libiconv-1.6/libcharset/tools/glibc-2.2
+libiconv-1.6/libcharset/tools/all-charsets-X11 libiconv-1.6/libcharset/tools/all-charsets.X11
+libiconv-1.6/libcharset/tools/glibc-2.2-XF86-3.3.6 libiconv-1.6/libcharset/tools/glibc-2.2-XF86-3.3.6
+libiconv-1.6/libcharset/tools/glibc-2.2-XF86-4.0.1f libiconv-1.6/libcharset/tools/glibc-2.2XF86-4.0.1f
+libiconv-1.6/libcharset/tools/locale_x11encoding.c libiconv-1.6/libcharset/tools/locale_x11encoding.c
+libiconv-1.6/libcharset/tools/beos-5 libiconv-1.6/libcharset/tools/beos-5
+libiconv-1.6/libcharset/m4/ libiconv-1.6/libcharset/m4/
+libiconv-1.6/libcharset/m4/ChangeLog libiconv-1.6/libcharset/m4/ChangeLog
+libiconv-1.6/libcharset/m4/codeset.m4 libiconv-1.6/libcharset/m4/codeset.m4
+libiconv-1.6/libcharset/m4/glibc21.m4 libiconv-1.6/libcharset/m4/glibc21.m4
+libiconv-1.6/libcharset/m4/libtool.m4 libiconv-1.6/libcharset/m4/libtool.m4
+libiconv-1.6/libcharset/lib/ libiconv-1.6/libcharset/lib/
+libiconv-1.6/libcharset/lib/config.charset libiconv-1.6/libcharset/lib/config.charset
+libiconv-1.6/libcharset/lib/localcharset.c libiconv-1.6/libcharset/lib/localcharset.c
+libiconv-1.6/libcharset/lib/ref-add.sin libiconv-1.6/libcharset/lib/ref-add.sin
+libiconv-1.6/libcharset/lib/ref-del.sin libiconv-1.6/libcharset/lib/ref-del.sin
+libiconv-1.6/libcharset/lib/ChangeLog libiconv-1.6/libcharset/lib/ChangeLog
+libiconv-1.6/libcharset/lib/Makefile.in libiconv-1.6/libcharset/lib/Makefile.in
+libiconv-1.6/libcharset/lib/Makefile.msvc libiconv-1.6/libcharset/lib/Makefile.msvc
+libiconv-1.6/libcharset/AUTHORS libiconv-1.6/libcharset/AUTHORS
+libiconv-1.6/libcharset/COPYING.LIB libiconv-1.6/libcharset/COPYING.LIB
+libiconv-1.6/libcharset/INSTALL.generic libiconv-1.6/libcharset/INSTALL.generic
+libiconv-1.6/libcharset/README libiconv-1.6/libcharset/README
+libiconv-1.6/libcharset/Makefile.devel libiconv-1.6/libcharset/Makefile.devel
+libiconv-1.6/libcharset/Makefile.in libiconv-1.6/libcharset/Makefile.in
+libiconv-1.6/libcharset/configure.in libiconv-1.6/libcharset/configure.in
+libiconv-1.6/libcharset/configure libiconv-1.6/libcharset/configure
+libiconv-1.6/libcharset/INTEGRATE libiconv-1.6/libcharset/INTEGRATE
+libiconv-1.6/libcharset/include/ libiconv-1.6/libcharset/include/
+libiconv-1.6/libcharset/include/libcharset.h.in libiconv-1.6/libcharset/include/libcharset.h.in
+libiconv-1.6/libcharset/include/libcharset.h.msvc-shared libiconv-1.6/libcharset/include/libcharset_h.shared-msvc
+libiconv-1.6/libcharset/autoconf/ libiconv-1.6/libcharset/autoconf/
+libiconv-1.6/libcharset/autoconf/config.guess libiconv-1.6/libcharset/autoconf/config.guess
+libiconv-1.6/libcharset/autoconf/config.sub libiconv-1.6/libcharset/autoconf/config.sub
+libiconv-1.6/libcharset/autoconf/ltconfig libiconv-1.6/libcharset/autoconf/ltconfig
+libiconv-1.6/libcharset/autoconf/ltmain.sh libiconv-1.6/libcharset/autoconf/ltmain.sh
+libiconv-1.6/libcharset/autoconf/install-sh libiconv-1.6/libcharset/autoconf/install-sh
+libiconv-1.6/libcharset/autoconf/aclocal.m4 libiconv-1.6/libcharset/autoconf/aclocal.m4
+libiconv-1.6/libcharset/autoconf/mkinstalldirs libiconv-1.6/libcharset/autoconf/mkinstalldirs
+libiconv-1.6/libcharset/config.h.in libiconv-1.6/libcharset/config.h.in
+libiconv-1.6/libcharset/windows/ libiconv-1.6/libcharset/windows/
+libiconv-1.6/libcharset/windows/dllexport.h libiconv-1.6/libcharset/windows/dllexport.h
+libiconv-1.6/libcharset/ChangeLog libiconv-1.6/libcharset/ChangeLog
+libiconv-1.6/libcharset/Makefile.msvc libiconv-1.6/libcharset/Makefile.msvc
+libiconv-1.6/libcharset/README.win32 libiconv-1.6/libcharset/README.win32
+libiconv-1.6/libcharset/config.h.msvc libiconv-1.6/libcharset/config.h.msvc
Please sign in to comment.
Something went wrong with that request. Please try again.