summaryrefslogtreecommitdiff
path: root/dviware/mdvi/config
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /dviware/mdvi/config
Initial commit
Diffstat (limited to 'dviware/mdvi/config')
-rw-r--r--dviware/mdvi/config/CVS/Entries17
-rw-r--r--dviware/mdvi/config/CVS/Repository1
-rw-r--r--dviware/mdvi/config/CVS/Root1
-rw-r--r--dviware/mdvi/config/FRONTENDS2
-rw-r--r--dviware/mdvi/config/VERSION9
-rw-r--r--dviware/mdvi/config/acconfig.h24
-rw-r--r--dviware/mdvi/config/aclocal.m45
-rw-r--r--dviware/mdvi/config/config.mk.in87
-rw-r--r--dviware/mdvi/config/depend.mk13
-rw-r--r--dviware/mdvi/config/dist.mk36
-rw-r--r--dviware/mdvi/config/endian.m487
-rw-r--r--dviware/mdvi/config/install-sh251
-rw-r--r--dviware/mdvi/config/intl.m4355
-rw-r--r--dviware/mdvi/config/libopts.m490
-rw-r--r--dviware/mdvi/config/mkinstalldirs40
-rw-r--r--dviware/mdvi/config/nls.mk.in213
-rw-r--r--dviware/mdvi/config/targets.mk28
-rw-r--r--dviware/mdvi/config/texmf.m455
-rw-r--r--dviware/mdvi/config/with.m465
19 files changed, 1379 insertions, 0 deletions
diff --git a/dviware/mdvi/config/CVS/Entries b/dviware/mdvi/config/CVS/Entries
new file mode 100644
index 0000000000..26a11e72e8
--- /dev/null
+++ b/dviware/mdvi/config/CVS/Entries
@@ -0,0 +1,17 @@
+/FRONTENDS/1.1.1.1/Tue Mar 20 09:25:41 2001//
+/VERSION/1.1.1.1/Tue Mar 20 09:25:40 2001//
+/acconfig.h/1.1.1.1/Tue Mar 20 09:25:41 2001//
+/aclocal.m4/1.1.1.1/Tue Mar 20 09:25:39 2001//
+/config.mk.in/1.1.1.1/Tue Mar 20 09:25:39 2001//
+/depend.mk/1.1.1.1/Tue Mar 20 09:25:40 2001//
+/dist.mk/1.1.1.1/Tue Mar 20 09:25:39 2001//
+/endian.m4/1.1.1.1/Tue Mar 20 09:25:41 2001//
+/install-sh/1.1.1.1/Tue Mar 20 09:25:40 2001//
+/intl.m4/1.1.1.1/Tue Mar 20 09:25:39 2001//
+/libopts.m4/1.1.1.1/Tue Mar 20 09:25:40 2001//
+/mkinstalldirs/1.1.1.1/Tue Mar 20 09:25:40 2001//
+/nls.mk.in/1.1.1.1/Tue Mar 20 09:25:40 2001//
+/targets.mk/1.1.1.1/Tue Mar 20 09:25:39 2001//
+/texmf.m4/1.1.1.1/Tue Mar 20 09:25:41 2001//
+/with.m4/1.1.1.1/Tue Mar 20 09:25:41 2001//
+D
diff --git a/dviware/mdvi/config/CVS/Repository b/dviware/mdvi/config/CVS/Repository
new file mode 100644
index 0000000000..66228fa8da
--- /dev/null
+++ b/dviware/mdvi/config/CVS/Repository
@@ -0,0 +1 @@
+mdvi/config
diff --git a/dviware/mdvi/config/CVS/Root b/dviware/mdvi/config/CVS/Root
new file mode 100644
index 0000000000..164e86eed7
--- /dev/null
+++ b/dviware/mdvi/config/CVS/Root
@@ -0,0 +1 @@
+agiacom@cvs.mdvi.sourceforge.net:/cvsroot/mdvi
diff --git a/dviware/mdvi/config/FRONTENDS b/dviware/mdvi/config/FRONTENDS
new file mode 100644
index 0000000000..4d4642d4d6
--- /dev/null
+++ b/dviware/mdvi/config/FRONTENDS
@@ -0,0 +1,2 @@
+# This file lists all the frontends that are distributed with MDVI.
+ALL_FRONTENDS=x11
diff --git a/dviware/mdvi/config/VERSION b/dviware/mdvi/config/VERSION
new file mode 100644
index 0000000000..b1c4c8cce5
--- /dev/null
+++ b/dviware/mdvi/config/VERSION
@@ -0,0 +1,9 @@
+#
+# This is the only place where the version numbers are stored, and this file
+# is ONLY read by shell scripts.
+#
+PACKAGE=mdvi
+MAJOR=0
+MINOR=2
+PATCH=
+VERSION=${MAJOR}.${MINOR}${PATCH}
diff --git a/dviware/mdvi/config/acconfig.h b/dviware/mdvi/config/acconfig.h
new file mode 100644
index 0000000000..b5b829c89a
--- /dev/null
+++ b/dviware/mdvi/config/acconfig.h
@@ -0,0 +1,24 @@
+
+/* Don't change these */
+#undef PACKAGE
+#undef VERSION
+
+/* You can edit anything below this point */
+@TOP@
+
+/* Disable to avoid using NLS */
+#undef ENABLE_NLS
+
+/* Disable if you don't have the gettext function */
+#undef HAVE_GETTEXT
+
+/* Disable if you don't have the catgets function */
+#undef HAVE_CATGETS
+
+/* Disable if you don't have the catgets function */
+#undef HAVE_STPCPY
+
+/* Disable if you don't have the catgets function */
+#undef HAVE_LC_MESSAGES
+
+@BOTTOM@
diff --git a/dviware/mdvi/config/aclocal.m4 b/dviware/mdvi/config/aclocal.m4
new file mode 100644
index 0000000000..78b0f3d56d
--- /dev/null
+++ b/dviware/mdvi/config/aclocal.m4
@@ -0,0 +1,5 @@
+builtin(include,libopts.m4)
+builtin(include,endian.m4)
+builtin(include,with.m4)
+builtin(include,intl.m4)
+builtin(include,texmf.m4)
diff --git a/dviware/mdvi/config/config.mk.in b/dviware/mdvi/config/config.mk.in
new file mode 100644
index 0000000000..54781e654d
--- /dev/null
+++ b/dviware/mdvi/config/config.mk.in
@@ -0,0 +1,87 @@
+# @configure_input@
+
+PACKAGE = @PACKAGE@
+MAJOR = @MAJOR@
+MINOR = @MINOR@
+PATCH = @PATCH@
+VERSION = @VERSION@
+
+#############################################
+# Directories
+
+TOPDIR = @TOPDIR@
+TOPSRCDIR = @TOPSRCDIR@
+CONFIGDIR = $(TOPDIR)/config
+CONFIGSRCDIR = $(TOPSRCDIR)/config
+FRAGDIR = $(CONFIGSRCDIR)
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+bindir = @bindir@
+datadir = @datadir@
+localedir = $(datadir)/locale
+
+# gettext uses this
+top_builddir = $(TOPDIR)
+
+############################################
+# Programs
+
+@SET_MAKE@
+SHELL = @SHELL@
+CC = @CC@
+TAR = tar
+MAKELIB = ar rcs
+MD5SUM = @MD5SUM@
+MAKEDEP = $(CC) -MM -MG
+INSTALL = @INSTALL@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DATA = @INSTALL_DATA@
+MKINSTALLDIRS = $(SHELL) $(CONFIGSRCDIR)/mkinstalldirs
+
+############################################
+# Compiler options
+
+# Compiler options
+CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
+DEFS = @DEFS@
+CPPFLAGS= @CPPFLAGS@
+
+# Default flags for dependencies
+DEPCFLAGS = $(CFLAGS) $(CPPFLAGS)
+
+# Out `support' library
+SUPPORTLIB = @SUPPORTLIB@
+SUPPORTHDR = @SUPPORTHDR@
+
+# Options to compile kpathsea sources
+KPSE_CFLAGS = @KPATHSEA_CFLAGS@
+# Options to link against the kpathsea library
+KPSE_LIBS = @KPATHSEA_LDFLAGS@ @KPATHSEA_LIBS@
+
+# Options to compile t1lib sources
+T1LIB_CFLAGS = @T1LIB_CFLAGS@
+T1LIB_LIBS = @T1LIB_LDFLAGS@ @T1LIB_LIBS@
+
+# Options to compile FreeType sources
+FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
+FREETYPE_LIBS = @FREETYPE_LDFLAGS@ @FREETYPE_LIBS@
+
+# Options to compile X sources
+X_CFLAGS = @X_CFLAGS@
+# Options to link against the X libraries
+X_LIBS = @X_LIBS@ @X11LIB@ @X_EXTRA_LIBS@
+
+# Options for i18n
+INTLDEPS = @INTLDEPS@
+INTLLIBS = @INTLLIBS@
+INTLCFLAGS_yes = -I$(top_builddir)/intl
+
+# Libraries we need
+LIBS = @LIBS@
+
+# Additional compiler flags
+ADDCFLAGS = $(INTLCFLAGS_@USE_INCLUDED_LIBINTL@) $(SUPPORTHDR)
+
+# Additional libraries
+ADDLIBS = $(INTLLIBS) $(SUPPORTLIB)
diff --git a/dviware/mdvi/config/depend.mk b/dviware/mdvi/config/depend.mk
new file mode 100644
index 0000000000..6560f74d8e
--- /dev/null
+++ b/dviware/mdvi/config/depend.mk
@@ -0,0 +1,13 @@
+
+DISTCLEANABLE += $(DEPSOURCES:.c=.d)
+
+.SUFFIXES: .d
+
+.c.d:
+ @echo "Updating dependencies for $<"
+ @set -e; $(MAKEDEP) $(DEPCFLAGS) $< | \
+ sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@;
+
+ifeq ($(subst clean,,$(MAKECMDGOALS)),$(MAKECMDGOALS))
+-include $(DEPSOURCES:.c=.d)
+endif
diff --git a/dviware/mdvi/config/dist.mk b/dviware/mdvi/config/dist.mk
new file mode 100644
index 0000000000..a8758c5753
--- /dev/null
+++ b/dviware/mdvi/config/dist.mk
@@ -0,0 +1,36 @@
+
+.PHONY: distdir
+distdir:
+ @echo "Distributing into $(distdir)"
+ @rm -rf $(distdir)
+ @mkdir $(distdir)
+ @list="$(DISTFILES)"; for i in $$list; do \
+ if test -d $(srcdir)/$$i; then \
+ echo "cp -pr $(srcdir)/$$i $(distdir)/$$i"; \
+ cp -pr $(srcdir)/$$i $(distdir)/$$i; \
+ else \
+ echo "cp -p $(srcdir)/$$i $(distdir)/$$i"; \
+ cp -p $(srcdir)/$$i $(distdir)/$$i; \
+ fi; \
+ done
+ @list="$(DISTDIRS)"; for i in $$list; do \
+ if test -n "$$i" -a "$$i" != .; then \
+ test -d $(distdir)/$$i || mkdir $(distdir)/$$i || exit 1; \
+ $(MAKE) -C $$i $(DISTMAKEFLAGS) distdir=../$(distdir)/$$i distdir; \
+ fi; \
+ done
+ @list="$(NODISTFILES)"; for i in $$list; do \
+ echo "rm -f $(distdir)/$$i"; \
+ rm -f $(distdir)/$$i; \
+ done
+
+$(distdir)/MD5SUMS:
+ @echo "Computing MD5 sums..."
+ -@if test -x "$(MD5SUM)"; then \
+ (cd $(distdir); find . -type f -exec $(MD5SUM) {} \; > /tmp/MD5SUM$$$$); \
+ if test -s /tmp/MD5SUM$$$$; then \
+ mv -f /tmp/MD5SUM$$$$ $(distdir)/MD5SUMS; \
+ else \
+ rm -f /tmp/MD5SUM$$$$; \
+ fi; \
+ fi
diff --git a/dviware/mdvi/config/endian.m4 b/dviware/mdvi/config/endian.m4
new file mode 100644
index 0000000000..9130a993ea
--- /dev/null
+++ b/dviware/mdvi/config/endian.m4
@@ -0,0 +1,87 @@
+dnl
+dnl Checks for the byte order of the target machine, allowing the user
+dnl to specify it on the command line if cross compiling
+dnl This macro defines the same symbols as AC_C_BIGENDIAN
+dnl
+AC_DEFUN(AC_CHECK_BYTE_ORDER, [
+ dnl we need to know if we're cross compiling
+ AC_REQUIRE([AC_PROG_CC])
+ AC_ARG_WITH(target-byte-order,
+ [ --with-target-byte-order=ORDER
+ set target byte order, if cross-compiling
+ (ORDER is one of lsb, msb, auto)],
+ byteorder="$withval", byteorder=auto)
+case "$byteorder" in
+ lsb|msb)
+ if test "$cross_compiling" = no; then
+ AC_MSG_WARN([you should force the byte order only when cross-compiling])
+ fi
+ ;;
+ auto)
+ if test "$cross_compiling" = yes; then
+ AC_MSG_ERROR([specify the target byte order --with-target-byte-order])
+ fi
+ ;;
+ *)
+ AC_MSG_WARN([unknown byte order \`$byteorder', set to \`auto'])
+ byteorder=auto
+ ;;
+esac
+AC_MSG_CHECKING([for target byte order])
+if test "$byteorder" = auto; then
+AC_CACHE_VAL(ac_cv_byteorder, [
+ AC_TRY_RUN([#include <stdio.h>
+#include <sys/types.h>
+#include <sys/param.h>
+main(){
+#if defined(BYTE_ORDER) && defined(LITTLE_ENDIAN) && defined(BIG_ENDIAN)
+ FILE *f;
+ f = fopen("conftestval", "w");
+ if(!f) exit(1);
+#if BYTE_ORDER == LITTLE_ENDIAN
+ fprintf(f, "lsb\n");
+ exit(0);
+#endif
+#if BYTE_ORDER == BIG_ENDIAN
+ fprintf(f, "msb\n");
+ exit(0);
+#endif
+#else
+ exit(1);
+#endif
+}], ac_cv_byteorder=`cat conftestval`,
+[AC_TRY_RUN([#include <stdio.h>
+main() {
+ union {
+ long l;
+ char c[sizeof(long)];
+ } u;
+ FILE *f;
+ f = fopen("conftestval", "w");
+ u.l = 1;
+ if(u.c[0] == 1) fprintf(f, "lsb\n");
+ else if(u.c[sizeof(long)-1] == 1) fprintf(f, "msb\n");
+ else fprintf(f, "unknown\n");
+ exit(0);
+}], ac_cv_byteorder=`cat conftestval`, ac_cv_byteorder=unknown,
+ ac_cv_byteorder=unknown)], ac_cv_byteorder=unknown)
+]) dnl end of AC_CACHE_VAL
+byteorder="$ac_cv_byteorder"
+fi
+
+dnl Now examine what happened
+case "$byteorder" in
+ lsb) AC_MSG_RESULT([little endian]) ;;
+ msb)
+ AC_MSG_RESULT([big endian])
+ AC_DEFINE_UNQUOTED(WORDS_BIGENDIAN, 1,
+ [Define if your processor stores words with the most significant byte
+ first (like Motorola and SPARC, unlike Intel and VAX).])
+ ;;
+ *)
+ AC_MSG_RESULT(unknown)
+ AC_MSG_WARN([unable to guess the byte order of this machine])
+ AC_MSG_ERROR([specify the target byte order with --with-target-byte-order])
+ ;;
+esac
+])
diff --git a/dviware/mdvi/config/install-sh b/dviware/mdvi/config/install-sh
new file mode 100644
index 0000000000..e9de23842d
--- /dev/null
+++ b/dviware/mdvi/config/install-sh
@@ -0,0 +1,251 @@
+#!/bin/sh
+#
+# install - install a program, script, or datafile
+# This comes from X11R5 (mit/util/scripts/install.sh).
+#
+# Copyright 1991 by the Massachusetts Institute of Technology
+#
+# Permission to use, copy, modify, distribute, and sell this software and its
+# documentation for any purpose is hereby granted without fee, provided that
+# the above copyright notice appear in all copies and that both that
+# copyright notice and this permission notice appear in supporting
+# documentation, and that the name of M.I.T. not be used in advertising or
+# publicity pertaining to distribution of the software without specific,
+# written prior permission. M.I.T. makes no representations about the
+# suitability of this software for any purpose. It is provided "as is"
+# without express or implied warranty.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch. It can only install one file at a time, a restriction
+# shared with many OS's install programs.
+
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit="${DOITPROG-}"
+
+
+# put in absolute paths if you don't have them in your path; or use env. vars.
+
+mvprog="${MVPROG-mv}"
+cpprog="${CPPROG-cp}"
+chmodprog="${CHMODPROG-chmod}"
+chownprog="${CHOWNPROG-chown}"
+chgrpprog="${CHGRPPROG-chgrp}"
+stripprog="${STRIPPROG-strip}"
+rmprog="${RMPROG-rm}"
+mkdirprog="${MKDIRPROG-mkdir}"
+
+transformbasename=""
+transform_arg=""
+instcmd="$mvprog"
+chmodcmd="$chmodprog 0755"
+chowncmd=""
+chgrpcmd=""
+stripcmd=""
+rmcmd="$rmprog -f"
+mvcmd="$mvprog"
+src=""
+dst=""
+dir_arg=""
+
+while [ x"$1" != x ]; do
+ case $1 in
+ -c) instcmd="$cpprog"
+ shift
+ continue;;
+
+ -d) dir_arg=true
+ shift
+ continue;;
+
+ -m) chmodcmd="$chmodprog $2"
+ shift
+ shift
+ continue;;
+
+ -o) chowncmd="$chownprog $2"
+ shift
+ shift
+ continue;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift
+ shift
+ continue;;
+
+ -s) stripcmd="$stripprog"
+ shift
+ continue;;
+
+ -t=*) transformarg=`echo $1 | sed 's/-t=//'`
+ shift
+ continue;;
+
+ -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
+ shift
+ continue;;
+
+ *) if [ x"$src" = x ]
+ then
+ src=$1
+ else
+ # this colon is to work around a 386BSD /bin/sh bug
+ :
+ dst=$1
+ fi
+ shift
+ continue;;
+ esac
+done
+
+if [ x"$src" = x ]
+then
+ echo "install: no input file specified"
+ exit 1
+else
+ true
+fi
+
+if [ x"$dir_arg" != x ]; then
+ dst=$src
+ src=""
+
+ if [ -d $dst ]; then
+ instcmd=:
+ chmodcmd=""
+ else
+ instcmd=mkdir
+ fi
+else
+
+# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
+# might cause directories to be created, which would be especially bad
+# if $src (and thus $dsttmp) contains '*'.
+
+ if [ -f $src -o -d $src ]
+ then
+ true
+ else
+ echo "install: $src does not exist"
+ exit 1
+ fi
+
+ if [ x"$dst" = x ]
+ then
+ echo "install: no destination specified"
+ exit 1
+ else
+ true
+ fi
+
+# If destination is a directory, append the input filename; if your system
+# does not like double slashes in filenames, you may need to add some logic
+
+ if [ -d $dst ]
+ then
+ dst="$dst"/`basename $src`
+ else
+ true
+ fi
+fi
+
+## this sed command emulates the dirname command
+dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
+
+# Make sure that the destination directory exists.
+# this part is taken from Noah Friedman's mkinstalldirs script
+
+# Skip lots of stat calls in the usual case.
+if [ ! -d "$dstdir" ]; then
+defaultIFS='
+'
+IFS="${IFS-${defaultIFS}}"
+
+oIFS="${IFS}"
+# Some sh's can't handle IFS=/ for some reason.
+IFS='%'
+set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
+IFS="${oIFS}"
+
+pathcomp=''
+
+while [ $# -ne 0 ] ; do
+ pathcomp="${pathcomp}${1}"
+ shift
+
+ if [ ! -d "${pathcomp}" ] ;
+ then
+ $mkdirprog "${pathcomp}"
+ else
+ true
+ fi
+
+ pathcomp="${pathcomp}/"
+done
+fi
+
+if [ x"$dir_arg" != x ]
+then
+ $doit $instcmd $dst &&
+
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
+else
+
+# If we're going to rename the final executable, determine the name now.
+
+ if [ x"$transformarg" = x ]
+ then
+ dstfile=`basename $dst`
+ else
+ dstfile=`basename $dst $transformbasename |
+ sed $transformarg`$transformbasename
+ fi
+
+# don't allow the sed command to completely eliminate the filename
+
+ if [ x"$dstfile" = x ]
+ then
+ dstfile=`basename $dst`
+ else
+ true
+ fi
+
+# Make a temp file name in the proper directory.
+
+ dsttmp=$dstdir/#inst.$$#
+
+# Move or copy the file name to the temp name
+
+ $doit $instcmd $src $dsttmp &&
+
+ trap "rm -f ${dsttmp}" 0 &&
+
+# and set any options; do chmod last to preserve setuid bits
+
+# If any of these fail, we abort the whole thing. If we want to
+# ignore errors from any of these, just make sure not to ignore
+# errors from the above "$doit $instcmd $src $dsttmp" command.
+
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
+
+# Now rename the file to the real destination.
+
+ $doit $rmcmd -f $dstdir/$dstfile &&
+ $doit $mvcmd $dsttmp $dstdir/$dstfile
+
+fi &&
+
+
+exit 0
diff --git a/dviware/mdvi/config/intl.m4 b/dviware/mdvi/config/intl.m4
new file mode 100644
index 0000000000..afbc713e2c
--- /dev/null
+++ b/dviware/mdvi/config/intl.m4
@@ -0,0 +1,355 @@
+# Macro to add for using GNU gettext.
+# Ulrich Drepper <drepper@cygnus.com>, 1995.
+#
+# This file can be copied and used freely without restrictions. It can
+# be used in projects which are not available under the GNU Public License
+# but which still want to provide support for the GNU gettext functionality.
+# Please note that the actual code is *not* freely available.
+
+# serial 5
+
+AC_DEFUN(AM_WITH_NLS,
+ [AC_MSG_CHECKING([whether NLS is requested])
+ dnl Default is enabled NLS
+ AC_ARG_ENABLE(nls,
+ [ --disable-nls do not use Native Language Support],
+ USE_NLS=$enableval, USE_NLS=yes)
+ AC_MSG_RESULT($USE_NLS)
+ AC_SUBST(USE_NLS)
+
+ USE_INCLUDED_LIBINTL=no
+
+ dnl If we use NLS figure out what method
+ if test "$USE_NLS" = "yes"; then
+ AC_DEFINE(ENABLE_NLS)
+ AC_MSG_CHECKING([whether included gettext is requested])
+ AC_ARG_WITH(included-gettext,
+ [ --with-included-gettext use the GNU gettext library included here],
+ nls_cv_force_use_gnu_gettext=$withval,
+ nls_cv_force_use_gnu_gettext=no)
+ AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
+
+ nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
+ if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
+ dnl User does not insist on using GNU NLS library. Figure out what
+ dnl to use. If gettext or catgets are available (in this order) we
+ dnl use this. Else we have to fall back to GNU NLS library.
+ dnl catgets is only used if permitted by option --with-catgets.
+ nls_cv_header_intl=
+ nls_cv_header_libgt=
+ CATOBJEXT=NONE
+
+ AC_CHECK_HEADER(libintl.h,
+ [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
+ [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
+ gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
+
+ if test "$gt_cv_func_gettext_libc" != "yes"; then
+ AC_CHECK_LIB(intl, bindtextdomain,
+ [AC_CACHE_CHECK([for gettext in libintl],
+ gt_cv_func_gettext_libintl,
+ [AC_CHECK_LIB(intl, gettext,
+ gt_cv_func_gettext_libintl=yes,
+ gt_cv_func_gettext_libintl=no)],
+ gt_cv_func_gettext_libintl=no)])
+ fi
+
+ if test "$gt_cv_func_gettext_libc" = "yes" \
+ || test "$gt_cv_func_gettext_libintl" = "yes"; then
+ AC_DEFINE(HAVE_GETTEXT)
+ AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
+ [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
+ if test "$MSGFMT" != "no"; then
+ AC_CHECK_FUNCS(dcgettext)
+ AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
+ AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
+ [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
+ AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
+ return _nl_msg_cat_cntr],
+ [CATOBJEXT=.gmo
+ DATADIRNAME=share],
+ [CATOBJEXT=.mo
+ DATADIRNAME=lib])
+ INSTOBJEXT=.mo
+ fi
+ fi
+ ])
+
+ if test "$CATOBJEXT" = "NONE"; then
+ AC_MSG_CHECKING([whether catgets can be used])
+ AC_ARG_WITH(catgets,
+ [ --with-catgets use catgets functions if available],
+ nls_cv_use_catgets=$withval, nls_cv_use_catgets=no)
+ AC_MSG_RESULT($nls_cv_use_catgets)
+
+ if test "$nls_cv_use_catgets" = "yes"; then
+ dnl No gettext in C library. Try catgets next.
+ AC_CHECK_LIB(i, main)
+ AC_CHECK_FUNC(catgets,
+ [AC_DEFINE(HAVE_CATGETS)
+ INTLOBJS="\$(CATOBJS)"
+ AC_PATH_PROG(GENCAT, gencat, no)dnl
+ if test "$GENCAT" != "no"; then
+ AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
+ if test "$GMSGFMT" = "no"; then
+ AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
+ [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
+ fi
+ AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
+ [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
+ USE_INCLUDED_LIBINTL=yes
+ CATOBJEXT=.cat
+ INSTOBJEXT=.cat
+ DATADIRNAME=lib
+ INTLDEPS='$(top_builddir)/intl/libintl.a'
+ INTLLIBS=$INTLDEPS
+ LIBS=`echo $LIBS | sed -e 's/-lintl//'`
+ nls_cv_header_intl=intl/libintl.h
+ nls_cv_header_libgt=intl/libgettext.h
+ fi])
+ fi
+ fi
+
+ if test "$CATOBJEXT" = "NONE"; then
+ dnl Neither gettext nor catgets in included in the C library.
+ dnl Fall back on GNU gettext library.
+ nls_cv_use_gnu_gettext=yes
+ fi
+ fi
+
+ if test "$nls_cv_use_gnu_gettext" = "yes"; then
+ dnl Mark actions used to generate GNU NLS library.
+ INTLOBJS="\$(GETTOBJS)"
+ AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
+ [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
+ AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
+ AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
+ [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
+ AC_SUBST(MSGFMT)
+ USE_INCLUDED_LIBINTL=yes
+ CATOBJEXT=.gmo
+ INSTOBJEXT=.mo
+ DATADIRNAME=share
+ INTLDEPS='$(top_builddir)/intl/libintl.a'
+ INTLLIBS=$INTLDEPS
+ LIBS=`echo $LIBS | sed -e 's/-lintl//'`
+ nls_cv_header_intl=intl/libintl.h
+ nls_cv_header_libgt=intl/libgettext.h
+ fi
+
+ dnl Test whether we really found GNU xgettext.
+ if test "$XGETTEXT" != ":"; then
+ dnl If it is no GNU xgettext we define it as : so that the
+ dnl Makefiles still can work.
+ if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
+ : ;
+ else
+ AC_MSG_RESULT(
+ [found xgettext program is not GNU xgettext; ignore it])
+ XGETTEXT=":"
+ fi
+ fi
+
+ # We need to process the po/ directory.
+ POSUB=po
+ else
+ DATADIRNAME=share
+ nls_cv_header_intl=intl/libintl.h
+ nls_cv_header_libgt=intl/libgettext.h
+ fi
+ AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
+# AC_OUTPUT_COMMANDS(
+# [case "$CONFIG_FILES" in *po/Makefile.in*)
+# sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
+# esac])
+
+ dnl These rules are solely for the distribution goal. While doing this
+ dnl we only have to keep exactly one list of the available catalogs
+ dnl in configure.in.
+ for lang in $ALL_LINGUAS; do
+ GMOFILES="$GMOFILES $lang.gmo"
+ POFILES="$POFILES $lang.po"
+ done
+
+ dnl Make all variables we use known to autoconf.
+ AC_SUBST(USE_INCLUDED_LIBINTL)
+ AC_SUBST(CATALOGS)
+ AC_SUBST(CATOBJEXT)
+ AC_SUBST(DATADIRNAME)
+ AC_SUBST(GMOFILES)
+ AC_SUBST(INSTOBJEXT)
+ AC_SUBST(INTLDEPS)
+ AC_SUBST(INTLLIBS)
+ AC_SUBST(INTLOBJS)
+ AC_SUBST(POFILES)
+ AC_SUBST(POSUB)
+ ])
+
+AC_DEFUN(AM_GNU_GETTEXT,
+ [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+ AC_REQUIRE([AC_PROG_CC])dnl
+ AC_REQUIRE([AC_PROG_RANLIB])dnl
+ AC_REQUIRE([AC_ISC_POSIX])dnl
+ AC_REQUIRE([AC_HEADER_STDC])dnl
+ AC_REQUIRE([AC_C_CONST])dnl
+ AC_REQUIRE([AC_C_INLINE])dnl
+ AC_REQUIRE([AC_TYPE_OFF_T])dnl
+ AC_REQUIRE([AC_TYPE_SIZE_T])dnl
+ AC_REQUIRE([AC_FUNC_ALLOCA])dnl
+ AC_REQUIRE([AC_FUNC_MMAP])dnl
+
+ AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
+unistd.h sys/param.h])
+ AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
+strdup __argz_count __argz_stringify __argz_next])
+
+ if test "${ac_cv_func_stpcpy+set}" != "set"; then
+ AC_CHECK_FUNCS(stpcpy)
+ fi
+ if test "${ac_cv_func_stpcpy}" = "yes"; then
+ AC_DEFINE(HAVE_STPCPY)
+ fi
+
+ AM_LC_MESSAGES
+ AM_WITH_NLS
+
+ if test "x$CATOBJEXT" != "x"; then
+ if test "x$ALL_LINGUAS" = "x"; then
+ LINGUAS=
+ else
+ AC_MSG_CHECKING(for catalogs to be installed)
+ NEW_LINGUAS=
+ for lang in ${LINGUAS=$ALL_LINGUAS}; do
+ case "$ALL_LINGUAS" in
+ *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
+ esac
+ done
+ LINGUAS=$NEW_LINGUAS
+ AC_MSG_RESULT($LINGUAS)
+ fi
+
+ dnl Construct list of names of catalog files to be constructed.
+ if test -n "$LINGUAS"; then
+ for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
+ fi
+ fi
+
+ dnl The reference to <locale.h> in the installed <libintl.h> file
+ dnl must be resolved because we cannot expect the users of this
+ dnl to define HAVE_LOCALE_H.
+ if test $ac_cv_header_locale_h = yes; then
+ INCLUDE_LOCALE_H="#include <locale.h>"
+ else
+ INCLUDE_LOCALE_H="\
+/* The system does not provide the header <locale.h>. Take care yourself. */"
+ fi
+ AC_SUBST(INCLUDE_LOCALE_H)
+
+ dnl Determine which catalog format we have (if any is needed)
+ dnl For now we know about two different formats:
+ dnl Linux libc-5 and the normal X/Open format
+ test -d intl || mkdir intl
+ if test "$CATOBJEXT" = ".cat"; then
+ AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
+
+ dnl Transform the SED scripts while copying because some dumb SEDs
+ dnl cannot handle comments.
+ sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
+ fi
+ dnl po2tbl.sed is always needed.
+ sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
+ $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
+
+ dnl In the intl/Makefile.in we have a special dependency which makes
+ dnl only sense for gettext. We comment this out for non-gettext
+ dnl packages.
+ if test "$PACKAGE" = "gettext"; then
+ GT_NO="#NO#"
+ GT_YES=
+ else
+ GT_NO=
+ GT_YES="#YES#"
+ fi
+ AC_SUBST(GT_NO)
+ AC_SUBST(GT_YES)
+
+ dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
+ dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
+ dnl Try to locate is.
+ MKINSTALLDIRS=
+ if test -n "$ac_aux_dir"; then
+ MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
+ fi
+ if test -z "$MKINSTALLDIRS"; then
+ MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
+ fi
+ AC_SUBST(MKINSTALLDIRS)
+
+ dnl *** For now the libtool support in intl/Makefile is not for real.
+ l=
+ AC_SUBST(l)
+
+ dnl Generate list of files to be processed by xgettext which will
+ dnl be included in po/Makefile.
+# test -d po || mkdir po
+# if test "x$srcdir" != "x."; then
+# if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
+# posrcprefix="$srcdir/"
+# else
+# posrcprefix="../$srcdir/"
+# fi
+# else
+# posrcprefix="../"
+# fi
+# rm -f po/POTFILES
+# sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
+# < $srcdir/po/POTFILES.in > po/POTFILES
+ ])
+
+AC_DEFUN(AM_LC_MESSAGES,
+ [if test $ac_cv_header_locale_h = yes; then
+ AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
+ [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
+ am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
+ if test $am_cv_val_LC_MESSAGES = yes; then
+ AC_DEFINE(HAVE_LC_MESSAGES)
+ fi
+ fi])
+
+dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
+dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
+AC_DEFUN(AM_PATH_PROG_WITH_TEST,
+[# Extract the first word of "$2", so it can be a program name with args.
+set dummy $2; ac_word=[$]2
+AC_MSG_CHECKING([for $ac_word])
+AC_CACHE_VAL(ac_cv_path_$1,
+[case "[$]$1" in
+ /*)
+ ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
+ ;;
+ *)
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+ for ac_dir in ifelse([$5], , $PATH, [$5]); do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ if [$3]; then
+ ac_cv_path_$1="$ac_dir/$ac_word"
+ break
+ fi
+ fi
+ done
+ IFS="$ac_save_ifs"
+dnl If no 4th arg is given, leave the cache variable unset,
+dnl so AC_PATH_PROGS will keep looking.
+ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
+])dnl
+ ;;
+esac])dnl
+$1="$ac_cv_path_$1"
+if test -n "[$]$1"; then
+ AC_MSG_RESULT([$]$1)
+else
+ AC_MSG_RESULT(no)
+fi
+AC_SUBST($1)dnl
+])
diff --git a/dviware/mdvi/config/libopts.m4 b/dviware/mdvi/config/libopts.m4
new file mode 100644
index 0000000000..08fbc225ab
--- /dev/null
+++ b/dviware/mdvi/config/libopts.m4
@@ -0,0 +1,90 @@
+dnl Requires the `AC_ARG_WITHX' macros from with.m4
+dnl
+dnl AC_CHECK_LIBOPTIONS(SHORTNAME, NAME, HEADERS, FUNCTION)
+dnl SHORTNAME=name used for sh variables and such
+dnl NAME="official" name of the library, used for -l
+dnl
+AC_DEFUN(AC_CHECK_LIBOPTIONS, [
+ define([LIB], translit($1,[a-z-],[A-Z_]))
+ define([NAME], translit($1,[A-Z],[a-z]))
+AC_ARG_WITHX(NAME[-headers], [location of the $1 headers],
+ [case "$withval" in
+ yes) AC_MSG_WARN([no value specified for [--with-]NAME[-headers]] ;;
+ no) NAME[_headers]= ;;
+ *) NAME[_headers]=$withval ;;
+ esac], ,[=DIR])
+AC_ARG_WITHX(NAME[-library], [location of the $1 library],
+ [case "$withval" in
+ yes) AC_MSG_WARN([no value specified for [--with-]NAME[-library]] ;;
+ no) NAME[_library]= ;;
+ *) NAME[_library]=$withval ;;
+ esac], ,[=DIR])
+ AC_SUBST(LIB[_CFLAGS])
+ AC_SUBST(LIB[_LDFLAGS])
+ AC_SUBST(LIB[_LIBS])
+ LIB[_CFLAGS]=
+ LIB[_LDFLAGS]=
+ [have_]NAME[_headers]=no
+ [have_]NAME[_library]=no
+[#] Check for $2 headers
+ AC_MSG_CHECKING([for $2 headers])
+ OCF=$CFLAGS;
+ TMPCFLAGS=
+ [#] If we were given PATH/lib, try PATH/include
+ if test -z "[$]NAME[_headers]"; then
+ test -n "[$]NAME[_library]" && NAME[_headers]=[$]NAME[_library]/../include
+ fi
+ test -n "[$]NAME[_headers]" && TMPCFLAGS="-I[$]NAME[_headers]"
+ CFLAGS="$OCF $TMPCFLAGS"
+ AC_TRY_COMPILE([$3], [$4],
+ [[have_]NAME[_headers]=yes; LIB[_CFLAGS]=$TMPCFLAGS],
+ [if test -n "[$]NAME[_headers]"; then
+ TMPCFLAGS="-I[$]NAME[_headers]/.."
+ CFLAGS="$OCF $TMPCFLAGS"
+ AC_TRY_COMPILE([$3], [$4],
+ [[have_]NAME[_headers]=yes; LIB[_CFLAGS]=$TMPCFLAGS],
+ [[have_]NAME[_headers]=no; LIB[_CFLAGS]=])
+ fi])
+ AC_MSG_RESULT([$have_]NAME[_headers])
+[#] Check for the $2 library
+ AC_MSG_CHECKING([for the $2 library])
+ OLD=$LDFLAGS; OLI=$LIBS
+ TMPLDFLAGS=
+ [#] If we were given PATH/include, try PATH/lib
+ if test -z "[$]NAME[_library]"; then
+ test -n "[$]NAME[_headers]" && NAME[_library]=[$]NAME[_headers]/../lib
+ fi
+ test -n "[$]NAME[_library]" && TMPLDFLAGS="-L[$]NAME[_library]"
+ LDFLAGS="$OLD $TMPLDFLAGS"
+ LIBS="$LIBS -l$2"
+ AC_TRY_LINK([$3], [$4],
+ [[have_]NAME[_library]=yes; LIB[_LDFLAGS]=$TMPLDFLAGS],
+ [[have_]NAME[_library]=no; LIB[_LDFLAGS]=])
+ AC_MSG_RESULT([$have_]NAME[_library])
+ if test "[$have_]NAME[_headers]" = yes -a "[$have_]NAME[_library]" = yes; then
+ LIB[_LIBS]="-l$2"
+ fi
+undefine([LIB])
+ TMPCFLAGS=
+ TMPLDFLAGS=
+[#] Restore things
+ CFLAGS=$OCF
+ LDFLAGS=$OLD
+ LIBS=$OLI
+])
+AC_DEFUN(AC_SAVE_FLAGS, [
+ac_mdvi_CFLAGS="$CFLAGS"
+ac_mdvi_LDFLAGS="$LDFLAGS"
+ac_mdvi_LIBS="$LIBS"
+])
+AC_DEFUN(AC_RESTORE_FLAGS, [
+CFLAGS="$ac_mdvi_CFLAGS"
+LDFLAGS="$ac_mdvi_LDFLAGS"
+LIBS="$ac_mdvi_LIBS"
+])
+AC_DEFUN(AC_CHANGE_FLAGS, [
+AC_SAVE_FLAGS
+ifelse([$1], , ,CFLAGS="$CFLAGS $1")
+ifelse([$2], , ,LDFLAGS="$LDFLAGS $2")
+ifelse([$3], , ,LIBS="$3 $LIBS")
+])
diff --git a/dviware/mdvi/config/mkinstalldirs b/dviware/mdvi/config/mkinstalldirs
new file mode 100644
index 0000000000..d0f178257a
--- /dev/null
+++ b/dviware/mdvi/config/mkinstalldirs
@@ -0,0 +1,40 @@
+#! /bin/sh
+# mkinstalldirs --- make directory hierarchy
+# Author: Noah Friedman <friedman@prep.ai.mit.edu>
+# Created: 1993-05-16
+# Public domain
+
+# $Id: mkinstalldirs,v 1.1.1.1 2001/03/20 09:25:40 agiacom Exp $
+
+errstatus=0
+
+for file
+do
+ set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
+ shift
+
+ pathcomp=
+ for d
+ do
+ pathcomp="$pathcomp$d"
+ case "$pathcomp" in
+ -* ) pathcomp=./$pathcomp ;;
+ esac
+
+ if test ! -d "$pathcomp"; then
+ echo "mkdir $pathcomp"
+
+ mkdir "$pathcomp" || lasterr=$?
+
+ if test ! -d "$pathcomp"; then
+ errstatus=$lasterr
+ fi
+ fi
+
+ pathcomp="$pathcomp/"
+ done
+done
+
+exit $errstatus
+
+# mkinstalldirs ends here
diff --git a/dviware/mdvi/config/nls.mk.in b/dviware/mdvi/config/nls.mk.in
new file mode 100644
index 0000000000..d69e1535a4
--- /dev/null
+++ b/dviware/mdvi/config/nls.mk.in
@@ -0,0 +1,213 @@
+###########################################################################
+#
+# This makefile fragment deals with generation and installation of message
+# catalogs. It is a modified version of the Makefile.in.in distributed with
+# GNU gettext (taken from version 0.10.35). It was modified to be used when
+# distributing a package that contains several sub-packages and libraries,
+# each with their own message catalogs, and each with support for different
+# languages.
+#
+# Packages can have different directories or share the same one. This
+# fragment assumes that the catalogs are in a `po' subdirectory of the
+# source directory, but if this is not the case, set the `SOURCEDIR'
+# directory to point to the sources.
+#
+# To use this, create a Makefile that looks like the following:
+#
+# --cut-here--
+# include <top directory>/config/config.mk
+#
+# LINGUAS = <set of languages supported by this package>
+#
+# # These are optional (see below)
+# PACKAGE = <package name>
+#
+# POT_SOURCES = <base name of source files needing translation in `..'>
+# POT_OTHER = <full name of other source files>
+#
+# include <top directory>/config/nls.mk
+# --cut-here--
+#
+# That's it. You may omit the PACKAGE variable if you have a file
+# `package-info' in the source directory
+#
+###########################################################################
+
+ifndef SOURCEDIR
+SOURCEDIR = ..
+endif
+
+ifndef PACKAGE
+include $(SOURCEDIR)/package-info
+endif
+
+ifndef LOCALEDIR
+ifeq "@LOCALEDIR@" ""
+LOCALEDIR = $(prefix)/locale
+else
+LOCALEDIR = @LOCALEDIR@
+endif
+endif
+
+GNU_LOCALEDIR = $(prefix)/share/locale
+
+srcdir = @srcdir@
+top_srcdir = @TOPSRCDIR@
+
+# Programs
+GENCAT = @GENCAT@
+GMSGFMT = @GMSGFMT@
+MSGFMT = @MSGFMT@
+XGETTEXT = @XGETTEXT@
+MSGMERGE = msgmerge
+
+SOURCES = cat-id-tbl.c
+POFILES = @POFILES@
+GMOFILES = @GMOFILES@
+
+# Files for distribution
+# DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
+# stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES)
+
+POTFILES = $(addprefix $(SOURCEDIR)/, $(POT_SOURCES)) $(POT_OTHER)
+
+CATOBJEXT = @CATOBJEXT@
+INSTOBJEXT = @INSTOBJEXT@
+
+CLEANABLE += core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp *.o
+DISTCLEANABLE += *.mo *.msg *.cat *.cat.m
+MAINCLEANABLE += $(GMOFILES)
+
+CATALOGS := $(addsuffix $(CATOBJEXT), $(LINGUAS))
+
+.SUFFIXES: .po .pox .gmo .mo .msg .cat
+
+.po.pox: $(PACKAGE).pot
+ # $(MAKE) $(PACKAGE).pot
+ $(MSGMERGE) $< $(PACKAGE).pot -o $*.pox
+
+.po.mo:
+ $(MSGFMT) -o $@ $<
+
+.po.gmo:
+ file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
+ && rm -f $$file && $(GMSGFMT) -o $$file $<
+
+.po.cat:
+ sed -f $(top_srcdir)/intl/po2msg.sed < $< > $*.msg \
+ && rm -f $@ && $(GENCAT) $@ $*.msg
+
+.PHONY: all all-yes all-no
+all: all-@USE_NLS@
+
+all-yes: cat-id-tbl.c $(CATALOGS)
+all-no:
+
+$(PACKAGE).pot: $(POTFILES)
+ @echo "Extracting messages from sources"
+ @$(XGETTEXT) --default-domain=$(PACKAGE) \
+ --add-comments --keyword=_ --keyword=_G $(POTFILES) \
+ && test ! -f $(PACKAGE).po \
+ || ( rm -f $(srcdir)/$(PACKAGE).pot \
+ && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )
+
+$(srcdir)/cat-id-tbl.c: stamp-cat-id; @:
+$(srcdir)/stamp-cat-id: $(PACKAGE).pot
+ @rm -f cat-id-tbl.tmp
+ @sed -f $(top_srcdir)/intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \
+ | sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp
+ @if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \
+ rm cat-id-tbl.tmp; \
+ else \
+ echo cat-id-tbl.c changed; \
+ rm -f $(srcdir)/cat-id-tbl.c; \
+ mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \
+ fi
+ @cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id
+
+.PHONY: install install-exec install-data install-data-yes install-data-no
+install: install-exec install-data
+install-exec:
+install-data: install-data-@USE_NLS@
+install-data-no: all
+install-data-yes: all
+ @catalogs="$(CATALOGS)"; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ case "$$cat" in \
+ *.gmo) destdir=$(GNU_LOCALEDIR);; \
+ *) destdir=$(LOCALEDIR);; \
+ esac; \
+ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+ dir=$$destdir/$$lang/LC_MESSAGES; \
+ $(MKINSTALLDIRS) $$dir; \
+ if test -r $$cat; then \
+ $(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
+ echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
+ else \
+ $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
+ echo "installing $(srcdir)/$$cat as" \
+ "$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
+ fi; \
+ if test -r $$cat.m; then \
+ $(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
+ echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
+ else \
+ if test -r $(srcdir)/$$cat.m ; then \
+ $(INSTALL_DATA) $(srcdir)/$$cat.m \
+ $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
+ echo "installing $(srcdir)/$$cat as" \
+ "$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
+ else \
+ true; \
+ fi; \
+ fi; \
+ done
+
+.PHONY: uninstall
+uninstall:
+ catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+ rm -f $(LOCALEDIR)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
+ rm -f $(LOCALEDIR)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
+ rm -f $(GNU_LOCALEDIR)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
+ rm -f $(GNU_LOCALEDIR)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
+ done
+
+.PHONY: check
+check: all
+
+cat-id-tbl.o: $(top_srcdir)/intl/libgettext.h
+
+.PHONY: update-po
+update-po: Makefile $(PACKAGE).pot
+ cd $(srcdir); \
+ catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+ cat=`basename $$cat`; \
+ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+ mv $$lang.po $$lang.old.po; \
+ echo "$$lang:"; \
+ if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \
+ rm -f $$lang.old.po; \
+ else \
+ echo "msgmerge for $$cat failed!"; \
+ rm -f $$lang.po; \
+ mv $$lang.old.po $$lang.po; \
+ fi; \
+ done
+
+ifdef SUBDIR
+Makefile: Makefile.in
+ @cd $(TOPSRCDIR) && \
+ CONFIG_FILES=$(SUBDIR)/po/$@ CONFIG_HEADERS= \
+ ./config.status
+endif
+
+# Tell versions [3.59,3.63) of GNU make not to export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
+
+include $(FRAGDIR)/targets.mk
diff --git a/dviware/mdvi/config/targets.mk b/dviware/mdvi/config/targets.mk
new file mode 100644
index 0000000000..a9c07b5bf7
--- /dev/null
+++ b/dviware/mdvi/config/targets.mk
@@ -0,0 +1,28 @@
+
+.PHONY: clean-local
+clean-local:
+ $(RM) $(CLEANABLE)
+
+.PHONY: clean-subdirs
+clean-subdirs:
+ @list="$(SUBDIRS)"; for i in $$list; do \
+ $(MAKE) -C $$i clean; \
+ done
+
+.PHONY: clean
+clean: clean-subdirs clean-local
+
+.PHONY: distclean-local
+distclean-local: clean-local
+ $(RM) $(DISTCLEANABLE)
+
+.PHONY: distclean-subdirs
+distclean-subdirs:
+ @list="$(SUBDIRS)"; for i in $$list; do \
+ if test -d "$$i"; then \
+ $(MAKE) -C $$i distclean; \
+ else :; fi; \
+ done
+
+.PHONY: distclean realclean
+distclean realclean: distclean-subdirs distclean-local
diff --git a/dviware/mdvi/config/texmf.m4 b/dviware/mdvi/config/texmf.m4
new file mode 100644
index 0000000000..571633a1a3
--- /dev/null
+++ b/dviware/mdvi/config/texmf.m4
@@ -0,0 +1,55 @@
+AC_DEFUN(AC_CHECK_TEXMF, [
+AC_ARG_WITHX(texmf,
+ [path to an existing texmf tree (\$TEXMFLOCAL)],
+ [case "$withval" in
+ yes|no) texmf= ;;
+ *) texmf="$withval" ;;
+ esac], , [=DIR])
+AC_PATH_PROG(KPSEWHICH, kpsewhich)
+if test -z "$texmf"; then
+ AC_MSG_CHECKING([for a texmf tree])
+ # If user did not specify something, try it ourselves
+ AC_CACHE_VAL(ac_cv_texmf_tree, [
+ if test -x "$KPSEWHICH"; then
+ ac_cv_texmf_tree=`$KPSEWHICH --expand-var='$TEXMFLOCAL'`
+ if test -z "$ac_cv_texmf_tree"; then
+ ac_cv_texmf_tree=`$KPSEWHICH --expand-var='$TEXMFMAIN'`
+ fi
+ fi
+ if test -z "$ac_cv_texmf_tree"; then
+ # try some common paths
+ for i in /usr/share/texmf /usr/local/share/texmf; do
+ if test -d $$i; then
+ ac_cv_texmf_tree=$$i
+ break
+ fi
+ done
+ fi
+ ])
+ AC_MSG_RESULT("$ac_cv_texmf_tree")
+ texmf="$ac_cv_texmf_tree"
+else
+ ac_cv_texmf_tree="$texmf"
+fi
+if test -n "$texmf"; then
+ AC_DEFINE_UNQUOTED(TEXMFTOP, "$texmf",
+ [Define to the full path of an existing texmf tree])
+ AC_MSG_CHECKING([for texmf.cnf])
+ if test -x "$KPSEWHICH"; then
+ texmfcnf=`$KPSEWHICH --format=web2c texmf.cnf`
+ fi
+ if test -z "$texmfcnf"; then
+ texmfcnf="$texmf/web2c/texmf.cnf"
+ fi
+ if test -f $texmfcnf; then
+ AC_MSG_RESULT(yes)
+ AC_DEFINE_UNQUOTED(TEXMF_IS_WEB2C, 1,
+ [Define if you are using a web2c-based TeX distribution])
+ texmf_is_web2c=yes
+ else
+ AC_MSG_RESULT(no)
+ texmf_is_web2c=no
+ fi
+fi
+AC_SUBST(texmf)
+])
diff --git a/dviware/mdvi/config/with.m4 b/dviware/mdvi/config/with.m4
new file mode 100644
index 0000000000..a822135dde
--- /dev/null
+++ b/dviware/mdvi/config/with.m4
@@ -0,0 +1,65 @@
+dnl
+dnl AC_ARG_WITHX, AC_ARG_WITHOUTX, AC_ARG_ENABLEX, AC_ARG_DISABLEX
+dnl
+dnl These macros behave just as AC_ARG_WITH and AC_ARG_ENABLE, except
+dnl that they make sure the --help descriptions will be aligned properly
+dnl
+AC_DEFUN(AC_ARG_WITHX,
+[AC_ARG_WITH([$1],
+ ifelse(builtin(eval, len([$1$5])<17),1,
+ builtin(format, [[ --with-]%-17s%s], [$1$5], [$2]),
+ [ --with-$1$5
+ $2]), [$3], [$4])])
+AC_DEFUN(AC_ARG_WITHOUTX,
+[AC_ARG_WITH([$1],
+ ifelse(builtin(eval, len([$1$5])<14),1,
+ builtin(format, [ [--without-]%-14s%s], [$1$5], [$2]),
+ [ --without-$1$5
+ $2]), [$3], [$4])])
+AC_DEFUN(AC_ARG_ENABLEX,
+[AC_ARG_ENABLE([$1],
+ ifelse(builtin(eval, len([$1$5])<15),1,
+ builtin(format, [ [--enable-]%-15s%s], [$1$5], [$2]),
+ [ --enable-$1$5
+ $2]), [$3], [$4])])
+AC_DEFUN(AC_ARG_DISABLEX,
+[AC_ARG_ENABLE([$1],
+ ifelse(builtin(eval, len([$1$5])<14),1,
+ builtin(format, [ [--disable-]%-14s%s], [$1$5], [$2]),
+ [ --disable-$1$5
+ $2]), [$3], [$4])])
+dnl
+dnl AC_ARG_WITH_BOOL(name, default, description)
+dnl
+AC_DEFUN(AC_ARG_WITH_BOOL, [
+ define([VAR],[with_]translit($1,-,_))
+ ifelse([$2], [yes],
+ [AC_ARG_WITHOUTX([$1], [$3],
+ [case "$withval" in
+ yes|no) ;;
+ *) VAR=yes ;;
+ esac], VAR=yes)],
+ [AC_ARG_WITHX([$1], [$3],
+ [case "$withval" in
+ yes|no) ;;
+ *) VAR=no ;;
+ esac], VAR=no)]dnl
+ )
+ undefine([VAR])
+])
+AC_DEFUN(AC_ARG_ENABLE_BOOL, [
+ define([VAR],[enable_]translit($1,-,_))
+ ifelse([$2], [yes],
+ [AC_ARG_DISABLEX([$1], [$3],
+ [case "$enableval" in
+ yes|no) ;;
+ *) VAR=yes ;;
+ esac], VAR=yes)],
+ [AC_ARG_ENABLEX([$1], [$3],
+ [case "$enableval" in
+ yes|no) ;;
+ *) VAR=no ;;
+ esac], VAR=no)]dnl
+ )
+ undefine([VAR])
+])