diff options
Diffstat (limited to 'Build')
19 files changed, 1 insertions, 4765 deletions
diff --git a/Build/source/texk/xdvik/Makefile.am b/Build/source/texk/xdvik/Makefile.am index 08977cb42b8..43401f7bb3d 100644 --- a/Build/source/texk/xdvik/Makefile.am +++ b/Build/source/texk/xdvik/Makefile.am @@ -257,32 +257,3 @@ EXTRA_DIST += \ xdvizilla \ xdvizilla.1 -## Original files from xdvik-22.84.14 -## -EXTRA_DIST += \ - Makefile.in-22.84.14 \ - acconfig.h-22.84.14 \ - acinclude.m4-22.84.14 \ - aclocal.m4-22.84.14 \ - configure.in-22.84.14 \ - kpathsea.ac-22.84.14 \ - withenable.ac-22.84.14 - -## Original files from xdvik-22.84.15 -## -EXTRA_DIST += \ - Makefile.in-22.84.15 \ - acconfig.h-22.84.15 \ - aclocal.m4-22.84.15 \ - configure.in-22.84.15 \ - gui/Makefile.in-22.84.15 \ - kpathsea.ac-22.84.15 \ - tests/Makefile.in-22.84.15 \ - withenable.ac-22.84.15 - -## Eventually delete these files -## -EXTRA_DIST += \ - Makefile.in.work \ - configure.in.work - diff --git a/Build/source/texk/xdvik/Makefile.in b/Build/source/texk/xdvik/Makefile.in index 99011ddd086..83618905e25 100644 --- a/Build/source/texk/xdvik/Makefile.in +++ b/Build/source/texk/xdvik/Makefile.in @@ -433,14 +433,7 @@ EXTRA_DIST = psheader.txt mksedscript xdvi.1.in BUGS CHANGES \ t1mapper.1 texmf-alt/README texmf-alt/charter2.map \ texmf-alt/lucida.map texmf-alt/marvosym.map texmf-alt/xdvi.cfg \ texmf-alt/xdvifont.map texmf-alt/xypic.map xdvi-search.el \ - xdvi.icon xdvizilla xdvizilla.1 Makefile.in-22.84.14 \ - acconfig.h-22.84.14 acinclude.m4-22.84.14 aclocal.m4-22.84.14 \ - configure.in-22.84.14 kpathsea.ac-22.84.14 \ - withenable.ac-22.84.14 Makefile.in-22.84.15 \ - acconfig.h-22.84.15 aclocal.m4-22.84.15 configure.in-22.84.15 \ - gui/Makefile.in-22.84.15 kpathsea.ac-22.84.15 \ - tests/Makefile.in-22.84.15 withenable.ac-22.84.15 \ - Makefile.in.work configure.in.work + xdvi.icon xdvizilla xdvizilla.1 CLEANFILES = psheader.c sedscript xdvi.1 nodist_man1_MANS = xdvi.1 xdvidir = ${prefix}/texmf/xdvi diff --git a/Build/source/texk/xdvik/Makefile.in-22.84.14 b/Build/source/texk/xdvik/Makefile.in-22.84.14 deleted file mode 100644 index d42f762b255..00000000000 --- a/Build/source/texk/xdvik/Makefile.in-22.84.14 +++ /dev/null @@ -1,242 +0,0 @@ -# Makefile for xdvik -# - -ac_include ../make/paths.mk -ac_include ../make/common.mk -### hack to prevent linking with kpathsea by default -kpathsea= -ac_include ../make/programs.mk -ac_include ../make/cross.mk - -all_subdirs = gui tests - -CPP = @CPP@ - -# Make `#include <X11/...>' and `-lX...' work. -# This matches web2c (needed only for Metafont). -x_cppflags=@X_CFLAGS@ @iconv_includes@ -x_ldflags=@X_LIBS@ @x_linker_options@ @iconv_libpath@ -x_pre_libs=@X_PRE_LIBS@ -x_extra_libs=@X_EXTRA_LIBS@ @iconv_libs@ -x_tool_libs=@x_tool_libs@ -x_xmu_lib=@x_xmu_lib@ -x_xpm_libs=@x_xpm_libs@ -# -lXp and -lXext -x_ext_lib=@x_ext_lib@ - -LDLIBT1=@LDLIBT1@ -LIBT1CPPFLAGS=@LIBT1CPPFLAGS@ -LIBT1DEP=@LIBT1DEP@ -LIBT1DIR=../../libs/t1lib -LIBTYPE1DIR=$(LIBT1DIR)/../type1 -LIBT1SRCDIR=$(srcdir)/$(LIBT1DIR) - -# additional flags for kpathsea -LDLIBKPATHSEA=@LDLIBKPATHSEA@ -LIBKPATHSEACPPFLAGS=@LIBKPATHSEACPPFLAGS@ -LIBKPATHSEADEP=@LIBKPATHSEADEP@ - -# Follow the library order used in X11R6 itself. -# It seems that on Cygwin, libXaw needs _XpmReadFileToPixmap, so we put -# x_xpm_libs after the tool_libs -- but before -lX11, since on MacOSX it -# uses XGrabServer and XUngrabServer, which would otherwise be -# unresolved with static libraries. -# Xmu needs to come before Xt and after the toolkit libs. -x_link = $(LDLIBT1) $(LDLIBKPATHSEA) $(x_ldflags) $(x_tool_libs) $(x_xmu_lib) -lXt $(x_pre_libs) $(x_ext_lib) $(x_xpm_libs) -lX11 $(x_extra_libs) - -TESTS=./tests/run_tests -TESTS_DEP=$(TESTS) - -# various xdvik GUI elements -LIBGUI=./gui/libgui.a -LIBGUIDEP=$(LIBGUI) - - -# Extra xdvi-specific compiler options. -# ps_def = @PS_DEF@ -DXSERVER_INFO -DNEW_MENU_CREATION -# ps_def = @PS_DEF@ -DRGB_ANTI_ALIASING -ps_def = @PS_DEF@ -prog_cflags = @XTRA_WARN_CFLAGS@ $(LIBT1CPPFLAGS) $(LIBKPATHSEACPPFLAGS) $(ps_def) \ --I$(srcdir)/gui $(x_cppflags) - -# Note: to be able to use one depend.mk file for both Motif/Xaw (which -# is needed since only maintainers are supposed to invoke `make depend') -# we include *all* object files and have tests for #ifdef MOTIF/XAW inside -# the files. -objects = \ - browser.o \ - dl_list.o \ - dvi-draw.o \ - dvi-init.o \ - dvisel.o \ - encodings.o \ - events.o \ - exit-handlers.o \ - filehist.o \ - font-open.o \ - gf.o \ - string_list.o \ - hypertex.o \ - image-magick.o \ - main.o \ - mime.o \ - my-snprintf.o \ - my-vsnprintf.o \ - pagehist.o \ - pk.o \ - print-internal.o \ - psdps.o \ - psgs.o \ - psheader.o \ - psnews.o \ - read-mapfile.o \ - search-internal.o \ - special.o \ - string-utils.o \ - tfmload.o \ - util.o \ - vf.o \ - xdvi.o \ - xserver-info.o \ - x_util.o - -# t1mapper or its man page are currently not being installed, since they -# aren't needed on most current (teTeX) systems -perlprog = t1mapper -manpage = xdvi - -default all: libguibuild @final_exec_name@ $(manpage).1 - -$(LIBGUI): - cd gui; $(MAKE) $(makeargs) libgui.a - -$(TESTS): - cd tests; $(MAKE) $(makeargs) - -### we need this additional target so that libgui is always checked to be up-to-date ... -libguibuild: - cd gui; $(MAKE) $(makeargs) libgui.a - -test: - cd tests; $(MAKE) $(makeargs) test - -test_verbose: - cd tests; $(MAKE) $(makeargs) test_verbose - -@final_exec_name@: $(LIBKPATHSEADEP) $(objects) $(LIBT1DEP) $(LIBGUIDEP) - $(kpathsea_link) $(objects) $(LIBGUI) $(x_link) $(LOADLIBES) - -squeeze.o: squeeze.c - $(build_compile) -c $< -squeeze: squeeze.o - $(build_link_command) squeeze.o - -psheader.c: psheader.txt squeeze - ./squeeze $(srcdir)/psheader.txt $@ - -$(manpage).1: xdvi.1.in sedscript - sed -f sedscript <$(srcdir)/xdvi.1.in >$@ - -sedscript: mksedscript c-auto.h - $(SHELL) $(srcdir)/mksedscript $(srcdir) pkpath sizes vfpath \ - figpath headerpath $(DEFS) $(prog_cflags) >$@ - -install: install-exec install-data -uninstall: uninstall-exec uninstall-data - -install-exec: @final_exec_name@ - $(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir) - $(INSTALL_LIBTOOL_PROG) @final_exec_name@ $(bindir) - $(INSTALL_SCRIPT) xdvi-sh $(scriptdir)/@wrapper_script@ - rm -f $(scriptdir)/o@wrapper_script@ - ln -s @wrapper_script@ $(scriptdir)/o@wrapper_script@ - -uninstall-exec: - for p in @final_exec_name@; do rm -f $(bindir)/$$p; done - for p in @wrapper_script@ o@wrapper_script@; do rm -f $(scriptdir)/$$p; done - -install-data: $(manpage).1 pixmaps/toolbar.xpm pixmaps/toolbar2.xpm - $(SHELL) $(top_srcdir)/../mkinstalldirs $(man1dir) - $(SHELL) $(top_srcdir)/../mkinstalldirs $(texmf)/xdvi/pixmaps - $(INSTALL_DATA) $(manpage).1 $(man1dir)/$(manpage).$(manext) - rm -f $(man1dir)/o$(manpage).$(manext) - ln -s $(manpage).$(manext) $(man1dir)/o$(manpage).$(manext) - $(INSTALL_DATA) $(srcdir)/texmf/XDvi $(texmf)/xdvi/XDvi - $(INSTALL_DATA) $(srcdir)/pixmaps/toolbar.xpm $(srcdir)/pixmaps/toolbar2.xpm $(texmf)/xdvi/pixmaps - if \ - grep 'original xdvi.cfg --' $(texmf)/xdvi/xdvi.cfg >/dev/null 2>&1 \ - || test ! -r $(texmf)/xdvi/xdvi.cfg; \ - then \ - $(INSTALL_DATA) $(srcdir)/texmf/xdvi.cfg $(texmf)/xdvi/xdvi.cfg; \ - else \ - true; \ - fi - -uninstall-data: - rm -f $(man1dir)/$(manpage).$(manext) \ - $(texmf)/xdvi/pixmaps/toolbar.xpm $(texmf)/xdvi/pixmaps/toolbar2.xpm \ - $(texmf)/xdvi/XDvi - if \ - head -n 1 $(texmf)/xdvi/xdvi.cfg | grep 'original xdvi.cfg --' >/dev/null 2>&1 \ - || test ! -r $(texmf)/xdvi/xdvi.cfg; \ - then \ - rm -f $(texmf)/xdvi/xdvi.cfg; \ - else \ - true; \ - fi - rmdir $(texmf)/xdvi/pixmaps - -distname = xdvik -program_files = *.1.in *.ac xdvi.icon xdvi.FAQ psheader.txt mksedscript \ - MOTIF -version_files = xdvi.c - -pre-dist-$(distname): -post-dist-$(distname): - cd $(top_distdir); rm -f xdvik/psheader.c - -ac_include ../make/dist.mk -ac_include ../make/config.mk - -info dvi check: - -ac_include ../make/clean.mk - -mostlyclean:: - test ! -r gui/Makefile || test ! -r tests/Makefile \ - || for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done -clean:: - test ! -r gui/Makefile || test ! -r tests/Makefile \ - || for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done -distclean:: - test ! -r gui/Makefile || test ! -r tests/Makefile \ - || for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done -extraclean:: - test ! -r gui/Makefile || test ! -r tests/Makefile \ - || for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done -maintainer-clean:: - test ! -r gui/Makefile || test ! -r tests/Makefile \ - || for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done - -depend:: - test ! -r gui/Makefile || test ! -r tests/Makefile \ - || for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done - -clean:: - rm -f $(manpage).1 *.flc @final_exec_name@ - -distclean:: - rm -f psheader.c sedscript $(manpage).1 *.flc *~ @final_exec_name@ xdvi-sh - test -f $(LIBTYPE1DIR)/Makefile && { cd $(LIBTYPE1DIR); $(MAKE) distclean; } || true - test -f $(LIBT1DIR)/Makefile && { cd $(LIBT1DIR); $(MAKE) distclean; } || true - -$(LIBT1DIR)/libt1.a: - cd $(LIBT1DIR); $(MAKE) $(makeargs) libt1.a - -$(LIBTYPE1DIR)/libtype1.a: - cd $(LIBTYPE1DIR); $(MAKE) $(makeargs) libtype1.a - - -ac_include ../make/tkpathsea.mk -ac_include ../make/rdepend.mk -ac_include depend.mk diff --git a/Build/source/texk/xdvik/Makefile.in-22.84.15 b/Build/source/texk/xdvik/Makefile.in-22.84.15 deleted file mode 100644 index b0bfdd8b4d3..00000000000 --- a/Build/source/texk/xdvik/Makefile.in-22.84.15 +++ /dev/null @@ -1,243 +0,0 @@ -# @configure_input@ -# Makefile for xdvik -# - -kpse_include ../make/paths.mk -kpse_include ../make/common.mk -### hack to prevent linking with kpathsea by default -kpathsea= -kpse_include ../make/programs.mk -kpse_include ../make/cross.mk - -all_subdirs = gui tests - -CPP = @CPP@ - -# Make `#include <X11/...>' and `-lX...' work. -# This matches web2c (needed only for Metafont). -x_cppflags=@X_CFLAGS@ @iconv_includes@ -x_ldflags=@X_LIBS@ @x_linker_options@ @iconv_libpath@ -x_pre_libs=@X_PRE_LIBS@ -x_extra_libs=@X_EXTRA_LIBS@ @iconv_libs@ -x_tool_libs=@x_tool_libs@ -x_xmu_lib=@x_xmu_lib@ -x_xpm_libs=@x_xpm_libs@ -# -lXp and -lXext -x_ext_lib=@x_ext_lib@ - -LDLIBT1=@LDLIBT1@ -LIBT1CPPFLAGS=@LIBT1CPPFLAGS@ -LIBT1DEP=@LIBT1DEP@ -LIBT1DIR=../../libs/t1lib -LIBTYPE1DIR=$(LIBT1DIR)/../type1 -LIBT1SRCDIR=$(srcdir)/$(LIBT1DIR) - -# additional flags for kpathsea -LDLIBKPATHSEA=@LDLIBKPATHSEA@ -LIBKPATHSEACPPFLAGS=@LIBKPATHSEACPPFLAGS@ -LIBKPATHSEADEP=@LIBKPATHSEADEP@ - -# Follow the library order used in X11R6 itself. -# It seems that on Cygwin, libXaw needs _XpmReadFileToPixmap, so we put -# x_xpm_libs after the tool_libs -- but before -lX11, since on MacOSX it -# uses XGrabServer and XUngrabServer, which would otherwise be -# unresolved with static libraries. -# Xmu needs to come before Xt and after the toolkit libs. -x_link = $(LDLIBT1) $(LDLIBKPATHSEA) $(x_ldflags) $(x_tool_libs) $(x_xmu_lib) -lXt $(x_pre_libs) $(x_ext_lib) $(x_xpm_libs) -lX11 $(x_extra_libs) - -TESTS=./tests/run_tests -TESTS_DEP=$(TESTS) - -# various xdvik GUI elements -LIBGUI=./gui/libgui.a -LIBGUIDEP=$(LIBGUI) - - -# Extra xdvi-specific compiler options. -# xdvi_defs = @PS_DEF@ -DXSERVER_INFO -DNEW_MENU_CREATION -# xdvi_defs = @PS_DEF@ -DRGB_ANTI_ALIASING -xdvi_defs = @PS_DEF@ -DXDVI_KPSE_PROG_NAME=@wrapper_script@ -prog_cflags = @XTRA_WARN_CFLAGS@ $(LIBT1CPPFLAGS) $(LIBKPATHSEACPPFLAGS) $(xdvi_defs) \ --I$(srcdir)/gui $(x_cppflags) - -# Note: to be able to use one depend.mk file for both Motif/Xaw (which -# is needed since only maintainers are supposed to invoke `make depend') -# we include *all* object files and have tests for #ifdef MOTIF/XAW inside -# the files. -objects = \ - browser.o \ - dl_list.o \ - dvi-draw.o \ - dvi-init.o \ - dvisel.o \ - encodings.o \ - events.o \ - exit-handlers.o \ - filehist.o \ - font-open.o \ - gf.o \ - string_list.o \ - hypertex.o \ - image-magick.o \ - main.o \ - mime.o \ - my-snprintf.o \ - my-vsnprintf.o \ - pagehist.o \ - pk.o \ - print-internal.o \ - psdps.o \ - psgs.o \ - psheader.o \ - psnews.o \ - read-mapfile.o \ - search-internal.o \ - special.o \ - string-utils.o \ - tfmload.o \ - util.o \ - vf.o \ - xdvi.o \ - xserver-info.o \ - x_util.o - -# t1mapper or its man page are currently not being installed, since they -# aren't needed on most current (teTeX) systems -perlprog = t1mapper -manpage = xdvi - -default all: libguibuild @final_exec_name@ $(manpage).1 - -$(LIBGUI): - cd gui; $(MAKE) $(makeargs) libgui.a - -$(TESTS): - cd tests; $(MAKE) $(makeargs) - -### we need this additional target so that libgui is always checked to be up-to-date ... -libguibuild: - cd gui; $(MAKE) $(makeargs) libgui.a - -test: - cd tests; $(MAKE) $(makeargs) test - -test_verbose: - cd tests; $(MAKE) $(makeargs) test_verbose - -@final_exec_name@: $(LIBKPATHSEADEP) $(objects) $(LIBT1DEP) $(LIBGUIDEP) - $(kpathsea_link) $(objects) $(LIBGUI) $(x_link) $(LOADLIBES) - -squeeze.o: squeeze.c - $(build_compile) -c $< -squeeze: squeeze.o - $(build_link_command) squeeze.o - -psheader.c: psheader.txt squeeze - ./squeeze $(srcdir)/psheader.txt $@ - -$(manpage).1: xdvi.1.in sedscript - sed -f sedscript <$(srcdir)/xdvi.1.in >$@ - -sedscript: mksedscript c-auto.h - $(SHELL) $(srcdir)/mksedscript $(srcdir) pkpath sizes vfpath \ - figpath headerpath $(DEFS) $(prog_cflags) >$@ - -install: install-exec install-data -uninstall: uninstall-exec uninstall-data - -install-exec: @final_exec_name@ - $(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir) - $(INSTALL_LIBTOOL_PROG) @final_exec_name@ $(bindir) - $(INSTALL_SCRIPT) xdvi-sh $(scriptdir)/@wrapper_script@ - rm -f $(scriptdir)/o@wrapper_script@ - ln -s @wrapper_script@ $(scriptdir)/o@wrapper_script@ - -uninstall-exec: - for p in @final_exec_name@; do rm -f $(bindir)/$$p; done - for p in @wrapper_script@ o@wrapper_script@; do rm -f $(scriptdir)/$$p; done - -install-data: $(manpage).1 pixmaps/toolbar.xpm pixmaps/toolbar2.xpm - $(SHELL) $(top_srcdir)/../mkinstalldirs $(man1dir) - $(SHELL) $(top_srcdir)/../mkinstalldirs $(texmf)/xdvi/pixmaps - $(INSTALL_DATA) $(manpage).1 $(man1dir)/$(manpage).$(manext) - rm -f $(man1dir)/o$(manpage).$(manext) - ln -s $(manpage).$(manext) $(man1dir)/o$(manpage).$(manext) - $(INSTALL_DATA) $(srcdir)/texmf/XDvi $(texmf)/xdvi/XDvi - $(INSTALL_DATA) $(srcdir)/pixmaps/toolbar.xpm $(srcdir)/pixmaps/toolbar2.xpm $(texmf)/xdvi/pixmaps - if \ - grep 'original xdvi.cfg --' $(texmf)/xdvi/xdvi.cfg >/dev/null 2>&1 \ - || test ! -r $(texmf)/xdvi/xdvi.cfg; \ - then \ - $(INSTALL_DATA) $(srcdir)/texmf/xdvi.cfg $(texmf)/xdvi/xdvi.cfg; \ - else \ - true; \ - fi - -uninstall-data: - rm -f $(man1dir)/$(manpage).$(manext) \ - $(texmf)/xdvi/pixmaps/toolbar.xpm $(texmf)/xdvi/pixmaps/toolbar2.xpm \ - $(texmf)/xdvi/XDvi - if \ - head -n 1 $(texmf)/xdvi/xdvi.cfg | grep 'original xdvi.cfg --' >/dev/null 2>&1 \ - || test ! -r $(texmf)/xdvi/xdvi.cfg; \ - then \ - rm -f $(texmf)/xdvi/xdvi.cfg; \ - else \ - true; \ - fi - rmdir $(texmf)/xdvi/pixmaps - -distname = xdvik -program_files = *.1.in *.ac xdvi.icon xdvi.FAQ psheader.txt mksedscript \ - MOTIF -version_files = xdvi.c - -pre-dist-$(distname): -post-dist-$(distname): - cd $(top_distdir); rm -f xdvik/psheader.c - -kpse_include ../make/dist.mk -kpse_include ../make/config.mk - -info dvi check: - -kpse_include ../make/clean.mk - -mostlyclean:: - test ! -r gui/Makefile || test ! -r tests/Makefile \ - || for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done -clean:: - test ! -r gui/Makefile || test ! -r tests/Makefile \ - || for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done -distclean:: - test ! -r gui/Makefile || test ! -r tests/Makefile \ - || for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done -extraclean:: - test ! -r gui/Makefile || test ! -r tests/Makefile \ - || for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done -maintainer-clean:: - test ! -r gui/Makefile || test ! -r tests/Makefile \ - || for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done - -depend:: - test ! -r gui/Makefile || test ! -r tests/Makefile \ - || for d in $(all_subdirs); do (cd $$d && $(MAKE) $@); done - -clean:: - rm -f $(manpage).1 *.flc @final_exec_name@ - -distclean:: - rm -f psheader.c sedscript $(manpage).1 *.flc *~ @final_exec_name@ xdvi-sh - test -f $(LIBTYPE1DIR)/Makefile && { cd $(LIBTYPE1DIR); $(MAKE) distclean; } || true - test -f $(LIBT1DIR)/Makefile && { cd $(LIBT1DIR); $(MAKE) distclean; } || true - -$(LIBT1DIR)/libt1.a: - cd $(LIBT1DIR); $(MAKE) $(makeargs) libt1.a - -$(LIBTYPE1DIR)/libtype1.a: - cd $(LIBTYPE1DIR); $(MAKE) $(makeargs) libtype1.a - - -kpse_include ../make/tkpathsea.mk -kpse_include ../make/rdepend.mk -kpse_include depend.mk diff --git a/Build/source/texk/xdvik/Makefile.in.work b/Build/source/texk/xdvik/Makefile.in.work deleted file mode 100644 index 217b7488978..00000000000 --- a/Build/source/texk/xdvik/Makefile.in.work +++ /dev/null @@ -1,33 +0,0 @@ - -# Extra xdvi-specific compiler options. -# xdvi_defs = @PS_DEF@ -DXSERVER_INFO -DNEW_MENU_CREATION -# xdvi_defs = @PS_DEF@ -DRGB_ANTI_ALIASING -xdvi_defs = @PS_DEF@ -DXDVI_KPSE_PROG_NAME=@wrapper_script@ -prog_cflags = @XTRA_WARN_CFLAGS@ $(LIBT1CPPFLAGS) $(LIBKPATHSEACPPFLAGS) $(xdvi_defs) \ --I$(srcdir)/gui $(x_cppflags) - - -# t1mapper or its man page are currently not being installed, since they -# aren't needed on most current (teTeX) systems -perlprog = t1mapper - -default all: @final_exec_name@ - -@final_exec_name@: $(LIBKPATHSEADEP) $(objects) $(LIBT1DEP) $(LIBGUIDEP) - $(kpathsea_link) $(objects) $(LIBGUI) $(x_link) $(LOADLIBES) - -install-exec: @final_exec_name@ - $(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir) - $(INSTALL_LIBTOOL_PROG) @final_exec_name@ $(bindir) - $(INSTALL_SCRIPT) xdvi-sh $(scriptdir)/@wrapper_script@ - rm -f $(scriptdir)/o@wrapper_script@ - ln -s @wrapper_script@ $(scriptdir)/o@wrapper_script@ - -uninstall-exec: - for p in @final_exec_name@; do rm -f $(bindir)/$$p; done - for p in @wrapper_script@ o@wrapper_script@; do rm -f $(scriptdir)/$$p; done - -install-data: $(manpage).1 - rm -f $(man1dir)/o$(manpage).$(manext) - ln -s $(manpage).$(manext) $(man1dir)/o$(manpage).$(manext) - diff --git a/Build/source/texk/xdvik/acconfig.h-22.84.14 b/Build/source/texk/xdvik/acconfig.h-22.84.14 deleted file mode 100644 index 91db58ec0cf..00000000000 --- a/Build/source/texk/xdvik/acconfig.h-22.84.14 +++ /dev/null @@ -1,386 +0,0 @@ -/* regenerate c-auto.in from acconfig.h with: - /usr/bin/autoheader -m ../etc/autoconf - then run: - /usr/bin/autoconf -m ../etc/autoconf -*/ -/* c-auto.in. Generated automatically from configure.in by autoheader. */ - -/* Define if using alloca.c. */ -#undef C_ALLOCA - -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -#undef CRAY_STACKSEG_END - -/* Define if you have alloca, as a function or macro. */ -#undef HAVE_ALLOCA - -/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ -#undef HAVE_ALLOCA_H - -/* Define if you don't have vprintf but do have _doprnt. */ -#undef HAVE_DOPRNT - -/* Define if you have the ANSI # stringizing operator in cpp. */ -#undef HAVE_STRINGIZE - -/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ -#undef HAVE_SYS_WAIT_H - -/* Define if you have <vfork.h>. */ -#undef HAVE_VFORK_H - -/* Define if you have the vprintf function. */ -#undef HAVE_VPRINTF - -/* Define to `int' if <sys/types.h> doesn't define. */ -#undef pid_t - -/* Define as the return type of signal handlers (int or void). */ -#undef RETSIGTYPE - -/* Define to `unsigned' if <sys/types.h> doesn't define. */ -#undef size_t - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -#undef STACK_DIRECTION - -/* Define if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define vfork as fork if vfork does not work. */ -#undef vfork - -/* Define if your processor stores words with the most significant - byte first (like Motorola and SPARC, unlike Intel and VAX). */ -#undef WORDS_BIGENDIAN - -/* Define if the X Window System is missing or not being used. */ -#undef X_DISPLAY_MISSING - -/* Define if using alloca.c. */ -#undef C_ALLOCA - -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -#undef CRAY_STACKSEG_END - -/* Define if you have alloca, as a function or macro. */ -#undef HAVE_ALLOCA - -/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ -#undef HAVE_ALLOCA_H - -/* Define if you don't have vprintf but do have _doprnt. */ -#undef HAVE_DOPRNT - -/* Define if you have the ANSI # stringizing operator in cpp. */ -#undef HAVE_STRINGIZE - -/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ -#undef HAVE_SYS_WAIT_H - -/* Define if you have <vfork.h>. */ -#undef HAVE_VFORK_H - -/* Define if you have the vprintf function. */ -#undef HAVE_VPRINTF - -/* Define to `int' if <sys/types.h> doesn't define. */ -#undef pid_t - -/* Define as the return type of signal handlers (int or void). */ -#undef RETSIGTYPE - -/* Define to `unsigned' if <sys/types.h> doesn't define. */ -#undef size_t - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -#undef STACK_DIRECTION - -/* Define if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define vfork as fork if vfork does not work. */ -#undef vfork - -/* Define if your processor stores words with the most significant - byte first (like Motorola and SPARC, unlike Intel and VAX). */ -#undef WORDS_BIGENDIAN - -/* Define if the X Window System is missing or not being used. */ -#undef X_DISPLAY_MISSING - -/* c-auto.in. Generated from configure.in by autoheader. */ -/* Define to determine the integer type to be used in bitmaps. The type used - will be "unsigned BMTYPE". */ -#define BMTYPE int - -/* Define to the length (in bytes) of the above type. */ -#define BMBYTES 4 - -/* Define if your system has STREAMS (and if X uses it). */ -#undef HAVE_STREAMS - -/* Define if you are using SunOS 4.x. */ -#undef SUNOS4 - -/* Define if you are using Linux 2.1.xxx -- 2.2.8, - or if you find it necessary. */ -#undef FLAKY_SIGPOLL - -/* Define if your system has <poll.h> and poll(). */ -#undef HAVE_POLL - -/* Define to use the Xaw toolkit. */ -#undef XAW - -/* Define to use the Motif toolkit. */ -#undef MOTIF - -/* Define to enable greyscale anti-aliasing for shrunken bitmaps. */ -#undef GREY - -/* Define to enable support for color specials. */ -#undef COLOR - -/* Define to enable gf format files (in addition to pk format). */ -#undef USE_GF - -/* Define to use A4 as the default paper size. */ -#undef A4 - -/* Define to use hypertex */ -#undef HTEX - -/* Define to use ImageMagick */ -#undef MAGICK - -/* ??? */ -#undef LDT1LIB - -/* Define to compile in t1lib */ -#undef T1LIB - -/* Define to compile in t1lib */ -#undef T1LIB - -/* Define if your C compiler can do string concatenation */ -#undef HAVE_CC_CONCAT - -/* Define if the memicmp() function is in <string.h> */ -#undef HAVE_MEMICMP - -/* Define to point to the default command to use for printing (optional). */ -#undef DEFAULT_DVIPS_PATH - -/* Define to point to the default command to use for printing (optional). */ -#undef DEFAULT_PS2PDF_PATH - -/* Define if you have an old version of the Xaw library */ -#undef HAVE_OLD_XAW - -/* Define if you want to use the Xpm library */ -#undef USE_XPM - -/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP - systems. This function is required for `alloca.c' support on those systems. - */ -#undef CRAY_STACKSEG_END - -/* Define to 1 if using `alloca.c'. */ -#undef C_ALLOCA - -/* Define to 1 if you have `alloca', as a function or macro. */ -#undef HAVE_ALLOCA - -/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). - */ -#undef HAVE_ALLOCA_H - -/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ -#undef HAVE_DOPRNT - -/* Define to 1 if cpp supports the ANSI # stringizing operator. */ -#undef HAVE_STRINGIZE - -/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ -#undef HAVE_SYS_WAIT_H - -/* Define to 1 if you have the <vfork.h> header file. */ -#undef HAVE_VFORK_H - -/* Define to 1 if you have the `vprintf' function. */ -#undef HAVE_VPRINTF - -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown */ -#undef STACK_DIRECTION - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if your processor stores words with the most significant byte - first (like Motorola and SPARC, unlike Intel and VAX). */ -#undef WORDS_BIGENDIAN - -/* Define to 1 if the X Window System is missing or not being used. */ -#undef X_DISPLAY_MISSING - -/* Define to `int' if <sys/types.h> does not define. */ -#undef pid_t - -/* Define to `unsigned' if <sys/types.h> does not define. */ -#undef size_t - -/* Define as `fork' if `vfork' does not work. */ -#undef vfork - -/* Define if you have the uint32_t type. */ -#undef HAVE_UINT32_T - -/* Define if you have the fchdir function. */ -#undef HAVE_FCHDIR - -/* Define if you have the ftruncate function. */ -#undef HAVE_FTRUNCATE - -/* Define if you have the getcwd function. */ -#undef HAVE_GETCWD - -/* Define if you have the getpwnam function. */ -#undef HAVE_GETPWNAM - -/* Define if you have the getpwuid function. */ -#undef HAVE_GETPWUID - -/* Define if you have the getuid function. */ -#undef HAVE_GETUID - -/* Define if you have the isinf function. */ -#undef HAVE_ISINF - -/* Define if you have the lstat function. */ -#undef HAVE_LSTAT - -/* Define if you have the memcpy function. */ -#undef HAVE_MEMCPY - -/* Define if you have the mkstemp function. */ -#undef HAVE_MKSTEMP - -/* Define if you have the realpath function. */ -#undef HAVE_REALPATH - -/* Define if you have the setenv function. */ -#undef HAVE_SETENV - -/* Define if you have the sigaction function. */ -#undef HAVE_SIGACTION - -/* Define if you have the snprintf function. */ -#undef HAVE_SNPRINTF - -/* Define if you have the strchr function. */ -#undef HAVE_STRCHR - -/* Define if you have the strerror function. */ -#undef HAVE_STRERROR - -/* Define if you have the ulltostr function. */ -#undef HAVE_ULLTOSTR - -/* Define if you have the vsnprintf function. */ -#undef HAVE_VSNPRINTF - -/* Define if the vsnprintf function works. */ -#undef HAVE_GOOD_VSNPRINTF - -/* Define if your system allows setsid() within vfork(). */ -#undef HAVE_GOOD_SETSID_VFORK - -/* Define if your system allows multiple definitions of functions. */ -#undef LD_ALLOWS_MULTIPLE_DEFINITIONS - -/* Define if you have the waitpid function. */ -#undef HAVE_WAITPID - -/* Define if you have the <X11/Xmu/Editres.h> header file. */ -#undef HAVE_X11_XMU_EDITRES_H - -/* Define if you have the <X11/Xosdefs.h> header file. */ -#undef HAVE_X11_XOSDEFS_H - -/* Define if you have the <X11/xpm.h> header file. */ -#undef HAVE_X11_XPM_H - -/* Define if you have the <Xm/XpmP.h> header file. */ -#undef HAVE_XM_XPMP_H - -/* Define if you have the <xpm.h> header file (not in X11, e.g. Solaris 5.8). */ -#undef HAVE_XPM_H - -/* Define if you have the <iconv.h> header file. */ -#undef HAVE_ICONV_H - -/* Define if you have the iconv function. */ -#undef HAVE_ICONV - -/* Define the type of the iconv input string (char ** or const char **) */ -#undef ICONV_CHAR_PPTR_TYPE - -/* Define if you have the <ieeefp.h> header file. */ -#undef HAVE_IEEEFP_H - -/* Define if you have the <netdb.h> header file. */ -#undef HAVE_NETDB_H - -/* Define if you have the <regex.h> header file. */ -#undef HAVE_REGEX_H - -/* Define if you have the <select.h> header file. */ -#undef HAVE_SELECT_H - -/* Define if you have the <sys/bsdtypes.h> header file. */ -#undef HAVE_SYS_BSDTYPES_H - -/* Define if you have the <sys/fcntl.h> header file. */ -#undef HAVE_SYS_FCNTL_H - -/* Define if you have the <sys/param.h> header file. */ -#undef HAVE_SYS_PARAM_H - -/* Define if you have the <sys/select.h> header file. */ -#undef HAVE_SYS_SELECT_H - -/* Define if you have the <unistd.h> header file. */ -#undef HAVE_UNISTD_H - -/* Define if the CODESET argument to nl_langinfo works. */ -#undef HAVE_WORKING_NL_LANGINFO_CODESET - -/* Define to use Xaw panner. */ -#undef USE_XAW_PANNER - -/* Define to use libXp. */ -#undef HAVE_LIB_XP - diff --git a/Build/source/texk/xdvik/acconfig.h-22.84.15 b/Build/source/texk/xdvik/acconfig.h-22.84.15 deleted file mode 100644 index 91db58ec0cf..00000000000 --- a/Build/source/texk/xdvik/acconfig.h-22.84.15 +++ /dev/null @@ -1,386 +0,0 @@ -/* regenerate c-auto.in from acconfig.h with: - /usr/bin/autoheader -m ../etc/autoconf - then run: - /usr/bin/autoconf -m ../etc/autoconf -*/ -/* c-auto.in. Generated automatically from configure.in by autoheader. */ - -/* Define if using alloca.c. */ -#undef C_ALLOCA - -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -#undef CRAY_STACKSEG_END - -/* Define if you have alloca, as a function or macro. */ -#undef HAVE_ALLOCA - -/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ -#undef HAVE_ALLOCA_H - -/* Define if you don't have vprintf but do have _doprnt. */ -#undef HAVE_DOPRNT - -/* Define if you have the ANSI # stringizing operator in cpp. */ -#undef HAVE_STRINGIZE - -/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ -#undef HAVE_SYS_WAIT_H - -/* Define if you have <vfork.h>. */ -#undef HAVE_VFORK_H - -/* Define if you have the vprintf function. */ -#undef HAVE_VPRINTF - -/* Define to `int' if <sys/types.h> doesn't define. */ -#undef pid_t - -/* Define as the return type of signal handlers (int or void). */ -#undef RETSIGTYPE - -/* Define to `unsigned' if <sys/types.h> doesn't define. */ -#undef size_t - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -#undef STACK_DIRECTION - -/* Define if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define vfork as fork if vfork does not work. */ -#undef vfork - -/* Define if your processor stores words with the most significant - byte first (like Motorola and SPARC, unlike Intel and VAX). */ -#undef WORDS_BIGENDIAN - -/* Define if the X Window System is missing or not being used. */ -#undef X_DISPLAY_MISSING - -/* Define if using alloca.c. */ -#undef C_ALLOCA - -/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ -#undef CRAY_STACKSEG_END - -/* Define if you have alloca, as a function or macro. */ -#undef HAVE_ALLOCA - -/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ -#undef HAVE_ALLOCA_H - -/* Define if you don't have vprintf but do have _doprnt. */ -#undef HAVE_DOPRNT - -/* Define if you have the ANSI # stringizing operator in cpp. */ -#undef HAVE_STRINGIZE - -/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ -#undef HAVE_SYS_WAIT_H - -/* Define if you have <vfork.h>. */ -#undef HAVE_VFORK_H - -/* Define if you have the vprintf function. */ -#undef HAVE_VPRINTF - -/* Define to `int' if <sys/types.h> doesn't define. */ -#undef pid_t - -/* Define as the return type of signal handlers (int or void). */ -#undef RETSIGTYPE - -/* Define to `unsigned' if <sys/types.h> doesn't define. */ -#undef size_t - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ -#undef STACK_DIRECTION - -/* Define if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define vfork as fork if vfork does not work. */ -#undef vfork - -/* Define if your processor stores words with the most significant - byte first (like Motorola and SPARC, unlike Intel and VAX). */ -#undef WORDS_BIGENDIAN - -/* Define if the X Window System is missing or not being used. */ -#undef X_DISPLAY_MISSING - -/* c-auto.in. Generated from configure.in by autoheader. */ -/* Define to determine the integer type to be used in bitmaps. The type used - will be "unsigned BMTYPE". */ -#define BMTYPE int - -/* Define to the length (in bytes) of the above type. */ -#define BMBYTES 4 - -/* Define if your system has STREAMS (and if X uses it). */ -#undef HAVE_STREAMS - -/* Define if you are using SunOS 4.x. */ -#undef SUNOS4 - -/* Define if you are using Linux 2.1.xxx -- 2.2.8, - or if you find it necessary. */ -#undef FLAKY_SIGPOLL - -/* Define if your system has <poll.h> and poll(). */ -#undef HAVE_POLL - -/* Define to use the Xaw toolkit. */ -#undef XAW - -/* Define to use the Motif toolkit. */ -#undef MOTIF - -/* Define to enable greyscale anti-aliasing for shrunken bitmaps. */ -#undef GREY - -/* Define to enable support for color specials. */ -#undef COLOR - -/* Define to enable gf format files (in addition to pk format). */ -#undef USE_GF - -/* Define to use A4 as the default paper size. */ -#undef A4 - -/* Define to use hypertex */ -#undef HTEX - -/* Define to use ImageMagick */ -#undef MAGICK - -/* ??? */ -#undef LDT1LIB - -/* Define to compile in t1lib */ -#undef T1LIB - -/* Define to compile in t1lib */ -#undef T1LIB - -/* Define if your C compiler can do string concatenation */ -#undef HAVE_CC_CONCAT - -/* Define if the memicmp() function is in <string.h> */ -#undef HAVE_MEMICMP - -/* Define to point to the default command to use for printing (optional). */ -#undef DEFAULT_DVIPS_PATH - -/* Define to point to the default command to use for printing (optional). */ -#undef DEFAULT_PS2PDF_PATH - -/* Define if you have an old version of the Xaw library */ -#undef HAVE_OLD_XAW - -/* Define if you want to use the Xpm library */ -#undef USE_XPM - -/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP - systems. This function is required for `alloca.c' support on those systems. - */ -#undef CRAY_STACKSEG_END - -/* Define to 1 if using `alloca.c'. */ -#undef C_ALLOCA - -/* Define to 1 if you have `alloca', as a function or macro. */ -#undef HAVE_ALLOCA - -/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix). - */ -#undef HAVE_ALLOCA_H - -/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ -#undef HAVE_DOPRNT - -/* Define to 1 if cpp supports the ANSI # stringizing operator. */ -#undef HAVE_STRINGIZE - -/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */ -#undef HAVE_SYS_WAIT_H - -/* Define to 1 if you have the <vfork.h> header file. */ -#undef HAVE_VFORK_H - -/* Define to 1 if you have the `vprintf' function. */ -#undef HAVE_VPRINTF - -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - -/* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown */ -#undef STACK_DIRECTION - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if your processor stores words with the most significant byte - first (like Motorola and SPARC, unlike Intel and VAX). */ -#undef WORDS_BIGENDIAN - -/* Define to 1 if the X Window System is missing or not being used. */ -#undef X_DISPLAY_MISSING - -/* Define to `int' if <sys/types.h> does not define. */ -#undef pid_t - -/* Define to `unsigned' if <sys/types.h> does not define. */ -#undef size_t - -/* Define as `fork' if `vfork' does not work. */ -#undef vfork - -/* Define if you have the uint32_t type. */ -#undef HAVE_UINT32_T - -/* Define if you have the fchdir function. */ -#undef HAVE_FCHDIR - -/* Define if you have the ftruncate function. */ -#undef HAVE_FTRUNCATE - -/* Define if you have the getcwd function. */ -#undef HAVE_GETCWD - -/* Define if you have the getpwnam function. */ -#undef HAVE_GETPWNAM - -/* Define if you have the getpwuid function. */ -#undef HAVE_GETPWUID - -/* Define if you have the getuid function. */ -#undef HAVE_GETUID - -/* Define if you have the isinf function. */ -#undef HAVE_ISINF - -/* Define if you have the lstat function. */ -#undef HAVE_LSTAT - -/* Define if you have the memcpy function. */ -#undef HAVE_MEMCPY - -/* Define if you have the mkstemp function. */ -#undef HAVE_MKSTEMP - -/* Define if you have the realpath function. */ -#undef HAVE_REALPATH - -/* Define if you have the setenv function. */ -#undef HAVE_SETENV - -/* Define if you have the sigaction function. */ -#undef HAVE_SIGACTION - -/* Define if you have the snprintf function. */ -#undef HAVE_SNPRINTF - -/* Define if you have the strchr function. */ -#undef HAVE_STRCHR - -/* Define if you have the strerror function. */ -#undef HAVE_STRERROR - -/* Define if you have the ulltostr function. */ -#undef HAVE_ULLTOSTR - -/* Define if you have the vsnprintf function. */ -#undef HAVE_VSNPRINTF - -/* Define if the vsnprintf function works. */ -#undef HAVE_GOOD_VSNPRINTF - -/* Define if your system allows setsid() within vfork(). */ -#undef HAVE_GOOD_SETSID_VFORK - -/* Define if your system allows multiple definitions of functions. */ -#undef LD_ALLOWS_MULTIPLE_DEFINITIONS - -/* Define if you have the waitpid function. */ -#undef HAVE_WAITPID - -/* Define if you have the <X11/Xmu/Editres.h> header file. */ -#undef HAVE_X11_XMU_EDITRES_H - -/* Define if you have the <X11/Xosdefs.h> header file. */ -#undef HAVE_X11_XOSDEFS_H - -/* Define if you have the <X11/xpm.h> header file. */ -#undef HAVE_X11_XPM_H - -/* Define if you have the <Xm/XpmP.h> header file. */ -#undef HAVE_XM_XPMP_H - -/* Define if you have the <xpm.h> header file (not in X11, e.g. Solaris 5.8). */ -#undef HAVE_XPM_H - -/* Define if you have the <iconv.h> header file. */ -#undef HAVE_ICONV_H - -/* Define if you have the iconv function. */ -#undef HAVE_ICONV - -/* Define the type of the iconv input string (char ** or const char **) */ -#undef ICONV_CHAR_PPTR_TYPE - -/* Define if you have the <ieeefp.h> header file. */ -#undef HAVE_IEEEFP_H - -/* Define if you have the <netdb.h> header file. */ -#undef HAVE_NETDB_H - -/* Define if you have the <regex.h> header file. */ -#undef HAVE_REGEX_H - -/* Define if you have the <select.h> header file. */ -#undef HAVE_SELECT_H - -/* Define if you have the <sys/bsdtypes.h> header file. */ -#undef HAVE_SYS_BSDTYPES_H - -/* Define if you have the <sys/fcntl.h> header file. */ -#undef HAVE_SYS_FCNTL_H - -/* Define if you have the <sys/param.h> header file. */ -#undef HAVE_SYS_PARAM_H - -/* Define if you have the <sys/select.h> header file. */ -#undef HAVE_SYS_SELECT_H - -/* Define if you have the <unistd.h> header file. */ -#undef HAVE_UNISTD_H - -/* Define if the CODESET argument to nl_langinfo works. */ -#undef HAVE_WORKING_NL_LANGINFO_CODESET - -/* Define to use Xaw panner. */ -#undef USE_XAW_PANNER - -/* Define to use libXp. */ -#undef HAVE_LIB_XP - diff --git a/Build/source/texk/xdvik/acinclude.m4-22.84.14 b/Build/source/texk/xdvik/acinclude.m4-22.84.14 deleted file mode 100644 index 23aeb56e60c..00000000000 --- a/Build/source/texk/xdvik/acinclude.m4-22.84.14 +++ /dev/null @@ -1,1071 +0,0 @@ -dnl ### Check whether iconv takes a 'const char **' or a 'char **' input argument. -dnl ### According to IEEE 1003.1, `char **' is correct, but e.g. librecode -dnl ### uses `const char **'. -dnl ### We use C++'s built-in function overloading to distinguish between the two. -AC_DEFUN([XDVI_ICONV_CHAR_PPTR_TYPE], -[ -AC_LANG_SAVE AC_LANG_CPLUSPLUS -# AC_LANG_PUSH(C++) # in newer autoconf -# -xdvi_iconv_save_libs="$LIBS" -xdvi_iconv_save_cxxflags="$CXXFLAGS" -xdvi_iconv_save_ldflags="$LDFLAGS" -# -LIBS="$LIBS $iconv_libs" -CXXFLAGS="$CXXFLAGS $iconv_includes" -LDFLAGS="$LDFLAGS $iconv_libpath" -# -AC_MSG_CHECKING([for iconv input type]) -AC_CACHE_VAL(xdvi_cv_iconv_char_pptr_type, -[AC_TRY_RUN( -[ -/* iconv() definitions may differ depending on following macros ... */ -#ifdef __hpux -/* On HP-UX 10.10 B and 20.10, compiling with _XOPEN_SOURCE + ..._EXTENDED - * leads to poll() not realizing that a file descriptor is writable in psgs.c. - */ -# define _HPUX_SOURCE 1 -#else -# ifndef _XOPEN_SOURCE -# define _XOPEN_SOURCE 600 -# endif -# define _XOPEN_SOURCE_EXTENDED 1 -# define __EXTENSIONS__ 1 /* needed to get struct timeval on SunOS 5.5 */ -# define _SVID_SOURCE 1 /* needed to get S_IFLNK in glibc */ -# define _BSD_SOURCE 1 /* needed to get F_SETOWN in glibc-2.1.3 */ -#endif - -#include <iconv.h> - - // Define two iconv_adapter() functions, one with a const char **, the other with - // a char ** argument. The compiler will figure out which one to use, and we can - // check the exit value to see which it was. - // Idea taken from http://gcc.gnu.org/ml/libstdc++/2000-11/msg00127.html - - typedef const char ** ConstCharPtrT; - typedef char ** CharPtrT; - - inline int - iconv_adapter(size_t(*iconv_func)(iconv_t, ConstCharPtrT, size_t *, char**, size_t*), - iconv_t cd, char **inbuf, size_t *inbytesleft, - char **outbuf, size_t *outbytesleft) - { - return 1; // 1 = false = const char ** - } - - - inline int - iconv_adapter(size_t(*iconv_func)(iconv_t, CharPtrT, size_t *, char**, size_t*), - iconv_t cd, char **inbuf, size_t *inbytesleft, - char **outbuf, size_t *outbytesleft) - { - return 0; // 0 = true = char ** - } - - - int main(void) - { - iconv_t testconv = (iconv_t)-1; - char *ptr1 = 0; - char *ptr2 = 0; - size_t len1 = 0; - size_t len2 = 0; - - return iconv_adapter(iconv, testconv, - (char**)&ptr1, &len1, - (char**)&ptr2, &len2); - } -], -[xdvi_cv_iconv_char_pptr_type="char_pptr"], -[xdvi_cv_iconv_char_pptr_type="const_char_pptr"], -# `correct' default for cross-compiling ... -[xdvi_cv_iconv_char_pptr_type="char_pptr"])]) -# -LIBS="$xdvi_iconv_save_libs" -CXXFLAGS="$xdvi_iconv_save_cxxflags" -LDFLAGS="$xdvi_iconv_save_ldflags" -# -if test $xdvi_cv_iconv_char_pptr_type = "const_char_pptr"; then - AC_DEFINE([ICONV_CHAR_PPTR_TYPE], [const char **], - [Define the type of the iconv input string (char ** or const char **)]) - AC_MSG_RESULT([const char **]) -else - AC_DEFINE([ICONV_CHAR_PPTR_TYPE], [char **]) - AC_MSG_RESULT([char **]) -fi -AC_LANG_RESTORE] -#AC_LANG_POP(C++) # in newer autoconf -) - -dnl ### Check for whether setsid() is allowed within vfork() -dnl (Mac OS X 10.3 (Panther, 11/2003) is one O/S which does not allow this.) - -AC_DEFUN([XDVI_FUNC_SETSID_IN_VFORK], -[if test $ac_cv_func_vfork_works = yes; then -AC_CACHE_CHECK([for whether setsid() is allowed within vfork()], -xdvi_cv_setsid_in_vfork, -[AC_TRY_RUN( -[/* Test adapted from Gnu autoconf */ -/* Thanks to Paul Eggert for this test. */ -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif -#ifdef HAVE_VFORK_H -#include <vfork.h> -#endif -int -main() { - pid_t parent = getpid (); - pid_t child; - - child = vfork (); - - if (child == 0) { - if (setsid () == -1) - _exit(1); - _exit(0); - } else { - int status; - - while (wait(&status) != child) - ; - exit( - /* Was there some problem with vforking? */ - child < 0 - - /* Did the child fail? (This shouldn't happen.) */ - || status - ); - } -}], -xdvi_cv_setsid_in_vfork=yes, -xdvi_cv_setsid_in_vfork=no, -# safe value for cross-compiling -xdvi_cv_setsid_in_vfork=no)]) -if test $xdvi_cv_setsid_in_vfork = yes; then - AC_DEFINE([HAVE_GOOD_SETSID_VFORK], 1, - [Define if your system allows setsid() within vfork().]) -fi] -fi) - -dnl ### Check if the --allow-multiple-definition linker flag is -dnl ### available (assuming that we need to use it if it is). -dnl ### If it isn't, check if the linker accepts multiple definitions, -dnl ### and if it doesn't, don't define LD_ALLOWS_MULTIPLE_DEFINITIONS. - -AC_DEFUN([XDVI_LINKER_MULTIPLE_DEFNS], -[AC_CACHE_CHECK([whether linker supports the --allow-multiple-definition flag], -xdvi_cv_linker_multiple_defns, -xdvi_save_LDFLAGS="$LDFLAGS" -LDFLAGS="-Xlinker --allow-multiple-definition" -x_linker_options="" -[AC_TRY_LINK( - [#include <stdio.h> - ], - [void foo(void); - ], - [xdvi_cv_linker_multiple_defns=yes], [xdvi_cv_linker_multiple_defns=no] -)] -) -if test $xdvi_cv_linker_multiple_defns = yes; then - x_linker_options="-Xlinker --allow-multiple-definition" - LDFLAGS="$xdvi_save_LDFLAGS" - AC_DEFINE([LD_ALLOWS_MULTIPLE_DEFINITIONS], 1, - [Define if your system allows multiple definitions of functions.]) -else - LDFLAGS="$xdvi_save_LDFLAGS" - - xdvi_ld_save_LIBS="$LIBS" - xdvi_ld_save_CFLAGS="$CFLAGS" - xdvi_ld_save_CPPFLAGS="$CPPFLAGS" - xdvi_ld_save_LDFLAGS="$LDFLAGS" - - LIBS="$X_PRE_LIBS -lXt -lX11 $X_EXTRA_LIBS $LIBS" - CFLAGS="$X_CFLAGS $CFLAGS" - CPPFLAGS="$X_CFLAGS $CPPFLAGS" - LDFLAGS="$X_LIBS $LDFLAGS" - - AC_MSG_CHECKING([whether linker supports multiple definitions by default]) - - AC_TRY_LINK( - [#include <X11/Intrinsic.h> - - XtIntervalId XtAppAddTimeOut(XtAppContext app, - unsigned long interval, - XtTimerCallbackProc proc, - XtPointer closure) - { - (void)app; (void)interval; (void)proc; (void)closure; - return (XtIntervalId)0; - } - ],[ - XtIntervalId i = 0; - XtRemoveTimeOut(i); - ], - [xdvi_cv_linker_multiple_defns=yes], [xdvi_cv_linker_multiple_defns=no] - ) - - if test $xdvi_cv_linker_multiple_defns = yes; then - AC_MSG_RESULT(yes) - AC_DEFINE([LD_ALLOWS_MULTIPLE_DEFINITIONS], 1) - else - AC_MSG_RESULT(no) - AC_MSG_WARN([Linker does not allow multiple definitions. - ***************************************************************** - * Warning: Your linker does not allow multiple definitions. * - * This does not make xdvik unusable, but it will cause problems * - * with event handling: Some widgets, e.g. the print log window, * - * tooltips, statusline messages and hyperlink location markers * - * will not be updated until the mouse is moved. * - *****************************************************************]) - fi - LIBS="$xdvi_ld_save_LIBS" - CFLAGS="$xdvi_ld_save_CFLAGS" - CPPFLAGS="$xdvi_ld_save_CPPFLAGS" - LDFLAGS="$xdvi_ld_save_LDFLAGS" -fi -AC_SUBST(x_linker_options)]) - - -dnl ### Determine integer type to use for bitmaps - -AC_DEFUN([XDVI_C_BITMAP_TYPE], -[AC_MSG_CHECKING(for integer type to use in bitmaps) -AC_CACHE_VAL(xdvi_cv_bitmap_type, -[AC_TRY_RUN( -[#include <stdio.h> -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - if ((sizeof(unsigned long) == 4 || sizeof(unsigned long) == 2) - && sizeof(unsigned long) != sizeof(unsigned int)) - fprintf(f, "BMTYPE=long BMBYTES=%d\n", sizeof(unsigned long)); - if (sizeof(unsigned int) == 4 || sizeof(unsigned int) == 2) - fprintf(f, "BMTYPE=int BMBYTES=%d\n", sizeof(unsigned int)); - else if (sizeof(unsigned short) == 4 || sizeof(unsigned short) == 2) - fprintf(f, "BMTYPE=short BMBYTES=%d\n", sizeof(unsigned short)); - else fprintf(f, "BMTYPE=char BMBYTES=%d\n", sizeof(unsigned char)); - exit(0); -}], -xdvi_cv_bitmap_type="`cat conftestval`", -AC_MSG_ERROR(could not determine integer type for bitmap))]) -eval "$xdvi_cv_bitmap_type" -AC_DEFINE_UNQUOTED([BMTYPE], [$BMTYPE], - [Define to determine the integer type to be used in bitmaps. - The type used will be "unsigned BMTYPE".]) -AC_DEFINE_UNQUOTED([BMBYTES], [$BMBYTES], [Define to the length (in bytes) of type BMTYPE.]) -AC_MSG_RESULT([unsigned $BMTYPE, size = $BMBYTES])]) - - -dnl ### Check for whether the C compiler does string concatenation - -AC_DEFUN([XDVI_CC_CONCAT], -[AC_CACHE_CHECK([whether C compiler supports string concatenation], xdvi_cv_cc_concat, -[AC_TRY_COMPILE( -[#include <stdio.h> -], [puts("Testing" " string" " concatenation"); -], [xdvi_cv_cc_concat=yes], [xdvi_cv_cc_concat=no])]) -if test $xdvi_cv_cc_concat = yes; then - AC_DEFINE([HAVE_CC_CONCAT], 1, [Define if your C compiler can do string concatenation]) -fi]) - - -dnl ### Check for at-least-pretend Streams capability - -AC_DEFUN([XDVI_SYS_STREAMS], -[AC_CACHE_CHECK([for stropts.h and isastream()], xdvi_cv_sys_streams, -[AC_TRY_LINK( -[#include <stropts.h> -], [#ifndef I_SETSIG -choke me -#else -isastream(0); -#endif], xdvi_cv_sys_streams=yes, xdvi_cv_sys_streams=no)]) -if test $xdvi_cv_sys_streams = yes; then - AC_DEFINE([HAVE_STREAMS], 1, [Define if your system has STREAMS (and if X uses it).]) -fi]) - - -dnl ### Check for poll() - -AC_DEFUN([XDVI_FUNC_POLL], -[AC_CACHE_CHECK([for poll.h and poll()], xdvi_cv_func_poll, -[AC_TRY_LINK( -[#include <poll.h> -], [poll((struct pollfd *) 0, 0, 0);], -xdvi_cv_func_poll=yes, xdvi_cv_func_poll=no)]) -if test $xdvi_cv_func_poll = yes; then - AC_DEFINE([HAVE_POLL], 1, [Define if your system has <poll.h> and poll().]) -else - AC_CHECK_HEADERS(sys/select.h select.h) -fi]) - - -dnl ### Check for SunOS 4 - -AC_DEFUN([XDVI_SYS_SUNOS_4], -[AC_CACHE_CHECK([for SunOS 4], xdvi_cv_sys_sunos_4, -[case "`(uname -sr) 2>/dev/null`" in -"SunOS 4."*) - xdvi_cv_sys_sunos_4=yes ;; -*) xdvi_cv_sys_sunos_4=no ;; -esac]) -if test $xdvi_cv_sys_sunos_4 = yes; then - AC_DEFINE([SUNOS4], 1, [Define if you are using SunOS 4.x.]) -fi]) - -dnl ### Check for certain broken versions of Linux - -AC_DEFUN([XDVI_SYS_OLD_LINUX], -[AC_CACHE_CHECK([for certain old versions of Linux], xdvi_cv_sys_old_linux, -[case "`(uname -sr) 2>/dev/null`" in -"Linux 2."[[01]].* | "Linux 2.2."[[0-8]] | "Linux 2.2."[[0-8]]-*) - xdvi_cv_sys_old_linux=yes ;; -*) xdvi_cv_sys_old_linux=no ;; -esac]) -if test $xdvi_cv_sys_old_linux = yes; then - AC_DEFINE([FLAKY_SIGPOLL], 1, - [Define if you are using Linux 2.1.xxx -- 2.2.8, or if you find it necessary.]) -fi]) - -dnl ### Process a string argument - -dnl XDVI_ARG_STRING(PACKAGE, HELP-STRING, VARIABLE, DEFAULT_VALUE, DESCRIPTION) -AC_DEFUN([XDVI_ARG_STRING], -[AC_ARG_WITH([$1], [$2], [AC_DEFINE_UNQUOTED($3, ["$withval"], [$5]) -], [AC_DEFINE([$3], [$4]) -])]) - - -dnl dnl ### Check for vsnprintf() added by SU 2000/03/07 -dnl AC_DEFUN([AC_FUNC_VSNPRINTF], -dnl [AC_CACHE_CHECK([for vsnprintf], xdvi_cv_vsnprintf, -dnl [AC_TRY_LINK( -dnl [#include <stdio.h> -dnl ], [(void)vsnprintf((char *)NULL, 0, (char *)NULL, NULL);], -dnl xdvi_cv_vsnprintf=yes, xdvi_cv_vsnprintf=no)]) -dnl if test $xdvi_cv_vsnprintf = yes; then -dnl AC_DEFINE([HAVE_VSNPRINTF], 1, [Define if you have the vsnprintf() function.]) -dnl fi]) - -dnl ### Check for a working implementation of (v)snprintf() -dnl ### which should either return a negative result or the size actually needed -dnl ### (latter is C99 standard). -AC_DEFUN([XDVI_FUNC_WORKING_VSNPRINTF], -[AC_CACHE_CHECK([for a working implementation of (v)snprintf()], -xdvi_cv_func_good_vsnprintf, -[AC_TRY_RUN( -[ -#ifdef IRIX -#define _XOPEN_SOURCE 500 -#endif -#include <stdio.h> -int main() -{ - char s[2]; - int retval = snprintf(s, 2, "test"); - if (retval > -1 && retval != 4) /* neither negative nor desired size, not OK */ - return 1; - return 0; -}], -xdvi_cv_func_good_vsnprintf=yes, -xdvi_cv_func_good_vsnprintf=no, -# safe value for cross-compiling -xdvi_cv_func_good_vsnprintf=no)]) -if test $xdvi_cv_func_good_vsnprintf = yes; then - AC_DEFINE([HAVE_GOOD_VSNPRINTF], 1, [Define if the vsnprintf function works.]) -fi]) - -dnl ### Check for memicmp(), which some installations have in string.h -AC_DEFUN([AC_FUNC_MEMICMP], -[AC_CACHE_CHECK([for memicmp], xdvi_cv_memicmp, -[AC_TRY_LINK( -[#include <string.h> -], [(void)memicmp((char *)NULL, (char *)NULL, 0);], -xdvi_cv_memicmp=yes, xdvi_cv_memicmp=no)]) -if test $xdvi_cv_memicmp = yes; then - AC_DEFINE([HAVE_MEMICMP], 1, [Define if the memicmp() function is in <string.h>]) -fi]) - -dnl dnl ### Check for realpath() added by SU 2002/04/10 -dnl AC_DEFUN([AC_FUNC_REALPATH], -dnl [AC_CACHE_CHECK([for realpath], xdvi_cv_realpath, -dnl [AC_TRY_LINK( -dnl [#include <stdlib.h> -dnl ], [(void)realpath((const char *)NULL, NULL);], -dnl xdvi_cv_realpath=yes, xdvi_cv_realpath=no)]) -dnl if test $xdvi_cv_realpath = yes; then -dnl AC_DEFINE([HAVE_REALPATH], 1 [Define if you have the realpath() function.]) -dnl fi]) - - -dnl ### for Xpm libraries and headers. -dnl Put Xpm include directory in xpm_includes, -dnl put Xpm library directory in xpm_libraries, -dnl and add appropriate flags to X_CFLAGS and X_LIBS. -dnl -AC_DEFUN([XDVI_FIND_XPM], -[ -AC_REQUIRE([AC_PATH_XTRA]) -xpm_includes= -xpm_libraries= -AC_ARG_WITH([xpm], -[ --without-xpm Do not use the Xpm library (will disable the toolbar)]) -dnl Treat --without-xpm like -dnl --without-xpm-includes --without-xpm-libraries. -if test "$with_xpm" = "no" -then -xpm_includes=no -xpm_libraries=no -fi -AC_ARG_WITH([xpm-includes], -[ --with-xpm-include=DIR - Specify the location of Xpm include files], -[xpm_includes="$withval"]) -AC_ARG_WITH([xpm-libraries], -[ --with-xpm-libdir=DIR - Specify the location of Xpm libraries], -[xpm_libraries="$withval"]) -AC_MSG_CHECKING(for Xpm) -# -# -# Search the include files. XPM can either be in <X11/xpm.h> (as in X11R6), -# which is dealt with by AC_CHECK_HEADERS(X11/xpm.h), or in <xpm.h> if installed locally; -# this is what this test is for. -# -if test "$xpm_includes" = ""; then -AC_CACHE_VAL(xdvi_cv_xpm_includes, -[ -xdvi_xpm_save_LIBS="$LIBS" -xdvi_xpm_save_CFLAGS="$CFLAGS" -xdvi_xpm_save_CPPFLAGS="$CPPFLAGS" -xdvi_xpm_save_LDFLAGS="$LDFLAGS" -# -LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS" -CFLAGS="$X_CFLAGS $CFLAGS" -CPPFLAGS="$X_CFLAGS $CPPFLAGS" -LDFLAGS="$X_LIBS $LDFLAGS" -# -AC_TRY_COMPILE([ -#include <X11/xpm.h> -],[int a;], -[ -# X11/xpm.h is in the standard search path. -xdvi_cv_xpm_includes="default" -], -[ -# X11/xpm.h is not in the standard search path. -# Locate it and put its directory in `xpm_includes' -# -# /usr/include/Motif* are used on HP-UX (Motif). -# /usr/include/X11* are used on HP-UX (X and Xaw). -# /usr/dt is used on Solaris (Motif). -# /usr/openwin is used on Solaris (X and Xaw). -# Other directories are just guesses. -for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ - /usr/X11/include /usr/X11R5/include /usr/X11R6/include \ - /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ - /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ - /usr/dt/include /usr/openwin/include \ - /usr/dt/*/include /opt/*/include /usr/include/Motif* \ - "${prefix}"/*/include /usr/*/include /usr/local/*/include \ - "${prefix}"/include/* /usr/include/* /usr/local/include/* -do - if test -f "$dir/X11/xpm.h"; then - xdvi_cv_xpm_includes="$dir" - break - elif test -f "$dir/xpm.h"; then - xdvi_cv_xpm_includes="$dir" - break - fi -done -]) -# -LIBS="$xdvi_xpm_save_LIBS" -CFLAGS="$xdvi_xpm_save_CFLAGS" -CPPFLAGS="$xdvi_xpm_save_CPPFLAGS" -LDFLAGS="$xdvi_xpm_save_LDFLAGS" -]) -xpm_includes="$xdvi_cv_xpm_includes" -fi - -dnl Second arg of AC_CACHE_VAL shouldn't contain any AC_DEFINE's, -dnl moved them out. Peter Breitenlohner <peb@mppmu.mpg.de> -dnl -if test "x$xpm_includes" != x; then - if test "x$xpm_includes" = xdefault; then - AC_DEFINE([HAVE_X11_XPM_H], 1, [Define if you have the <X11/xpm.h> header file.]) - elif test -f "$xpm_includes/X11/xpm.h"; then - AC_DEFINE([HAVE_X11_XPM_H], 1) - elif test -f "$xpm_includes/xpm.h"; then - AC_DEFINE([HAVE_XPM_H], 1, - [Define if you have the <xpm.h> header file (not in X11, e.g. Solaris 5.8).]) - fi -fi - -# -# -# Now for the libraries. -# -if test "$xpm_libraries" = ""; then -AC_CACHE_VAL(xdvi_cv_xpm_libraries, -[ -xdvi_xpm_save_LIBS="$LIBS" -xdvi_xpm_save_CFLAGS="$CFLAGS" -xdvi_xpm_save_CPPFLAGS="$CPPFLAGS" -xdvi_xpm_save_LDFLAGS="$LDFLAGS" -# -LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS" -CFLAGS="$X_CFLAGS $CFLAGS" -CPPFLAGS="$X_CFLAGS $CPPFLAGS" -LDFLAGS="$X_LIBS $LDFLAGS" -xdvi_cv_xpm_libraries= -# -# -# We use XtToolkitInitialize() here since it takes no arguments -# and thus also works with a C++ compiler. -AC_TRY_LINK([ -#include <X11/Intrinsic.h> -#include <X11/xpm.h> -],[XtToolkitInitialize();], -[ -# libxpm.a is in the standard search path. -xdvi_cv_xpm_libraries="default" -], -[ -# libXpm.a is not in the standard search path. -# Locate it and put its directory in `xpm_libraries' -# -# -# /usr/lib/Motif* are used on HP-UX (Motif). -# /usr/lib/X11* are used on HP-UX (X and Xpm). -# /usr/dt is used on Solaris (Motif). -# /usr/openwin is used on Solaris (X and Xpm). -# Other directories are just guesses. -for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ - /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \ - /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \ - /usr/dt/lib /usr/openwin/lib \ - /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ - "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ - "${prefix}"/lib/* /usr/lib/* /usr/local/lib/* -do - if test -d "$dir" && test "`ls $dir/libXpm.* 2> /dev/null`" != ""; then - xdvi_cv_xpm_libraries="$dir" - break - fi -done -]) -# -LIBS="$xdvi_xpm_save_LIBS" -CFLAGS="$xdvi_xpm_save_CFLAGS" -CPPFLAGS="$xdvi_xpm_save_CPPFLAGS" -LDFLAGS="$xdvi_xpm_save_LDFLAGS" -]) -# -xpm_libraries="$xdvi_cv_xpm_libraries" -fi -# -# Add Xpm definitions to X flags -# -if test "x$xpm_includes" != "xdefault" && test "$xpm_includes" != "" \ - && test "$xpm_includes" != "$x_includes" && test "$xpm_includes" != "no" -then - X_CFLAGS="-I$xpm_includes $X_CFLAGS" -fi - -if test "x$xpm_libraries" != "xdefault" && test "$xpm_libraries" != "" \ - && test "$xpm_libraries" != "$x_libraries" && test "$xpm_libraries" != "no" -then -case "$X_LIBS" in - *-R\ *) X_LIBS="-L$xpm_libraries -R $xpm_libraries $X_LIBS";; - *-R*) X_LIBS="-L$xpm_libraries -R$xpm_libraries $X_LIBS";; - *) X_LIBS="-L$xpm_libraries $X_LIBS";; -esac -fi - -# -# -x_xpm_libs="-lXpm" -# -# Now check the results of headers and libraries and set USE_XPM to 0 -# if one of them hadn't been found. -# -AC_DEFINE([USE_XPM], 1, [Define if you want to use the Xpm library]) -xpm_libraries_result="$xpm_libraries" -xpm_includes_result="$xpm_includes" -if test "x$xpm_libraries_result" = "xdefault" ; then - xpm_libraries_result="in default path" -elif test "$xpm_libraries_result" = no || test "x$xpm_libraries_result" = "x"; then - xpm_libraries_result="(none)" - AC_DEFINE([USE_XPM], 0) - x_xpm_libs="" -fi - -if test "x$xpm_includes_result" = "xdefault"; then - xpm_includes_result="in default path" -elif test "$xpm_includes_result" = no || test "x$xpm_includes_result" = "x"; then - AC_DEFINE(USE_XPM, 0) - xpm_includes_result="(none)" -fi - -AC_SUBST(x_xpm_libs) -AC_MSG_RESULT( - [libraries $xpm_libraries_result, headers $xpm_includes_result]) -])dnl - - - -dnl ### Check for Motif libraries and headers -dnl Put Motif include directory in motif_include, -dnl put Motif library directory in motif_libdir, -dnl and add appropriate flags to X_CFLAGS and X_LIBS. -dnl If $1 is not `none', use Xaw as default toolkit if Motif isn't found. -AC_DEFUN([XDVI_FIND_MOTIF], -[ -default_toolkit="$1" -motif_include="$2" -motif_libdir="$3" -AC_REQUIRE([AC_PATH_XTRA]) -AC_MSG_CHECKING(for Motif) -# -# -# Search the include files. -# -if test "$motif_include" = ""; then -AC_CACHE_VAL(xdvi_cv_motif_include, -[ -xdvi_motif_save_LIBS="$LIBS" -xdvi_motif_save_CFLAGS="$CFLAGS" -xdvi_motif_save_CPPFLAGS="$CPPFLAGS" -xdvi_motif_save_LDFLAGS="$LDFLAGS" -# -LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" -CFLAGS="$X_CFLAGS $CFLAGS" -CPPFLAGS="$X_CFLAGS $CPPFLAGS" -LDFLAGS="$X_LIBS $LDFLAGS" -# -AC_TRY_COMPILE([#include <Xm/Xm.h>],[int a;], -[ -# Xm/Xm.h is in the standard search path. -xdvi_cv_motif_include= -], -[ -# Xm/Xm.h is not in the standard search path. -# Locate it and put its directory in `motif_include' -# -# /usr/include/Motif* are used on HP-UX (Motif). -# /usr/include/X11* are used on HP-UX (X and Athena). -# /usr/dt is used on Solaris (Motif). -# /usr/openwin is used on Solaris (X and Athena). -# Other directories are just guesses. -for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ - /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ - /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ - /usr/dt/include /usr/openwin/include \ - /usr/dt/*/include /opt/*/include /usr/include/Motif* \ - "${prefix}"/*/include /usr/*/include /usr/local/*/include \ - "${prefix}"/include/* /usr/include/* /usr/local/include/*; do - if test -f "$dir/Xm/Xm.h"; then - xdvi_cv_motif_include="$dir" - break - fi -done -if test "$xdvi_cv_motif_include" = ""; then -xdvi_cv_motif_include=no -fi -]) -# -LIBS="$xdvi_motif_save_LIBS" -CFLAGS="$xdvi_motif_save_CFLAGS" -CPPFLAGS="$xdvi_motif_save_CPPFLAGS" -LDFLAGS="$xdvi_motif_save_LDFLAGS" -]) -motif_include="$xdvi_cv_motif_include" -fi -# -# -# Now for the libraries. -# -if test "$motif_libdir" = ""; then -AC_CACHE_VAL(xdvi_cv_motif_libdir, -[ -xdvi_motif_save_LIBS="$LIBS" -xdvi_motif_save_CFLAGS="$CFLAGS" -xdvi_motif_save_CPPFLAGS="$CPPFLAGS" -xdvi_motif_save_LDFLAGS="$LDFLAGS" -# -LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" -CFLAGS="$X_CFLAGS $CFLAGS" -CPPFLAGS="$X_CFLAGS $CPPFLAGS" -LDFLAGS="$X_LIBS $LDFLAGS" -# -# We use XtToolkitInitialize() here since it takes no arguments -# and thus also works with a C++ compiler. -AC_TRY_LINK( -[#include <X11/Intrinsic.h> -#include <Xm/Xm.h> -],[XtToolkitInitialize();], -[ -# libXm.a is in the standard search path. -xdvi_cv_motif_libdir= -], -[ -# libXm.a is not in the standard search path. -# Locate it and put its directory in `motif_libdir' -# -# /usr/lib/Motif* are used on HP-UX (Motif). -# /usr/lib/X11* are used on HP-UX (X and Athena). -# /usr/dt is used on Solaris (Motif). -# /usr/lesstif is used on Linux (Lesstif). -# /usr/openwin is used on Solaris (X and Athena). -# Other directories are just guesses. -for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ - /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \ - /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \ - /usr/dt/lib /usr/openwin/lib \ - /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ - /usr/lesstif*/lib /usr/lib/Lesstif* \ - "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ - "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do - if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then - xdvi_cv_motif_libdir="$dir" - break - fi -done -if test "$xdvi_cv_motif_libdir" = ""; then -xdvi_cv_motif_libdir=no -fi -]) -# -LIBS="$xdvi_motif_save_LIBS" -CFLAGS="$xdvi_motif_save_CFLAGS" -CPPFLAGS="$xdvi_motif_save_CPPFLAGS" -LDFLAGS="$xdvi_motif_save_LDFLAGS" -]) -# -motif_libdir="$xdvi_cv_motif_libdir" -fi -# Add Motif definitions to X flags -# -if test "$motif_include" != "" && test "$motif_include" != "$x_includes" && test "$motif_include" != "no" -then -X_CFLAGS="-I$motif_include $X_CFLAGS" -fi -if test "$motif_libdir" != "" && test "$motif_libdir" != "$x_libraries" && test "$motif_libdir" != "no" -then -case "$X_LIBS" in - *-R\ *) X_LIBS="-L$motif_libdir -R $motif_libdir $X_LIBS";; - *-R*) X_LIBS="-L$motif_libdir -R$motif_libdir $X_LIBS";; - *) X_LIBS="-L$motif_libdir $X_LIBS";; -esac -fi -# -# -motif_libdir_result="$motif_libdir" -motif_include_result="$motif_include" -test "$motif_libdir_result" = "" && - motif_libdir_result="in default path" && AC_DEFINE([MOTIF], 1, [Define to use the Motif toolkit.]) -test "$motif_include_result" = "" && - motif_include_result="in default path" && AC_DEFINE([MOTIF], 1) -if test "$motif_libdir_result" = "no"; then - if test "$default_toolkit" = "none"; then - motif_libdir_result="(none)" - else - motif_libdir_result="" - fi -fi -if test "$motif_include_result" = "no"; then - if test "$default_toolkit" = "none"; then - motif_include_result="(none)" - else - motif_include_result="" - fi -fi - -if test "$motif_include_result" != "" && test "$motif_libdir_result" != ""; then - AC_MSG_RESULT([libraries $motif_libdir_result, headers $motif_include_result]) - prog_extension="motif" - AC_DEFINE([MOTIF], 1) - x_tool_libs="-lXm" - # now warn if we're using LessTif (see LESSTIF-BUGS for why ...) - AC_MSG_CHECKING(for LessTif) - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $X_CFLAGS" - AC_TRY_COMPILE([ - #include <X11/X.h> - #include <X11/Xlib.h> - #include <X11/Xutil.h> - #include <X11/Xos.h> - #include <X11/Intrinsic.h> - #include <Xm/Xm.h>],[const char *p = LesstifVERSION_STRING; - ],[ - # yes, we're running LessTif - AC_MSG_RESULT(yes) - AC_MSG_WARN([LessTif header detected. - ***************************************************************** - * Warning: You are using LessTif instead of OpenMotif. * - * Some GUI elements might be broken; please see the file * - * * - * texk/xdvik/LESSTIF-BUGS * - * * - * for more information. * - *****************************************************************]) - ],[ - # no, not running LessTif - AC_MSG_RESULT([no]) - ]) -else - AC_MSG_RESULT([not found, using Xaw]) - prog_extension="xaw" - AC_DEFINE(XAW) - x_tool_libs="-lXaw" -fi - -# -AC_MSG_CHECKING(whether to compile in panner (requires Xaw)) -save_CPPFLAGS="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS $X_CFLAGS" -AC_TRY_COMPILE([ -#include <X11/X.h> -#include <X11/Xlib.h> -#include <X11/Xutil.h> -#include <X11/Xos.h> - -#include <X11/Xfuncs.h> -#include <X11/Intrinsic.h> - -#include <X11/Xaw/Reports.h> -],[ -], -xdvi_use_xaw_panner=yes, xdvi_use_xaw_panner=no -) -CPPFLAGS=$save_CPPFLAGS -if test $xdvi_use_xaw_panner = yes; then - AC_MSG_RESULT(yes) - AC_DEFINE([USE_XAW_PANNER], 1, [Define to use Xaw panner.]) -else - AC_MSG_RESULT(no) -fi -])dnl - -dnl SU: the following is copied from gnome/compiler-flags.m4: turn on warnings for gcc -dnl -dnl COMPILER_WARNINGS -dnl Turn on many useful compiler warnings -dnl For now, only works on GCC -AC_DEFUN([COMPILER_WARNINGS],[ - AC_ARG_ENABLE(compiler-warnings, - [ --enable-compiler-warnings=[no/minimum/yes/maximum] - Turn on compiler warnings],,enable_compiler_warnings=minimum) - - AC_MSG_CHECKING(what warning flags to pass to the C compiler) - warnCFLAGS= - if test "x$GCC" != xyes; then - enable_compiler_warnings=no - fi - - if test "x$enable_compiler_warnings" != "xno"; then - if test "x$GCC" = "xyes"; then - case " $CFLAGS " in - *[\ \ ]-Wall[\ \ ]*) ;; - *) warnCFLAGS="-W -Wall -Wunused" ;; - esac - - ## -W is not all that useful. And it cannot be controlled - ## with individual -Wno-xxx flags, unlike -Wall - if test "x$enable_compiler_warnings" = "xyes"; then - warnCFLAGS="$warnCFLAGS -pedantic -Wmissing-prototypes -Wmissing-declarations" - elif test "x$enable_compiler_warnings" = "xmaximum"; then - ## just turn on about everything: - warnCFLAGS="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wimplicit -Wparentheses -Wreturn-type -Wswitch -Wtrigraphs -Wunused -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings" - fi - fi - fi - AC_MSG_RESULT($warnCFLAGS) - - ### FIXME: if we restrict setting the flags to this case only, they will get overridden - ### somehwere else further up in the configure process. - if test "x$cflags_set" != "xyes"; then - XTRA_WARN_CFLAGS=$warnCFLAGS - AC_SUBST(XTRA_WARN_CFLAGS) -# CFLAGS="$CFLAGS $warnCFLAGS" - cflags_set=yes - AC_SUBST(cflags_set) - fi -]) - -dnl ### Check for Xaw version -AC_DEFUN([XDVI_OLD_XAW],[ -if test "${with_xdvi_x_toolkit}" = xaw; then - AC_MSG_CHECKING(for Xaw library) - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $X_CFLAGS" - AC_TRY_COMPILE([ -#include <X11/X.h> -#include <X11/Xlib.h> -#include <X11/Xutil.h> -#include <X11/Xos.h> - -#include <X11/Xfuncs.h> -#include <X11/Intrinsic.h> -#include <X11/Xaw/Form.h> - ],[ - ], - xdvi_have_xaw=yes, xdvi_have_xaw=no - ) - CPPFLAGS=$save_CPPFLAGS - if test $xdvi_have_xaw = yes; then - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(not found) - AC_MSG_ERROR([Sorry, you will need at least the Xaw header/library files to compile xdvik.]) - fi - - AC_MSG_CHECKING(version of Xaw library) - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $X_CFLAGS" - AC_TRY_COMPILE([ -#include <X11/IntrinsicP.h> -#include <X11/StringDefs.h> -#include <X11/Intrinsic.h> -#include <X11/StringDefs.h> -#include <X11/Xos.h> -#include <X11/Xaw/Text.h> -#include <X11/Xaw/AsciiText.h> -#include <X11/Xaw/ToggleP.h> - typedef void (*XawDiamondProc) (Widget); - - /* New fields for the Radio widget class record */ - typedef struct _RadioClass { - Dimension dsize; /* diamond size */ - XawDiamondProc drawDiamond; - /* pixmaps for the button */ - Pixmap sel_radio; /* selected state */ - Pixmap unsel_radio; /* unselected state */ - Pixmap sel_menu; /* selected state */ - Pixmap unsel_menu; /* unselected state */ - /* TODO: 3-d and xaw-xpm features? */ - XtPointer extension; - } RadioClassPart; - - /* Full class record declaration */ - typedef struct _RadioClassRec { - CoreClassPart core_class; - SimpleClassPart simple_class; - LabelClassPart label_class; - CommandClassPart command_class; - ToggleClassPart toggle_class; - RadioClassPart radio_class; - } RadioClassRec; - /* New fields for the Radio widget record */ - typedef struct { - /* resources */ - Boolean isRadio; /* radio if True, checkbox else */ - /* TODO: 3-d and xaw-xpm features? */ - - /* private data */ - XtPointer extension; - } RadioPart; - - /* Full widget declaration */ - typedef struct _RadioRec { - CorePart core; - SimplePart simple; -#ifdef _ThreeDP_h - ThreeDPart threeD; -#endif - LabelPart label; - CommandPart command; - TogglePart toggle; - RadioPart radio; - } RadioRec; - - - /* The actions table from Toggle is almost perfect, but we need - * to override Highlight, Set, and Unset. - */ - -#define SuperClass ((ToggleWidgetClass)&toggleClassRec) - -#define BOX_SIZE 16 -#define PIXMAP_OFFSET 2 /* additional space between pixmap and label */ - ],[ - RadioClassRec radioClassRec = { - { - (WidgetClass) SuperClass, /* superclass */ - "Radio", /* class_name */ - sizeof(RadioRec), /* size */ - NULL, /* class_initialize */ - NULL, /* class_part_initialize */ - FALSE, /* class_inited */ - NULL, /* initialize */ - NULL, /* initialize_hook */ - XtInheritRealize, /* realize */ - NULL, /* actions */ - 0, /* num_actions */ - NULL, /* resources */ - 0, /* resource_count */ - NULLQUARK, /* xrm_class */ - TRUE, /* compress_motion */ - TRUE, /* compress_exposure */ - TRUE, /* compress_enterleave */ - FALSE, /* visible_interest */ - NULL, /* destroy */ - NULL, /* resize */ - NULL, /* expose */ - NULL, /* set_values */ - NULL, /* set_values_hook */ - XtInheritSetValuesAlmost, /* set_values_almost */ - NULL, /* get_values_hook */ - NULL, /* accept_focus */ - XtVersion, /* version */ - NULL, /* callback_private */ - XtInheritTranslations, /* tm_table */ - NULL, /* query_geometry */ - XtInheritDisplayAccelerator, /* display_accelerator */ - NULL /* extension */ - }, /* CoreClass fields initialization */ - { - XtInheritChangeSensitive, /* change_sensitive */ - NULL - }, /* SimpleClass fields initialization */ - { - 0 /* field not used */ - }, /* LabelClass fields initialization */ - { - 0 /* field not used */ - }, /* CommandClass fields initialization */ - { - NULL, /* Set Procedure. */ - NULL, /* Unset Procedure. */ - NULL /* extension. */ - }, /* ToggleClass fields initialization */ - { - BOX_SIZE, - NULL, /* draw procedure */ - None, /* selected radiobutton */ - None, /* unselected radiobutton */ - None, /* selected menubutton */ - None, /* unselected menubutton */ - NULL /* extension. */ - } /* RadioClass fields initialization */ - }; - (void)radioClassRec; - ], - xdvi_old_xaw=no, xdvi_old_xaw=yes - ) - CPPFLAGS=$save_CPPFLAGS -if test $xdvi_old_xaw = yes; then - AC_MSG_RESULT(old) - AC_DEFINE([HAVE_OLD_XAW], 1, - [Define if you have an old version of the Xaw library]) -else - AC_MSG_RESULT(current) -fi -fi -]) diff --git a/Build/source/texk/xdvik/aclocal.m4-22.84.14 b/Build/source/texk/xdvik/aclocal.m4-22.84.14 deleted file mode 100644 index 82b6dbe8dde..00000000000 --- a/Build/source/texk/xdvik/aclocal.m4-22.84.14 +++ /dev/null @@ -1,1052 +0,0 @@ -dnl ### Check whether iconv takes a 'const char **' or a 'char **' input argument. -dnl ### According to IEEE 1003.1, `char **' is correct, but e.g. librecode -dnl ### uses `const char **'. -dnl ### We use C++'s built-in function overloading to distinguish between the two. -AC_DEFUN(XDVI_ICONV_CHAR_PPTR_TYPE, -[ -AC_LANG_SAVE AC_LANG_CPLUSPLUS -# AC_LANG_PUSH(C++) # in newer autoconf -# -xdvi_iconv_save_libs="$LIBS" -xdvi_iconv_save_cxxflags="$CXXFLAGS" -xdvi_iconv_save_ldflags="$LDFLAGS" -# -LIBS="$LIBS $iconv_libs" -CXXFLAGS="$CXXFLAGS $iconv_includes" -LDFLAGS="$LDFLAGS $iconv_libpath" -# -AC_MSG_CHECKING([for iconv input type]) -AC_CACHE_VAL(xdvi_iconv_char_pptr_type, -[AC_TRY_RUN( -[ -/* iconv() definitions may differ depending on following macros ... */ -#ifdef __hpux -/* On HP-UX 10.10 B and 20.10, compiling with _XOPEN_SOURCE + ..._EXTENDED - * leads to poll() not realizing that a file descriptor is writable in psgs.c. - */ -# define _HPUX_SOURCE 1 -#else -# ifndef _XOPEN_SOURCE -# define _XOPEN_SOURCE 600 -# endif -# define _XOPEN_SOURCE_EXTENDED 1 -# define __EXTENSIONS__ 1 /* needed to get struct timeval on SunOS 5.5 */ -# define _SVID_SOURCE 1 /* needed to get S_IFLNK in glibc */ -# define _BSD_SOURCE 1 /* needed to get F_SETOWN in glibc-2.1.3 */ -#endif - -#include <iconv.h> - - // Define two iconv_adapter() functions, one with a const char **, the other with - // a char ** argument. The compiler will figure out which one to use, and we can - // check the exit value to see which it was. - // Idea taken from http://gcc.gnu.org/ml/libstdc++/2000-11/msg00127.html - - typedef const char ** ConstCharPtrT; - typedef char ** CharPtrT; - - inline int - iconv_adapter(size_t(*iconv_func)(iconv_t, ConstCharPtrT, size_t *, char**, size_t*), - iconv_t cd, char **inbuf, size_t *inbytesleft, - char **outbuf, size_t *outbytesleft) - { - return 1; // 1 = false = const char ** - } - - - inline int - iconv_adapter(size_t(*iconv_func)(iconv_t, CharPtrT, size_t *, char**, size_t*), - iconv_t cd, char **inbuf, size_t *inbytesleft, - char **outbuf, size_t *outbytesleft) - { - return 0; // 0 = true = char ** - } - - - int main(void) - { - iconv_t testconv = (iconv_t)-1; - char *ptr1 = 0; - char *ptr2 = 0; - size_t len1 = 0; - size_t len2 = 0; - - return iconv_adapter(iconv, testconv, - (char**)&ptr1, &len1, - (char**)&ptr2, &len2); - } -], -xdvi_iconv_char_pptr_type="char_pptr", -xdvi_iconv_char_pptr_type="const_char_pptr", -# `correct' default for cross-compiling ... -xdvi_iconv_char_pptr_type="char_pptr")]) -# -LIBS="$xdvi_iconv_save_libs" -CXXFLAGS="$xdvi_iconv_save_cxxflags" -LDFLAGS="$xdvi_iconv_save_ldflags" -# -if test $xdvi_iconv_char_pptr_type = "const_char_pptr"; then - AC_DEFINE(ICONV_CHAR_PPTR_TYPE, const char **) - AC_MSG_RESULT([const char **]) -else - AC_DEFINE(ICONV_CHAR_PPTR_TYPE, char **) - AC_MSG_RESULT([char **]) -fi -AC_LANG_RESTORE] -#AC_LANG_POP(C++) # in newer autoconf -) - -dnl ### Check for whether setsid() is allowed within vfork() -dnl (Mac OS X 10.3 (Panther, 11/2003) is one O/S which does not allow this.) - -AC_DEFUN(XDVI_FUNC_SETSID_IN_VFORK, -[if test $ac_cv_func_vfork_works = yes; then -AC_CACHE_CHECK([for whether setsid() is allowed within vfork()], -xdvi_cv_setsid_in_vfork, -[AC_TRY_RUN( -[/* Test adapted from Gnu autoconf */ -/* Thanks to Paul Eggert for this test. */ -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif -#ifdef HAVE_VFORK_H -#include <vfork.h> -#endif -int -main() { - pid_t parent = getpid (); - pid_t child; - - child = vfork (); - - if (child == 0) { - if (setsid () == -1) - _exit(1); - _exit(0); - } else { - int status; - - while (wait(&status) != child) - ; - exit( - /* Was there some problem with vforking? */ - child < 0 - - /* Did the child fail? (This shouldn't happen.) */ - || status - ); - } -}], -xdvi_cv_setsid_in_vfork=yes, -xdvi_cv_setsid_in_vfork=no, -# safe value for cross-compiling -xdvi_cv_setsid_in_vfork=no)]) -if test $xdvi_cv_setsid_in_vfork = yes; then - AC_DEFINE(HAVE_GOOD_SETSID_VFORK) -fi] -fi) - -dnl ### Check if the --allow-multiple-definition linker flag is -dnl ### available (assuming that we need to use it if it is). -dnl ### If it isn't, check if the linker accepts multiple definitions, -dnl ### and if it doesn't, don't define LD_ALLOWS_MULTIPLE_DEFINITIONS. - -AC_DEFUN(XDVI_LINKER_MULTIPLE_DEFNS, -[AC_CACHE_CHECK([whether linker supports the --allow-multiple-definition flag], -xdvi_linker_multiple_defns, -xdvi_save_LDFLAGS="$LDFLAGS" -LDFLAGS="-Xlinker --allow-multiple-definition" -x_linker_options="" -[AC_TRY_LINK( - [#include <stdio.h> - ], - [void foo(void); - ], - xdvi_linker_multiple_defns=yes, xdvi_linker_multiple_defns=no -)] -) -if test $xdvi_linker_multiple_defns = yes; then - x_linker_options="-Xlinker --allow-multiple-definition" - LDFLAGS="$xdvi_save_LDFLAGS" - AC_DEFINE(LD_ALLOWS_MULTIPLE_DEFINITIONS) -else - LDFLAGS="$xdvi_save_LDFLAGS" - - xdvi_ld_save_LIBS="$LIBS" - xdvi_ld_save_CFLAGS="$CFLAGS" - xdvi_ld_save_CPPFLAGS="$CPPFLAGS" - xdvi_ld_save_LDFLAGS="$LDFLAGS" - - LIBS="$X_PRE_LIBS -lXt -lX11 $X_EXTRA_LIBS $LIBS" - CFLAGS="$X_CFLAGS $CFLAGS" - CPPFLAGS="$X_CFLAGS $CPPFLAGS" - LDFLAGS="$X_LIBS $LDFLAGS" - - AC_MSG_CHECKING([whether linker supports multiple definitions by default]) - - AC_TRY_LINK( - [#include <X11/Intrinsic.h> - - XtIntervalId XtAppAddTimeOut(XtAppContext app, - unsigned long interval, - XtTimerCallbackProc proc, - XtPointer closure) - { - (void)app; (void)interval; (void)proc; (void)closure; - return (XtIntervalId)0; - } - ],[ - XtIntervalId i = 0; - XtRemoveTimeOut(i); - ], - xdvi_linker_multiple_defns=yes, xdvi_linker_multiple_defns=no - ) - - if test $xdvi_linker_multiple_defns = yes; then - AC_MSG_RESULT(yes) - AC_DEFINE(LD_ALLOWS_MULTIPLE_DEFINITIONS) - else - AC_MSG_RESULT(no) - AC_MSG_WARN([Linker does not allow multiple definitions. - ***************************************************************** - * Warning: Your linker does not allow multiple definitions. * - * This does not make xdvik unusable, but it will cause problems * - * with event handling: Some widgets, e.g. the print log window, * - * tooltips, statusline messages and hyperlink location markers * - * will not be updated until the mouse is moved. * - *****************************************************************]) - fi - LIBS="$xdvi_ld_save_LIBS" - CFLAGS="$xdvi_ld_save_CFLAGS" - CPPFLAGS="$xdvi_ld_save_CPPFLAGS" - LDFLAGS="$xdvi_ld_save_LDFLAGS" -fi -AC_SUBST(x_linker_options)]) - - -dnl ### Determine integer type to use for bitmaps - -AC_DEFUN(XDVI_C_BITMAP_TYPE, -[AC_MSG_CHECKING(for integer type to use in bitmaps) -AC_CACHE_VAL(xdvi_cv_bitmap_type, -[AC_TRY_RUN( -[#include <stdio.h> -main() -{ - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - if ((sizeof(unsigned long) == 4 || sizeof(unsigned long) == 2) - && sizeof(unsigned long) != sizeof(unsigned int)) - fprintf(f, "BMTYPE=long BMBYTES=%d\n", sizeof(unsigned long)); - if (sizeof(unsigned int) == 4 || sizeof(unsigned int) == 2) - fprintf(f, "BMTYPE=int BMBYTES=%d\n", sizeof(unsigned int)); - else if (sizeof(unsigned short) == 4 || sizeof(unsigned short) == 2) - fprintf(f, "BMTYPE=short BMBYTES=%d\n", sizeof(unsigned short)); - else fprintf(f, "BMTYPE=char BMBYTES=%d\n", sizeof(unsigned char)); - exit(0); -}], -xdvi_cv_bitmap_type="`cat conftestval`", -AC_MSG_ERROR(could not determine integer type for bitmap))]) -eval "$xdvi_cv_bitmap_type" -AC_DEFINE_UNQUOTED(BMTYPE, $BMTYPE) -AC_DEFINE_UNQUOTED(BMBYTES, $BMBYTES) -AC_MSG_RESULT([unsigned $BMTYPE, size = $BMBYTES])]) - - -dnl ### Check for whether the C compiler does string concatenation - -AC_DEFUN(XDVI_CC_CONCAT, -[AC_CACHE_CHECK([whether C compiler supports string concatenation], xdvi_cc_concat, -[AC_TRY_COMPILE( -[#include <stdio.h> -], [puts("Testing" " string" " concatenation"); -], xdvi_cc_concat=yes, xdvi_cc_concat=no)]) -if test $xdvi_cc_concat = yes; then - AC_DEFINE(HAVE_CC_CONCAT) -fi]) - - -dnl ### Check for at-least-pretend Streams capability - -AC_DEFUN(XDVI_SYS_STREAMS, -[AC_CACHE_CHECK([for stropts.h and isastream()], xdvi_cv_sys_streams, -[AC_TRY_LINK( -[#include <stropts.h> -], [#ifndef I_SETSIG -choke me -#else -isastream(0); -#endif], xdvi_cv_sys_streams=yes, xdvi_cv_sys_streams=no)]) -if test $xdvi_cv_sys_streams = yes; then - AC_DEFINE(HAVE_STREAMS) -fi]) - - -dnl ### Check for poll() - -AC_DEFUN(XDVI_FUNC_POLL, -[AC_CACHE_CHECK([for poll.h and poll()], xdvi_cv_func_poll, -[AC_TRY_LINK( -[#include <poll.h> -], [poll((struct pollfd *) 0, 0, 0);], -xdvi_cv_func_poll=yes, xdvi_cv_func_poll=no)]) -if test $xdvi_cv_func_poll = yes; then - AC_DEFINE(HAVE_POLL) -else - AC_CHECK_HEADERS(sys/select.h select.h) -fi]) - - -dnl ### Check for SunOS 4 - -AC_DEFUN(XDVI_SYS_SUNOS_4, -[AC_CACHE_CHECK([for SunOS 4], xdvi_cv_sys_sunos_4, -[case "`(uname -sr) 2>/dev/null`" in -"SunOS 4."*) - xdvi_cv_sys_sunos_4=yes ;; -*) xdvi_cv_sys_sunos_4=no ;; -esac]) -if test $xdvi_cv_sys_sunos_4 = yes; then - AC_DEFINE(SUNOS4) -fi]) - -dnl ### Check for certain broken versions of Linux - -AC_DEFUN(XDVI_SYS_OLD_LINUX, -[AC_CACHE_CHECK([for certain old versions of Linux], xdvi_cv_sys_old_linux, -[case "`(uname -sr) 2>/dev/null`" in -"Linux 2."[[01]].* | "Linux 2.2."[[0-8]] | "Linux 2.2."[[0-8]]-*) - xdvi_cv_sys_old_linux=yes ;; -*) xdvi_cv_sys_old_linux=no ;; -esac]) -if test $xdvi_cv_sys_old_linux = yes; then - AC_DEFINE(FLAKY_SIGPOLL) -fi]) - -dnl ### Process a string argument - -dnl XDVI_ARG_STRING(PACKAGE, HELP-STRING, VARIABLE, DEFAULT_VALUE) -AC_DEFUN(XDVI_ARG_STRING, -[AC_ARG_WITH($1, [$2], [AC_DEFINE_UNQUOTED($3, "$withval") -], [AC_DEFINE($3, [$4]) -])]) - - -dnl dnl ### Check for vsnprintf() added by SU 2000/03/07 -dnl AC_DEFUN(AC_FUNC_VSNPRINTF, -dnl [AC_CACHE_CHECK([for vsnprintf], xdvi_cv_vsnprintf, -dnl [AC_TRY_LINK( -dnl [#include <stdio.h> -dnl ], [(void)vsnprintf((char *)NULL, 0, (char *)NULL, NULL);], -dnl xdvi_cv_vsnprintf=yes, xdvi_cv_vsnprintf=no)]) -dnl if test $xdvi_cv_vsnprintf = yes; then -dnl AC_DEFINE(HAVE_VSNPRINTF) -dnl fi]) - -dnl ### Check for a working implementation of (v)snprintf() -dnl ### which should either return a negative result or the size actually needed -dnl ### (latter is C99 standard). -AC_DEFUN(XDVI_FUNC_WORKING_VSNPRINTF, -[AC_CACHE_CHECK([for a working implementation of (v)snprintf()], -xdvi_cv_func_good_vsnprintf, -[AC_TRY_RUN( -[ -#ifdef IRIX -#define _XOPEN_SOURCE 500 -#endif -#include <stdio.h> -int main() -{ - char s[2]; - int retval = snprintf(s, 2, "test"); - if (retval > -1 && retval != 4) /* neither negative nor desired size, not OK */ - return 1; - return 0; -}], -xdvi_cv_func_good_vsnprintf=yes, -xdvi_cv_func_good_vsnprintf=no, -# safe value for cross-compiling -xdvi_cv_func_good_vsnprintf=no)]) -if test $xdvi_cv_func_good_vsnprintf = yes; then - AC_DEFINE(HAVE_GOOD_VSNPRINTF) -fi]) - -dnl ### Check for memicmp(), which some installations have in string.h -AC_DEFUN(AC_FUNC_MEMICMP, -[AC_CACHE_CHECK([for memicmp], xdvi_cv_memicmp, -[AC_TRY_LINK( -[#include <string.h> -], [(void)memicmp((char *)NULL, (char *)NULL, 0);], -xdvi_cv_memicmp=yes, xdvi_cv_memicmp=no)]) -if test $xdvi_cv_memicmp = yes; then - AC_DEFINE(HAVE_MEMICMP) -fi]) - -dnl dnl ### Check for realpath() added by SU 2002/04/10 -dnl AC_DEFUN(AC_FUNC_REALPATH, -dnl [AC_CACHE_CHECK([for realpath], xdvi_cv_realpath, -dnl [AC_TRY_LINK( -dnl [#include <stdlib.h> -dnl ], [(void)realpath((const char *)NULL, NULL);], -dnl xdvi_cv_realpath=yes, xdvi_cv_realpath=no)]) -dnl if test $xdvi_cv_realpath = yes; then -dnl AC_DEFINE(HAVE_REALPATH) -dnl fi]) - - -dnl ### for Xpm libraries and headers. -dnl Put Xpm include directory in xpm_includes, -dnl put Xpm library directory in xpm_libraries, -dnl and add appropriate flags to X_CFLAGS and X_LIBS. -dnl -AC_DEFUN(XDVI_FIND_XPM, -[ -AC_REQUIRE([AC_PATH_XTRA]) -xpm_includes= -xpm_libraries= -AC_ARG_WITH(xpm, -[ --without-xpm Do not use the Xpm library (will disable the toolbar)]) -dnl Treat --without-xpm like -dnl --without-xpm-includes --without-xpm-libraries. -if test "$with_xpm" = "no" -then -xpm_includes=no -xpm_libraries=no -fi -AC_ARG_WITH(xpm-includes, -[ --with-xpm-include=DIR - Specify the location of Xpm include files], -xpm_includes="$withval") -AC_ARG_WITH(xpm-libraries, -[ --with-xpm-libdir=DIR - Specify the location of Xpm libraries], -xpm_libraries="$withval") -AC_MSG_CHECKING(for Xpm) -# -# -# Search the include files. XPM can either be in <X11/xpm.h> (as in X11R6), -# which is dealt with by AC_CHECK_HEADERS(X11/xpm.h), or in <xpm.h> if installed locally; -# this is what this test is for. -# -if test "$xpm_includes" = ""; then -AC_CACHE_VAL(xdvi_cv_xpm_includes, -[ -xdvi_xpm_save_LIBS="$LIBS" -xdvi_xpm_save_CFLAGS="$CFLAGS" -xdvi_xpm_save_CPPFLAGS="$CPPFLAGS" -xdvi_xpm_save_LDFLAGS="$LDFLAGS" -# -LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS" -CFLAGS="$X_CFLAGS $CFLAGS" -CPPFLAGS="$X_CFLAGS $CPPFLAGS" -LDFLAGS="$X_LIBS $LDFLAGS" -# -AC_TRY_COMPILE([ -#include <X11/xpm.h> -],[int a;], -[ -# X11/xpm.h is in the standard search path. -xdvi_cv_xpm_includes="default" -], -[ -# X11/xpm.h is not in the standard search path. -# Locate it and put its directory in `xpm_includes' -# -# /usr/include/Motif* are used on HP-UX (Motif). -# /usr/include/X11* are used on HP-UX (X and Xaw). -# /usr/dt is used on Solaris (Motif). -# /usr/openwin is used on Solaris (X and Xaw). -# Other directories are just guesses. -for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ - /usr/X11/include /usr/X11R5/include /usr/X11R6/include \ - /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ - /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ - /usr/dt/include /usr/openwin/include \ - /usr/dt/*/include /opt/*/include /usr/include/Motif* \ - "${prefix}"/*/include /usr/*/include /usr/local/*/include \ - "${prefix}"/include/* /usr/include/* /usr/local/include/* -do - if test -f "$dir/X11/xpm.h"; then - xdvi_cv_xpm_includes="$dir" - AC_DEFINE(HAVE_X11_XPM_H, 1) - break - elif test -f "$dir/xpm.h"; then - xdvi_cv_xpm_includes="$dir" - AC_DEFINE(HAVE_XPM_H, 1) - break - fi -done -]) -# -LIBS="$xdvi_xpm_save_LIBS" -CFLAGS="$xdvi_xpm_save_CFLAGS" -CPPFLAGS="$xdvi_xpm_save_CPPFLAGS" -LDFLAGS="$xdvi_xpm_save_LDFLAGS" -]) -xpm_includes="$xdvi_cv_xpm_includes" -fi - -# -# -# Now for the libraries. -# -if test "$xpm_libraries" = ""; then -AC_CACHE_VAL(xdvi_cv_xpm_libraries, -[ -xdvi_xpm_save_LIBS="$LIBS" -xdvi_xpm_save_CFLAGS="$CFLAGS" -xdvi_xpm_save_CPPFLAGS="$CPPFLAGS" -xdvi_xpm_save_LDFLAGS="$LDFLAGS" -# -LIBS="$X_PRE_LIBS -lXpm -lXt -lX11 $X_EXTRA_LIBS $LIBS" -CFLAGS="$X_CFLAGS $CFLAGS" -CPPFLAGS="$X_CFLAGS $CPPFLAGS" -LDFLAGS="$X_LIBS $LDFLAGS" -xdvi_cv_xpm_libraries= -# -# -# We use XtToolkitInitialize() here since it takes no arguments -# and thus also works with a C++ compiler. -AC_TRY_LINK([ -#include <X11/Intrinsic.h> -#include <X11/xpm.h> -],[XtToolkitInitialize();], -[ -# libxpm.a is in the standard search path. -xdvi_cv_xpm_libraries="default" -], -[ -# libXpm.a is not in the standard search path. -# Locate it and put its directory in `xpm_libraries' -# -# -# /usr/lib/Motif* are used on HP-UX (Motif). -# /usr/lib/X11* are used on HP-UX (X and Xpm). -# /usr/dt is used on Solaris (Motif). -# /usr/openwin is used on Solaris (X and Xpm). -# Other directories are just guesses. -for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ - /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \ - /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \ - /usr/dt/lib /usr/openwin/lib \ - /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ - "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ - "${prefix}"/lib/* /usr/lib/* /usr/local/lib/* -do - if test -d "$dir" && test "`ls $dir/libXpm.* 2> /dev/null`" != ""; then - xdvi_cv_xpm_libraries="$dir" - break - fi -done -]) -# -LIBS="$xdvi_xpm_save_LIBS" -CFLAGS="$xdvi_xpm_save_CFLAGS" -CPPFLAGS="$xdvi_xpm_save_CPPFLAGS" -LDFLAGS="$xdvi_xpm_save_LDFLAGS" -]) -# -xpm_libraries="$xdvi_cv_xpm_libraries" -fi -# -# Add Xpm definitions to X flags -# -if test "x$xpm_includes" != "xdefault" && test "$xpm_includes" != "" \ - && test "$xpm_includes" != "$x_includes" && test "$xpm_includes" != "no" -then - X_CFLAGS="-I$xpm_includes $X_CFLAGS" -fi - -if test "x$xpm_libraries" != "xdefault" && test "$xpm_libraries" != "" \ - && test "$xpm_libraries" != "$x_libraries" && test "$xpm_libraries" != "no" -then -case "$X_LIBS" in - *-R\ *) X_LIBS="-L$xpm_libraries -R $xpm_libraries $X_LIBS";; - *-R*) X_LIBS="-L$xpm_libraries -R$xpm_libraries $X_LIBS";; - *) X_LIBS="-L$xpm_libraries $X_LIBS";; -esac -fi - -# -# -x_xpm_libs="-lXpm" -# -# Now check the results of headers and libraries and set USE_XPM to 0 -# if one of them hadn't been found. -# -AC_DEFINE(USE_XPM, 1) -xpm_libraries_result="$xpm_libraries" -xpm_includes_result="$xpm_includes" -if test "x$xpm_libraries_result" = "xdefault" ; then - xpm_libraries_result="in default path" -elif test "$xpm_libraries_result" = no || test "x$xpm_libraries_result" = "x"; then - xpm_libraries_result="(none)" - AC_DEFINE(USE_XPM, 0) - x_xpm_libs="" -fi - -if test "x$xpm_includes_result" = "xdefault"; then - xpm_includes_result="in default path" -elif test "$xpm_includes_result" = no || test "x$xpm_includes_result" = "x"; then - AC_DEFINE(USE_XPM, 0) - xpm_includes_result="(none)" -fi - -AC_SUBST(x_xpm_libs) -AC_MSG_RESULT( - [libraries $xpm_libraries_result, headers $xpm_includes_result]) -])dnl - - - -dnl ### Check for Motif libraries and headers -dnl Put Motif include directory in motif_include, -dnl put Motif library directory in motif_libdir, -dnl and add appropriate flags to X_CFLAGS and X_LIBS. -dnl If $1 is not `none', use Xaw as default toolkit if Motif isn't found. -AC_DEFUN(XDVI_FIND_MOTIF, -[ -default_toolkit="$1" -motif_include="$2" -motif_libdir="$3" -AC_REQUIRE([AC_PATH_XTRA]) -AC_MSG_CHECKING(for Motif) -# -# -# Search the include files. -# -if test "$motif_include" = ""; then -AC_CACHE_VAL(xdvi_cv_motif_include, -[ -xdvi_motif_save_LIBS="$LIBS" -xdvi_motif_save_CFLAGS="$CFLAGS" -xdvi_motif_save_CPPFLAGS="$CPPFLAGS" -xdvi_motif_save_LDFLAGS="$LDFLAGS" -# -LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" -CFLAGS="$X_CFLAGS $CFLAGS" -CPPFLAGS="$X_CFLAGS $CPPFLAGS" -LDFLAGS="$X_LIBS $LDFLAGS" -# -AC_TRY_COMPILE([#include <Xm/Xm.h>],[int a;], -[ -# Xm/Xm.h is in the standard search path. -xdvi_cv_motif_include= -], -[ -# Xm/Xm.h is not in the standard search path. -# Locate it and put its directory in `motif_include' -# -# /usr/include/Motif* are used on HP-UX (Motif). -# /usr/include/X11* are used on HP-UX (X and Athena). -# /usr/dt is used on Solaris (Motif). -# /usr/openwin is used on Solaris (X and Athena). -# Other directories are just guesses. -for dir in "$x_includes" "${prefix}/include" /usr/include /usr/local/include \ - /usr/include/Motif2.0 /usr/include/Motif1.2 /usr/include/Motif1.1 \ - /usr/include/X11R6 /usr/include/X11R5 /usr/include/X11R4 \ - /usr/dt/include /usr/openwin/include \ - /usr/dt/*/include /opt/*/include /usr/include/Motif* \ - "${prefix}"/*/include /usr/*/include /usr/local/*/include \ - "${prefix}"/include/* /usr/include/* /usr/local/include/*; do - if test -f "$dir/Xm/Xm.h"; then - xdvi_cv_motif_include="$dir" - break - fi -done -if test "$xdvi_cv_motif_include" = ""; then -xdvi_cv_motif_include=no -fi -]) -# -LIBS="$xdvi_motif_save_LIBS" -CFLAGS="$xdvi_motif_save_CFLAGS" -CPPFLAGS="$xdvi_motif_save_CPPFLAGS" -LDFLAGS="$xdvi_motif_save_LDFLAGS" -]) -motif_include="$xdvi_cv_motif_include" -fi -# -# -# Now for the libraries. -# -if test "$motif_libdir" = ""; then -AC_CACHE_VAL(xdvi_cv_motif_libdir, -[ -xdvi_motif_save_LIBS="$LIBS" -xdvi_motif_save_CFLAGS="$CFLAGS" -xdvi_motif_save_CPPFLAGS="$CPPFLAGS" -xdvi_motif_save_LDFLAGS="$LDFLAGS" -# -LIBS="$X_PRE_LIBS -lXm -lXt -lX11 $X_EXTRA_LIBS $LIBS" -CFLAGS="$X_CFLAGS $CFLAGS" -CPPFLAGS="$X_CFLAGS $CPPFLAGS" -LDFLAGS="$X_LIBS $LDFLAGS" -# -# We use XtToolkitInitialize() here since it takes no arguments -# and thus also works with a C++ compiler. -AC_TRY_LINK( -[#include <X11/Intrinsic.h> -#include <Xm/Xm.h> -],[XtToolkitInitialize();], -[ -# libXm.a is in the standard search path. -xdvi_cv_motif_libdir= -], -[ -# libXm.a is not in the standard search path. -# Locate it and put its directory in `motif_libdir' -# -# /usr/lib/Motif* are used on HP-UX (Motif). -# /usr/lib/X11* are used on HP-UX (X and Athena). -# /usr/dt is used on Solaris (Motif). -# /usr/lesstif is used on Linux (Lesstif). -# /usr/openwin is used on Solaris (X and Athena). -# Other directories are just guesses. -for dir in "$x_libraries" "${prefix}/lib" /usr/lib /usr/local/lib \ - /usr/lib/Motif2.0 /usr/lib/Motif1.2 /usr/lib/Motif1.1 \ - /usr/lib/X11R6 /usr/lib/X11R5 /usr/lib/X11R4 /usr/lib/X11 \ - /usr/dt/lib /usr/openwin/lib \ - /usr/dt/*/lib /opt/*/lib /usr/lib/Motif* \ - /usr/lesstif*/lib /usr/lib/Lesstif* \ - "${prefix}"/*/lib /usr/*/lib /usr/local/*/lib \ - "${prefix}"/lib/* /usr/lib/* /usr/local/lib/*; do - if test -d "$dir" && test "`ls $dir/libXm.* 2> /dev/null`" != ""; then - xdvi_cv_motif_libdir="$dir" - break - fi -done -if test "$xdvi_cv_motif_libdir" = ""; then -xdvi_cv_motif_libdir=no -fi -]) -# -LIBS="$xdvi_motif_save_LIBS" -CFLAGS="$xdvi_motif_save_CFLAGS" -CPPFLAGS="$xdvi_motif_save_CPPFLAGS" -LDFLAGS="$xdvi_motif_save_LDFLAGS" -]) -# -motif_libdir="$xdvi_cv_motif_libdir" -fi -# Add Motif definitions to X flags -# -if test "$motif_include" != "" && test "$motif_include" != "$x_includes" && test "$motif_include" != "no" -then -X_CFLAGS="-I$motif_include $X_CFLAGS" -fi -if test "$motif_libdir" != "" && test "$motif_libdir" != "$x_libraries" && test "$motif_libdir" != "no" -then -case "$X_LIBS" in - *-R\ *) X_LIBS="-L$motif_libdir -R $motif_libdir $X_LIBS";; - *-R*) X_LIBS="-L$motif_libdir -R$motif_libdir $X_LIBS";; - *) X_LIBS="-L$motif_libdir $X_LIBS";; -esac -fi -# -# -motif_libdir_result="$motif_libdir" -motif_include_result="$motif_include" -test "$motif_libdir_result" = "" && - motif_libdir_result="in default path" && AC_DEFINE(MOTIF, 1) -test "$motif_include_result" = "" && - motif_include_result="in default path" && AC_DEFINE(MOTIF, 1) -if test "$motif_libdir_result" = "no"; then - if test "$default_toolkit" = "none"; then - motif_libdir_result="(none)" - else - motif_libdir_result="" - fi -fi -if test "$motif_include_result" = "no"; then - if test "$default_toolkit" = "none"; then - motif_include_result="(none)" - else - motif_include_result="" - fi -fi - -if test "$motif_include_result" != "" && test "$motif_libdir_result" != ""; then - AC_MSG_RESULT([libraries $motif_libdir_result, headers $motif_include_result]) - prog_extension="motif" - AC_DEFINE(MOTIF) - x_tool_libs="-lXm" - # now warn if we're using LessTif (see LESSTIF-BUGS for why ...) - AC_MSG_CHECKING(for LessTif) - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $X_CFLAGS" - AC_TRY_COMPILE([ - #include <X11/X.h> - #include <X11/Xlib.h> - #include <X11/Xutil.h> - #include <X11/Xos.h> - #include <X11/Intrinsic.h> - #include <Xm/Xm.h>],[const char *p = LesstifVERSION_STRING; - ],[ - # yes, we're running LessTif - AC_MSG_RESULT(yes) - AC_MSG_WARN([LessTif header detected. - ***************************************************************** - * Warning: You are using LessTif instead of OpenMotif. * - * Some GUI elements might be broken; please see the file * - * * - * texk/xdvik/LESSTIF-BUGS * - * * - * for more information. * - *****************************************************************]) - ],[ - # no, not running LessTif - AC_MSG_RESULT([no]) - ]) -else - AC_MSG_RESULT([not found, using Xaw]) - prog_extension="xaw" - AC_DEFINE(XAW) - x_tool_libs="-lXaw" -fi - -# -AC_MSG_CHECKING(whether to compile in panner (requires Xaw)) -save_CPPFLAGS="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS $X_CFLAGS" -AC_TRY_COMPILE([ -#include <X11/X.h> -#include <X11/Xlib.h> -#include <X11/Xutil.h> -#include <X11/Xos.h> - -#include <X11/Xfuncs.h> -#include <X11/Intrinsic.h> - -#include <X11/Xaw/Reports.h> -],[ -], -xdvi_use_xaw_panner=yes, xdvi_use_xaw_panner=no -) -CPPFLAGS=$save_CPPFLAGS -if test $xdvi_use_xaw_panner = yes; then - AC_MSG_RESULT(yes) - AC_DEFINE(USE_XAW_PANNER) -else - AC_MSG_RESULT(no) -fi -])dnl - -dnl SU: the following is copied from gnome/compiler-flags.m4: turn on warnings for gcc -dnl -dnl COMPILER_WARNINGS -dnl Turn on many useful compiler warnings -dnl For now, only works on GCC -AC_DEFUN([COMPILER_WARNINGS],[ - AC_ARG_ENABLE(compiler-warnings, - [ --enable-compiler-warnings=[no/minimum/yes/maximum] - Turn on compiler warnings],,enable_compiler_warnings=minimum) - - AC_MSG_CHECKING(what warning flags to pass to the C compiler) - warnCFLAGS= - if test "x$GCC" != xyes; then - enable_compiler_warnings=no - fi - - if test "x$enable_compiler_warnings" != "xno"; then - if test "x$GCC" = "xyes"; then - case " $CFLAGS " in - *[\ \ ]-Wall[\ \ ]*) ;; - *) warnCFLAGS="-W -Wall -Wunused" ;; - esac - - ## -W is not all that useful. And it cannot be controlled - ## with individual -Wno-xxx flags, unlike -Wall - if test "x$enable_compiler_warnings" = "xyes"; then - warnCFLAGS="$warnCFLAGS -pedantic -Wmissing-prototypes -Wmissing-declarations" - elif test "x$enable_compiler_warnings" = "xmaximum"; then - ## just turn on about everything: - warnCFLAGS="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wimplicit -Wparentheses -Wreturn-type -Wswitch -Wtrigraphs -Wunused -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings" - fi - fi - fi - AC_MSG_RESULT($warnCFLAGS) - - ### FIXME: if we restrict setting the flags to this case only, they will get overridden - ### somehwere else further up in the configure process. - if test "x$cflags_set" != "xyes"; then - XTRA_WARN_CFLAGS=$warnCFLAGS - AC_SUBST(XTRA_WARN_CFLAGS) -# CFLAGS="$CFLAGS $warnCFLAGS" - cflags_set=yes - AC_SUBST(cflags_set) - fi -]) - -dnl ### Check for Xaw version -AC_DEFUN(XDVI_OLD_XAW,[ -if test "${with_xdvi_x_toolkit}" = xaw; then - AC_MSG_CHECKING(for Xaw library) - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $X_CFLAGS" - AC_TRY_COMPILE([ -#include <X11/X.h> -#include <X11/Xlib.h> -#include <X11/Xutil.h> -#include <X11/Xos.h> - -#include <X11/Xfuncs.h> -#include <X11/Intrinsic.h> -#include <X11/Xaw/Form.h> - ],[ - ], - xdvi_have_xaw=yes, xdvi_have_xaw=no - ) - CPPFLAGS=$save_CPPFLAGS - if test $xdvi_have_xaw = yes; then - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(not found) - AC_MSG_ERROR([Sorry, you will need at least the Xaw header/library files to compile xdvik.]) - fi - - AC_MSG_CHECKING(version of Xaw library) - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $X_CFLAGS" - AC_TRY_COMPILE([ -#include <X11/IntrinsicP.h> -#include <X11/StringDefs.h> -#include <X11/Intrinsic.h> -#include <X11/StringDefs.h> -#include <X11/Xos.h> -#include <X11/Xaw/Text.h> -#include <X11/Xaw/AsciiText.h> -#include <X11/Xaw/ToggleP.h> - typedef void (*XawDiamondProc) (Widget); - - /* New fields for the Radio widget class record */ - typedef struct _RadioClass { - Dimension dsize; /* diamond size */ - XawDiamondProc drawDiamond; - /* pixmaps for the button */ - Pixmap sel_radio; /* selected state */ - Pixmap unsel_radio; /* unselected state */ - Pixmap sel_menu; /* selected state */ - Pixmap unsel_menu; /* unselected state */ - /* TODO: 3-d and xaw-xpm features? */ - XtPointer extension; - } RadioClassPart; - - /* Full class record declaration */ - typedef struct _RadioClassRec { - CoreClassPart core_class; - SimpleClassPart simple_class; - LabelClassPart label_class; - CommandClassPart command_class; - ToggleClassPart toggle_class; - RadioClassPart radio_class; - } RadioClassRec; - /* New fields for the Radio widget record */ - typedef struct { - /* resources */ - Boolean isRadio; /* radio if True, checkbox else */ - /* TODO: 3-d and xaw-xpm features? */ - - /* private data */ - XtPointer extension; - } RadioPart; - - /* Full widget declaration */ - typedef struct _RadioRec { - CorePart core; - SimplePart simple; -#ifdef _ThreeDP_h - ThreeDPart threeD; -#endif - LabelPart label; - CommandPart command; - TogglePart toggle; - RadioPart radio; - } RadioRec; - - - /* The actions table from Toggle is almost perfect, but we need - * to override Highlight, Set, and Unset. - */ - -#define SuperClass ((ToggleWidgetClass)&toggleClassRec) - -#define BOX_SIZE 16 -#define PIXMAP_OFFSET 2 /* additional space between pixmap and label */ - ],[ - RadioClassRec radioClassRec = { - { - (WidgetClass) SuperClass, /* superclass */ - "Radio", /* class_name */ - sizeof(RadioRec), /* size */ - NULL, /* class_initialize */ - NULL, /* class_part_initialize */ - FALSE, /* class_inited */ - NULL, /* initialize */ - NULL, /* initialize_hook */ - XtInheritRealize, /* realize */ - NULL, /* actions */ - 0, /* num_actions */ - NULL, /* resources */ - 0, /* resource_count */ - NULLQUARK, /* xrm_class */ - TRUE, /* compress_motion */ - TRUE, /* compress_exposure */ - TRUE, /* compress_enterleave */ - FALSE, /* visible_interest */ - NULL, /* destroy */ - NULL, /* resize */ - NULL, /* expose */ - NULL, /* set_values */ - NULL, /* set_values_hook */ - XtInheritSetValuesAlmost, /* set_values_almost */ - NULL, /* get_values_hook */ - NULL, /* accept_focus */ - XtVersion, /* version */ - NULL, /* callback_private */ - XtInheritTranslations, /* tm_table */ - NULL, /* query_geometry */ - XtInheritDisplayAccelerator, /* display_accelerator */ - NULL /* extension */ - }, /* CoreClass fields initialization */ - { - XtInheritChangeSensitive, /* change_sensitive */ - NULL - }, /* SimpleClass fields initialization */ - { - 0 /* field not used */ - }, /* LabelClass fields initialization */ - { - 0 /* field not used */ - }, /* CommandClass fields initialization */ - { - NULL, /* Set Procedure. */ - NULL, /* Unset Procedure. */ - NULL /* extension. */ - }, /* ToggleClass fields initialization */ - { - BOX_SIZE, - NULL, /* draw procedure */ - None, /* selected radiobutton */ - None, /* unselected radiobutton */ - None, /* selected menubutton */ - None, /* unselected menubutton */ - NULL /* extension. */ - } /* RadioClass fields initialization */ - }; - (void)radioClassRec; - ], - xdvi_old_xaw=no, xdvi_old_xaw=yes - ) - CPPFLAGS=$save_CPPFLAGS -if test $xdvi_old_xaw = yes; then - AC_MSG_RESULT(old) - AC_DEFINE(HAVE_OLD_XAW) -else - AC_MSG_RESULT(current) -fi -fi -]) diff --git a/Build/source/texk/xdvik/aclocal.m4-22.84.15 b/Build/source/texk/xdvik/aclocal.m4-22.84.15 deleted file mode 100644 index dc4510bfb9c..00000000000 --- a/Build/source/texk/xdvik/aclocal.m4-22.84.15 +++ /dev/null @@ -1,18 +0,0 @@ -# generated automatically by aclocal 1.10.1 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -m4_include([../m4/kpse_cross.m4]) -m4_include([../m4/kpse_inc.m4]) -m4_include([../m4/kpse_maint.m4]) -m4_include([../m4/kpse_subdirs.m4]) -m4_include([acinclude.m4]) diff --git a/Build/source/texk/xdvik/configure.in-22.84.14 b/Build/source/texk/xdvik/configure.in-22.84.14 deleted file mode 100644 index 692422c9c74..00000000000 --- a/Build/source/texk/xdvik/configure.in-22.84.14 +++ /dev/null @@ -1,310 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -dnl e.g.: -dnl /usr/bin/autoconf --macrodir=../etc/autoconf configure.in > configure -dnl the macrodir argument is neccessary to make the non-standard `ac_include' -dnl extension (acsite.m4) available to autoconf. -AC_INIT(xdvi.c) -AC_PREREQ(2.13) - -AC_CONFIG_HEADER(c-auto.h:c-auto.in) -AC_PROG_CC -AC_PROG_INSTALL -AC_PROG_MAKE_SET -AC_PROG_LN_S -AC_PROG_RANLIB - -dnl allow for --program-suffix -AC_ARG_PROGRAM - -sinclude(../kpathsea/withenable.ac) -sinclude(../../withenable.ac) -sinclude(kpathsea.ac) - -if test "x$with_mktexpk_default" = "xno"; then - AC_MSG_WARN(Xdvik doesn't implement the --without-mktexpk-default option!) -fi - -if test "x$with_mktexmf_default" = "xno"; then - AC_MSG_WARN(Xdvik doesn't implement the --without-mktexmf-default option!) -fi - -if test "x$with_mktextfm_default" = "xno"; then - AC_MSG_WARN(Xdvik doesn't implement the --without-mktextfm-default option!) -fi - -if test "x$with_mkocp_default" = "xno"; then - AC_MSG_WARN(Xdvik doesn't implement the --without-mkocp-default option!) -fi - -if test "x$with_mkofm_default" = "xno"; then - AC_MSG_WARN(Xdvik doesn't implement the --without-mkofm-default option!) -fi - -AC_FUNC_VFORK -AC_FUNC_VPRINTF -dnl begin additions SU, 2000/03/07 -dnl AC_FUNC_VSNPRINTF -XDVI_FUNC_WORKING_VSNPRINTF -AC_FUNC_MEMICMP -dnl AC_FUNC_REALPATH -AC_FUNC_ALLOCA -AC_C_STRINGIZE -dnl end additions SU -AC_FUNC_MEMCMP -AC_HEADER_SYS_WAIT -AC_TYPE_SIGNAL -AC_C_BIGENDIAN -dnl Put here by Thomas Esser for teTeX. This causes some tests to be run -dnl twice by the kps version. -AC_PATH_XTRA -AC_TYPE_SIZE_T - -dnl XDVI checks by Paul Vojta -XDVI_FUNC_SETSID_IN_VFORK -XDVI_CC_CONCAT -XDVI_C_BITMAP_TYPE -XDVI_SYS_STREAMS -XDVI_SYS_SUNOS_4 -XDVI_SYS_OLD_LINUX -XDVI_FUNC_POLL - -dnl SU: added flags to turn on gcc warnings, taken from gnome/compiler-flags.m4 and put into aclocal.m4 -COMPILER_WARNINGS - -dnl SU: for `--allow-multiple-definition' linker flag on Cygwin -XDVI_LINKER_MULTIPLE_DEFNS - -AC_CHECK_HEADERS(stdint.h inttypes.h) -AC_CHECK_TYPE(uint32_t, unsigned long) - -dnl These were probably missing from the test-set? -dnl On the other hand, they are not used already, why start now? -janl -dnl AC_TYPE_OFF_T -dnl AC_HEADER_TIME - -AC_CHECK_FUNCS(mkstemp memcpy strerror waitpid sigaction strchr setenv ulltostr \ - fchdir getcwd getpwnam getuid getpwuid \ - iconv nl_langinfo \ - lstat ftruncate snprintf vsnprintf realpath) - -dnl <sys/bsdtypes.h> is for ISC 4.0, to define fd_set in psgs.c. -dnl regex.h is needed for regexp support in DVI search. -AC_CHECK_HEADERS(netdb.h sys/bsdtypes.h sys/param.h unistd.h sys/fcntl.h regex.h iconv.h langinfo.h) - -cppflags_save=$CPPFLAGS -CPPFLAGS="$CPPFLAGS $X_CFLAGS" -AC_CHECK_HEADERS(X11/Intrinsic.h X11/Xosdefs.h X11/xpm.h Xm/XpmP.h) -CPPFLAGS=$cppflags_save - -dnl For editres, we need to check both the header and define a linker option. -cppflags_save=$CPPFLAGS -CPPFLAGS="$CPPFLAGS $X_CFLAGS" -AC_CHECK_HEADERS(X11/Xmu/Editres.h X11/Xmu/Xmu.h, x_xmu_lib=-lXmu, x_xmu_lib=, -[[ -#ifdef HAVE_X11_INTRINSIC_H -# include <X11/Intrinsic.h> -#endif -]]) -AC_SUBST(x_xmu_lib) -CPPFLAGS=$cppflags_save - -dnl For the bitmap size. -- I think this is in XDVI_C_BITMAP_TYPE now -janl -dnl AC_CHECK_SIZEOF(long) - -sinclude(../kpathsea/xt.ac) -sinclude(withenable.ac) -sinclude(../../libs/t1lib/withenable.ac) -sinclude(../../libs/t1lib/t1lib.ac) - -dnl check for Xaw version -XDVI_OLD_XAW - -dnl nl_langinfo checks -AC_MSG_CHECKING(if nl_langinfo(CODESET) is working) -AC_TRY_LINK([#include <langinfo.h>], [char* cs = nl_langinfo(CODESET);], - AC_DEFINE(HAVE_WORKING_NL_LANGINFO_CODESET) AC_MSG_RESULT(yes), - AC_MSG_RESULT(no) -) - -dnl First, check for libXp and libXext: -if test -z "$x_ext_lib"; then # allow envvar override - if test -n "$x_libraries"; then - XLFLAG="-L$x_libraries" - else - XLFLAG= - fi - AC_CHECK_LIB(Xp, XpQueryVersion, - x_ext_lib="-lXp -lXext", :, -lXext -lX11 $X_EXTRA_LIBS $XLFLAG) -fi -dnl -dnl If libXp not found, try libXext only: -dnl -if test -z "$x_ext_lib"; then # previous test unsuccessful, or envvar override - if test -n "$x_libraries"; then - XLFLAG="-L$x_libraries" - else - XLFLAG= - fi - AC_CHECK_LIB(Xext, XextCreateExtension, - x_ext_lib=-lXext, :, -lX11 $X_EXTRA_LIBS $XLFLAG) -fi -AC_SUBST(x_ext_lib) - -dnl For --with-x-toolkit. Must be Xaw at least. If no --with-x-toolkit is given, -dnl we try to check if Motif is available, and if yes, use it; else, -dnl we use Xaw (--with-x-toolkit=xaw can be used to override this default). - -dnl Check whether -lXpm can be used -XDVI_FIND_XPM - -dnl Check which X toolkit to use -prog_extension="xaw" -motif_include= -motif_libdir= -AC_ARG_WITH(motif-include, -[ --with-motif-include=DIR - Specify the location of Motif include files], -motif_include="$withval") -AC_ARG_WITH(motif-libdir, -[ --with-motif-libdir=DIR - Specify the location of Motif libraries], -motif_libdir="$withval") - -if test "x$with_xdvi_x_toolkit" = xxaw3d; then - prog_extension="xaw3d" - x_tool_libs="-lXaw3d" -elif test "x$with_xdvi_x_toolkit" = xneXtaw; then - prog_extension="nextaw" - x_tool_libs="-lneXtaw" -elif test "x$with_xdvi_x_toolkit" = xmotif; then -dnl Motif with no fallback -dnl XDVI_FIND_MOTIF also defines $prog_extension, AC_DEFINE(toolkit) and $x_tool_libs - XDVI_FIND_MOTIF(none, "$motif_include", "$motif_libdir") -elif test "x$with_xdvi_x_toolkit" = xxaw; then - prog_extension="xaw" - AC_DEFINE(XAW) - x_tool_libs="-lXaw" -else -dnl Motif with xaw as fallback -dnl XDVI_FIND_MOTIF also defines $prog_extension, AC_DEFINE(toolkit) and $x_tool_libs - XDVI_FIND_MOTIF(Xaw, "$motif_include", "$motif_libdir") -fi -AC_SUBST(x_tool_libs) - -AC_ARG_WITH(iconv-libdir, -[ --with-iconv-libdir=DIR - Specify the location of iconv library (librecode.so)], -[if test XXX"$withval" != "XXX"; then - iconv_libpath="-L$withval" - iconv_libs="-lrecode" -else - iconv_libpath= - iconv_libs= -fi], [ -dnl On non-Linux systems, -liconv is needed. Check for both iconv_open and libiconv_open. -iconv_libpath= -iconv_libs= -AC_CHECK_LIB(iconv, iconv_open, iconv_libs=-liconv, - AC_CHECK_LIB(iconv, libiconv_open, iconv_libs=-liconv,iconv_libs=,) - ,) -]) -if test XXX"$iconv_libs" != "XXX"; then - AC_DEFINE(HAVE_ICONV) -fi -AC_SUBST(iconv_libpath) -AC_SUBST(iconv_libs) - -AC_ARG_WITH(iconv-include, -[ --with-iconv-include=DIR - Specify the location of iconv header (iconv.h)], -[if test XXX"$withval" != "XXX"; then - iconv_includes="-I$withval" -fi],[ -iconv_includes= -]) -AC_SUBST(iconv_includes) - -XDVI_ICONV_CHAR_PPTR_TYPE - -dnl We try to perform the $program_transform_name replacement already -dnl here, and AC_SUBST the final names into the Makefile; this makes -dnl the compilation commands more readable and causes less problems with -dnl backtick magic inside other commands. -dnl -dnl For some reason, the doubling of $$ and \\ must be reverted here: -my_program_transform_name=`echo $program_transform_name | sed 's,\\$\\$,$,g' | sed 's,\\\\\\\\,\\\\,g'` -exec_name="xdvi-$prog_extension" -final_exec_name=`echo $exec_name | sed "$my_program_transform_name"` -dnl OBSOLETE?? exec_link=`echo xdvi.bin | sed "$my_program_transform_name"` -wrapper_script=`echo xdvi | sed "$my_program_transform_name"` -AC_SUBST(exec_name) -AC_SUBST(final_exec_name) -AC_SUBST(exec_link) -AC_SUBST(wrapper_script) - -dnl -dnl Tests for different application setup features follow. -dnl - -dnl For --with-ps. -test -z "$PS_DEF" && PS_DEF=-DPS_GS -test "$PS_DEF" = no && PS_DEF= -AC_SUBST(PS_DEF)dnl -dnl -dnl If we're on Solaris and we want DPS, then add the extra compilation stuff -dnl to get it. -if echo "$PS_DEF" | grep PS_DPS >/dev/null; then - if test "`(uname) 2>/dev/null`" = SunOS \ - && uname -r | grep '^5' >/dev/null; then - AC_MSG_RESULT(adding DPS includes and libraries for Solaris) - X_CFLAGS="$X_CFLAGS -I/usr/openwin/include/X11" - AC_CHECK_LIB(sunmath, isinf, ac_sunmath=-lsunmath, ac_sunmath="") - X_LIBS="$X_LIBS -R/usr/openwin/lib /usr/openwin/lib/libdps.so $ac_sunmath" - dnl We only need isinf and ieeefp.h to work around a Solaris bug in - dnl -ldps; see psdps.c. isinf is in -lsunmath. - AC_CHECK_FUNCS(isinf) - AC_CHECK_HEADERS(ieeefp.h) - else - dnl SunOS 4.x is simpler. - AC_MSG_RESULT(adding DPS includes and libraries for SunOS 4.x) - X_LIBS="$X_LIBS -ldps" - fi -elif echo "$PS_DEF" | grep PS_NEWS >/dev/null; then - AC_MSG_RESULT(adding NeWS libraries) - X_LIBS="$X_LIBS -lxview -lcps -lolgx -lxvps" -fi - -XDVI_ARG_STRING(default-dvips-path, -[ --with-default-dvips-path=CMD - Use CMD as default DVI to PS converter], -DEFAULT_DVIPS_PATH, "dvips") - -XDVI_ARG_STRING(default-ps2pdf-path, -[ --with-default-ps2pdf-path=CMD - Use CMD as default PS to PDF converter], -DEFAULT_PS2PDF_PATH, "ps2pdf") - -dnl ImageMagick support -PS_DEF="$PS_DEF $MAGICK_DEF" -if echo "$PS_DEF" | grep MAGICK >/dev/null; then - AC_MSG_RESULT(adding ImageMagick libraries) - X_EXTRA_LIBS="$X_EXTRA_LIBS `Magick-config --libs`" -fi - -# needed for web2c later than 7.3.4: -AC_CHECK_LIB(m, main) -AC_C_CONST() - -# If you're cross-compiling, these macros set up the variables in -# ../make/cross.mk: BUILDCC, BUILDCFLAGS, BUILDCCLD etc. These are -# near the end so people have some chance of seeing them. -KPSE_CROSS_BUILD_VAR(CC, cc) -KPSE_CROSS_BUILD_VAR(CFLAGS, $(BUILDXCFLAGS)) -KPSE_CROSS_BUILD_VAR(CPPFLAGS, $(BUILDXCPPFLAGS)) -KPSE_CROSS_BUILD_VAR(LDFLAGS, $(BUILDXLDFLAGS)) -KPSE_CROSS_BUILD_VAR(CCLD, $(BUILDCC)) - -AC_OUTPUT(Makefile gui/Makefile tests/Makefile xdvi-sh) - -dnl update `stamp-auto' since we just remade `c-auto.h' -date >stamp-auto diff --git a/Build/source/texk/xdvik/configure.in-22.84.15 b/Build/source/texk/xdvik/configure.in-22.84.15 deleted file mode 100644 index 17c3d732bf6..00000000000 --- a/Build/source/texk/xdvik/configure.in-22.84.15 +++ /dev/null @@ -1,316 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -dnl e.g.: -dnl /usr/bin/autoconf -I../etc/autoconf configure.in > configure -dnl the -I argument is neccessary to make the non-standard `ac_include' -dnl extension (acsite.m4) available to autoconf. -AC_INIT(xdvi.c) -AC_PREREQ(2.59) - -AC_CONFIG_HEADER([c-auto.h:c-auto.in], [date >stamp-auto]) - -AC_PROG_CC -AC_PROG_INSTALL -AC_PROG_MAKE_SET -AC_PROG_LN_S -AC_PROG_RANLIB - -dnl allow for --program-suffix -AC_ARG_PROGRAM - -sinclude(../kpathsea/withenable.ac) -sinclude(../../withenable.ac) -sinclude(kpathsea.ac) - -if test "x$with_mktexpk_default" = "xno"; then - AC_MSG_WARN(Xdvik doesn't implement the --without-mktexpk-default option!) -fi - -if test "x$with_mktexmf_default" = "xno"; then - AC_MSG_WARN(Xdvik doesn't implement the --without-mktexmf-default option!) -fi - -if test "x$with_mktextfm_default" = "xno"; then - AC_MSG_WARN(Xdvik doesn't implement the --without-mktextfm-default option!) -fi - -if test "x$with_mkocp_default" = "xno"; then - AC_MSG_WARN(Xdvik doesn't implement the --without-mkocp-default option!) -fi - -if test "x$with_mkofm_default" = "xno"; then - AC_MSG_WARN(Xdvik doesn't implement the --without-mkofm-default option!) -fi - -AC_FUNC_VFORK -AC_FUNC_VPRINTF -dnl begin additions SU, 2000/03/07 -dnl AC_FUNC_VSNPRINTF -XDVI_FUNC_WORKING_VSNPRINTF -AC_FUNC_MEMICMP -dnl AC_FUNC_REALPATH -AC_FUNC_ALLOCA -AC_C_STRINGIZE -dnl end additions SU -AC_FUNC_MEMCMP -AC_HEADER_SYS_WAIT -AC_TYPE_SIGNAL -AC_C_BIGENDIAN -dnl Put here by Thomas Esser for teTeX. This causes some tests to be run -dnl twice by the kps version. -AC_PATH_XTRA -AC_TYPE_SIZE_T - -dnl XDVI checks by Paul Vojta -XDVI_FUNC_SETSID_IN_VFORK -XDVI_CC_CONCAT -XDVI_C_BITMAP_TYPE -XDVI_SYS_STREAMS -XDVI_SYS_SUNOS_4 -XDVI_SYS_OLD_LINUX -XDVI_FUNC_POLL - -dnl SU: added flags to turn on gcc warnings, taken from gnome/compiler-flags.m4 and put into aclocal.m4 -COMPILER_WARNINGS - -dnl SU: for `--allow-multiple-definition' linker flag on Cygwin -XDVI_LINKER_MULTIPLE_DEFNS - -AC_CHECK_HEADERS(stdint.h inttypes.h) -AC_CHECK_TYPE(uint32_t, unsigned long) -AC_CHECK_TYPE(ptrdiff_t, long) - - -dnl These were probably missing from the test-set? -dnl On the other hand, they are not used already, why start now? -janl -dnl AC_TYPE_OFF_T -dnl AC_HEADER_TIME - -AC_CHECK_FUNCS(mkstemp memcpy strerror waitpid sigaction strchr setenv ulltostr \ - fchdir getcwd getpwnam getuid getpwuid \ - iconv nl_langinfo \ - lstat ftruncate snprintf vsnprintf realpath) - -dnl <sys/bsdtypes.h> is for ISC 4.0, to define fd_set in psgs.c. -dnl regex.h is needed for regexp support in DVI search. -AC_CHECK_HEADERS(netdb.h sys/bsdtypes.h sys/param.h unistd.h sys/fcntl.h regex.h iconv.h langinfo.h) - -cppflags_save=$CPPFLAGS -CPPFLAGS="$CPPFLAGS $X_CFLAGS" -AC_CHECK_HEADERS(X11/Intrinsic.h X11/Xosdefs.h X11/xpm.h Xm/XpmP.h) -CPPFLAGS=$cppflags_save - -dnl For editres, we need to check both the header and define a linker option. -cppflags_save=$CPPFLAGS -CPPFLAGS="$CPPFLAGS $X_CFLAGS" -AC_CHECK_HEADERS(X11/Xmu/Editres.h X11/Xmu/Xmu.h, x_xmu_lib=-lXmu, x_xmu_lib=, -[ -#ifdef HAVE_X11_INTRINSIC_H -# include <X11/Intrinsic.h> -#endif -]) -AC_SUBST(x_xmu_lib) -CPPFLAGS=$cppflags_save - -dnl For the bitmap size. -- I think this is in XDVI_C_BITMAP_TYPE now -janl -dnl AC_CHECK_SIZEOF(long) - -sinclude(../kpathsea/xt.ac) -sinclude(withenable.ac) -sinclude(../../libs/t1lib/withenable.ac) -sinclude(../../libs/t1lib/t1lib.ac) - -dnl check for Xaw version -XDVI_OLD_XAW - -dnl nl_langinfo checks -AC_MSG_CHECKING(if nl_langinfo(CODESET) is working) -AC_TRY_LINK([#include <langinfo.h>], [char* cs = nl_langinfo(CODESET);], - [AC_DEFINE([HAVE_WORKING_NL_LANGINFO_CODESET], 1, - [Define if the CODESET argument to nl_langinfo works.]) - AC_MSG_RESULT(yes)], - [AC_MSG_RESULT(no)] -) - -dnl First, check for libXp and libXext: -if test -z "$x_ext_lib"; then # allow envvar override - if test -n "$x_libraries"; then - XLFLAG="-L$x_libraries" - else - XLFLAG= - fi - AC_CHECK_LIB(Xp, XpQueryVersion, - x_ext_lib="-lXp -lXext", :, -lXext -lX11 $X_EXTRA_LIBS $XLFLAG) -fi -dnl -dnl If libXp not found, try libXext only: -dnl -if test -z "$x_ext_lib"; then # previous test unsuccessful, or envvar override - if test -n "$x_libraries"; then - XLFLAG="-L$x_libraries" - else - XLFLAG= - fi - AC_CHECK_LIB(Xext, XextCreateExtension, - x_ext_lib=-lXext, :, -lX11 $X_EXTRA_LIBS $XLFLAG) -fi -AC_SUBST(x_ext_lib) - -dnl For --with-x-toolkit. Must be Xaw at least. If no --with-x-toolkit is given, -dnl we try to check if Motif is available, and if yes, use it; else, -dnl we use Xaw (--with-x-toolkit=xaw can be used to override this default). - -dnl Check whether -lXpm can be used -XDVI_FIND_XPM - -dnl Check which X toolkit to use -prog_extension="xaw" -motif_include= -motif_libdir= -AC_ARG_WITH([motif-include], -[ --with-motif-include=DIR - Specify the location of Motif include files], -[motif_include="$withval"]) -AC_ARG_WITH([motif-libdir], -[ --with-motif-libdir=DIR - Specify the location of Motif libraries], -[motif_libdir="$withval"]) - -if test "x$with_xdvi_x_toolkit" = xxaw3d; then - prog_extension="xaw3d" - x_tool_libs="-lXaw3d" -elif test "x$with_xdvi_x_toolkit" = xneXtaw; then - prog_extension="nextaw" - x_tool_libs="-lneXtaw" -elif test "x$with_xdvi_x_toolkit" = xmotif; then -dnl Motif with no fallback -dnl XDVI_FIND_MOTIF also defines $prog_extension, AC_DEFINE(toolkit) and $x_tool_libs - XDVI_FIND_MOTIF(none, "$motif_include", "$motif_libdir") -elif test "x$with_xdvi_x_toolkit" = xxaw; then - prog_extension="xaw" - AC_DEFINE([XAW], 1, [Define to use the Xaw toolkit.]) - x_tool_libs="-lXaw" -else -dnl Motif with xaw as fallback -dnl XDVI_FIND_MOTIF also defines $prog_extension, AC_DEFINE(toolkit) and $x_tool_libs - XDVI_FIND_MOTIF(Xaw, "$motif_include", "$motif_libdir") -fi -AC_SUBST(x_tool_libs) - -AC_ARG_WITH([iconv-libdir], -[ --with-iconv-libdir=DIR - Specify the location of iconv library (librecode.so)], -[if test XXX"$withval" != "XXX"; then - iconv_libpath="-L$withval" - iconv_libs="-lrecode" -else - iconv_libpath= - iconv_libs= -fi], [ -dnl On non-Linux systems, -liconv is needed. Check for both iconv_open and libiconv_open. -iconv_libpath= -iconv_libs= -AC_CHECK_LIB(iconv, iconv_open, iconv_libs=-liconv, - AC_CHECK_LIB(iconv, libiconv_open, iconv_libs=-liconv,iconv_libs=,) - ,) -]) -if test XXX"$iconv_libs" != "XXX"; then - AC_DEFINE(HAVE_ICONV) -fi -AC_SUBST(iconv_libpath) -AC_SUBST(iconv_libs) - -AC_ARG_WITH([iconv-include], -[ --with-iconv-include=DIR - Specify the location of iconv header (iconv.h)], -[if test XXX"$withval" != "XXX"; then - iconv_includes="-I$withval" -fi],[ -iconv_includes= -]) -AC_SUBST(iconv_includes) - -XDVI_ICONV_CHAR_PPTR_TYPE - -dnl We try to perform the $program_transform_name replacement already -dnl here, and AC_SUBST the final names into the Makefile; this makes -dnl the compilation commands more readable and causes less problems with -dnl backtick magic inside other commands. -dnl -dnl For some reason, the doubling of $$ and \\ must be reverted here: -my_program_transform_name=`echo $program_transform_name | sed 's,\\$\\$,$,g' | sed 's,\\\\\\\\,\\\\,g'` -exec_name="xdvi-$prog_extension" -final_exec_name=`echo $exec_name | sed "$my_program_transform_name"` -dnl OBSOLETE?? exec_link=`echo xdvi.bin | sed "$my_program_transform_name"` -wrapper_script=`echo xdvi | sed "$my_program_transform_name"` -AC_SUBST(exec_name) -AC_SUBST(final_exec_name) -dnl OBSOLETE?? AC_SUBST(exec_link) -AC_SUBST(wrapper_script) - -dnl -dnl Tests for different application setup features follow. -dnl - -dnl For --with-ps. -test -z "$PS_DEF" && PS_DEF=-DPS_GS -test "$PS_DEF" = no && PS_DEF= -AC_SUBST(PS_DEF)dnl -dnl -dnl If we're on Solaris and we want DPS, then add the extra compilation stuff -dnl to get it. -if echo "$PS_DEF" | grep PS_DPS >/dev/null; then - if test "`(uname) 2>/dev/null`" = SunOS \ - && uname -r | grep '^5' >/dev/null; then - AC_MSG_RESULT(adding DPS includes and libraries for Solaris) - X_CFLAGS="$X_CFLAGS -I/usr/openwin/include/X11" - AC_CHECK_LIB(sunmath, isinf, ac_sunmath=-lsunmath, ac_sunmath="") - X_LIBS="$X_LIBS -R/usr/openwin/lib /usr/openwin/lib/libdps.so $ac_sunmath" - dnl We only need isinf and ieeefp.h to work around a Solaris bug in - dnl -ldps; see psdps.c. isinf is in -lsunmath. - AC_CHECK_FUNCS(isinf) - AC_CHECK_HEADERS(ieeefp.h) - else - dnl SunOS 4.x is simpler. - AC_MSG_RESULT(adding DPS includes and libraries for SunOS 4.x) - X_LIBS="$X_LIBS -ldps" - fi -elif echo "$PS_DEF" | grep PS_NEWS >/dev/null; then - AC_MSG_RESULT(adding NeWS libraries) - X_LIBS="$X_LIBS -lxview -lcps -lolgx -lxvps" -fi - -XDVI_ARG_STRING([default-dvips-path], -[ --with-default-dvips-path=CMD - Use CMD as default DVI to PS converter], -[DEFAULT_DVIPS_PATH], ["dvips"], -[Define to point to the default command to use for printing (optional).]) - -XDVI_ARG_STRING([default-ps2pdf-path], -[ --with-default-ps2pdf-path=CMD - Use CMD as default PS to PDF converter], -[DEFAULT_PS2PDF_PATH], ["ps2pdf"], -[Define to point to the default command to use for printing (optional).]) - -dnl ImageMagick support -PS_DEF="$PS_DEF $MAGICK_DEF" -if echo "$PS_DEF" | grep MAGICK >/dev/null; then - AC_MSG_RESULT(adding ImageMagick libraries) - X_EXTRA_LIBS="$X_EXTRA_LIBS `Magick-config --libs`" -fi - -# needed for web2c later than 7.3.4: -AC_CHECK_LIB(m, main) -AC_C_CONST() - -# If you're cross-compiling, these macros set up the variables in -# ../make/cross.mk: BUILDCC, BUILDCFLAGS, BUILDCCLD etc. These are -# near the end so people have some chance of seeing them. -KPSE_CROSS_BUILD_VAR(CC, cc) -KPSE_CROSS_BUILD_VAR(CFLAGS, $(BUILDXCFLAGS)) -KPSE_CROSS_BUILD_VAR(CPPFLAGS, $(BUILDXCPPFLAGS)) -KPSE_CROSS_BUILD_VAR(LDFLAGS, $(BUILDXLDFLAGS)) -KPSE_CROSS_BUILD_VAR(CCLD, $(BUILDCC)) - -KPSE_CONFIG_FILES([Makefile gui/Makefile tests/Makefile]) -AC_CONFIG_FILES([xdvi-sh]) -AC_OUTPUT diff --git a/Build/source/texk/xdvik/configure.in.work b/Build/source/texk/xdvik/configure.in.work deleted file mode 100644 index fc63e55bac1..00000000000 --- a/Build/source/texk/xdvik/configure.in.work +++ /dev/null @@ -1,47 +0,0 @@ - -dnl ########## - -dnl First, check for libXp and libXext: -if test -z "$x_ext_lib"; then # allow envvar override - if test -n "$x_libraries"; then - XLFLAG="-L$x_libraries" - else - XLFLAG= - fi - AC_CHECK_LIB(Xp, XpQueryVersion, - x_ext_lib="-lXp -lXext", :, -lXext -lX11 $X_EXTRA_LIBS $XLFLAG) -fi -dnl -dnl If libXp not found, try libXext only: -dnl -if test -z "$x_ext_lib"; then # previous test unsuccessful, or envvar override - if test -n "$x_libraries"; then - XLFLAG="-L$x_libraries" - else - XLFLAG= - fi - AC_CHECK_LIB(Xext, XextCreateExtension, - x_ext_lib=-lXext, :, -lX11 $X_EXTRA_LIBS $XLFLAG) -fi -AC_SUBST(x_ext_lib) - -dnl ########## - -dnl We try to perform the $program_transform_name replacement already -dnl here, and AC_SUBST the final names into the Makefile; this makes -dnl the compilation commands more readable and causes less problems with -dnl backtick magic inside other commands. -dnl -dnl For some reason, the doubling of $$ and \\ must be reverted here: -my_program_transform_name=`echo $program_transform_name | sed 's,\\$\\$,$,g' | sed 's,\\\\\\\\,\\\\,g'` -exec_name="xdvi-$prog_extension" -final_exec_name=`echo $exec_name | sed "$my_program_transform_name"` -dnl OBSOLETE?? exec_link=`echo xdvi.bin | sed "$my_program_transform_name"` -wrapper_script=`echo xdvi | sed "$my_program_transform_name"` -AC_SUBST(exec_name) -AC_SUBST(final_exec_name) -dnl OBSOLETE?? AC_SUBST(exec_link) -AC_SUBST(wrapper_script) - -dnl ########## - diff --git a/Build/source/texk/xdvik/gui/Makefile.in-22.84.15 b/Build/source/texk/xdvik/gui/Makefile.in-22.84.15 deleted file mode 100644 index 125e595dfcb..00000000000 --- a/Build/source/texk/xdvik/gui/Makefile.in-22.84.15 +++ /dev/null @@ -1,84 +0,0 @@ -# @configure_input@ -# Makefile for xdvik -# -# - 1999/05/08: janl: Removed submakes for libwww and kpathsea. That's what -# the top makefile is for! -# - - -### NOTE: kpse_include paths must be relative to texk/xdvik, since that -### is from where the configure is run! -kpse_include ../make/paths.mk -kpse_include ../make/library.mk -kpse_include ../make/common.mk -kpse_include ../make/programs.mk - -kpathsea_parent = ../.. - -# additional flags for kpathsea -LIBKPATHSEACPPFLAGS=@LIBKPATHSEACPPFLAGS@ - -CPP = @CPP@ -RANLIB = @RANLIB@ - -# Make `#include <X11/...>' and `-lX...' work. -# This matches web2c (needed only for Metafont). -x_cppflags = @X_CFLAGS@ - -# Extra xdvi-specific compiler options. -ps_def = @PS_DEF@ -DXSERVER_INFO -prog_cflags = @XTRA_WARN_CFLAGS@ $(LIBKPATHSEACPPFLAGS) -I.. -I$(srcdir)/.. $(x_cppflags) $(ps_def) - -# Note: to be able to use one depend.mk file for both Motif/Xaw (which -# is needed since only maintainers are supposed to invoke `make depend') -# we include *all* object files and have tests for #ifdef MOTIF/XAW inside -# the files. -objects = \ - help-window.o \ - message-window.o \ - mag.o \ - menu.o \ - Panner.o \ - pagesel.o \ - print-dialog.o \ - print-log.o \ - search-dialog.o \ - selection.o \ - sfDir.o \ - sfDraw.o \ - sfPath.o \ - sfSelFile.o \ - statusline.o \ - Tip.o \ - topic-window.o \ - xaw_bitmaps.o \ - xaw_menu.o \ - xicon.o \ - xlwradio.o \ - xm_colorsel.o \ - xm_filesel.o \ - xm_menu.o \ - xm_prefs.o \ - xm_prefs_appearance.o \ - xm_prefs_fonts.o \ - xm_prefs_page.o \ - xm_prefs_scroll.o \ - xm_prefs_helpers.o \ - xm_toolbar.o - -libgui.a: $(objects) -### hmm, I don't understand ar ... sometimes objects were NOT replaced. -### Play it safe and always remove the archive before creating new one. - rm -f $@ - $(AR) $(ARFLAGS) $@ $(objects) - $(RANLIB) $@ - -kpse_include ../make/dist.mk -kpse_include ../make/clean.mk - -clean:: - rm -f *.o *.a - -c_auto_h_dir = .. -kpse_include ../make/rdepend.mk -kpse_include ./gui/depend.mk diff --git a/Build/source/texk/xdvik/kpathsea.ac-22.84.14 b/Build/source/texk/xdvik/kpathsea.ac-22.84.14 deleted file mode 100644 index 3163f9d4111..00000000000 --- a/Build/source/texk/xdvik/kpathsea.ac-22.84.14 +++ /dev/null @@ -1,58 +0,0 @@ -dnl Check if we want to compile against an installed kpathsea library - -EXTRA_LIBKPATHSEA_INCLUDE= -EXTRA_LIBKPATHSEA_LIBDIR= - -if test "$with_system_kpathsea" = yes; then - if test "x$with_kpathsea_libdir" != x; then - EXTRA_LIBKPATHSEA_LIBDIR="-L$with_kpathsea_libdir" - fi - if test "x$with_kpathsea_include" != x; then - EXTRA_LIBKPATHSEA_INCLUDE="-I$with_kpathsea_include" - fi -fi - -if test "$with_system_kpathsea" = yes; then - OLD_LDFLAGS=$LDFLAGS - OLD_CPP=$CPP - OLD_CPPFLAGS=$CPPFLAGS - OLD_LIBS=$LIBS - - LDFLAGS="$LDFLAGS $EXTRA_LIBKPATHSEA_LIBDIR" - CPP="$CPP $EXTRA_LIBKPATHSEA_INCLUDE" - CPPFLAGS="$EXTRA_LIBKPATHSEA_INCLUDE" - - AC_MSG_CHECKING(whether kpathsea defines kpse_enc_format) - AC_TRY_COMPILE([#include "kpathsea/kpathsea.h" - ], [kpse_file_format_type mytype = kpse_enc_format; - ], have_good_kpathsea=yes, have_good_kpathsea=no) - if test $have_good_kpathsea = no; then - AC_MSG_RESULT(no) - AC_MSG_WARN(kpathsea library is not recent enough; will compile my own) - with_system_kpathsea=no - else - AC_MSG_RESULT(yes) - fi - - LDFLAGS=$OLD_LDFLAGS - CPP=$OLD_CPP - CPPFLAGS=$OLD_CPPFLAGS - LIBS=$OLD_LIBS -fi - -if test "$with_system_kpathsea" = yes; then - LIBKPATHSEACPPFLAGS="$EXTRA_LIBKPATHSEA_INCLUDE" - LDLIBKPATHSEA="$EXTRA_LIBKPATHSEA_LIBDIR -lkpathsea" - LIBKPATHSEADEP= - using_system_kpathsea=yes -else - LIBKPATHSEACPPFLAGS='-I$(kpathsea_dir)' - LDLIBKPATHSEA='$(kpathsea_dir)/libkpathsea.la' - LIBKPATHSEADEP='$(kpathsea_dir)/libkpathsea.la' - using_system_kpathsea=no -fi - - -AC_SUBST(LIBKPATHSEACPPFLAGS) -AC_SUBST(LDLIBKPATHSEA) -AC_SUBST(LIBKPATHSEADEP) diff --git a/Build/source/texk/xdvik/kpathsea.ac-22.84.15 b/Build/source/texk/xdvik/kpathsea.ac-22.84.15 deleted file mode 100644 index d59113f1219..00000000000 --- a/Build/source/texk/xdvik/kpathsea.ac-22.84.15 +++ /dev/null @@ -1,58 +0,0 @@ -dnl Check if we want to compile against an installed kpathsea library - -EXTRA_LIBKPATHSEA_INCLUDE= -EXTRA_LIBKPATHSEA_LIBDIR= - -if test "$with_system_kpathsea" = yes; then - if test "x$with_kpathsea_libdir" != x; then - EXTRA_LIBKPATHSEA_LIBDIR="-L$with_kpathsea_libdir" - fi - if test "x$with_kpathsea_include" != x; then - EXTRA_LIBKPATHSEA_INCLUDE="-I$with_kpathsea_include" - fi -fi - -if test "$with_system_kpathsea" = yes; then - OLD_LDFLAGS=$LDFLAGS - OLD_CPP=$CPP - OLD_CPPFLAGS=$CPPFLAGS - OLD_LIBS=$LIBS - - LDFLAGS="$LDFLAGS $EXTRA_LIBKPATHSEA_LIBDIR" - CPP="$CPP $EXTRA_LIBKPATHSEA_INCLUDE" - CPPFLAGS="$EXTRA_LIBKPATHSEA_INCLUDE" - - AC_MSG_CHECKING(whether kpathsea defines kpse_enc_format) - AC_TRY_COMPILE([#include "kpathsea/kpathsea.h" - ], [kpse_file_format_type mytype = kpse_enc_format; - ], have_good_kpathsea=yes, have_good_kpathsea=no) - if test $have_good_kpathsea = no; then - AC_MSG_RESULT(no) - AC_MSG_WARN(kpathsea library is not recent enough; will compile my own) - with_system_kpathsea=no - else - AC_MSG_RESULT(yes) - fi - - LDFLAGS=$OLD_LDFLAGS - CPP=$OLD_CPP - CPPFLAGS=$OLD_CPPFLAGS - LIBS=$OLD_LIBS -fi - -if test "$with_system_kpathsea" = yes; then - LIBKPATHSEACPPFLAGS="$EXTRA_LIBKPATHSEA_INCLUDE" - LDLIBKPATHSEA="$EXTRA_LIBKPATHSEA_LIBDIR -lkpathsea" - LIBKPATHSEADEP= - using_system_kpathsea=yes -else - LIBKPATHSEACPPFLAGS='-I$(kpathsea_parent)' - LDLIBKPATHSEA='$(kpathsea_dir)/libkpathsea.la' - LIBKPATHSEADEP='$(kpathsea_dir)/libkpathsea.la' - using_system_kpathsea=no -fi - - -AC_SUBST(LIBKPATHSEACPPFLAGS) -AC_SUBST(LDLIBKPATHSEA) -AC_SUBST(LIBKPATHSEADEP) diff --git a/Build/source/texk/xdvik/tests/Makefile.in-22.84.15 b/Build/source/texk/xdvik/tests/Makefile.in-22.84.15 deleted file mode 100644 index bbb55dbfd0b..00000000000 --- a/Build/source/texk/xdvik/tests/Makefile.in-22.84.15 +++ /dev/null @@ -1,119 +0,0 @@ -# Makefile for xdvik -# -# - 1999/05/08: janl: Removed submakes for libwww and kpathsea. That's what -# the top makefile is for! -# - - -### NOTE: ac_include paths must be relative to texk/xdvik, since that -### is from where the configure is run! -kpse_include ../make/paths.mk -kpse_include ../make/library.mk -kpse_include ../make/common.mk -kpse_include ../make/programs.mk -kpse_include xdvi_objects.mk - -kpathsea_parent = ../.. - -x_cppflags=@X_CFLAGS@ @iconv_includes@ -x_ldflags=@X_LIBS@ @x_linker_options@ @iconv_libpath@ -x_pre_libs=@X_PRE_LIBS@ -x_extra_libs=@X_EXTRA_LIBS@ @iconv_libs@ -x_tool_libs=@x_tool_libs@ -x_xmu_lib=@x_xmu_lib@ -x_xpm_libs=@x_xpm_libs@ -x_ext_lib=@x_ext_lib@ - -x_link = $(LDLIBT1) $(x_ldflags) $(x_tool_libs) $(x_xmu_lib) -lXt $(x_pre_libs) $(x_ext_lib) $(x_xpm_libs) -lX11 $(x_extra_libs) - -LDLIBT1=@LDLIBT1@ -LIBT1CPPFLAGS=@LIBT1CPPFLAGS@ -LIBT1DEP=@LIBT1DEP@ -LIBT1DIR = ../../../libs/t1lib -LIBTYPE1DIR = $(LIBT1DIR)/../type1 -LIBT1SRCDIR = $(srcdir)/$(LIBT1DIR) - -LIBGUI=../gui/libgui.a -LIBGUIDEP=$(LIBGUI) - -CPP = @CPP@ -RANLIB = @RANLIB@ - -# Make `#include <X11/...>' and `-lX...' work. -# This matches web2c (needed only for Metafont). -x_cppflags = @X_CFLAGS@ - -# Extra xdvi-specific compiler options. -ps_def = @PS_DEF@ -DXSERVER_INFO -prog_cflags = @XTRA_WARN_CFLAGS@ -I.. -I$(srcdir)/.. $(x_cppflags) $(ps_def) - -# Note: to be able to use one depend.mk file for both Motif/Xaw (which -# is needed since only maintainers are supposed to invoke `make depend') -# we include *all* object files and have tests for #ifdef MOTIF/XAW inside -# the files. -objects = \ - test_dl_list.o \ - test_string_list.o \ - test_string_utils.o \ - test_util.o \ - run_tests.o - - -# This are the files from xdvi needed to link the tests -xdvi_objects = \ - ../browser.o \ - ../dvi-draw.o \ - ../dvi-init.o \ - ../dvisel.o \ - ../encodings.o \ - ../events.o \ - ../exit-handlers.o \ - ../filehist.o \ - ../font-open.o \ - ../gf.o \ - ../hypertex.o \ - ../image-magick.o \ - ../mime.o \ - ../my-snprintf.o \ - ../my-vsnprintf.o \ - ../pagehist.o \ - ../pk.o \ - ../print-internal.o \ - ../psdps.o \ - ../psgs.o \ - ../psheader.o \ - ../psnews.o \ - ../read-mapfile.o \ - ../search-internal.o \ - ../special.o \ - ../string-utils.o \ - ../string_list.o \ - ../tfmload.o \ - ../util.o \ - ../dl_list.o \ - ../vf.o \ - ../xdvi.o \ - ../xserver-info.o \ - ../x_util.o - -default all: run_tests - -run_tests: $(objects) $(xdvi_objects) $(LIBT1DEP) $(LIBGUIDEP) - $(kpathsea_link) $(objects) $(xdvi_objects) $(LIBGUI) $(x_link) $(LOADLIBES) - -test: run_tests - ./run_tests - -test_verbose: run_tests - ./run_tests -v - -kpse_include ../make/dist.mk -kpse_include ../make/clean.mk - -clean:: - rm -f *.o *.a - -c_auto_h_dir = .. -kpse_include ../make/rdepend.mk -kpse_include ./gui/depend.mk -kpse_include ./tests/depend.mk diff --git a/Build/source/texk/xdvik/withenable.ac-22.84.14 b/Build/source/texk/xdvik/withenable.ac-22.84.14 deleted file mode 100644 index 02887e7d498..00000000000 --- a/Build/source/texk/xdvik/withenable.ac-22.84.14 +++ /dev/null @@ -1,149 +0,0 @@ -dnl withenable.ac: --with and --enable options. - -# Check for toolkit options. This used to be --with-x-toolkit, but was changed -# to remove clashes with metafont which accepts different values. -# We allow `yes' as synonym for the default toolkit, for easier communication -# with ../kpathsea/xt.ac. -AC_ARG_WITH(xdvi-x-toolkit, -[ --with-xdvi-x-toolkit=KIT - Use toolkit KIT for xdvi (KIT=motif/xaw/xaw3d/neXtaw). - If no --with-xdvi-x-toolkit option is used, use Motif - if available, else Xaw.], -[ case "${withval}" in - next | nextaw | neXtaw ) val=neXtaw ;; - xaw3d ) val=xaw3d ;; - x | xa | xaw ) val=xaw ;; - y | ye | yes ) val=yes ;; - m | mo | mot | moti | motif ) val=motif ;; - * ) -AC_MSG_WARN([unknown --with-xdvi-x-toolkit argument \`$withval'; using xaw.]) - val=xaw;; - esac - with_xdvi_x_toolkit=$val -]) - - -# Check if the user wants to use Ghostscript, DPS or NeWS to -# display PostScript. -AC_ARG_WITH(ps, -[ --with-ps=PS Use PostScript (PS=no/yes/gs/dps/news, default gs)], -[case $withval in - yes|gs) PS_DEF="$PS_DEF -DPS_GS";; - no) PS_DEF=no;; - dps) PS_DEF="$PS_DEF -DPS_DPS";; - news) PS_DEF="$PS_DEF -DPS_NEWS";; - *)] AC_MSG_WARN(Unknown --with-ps argument \`$withval'; using gs.);; - esac) - -AC_ARG_ENABLE(grey, -[ --disable-grey Disable greyscale anti-aliasing for shrunken bitmaps] -, -[if test "$enableval" = yes; then - AC_DEFINE(GREY) - else - echo DISABLED grey -fi], -AC_DEFINE(GREY)) - -AC_ARG_ENABLE(color, -[ --disable-color Disable support for color specials], -[if test "$enableval" = yes; then - AC_DEFINE(COLOR) - else - echo DISABLED color -fi], -AC_DEFINE(COLOR)) - -dnl OBSOLETE AC_ARG_ENABLE(buttons, -dnl OBSOLETE [ --disable-buttons Disable buttons on the side of the window], -dnl OBSOLETE [if test "$enableval" = yes; then -dnl OBSOLETE AC_DEFINE(BUTTONS) -dnl OBSOLETE else -dnl OBSOLETE echo DISABLED buttons -dnl OBSOLETE fi], -dnl OBSOLETE AC_DEFINE(BUTTONS)) - -dnl OBSOLETE AC_ARG_ENABLE(statusline, -dnl OBSOLETE [ --disable-statusline Disable statusline at bottom of window], -dnl OBSOLETE [if test "$enableval" = yes; then -dnl OBSOLETE AC_DEFINE(STATUSLINE) -dnl OBSOLETE else -dnl OBSOLETE echo DISABLED statusline -dnl OBSOLETE fi], -dnl OBSOLETE AC_DEFINE(STATUSLINE)) - -AC_ARG_ENABLE(t1lib, -[ --disable-t1lib Do not use T1lib (direct rendering of Type1 fonts)], -[if test "$enableval" = yes; then - T1LIB=1 - LDT1LIB=../../libs/t1lib/lib/.libs/libt1.a - AC_DEFINE(LDT1LIB) - AC_DEFINE(T1LIB) -else - T1LIB= - LDT1LIB= - echo DISABLED t1lib -fi], -T1LIB=1 -LDT1LIB=../../libs/t1lib/lib/.libs/libt1.a -AC_DEFINE(LDT1LIB) -AC_DEFINE(T1LIB)) - -AC_ARG_ENABLE(gf, -[ --enable-gf Enable gf format pixel files (in addition to pk)], -[if test "$enableval" != no; then - AC_DEFINE(USE_GF) - OPT_SRCS="$OPT_SRCS gf.c" - OPT_OBJS="$OPT_OBJS gf.o" -fi]) - -AC_ARG_ENABLE(a4, -[ --disable-a4 Set default paper size to letter and default unit to inch], -[if test "$enableval" = yes; then - AC_DEFINE(A4) - else - echo Disabled a4/cm, using letter/in instead -fi], -AC_DEFINE(A4)) - -AC_ARG_ENABLE(magick, -[ --enable-magick Use ImageMagick to load/render image files. - EXPERIMENTAL - DO NOT USE!], -[if test "$enableval" != no; then - echo -n "checking for ImageMagick >= 5.3 ... " - if MAGICK_VER=`Magick-config --version 2>/dev/null`; then - echo $MAGICK_VER - set -- `echo $MAGICK_VER | sed -e 's/\./ /g'` - MAGICK_VER_MAJOR=$1 - MAGICK_VER_MINOR=$2 - if expr $MAGICK_VER_MAJOR \> 4 >/dev/null && \ - (expr $MAGICK_VER_MAJOR \> 5 >/dev/null || \ - expr $MAGICK_VER_MINOR \> 2 >/dev/null); then - MAGICK_CPP="-DMAGICK_VER_MAJOR=$MAGICK_VER_MAJOR -DMAGICK_VER_MINOR=$MAGICK_VER_MINOR `Magick-config --cppflags`" - # echo "CPP: $MAGICK_CPP" - MAGICK_LD="`Magick-config --libs`" - # echo "LD: $MAGICK_LD" - echo "ImageMagick support enabled" - MAGICK_INCLUDE= - MAGICK_LIBDIR= - - if test "x$with_magick_include" != x; then - MAGIC_INCLUDE="-I$with_magick_include" - fi - if test "x$with_magick_libdir" != x; then - MAGIC_LIBDIR="-L$with_magick_libdir" - fi - - X_EXTRA_LIBS="$X_EXTRA_LIBS $MAGIC_LIBDIR $MAGICK_LD" - X_CFLAGS="$X_CFLAGS $MAGIC_INCLUDE $MAGICK_CPP" - AC_DEFINE(MAGICK) - #echo MAGICK_DEF=\"$MAGICK_DEF\" - else - echo "ImageMagick version too old - ImageMagick support disabled" - fi - else - echo "Can't run 'Magick-config' - ImageMagick support disabled" - fi -fi]) - -AC_SUBST(LDT1LIB) diff --git a/Build/source/texk/xdvik/withenable.ac-22.84.15 b/Build/source/texk/xdvik/withenable.ac-22.84.15 deleted file mode 100644 index 90ee99eb086..00000000000 --- a/Build/source/texk/xdvik/withenable.ac-22.84.15 +++ /dev/null @@ -1,156 +0,0 @@ -dnl withenable.ac: --with and --enable options. - -# Check for toolkit options. This used to be --with-x-toolkit, but was changed -# to remove clashes with metafont which accepts different values. -# We allow `yes' as synonym for the default toolkit, for easier communication -# with ../kpathsea/xt.ac. -dnl -dnl This defines --with-x implicitly (which is why we use that package -dnl name below), so put it here, so it comes first in the --help output. -dnl This reads best. -dnl -dnl Remember to add AC_PATH_XTRA when actually using X. -dnl -AC_ARG_WITH([xdvi-x-toolkit], -[ --with-xdvi-x-toolkit=KIT - Use toolkit KIT for xdvi (KIT=motif/xaw/xaw3d/neXtaw). - If no --with-xdvi-x-toolkit option is used, use Motif - if available, else Xaw.], -[ case "${withval}" in - next | nextaw | neXtaw ) val=neXtaw ;; - xaw3d ) val=xaw3d ;; - x | xa | xaw ) val=xaw ;; - y | ye | yes ) val=yes ;; - m | mo | mot | moti | motif ) val=motif ;; - * ) -AC_MSG_WARN([unknown --with-xdvi-x-toolkit argument \`$withval'; using xaw.]) - val=xaw;; - esac - with_xdvi_x_toolkit=$val -]) - - -# Check if the user wants to use Ghostscript, DPS or NeWS to -# display PostScript. -AC_ARG_WITH([ps], -[ --with-ps=PS Use PostScript (PS=no/yes/gs/dps/news, default gs)], -[case $withval in - yes|gs) PS_DEF="$PS_DEF -DPS_GS";; - no) PS_DEF=no;; - dps) PS_DEF="$PS_DEF -DPS_DPS";; - news) PS_DEF="$PS_DEF -DPS_NEWS";; - *) AC_MSG_WARN([Unknown --with-ps argument \`$withval'; using gs.]);; - esac]) - -AC_ARG_ENABLE([grey], -[ --disable-grey Disable greyscale anti-aliasing for shrunken bitmaps] -, -[if test "$enableval" = yes; then - AC_DEFINE([GREY], 1, [Define to enable greyscale anti-aliasing for shrunken bitmaps.]) - else - echo DISABLED grey -fi], -AC_DEFINE([GREY], 1)) - -AC_ARG_ENABLE([color], -[ --disable-color Disable support for color specials], -[if test "$enableval" = yes; then - AC_DEFINE([COLOR], 1, [Define to enable support for color specials.]) - else - echo DISABLED color -fi], -AC_DEFINE([COLOR], 1)) - -dnl OBSOLETE AC_ARG_ENABLE([buttons], -dnl OBSOLETE [ --disable-buttons Disable buttons on the side of the window], -dnl OBSOLETE [if test "$enableval" = yes; then -dnl OBSOLETE AC_DEFINE([BUTTONS], 1, [Define to enable buttons on the side of the window.]) -dnl OBSOLETE else -dnl OBSOLETE echo DISABLED buttons -dnl OBSOLETE fi], -dnl OBSOLETE AC_DEFINE([BUTTONS], 1)) - -dnl OBSOLETE AC_ARG_ENABLE([statusline], -dnl OBSOLETE [ --disable-statusline Disable statusline at bottom of window], -dnl OBSOLETE [if test "$enableval" = yes; then -dnl OBSOLETE AC_DEFINE([STATUSLINE], 1, [Define to enable statusline at bottom of window.]) -dnl OBSOLETE else -dnl OBSOLETE echo DISABLED statusline -dnl OBSOLETE fi], -dnl OBSOLETE AC_DEFINE([STATUSLINE], 1)) - -AC_ARG_ENABLE([t1lib], -[ --disable-t1lib Do not use T1lib (direct rendering of Type1 fonts)], -[if test "$enableval" = yes; then - T1LIB=1 - LDT1LIB=../../libs/t1lib/lib/.libs/libt1.a - AC_DEFINE([LDT1LIB], 1, [Define to compile in t1lib (libtool)]) - AC_DEFINE([T1LIB], 1, [Define to compile in t1lib]) -else - T1LIB= - LDT1LIB= - echo DISABLED t1lib -fi], -[T1LIB=1 -LDT1LIB=../../libs/t1lib/lib/.libs/libt1.a -AC_DEFINE([LDT1LIB], 1) -AC_DEFINE([T1LIB], 1)]) - -AC_ARG_ENABLE([gf], -[ --enable-gf Enable gf format pixel files (in addition to pk)], -[if test "$enableval" != no; then - AC_DEFINE([USE_GF], 1, [Define to enable gf format files (in addition to pk format).]) - OPT_SRCS="$OPT_SRCS gf.c" - OPT_OBJS="$OPT_OBJS gf.o" -fi]) - -AC_ARG_ENABLE([a4], -[ --disable-a4 Set default paper size to letter and default unit to inch], -[if test "$enableval" = yes; then - AC_DEFINE([A4], 1, [Define to use A4 as the default paper size.]) - else - echo Disabled a4/cm, using letter/in instead -fi], -[AC_DEFINE([A4], 1)]) - -AC_ARG_ENABLE([magick], -[ --enable-magick Use ImageMagick to load/render image files. - EXPERIMENTAL - DO NOT USE!], -[if test "$enableval" != no; then - echo -n "checking for ImageMagick >= 5.3 ... " - if MAGICK_VER=`Magick-config --version 2>/dev/null`; then - echo $MAGICK_VER - set -- `echo $MAGICK_VER | sed -e 's/\./ /g'` - MAGICK_VER_MAJOR=$1 - MAGICK_VER_MINOR=$2 - if expr $MAGICK_VER_MAJOR \> 4 >/dev/null && \ - (expr $MAGICK_VER_MAJOR \> 5 >/dev/null || \ - expr $MAGICK_VER_MINOR \> 2 >/dev/null); then - MAGICK_CPP="-DMAGICK_VER_MAJOR=$MAGICK_VER_MAJOR -DMAGICK_VER_MINOR=$MAGICK_VER_MINOR `Magick-config --cppflags`" - # echo "CPP: $MAGICK_CPP" - MAGICK_LD="`Magick-config --libs`" - # echo "LD: $MAGICK_LD" - echo "ImageMagick support enabled" - MAGICK_INCLUDE= - MAGICK_LIBDIR= - - if test "x$with_magick_include" != x; then - MAGIC_INCLUDE="-I$with_magick_include" - fi - if test "x$with_magick_libdir" != x; then - MAGIC_LIBDIR="-L$with_magick_libdir" - fi - - X_EXTRA_LIBS="$X_EXTRA_LIBS $MAGIC_LIBDIR $MAGICK_LD" - X_CFLAGS="$X_CFLAGS $MAGIC_INCLUDE $MAGICK_CPP" - AC_DEFINE([MAGICK], 1, [Define to use ImageMagick]) - #echo MAGICK_DEF=\"$MAGICK_DEF\" - else - echo "ImageMagick version too old - ImageMagick support disabled" - fi - else - echo "Can't run 'Magick-config' - ImageMagick support disabled" - fi -fi]) - -AC_SUBST(LDT1LIB) |