2010-01-19 Juan Manuel Guerrero  <juan.guerrero@gmx.de>

	* doc/unrtf.1: Adjust documentation to DJGPP.

	* src/main.h [__DJGPP__]: Set CONFIG_DIR to "/dev/env/DJDIR/lib/unrtf/outputs/"

	* src/my_iconv.h [__DJGPP__]: Set CHARMAP_DIR to "/dev/env/DJDIR/lib/unrtf/charmaps/"

	* src/path.h [__DJGPP__]: Set DEFAULT_UNRTF_SEARCH_PATH to "/dev/env/DJDIR/lib/unrtf/outputs/"





diff -aprNU5 unrtf-0.21.1.orig/doc/unrtf.1 unrtf-0.21.1/doc/unrtf.1
--- unrtf-0.21.1.orig/doc/unrtf.1	2010-01-17 22:55:16 +0000
+++ unrtf-0.21.1/doc/unrtf.1	2010-01-20 21:12:48 +0000
@@ -1,10 +1,10 @@
 .\" Copyright (C) 2000,2001,2004 by Zachary Smith
 .\"
 .\" Permission is granted to redistribute this file with UnRTF.
 .\"
-.TH UNRTF "GNU UnRTF 0.21.0"
+.TH UNRTF "GNU UnRTF 0.21.1"
 .SH NAME
 UnRTF \- converts document in RTF format to other formats
 .SH SYNOPSIS
 .BI "unrtf [" options "] [" file... ]
 .br
@@ -85,24 +85,24 @@ prints the program version.
 specifies the tags output configuration file to be used. The command
 "unrtf -t html" is functionally identical to "unrtf --html".  The
 configuration files are a simple format.  To change the behaviour of
 unrtf, a local copy of a system configuration file can be be made and
 edited.  The most complete configuration file and hence the best starting
-point is /usr/local/lib/unrtf/html.conf.
+point is /dev/env/DJDIR/lib/unrtf/html.conf.
 .TP
 \-P config_search_path
 specifies the directories in which the configuration file for the specified
 format will be sought.  The path can be provided as a single directory
 or a list of colon separated directories. 
-The default is /usr/local/lib/unrtf/ where distributed output
+The default is /dev/env/DJDIR/lib/unrtf/ where distributed output
 configuration files are installed.
 .SH FILES
 .TP
-/usr/local/lib/unrtf/*.conf
+/dev/env/DJDIR/lib/unrtf/*.conf
 - run time output configuration files.
 .TP
-/usr/local/lib/unrtf/SYMBOL.charmap
+/dev/env/DJDIR/lib/unrtf/SYMBOL.charmap
 - UTF encoding of the SYMBOL font
 used in many RTF files.  Unfortunately the iconv package does not include
 font encodings.  The format is identical to iconv code page files.
 .SH WEBSITE
 http://www.gnu.org/software/unrtf/unrtf.html
diff -aprNU5 unrtf-0.21.1.orig/src/main.h unrtf-0.21.1/src/main.h
--- unrtf-0.21.1.orig/src/main.h	2010-01-17 04:54:06 +0000
+++ unrtf-0.21.1/src/main.h	2010-01-20 21:12:48 +0000
@@ -45,11 +45,15 @@ extern int no_remap_mode;
 
 #ifndef _OUTPUT
 #include "output.h"
 #endif
 
+#ifdef __DJGPP__
+#define CONFIG_DIR "/dev/env/DJDIR/lib/unrtf/"
+#else
 #define CONFIG_DIR "/usr/local/lib/unrtf/"
+#endif
 #define DEFAULT_OUTPUT "html"
 
 extern OutputPersonality *op;
 
 
diff -aprNU5 unrtf-0.21.1.orig/src/my_iconv.h unrtf-0.21.1/src/my_iconv.h
--- unrtf-0.21.1.orig/src/my_iconv.h	2008-11-09 10:07:26 +0000
+++ unrtf-0.21.1/src/my_iconv.h	2010-01-20 21:12:48 +0000
@@ -8,11 +8,15 @@
 #ifndef HAVE_ICONV_H
 #include <iconv.h>
 #define HAVE_ICONV_H
 #endif
 
+#ifdef __DJGPP__
+#define CHARMAP_DIR "/dev/env/DJDIR/lib/unrtf/charmaps/"
+#else
 #define CHARMAP_DIR "/usr/local/lib/unrtf/charmaps/"
+#endif
 #define char_table_size 256
 
 typedef struct
 {
 	iconv_t desc;
diff -aprNU5 unrtf-0.21.1.orig/src/path.h unrtf-0.21.1/src/path.h
--- unrtf-0.21.1.orig/src/path.h	2010-01-02 06:47:02 +0000
+++ unrtf-0.21.1/src/path.h	2010-01-20 21:12:48 +0000
@@ -1,6 +1,10 @@
+#ifdef __DJGPP__
+#define DEFAULT_UNRTF_SEARCH_PATH	"/dev/env/DJDIR/lib/unrtf/"
+#else
 #define DEFAULT_UNRTF_SEARCH_PATH	"/usr/local/lib/unrtf/"
+#endif
 
 char	*search_path;
 int	n_path_dirs;
 int	path_checked;
 
