diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-20 10:15:32 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-03-20 10:15:32 +0000 |
commit | d7f8ab6ea1a683492b985013a541ab11e33b9f73 (patch) | |
tree | a8b719cba4c45e2e308b53ebbd0ebb313a7cbf36 /Build/source/texk/xdv2pdf | |
parent | 9d502c516fe61658f540e6b98621632b91deb53c (diff) |
new build system
git-svn-id: svn://tug.org/texlive/trunk@12458 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdv2pdf')
-rw-r--r-- | Build/source/texk/xdv2pdf/Makefile.am | 45 | ||||
-rw-r--r-- | Build/source/texk/xdv2pdf/configure.ac | 74 |
2 files changed, 119 insertions, 0 deletions
diff --git a/Build/source/texk/xdv2pdf/Makefile.am b/Build/source/texk/xdv2pdf/Makefile.am new file mode 100644 index 00000000000..0f39234077f --- /dev/null +++ b/Build/source/texk/xdv2pdf/Makefile.am @@ -0,0 +1,45 @@ +## +ACLOCAL_AMFLAGS = -I ../../m4 + +INCLUDES = $(KPATHSEA_INCLUDES) +AM_CPPFLAGS = + +if build +bin_PROGRAMS = T1Wrap xdv2pdf +endif build + +T1Wrap_SOURCES = \ + SimplePSInterpreter.h \ + SimplePSInterpreter.m \ + T1Wrap.m + +T1Wrap_LDFLAGS = -framework Cocoa + +xdv2pdf_SOURCES = \ + DVIops.h \ + xdv2pdf.cpp \ + xdv2pdf_globals.h \ + xdv2pdf_main.c \ + xdv_kpse_formats.h \ + xdv2pdf_specials.cpp + +## Included by xdv2pdf.cpp +EXTRA_xdv2pdf_SOURCES = appleGlyphNames.c + +xdv2pdf_LDFLAGS = -framework Carbon -framework QuickTime + +xdv2pdf_LDADD = $(KPATHSEA_LIBS) + +## Rebuild libkpathsea +@KPATHSEA_RULE@ + +EXTRA_DIST = LICENSE.txt + +## Eventually delete these files +## +EXTRA_DIST += \ + Makefile.in.orig \ + acconfig.h.dist \ + acconfig.h.in \ + configure.in.orig + diff --git a/Build/source/texk/xdv2pdf/configure.ac b/Build/source/texk/xdv2pdf/configure.ac new file mode 100644 index 00000000000..af3ae6d8a18 --- /dev/null +++ b/Build/source/texk/xdv2pdf/configure.ac @@ -0,0 +1,74 @@ +dnl Process this file with autoconf to produce a configure script. +dnl +dnl Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org> +dnl +dnl This file is free software; the copyright holder +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +AC_INIT([xdv2pdf], [0.998], [tex-k@tug.org]) +AC_PREREQ([2.63]) +AC_CONFIG_SRCDIR([xdv2pdf.cpp]) +AC_CONFIG_AUX_DIR([../../build-aux]) +AC_CONFIG_MACRO_DIR([../../m4]) + +dnl Common code for all programs using libkpathsea. +KPSE_COMMON([xdv2pdf]) + +AC_CONFIG_HEADERS([config.h]) + +dnl Checks for programs. +AC_PROG_CXX +AC_PROG_OBJC + +KPSE_KPATHSEA_FLAGS + +dnl First, check if we're configuring on Mac OS X -- can't build elsewhere + +KPSE_CHECK_FRAMEWORK([Carbon], [ATSUStyle style]) +KPSE_CHECK_FRAMEWORK([QuickTime], [ImageDescriptionHandle h]) + +if test "x$kpse_cv_have_Carbon:$kpse_cv_have_QuickTime" = xyes:yes; then + build=yes +else + AC_MSG_WARN([Carbon or QuickTime framework not found, can not build xdv2pdf.]) + build=no +fi + +if test "x$build" = xyes; then + +dnl Checks for typedefs, structures, and compiler characteristics. +AC_TYPE_SIZE_T +AC_STRUCT_TM +AC_C_BIGENDIAN + +dnl Checks for library functions. +AC_CHECK_FUNCS([strspn system]) +AC_SEARCH_LIBS([pow], [m]) + +save_CPPFLAGS=$CPPFLAGS +save_LIBS=$LIBS + +CPPFLAGS="$CPPFLAGS $KPATHSEA_INCLUDES" +LIBS="$KPATHSEA_LIBS $LIBS" + +AC_MSG_CHECKING([whether you have kpathsea headers and they know about opentype files]) +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> +#include <kpathsea/tex-file.h>]], + [[kpse_opentype_format;]])], + [AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no]) + build=no + AC_MSG_WARN([Kpathsea does not support opentype files, can not build xdv2pdf.]) +]) + +CPPFLAGS=$save_CPPFLAGS +LIBS=$save_LIBS + +fi + +AM_CONDITIONAL([build], [test "x$build" = xyes]) + +AC_CONFIG_FILES([Makefile]) + +AC_OUTPUT |