diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-04-08 13:38:26 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-04-08 13:38:26 +0000 |
commit | ace090f4f104bd248f22f7547109bffc88703193 (patch) | |
tree | 8e3e82fd67685018536d2d6b6588d0ecd3e46f90 /Build/source/texk/xdvik/configure.ac | |
parent | 47737bdaf864c1827526b83c2ced260d039914c4 (diff) |
new build system: texk/xdvik/
git-svn-id: svn://tug.org/texlive/trunk@12659 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvik/configure.ac')
-rw-r--r-- | Build/source/texk/xdvik/configure.ac | 111 |
1 files changed, 109 insertions, 2 deletions
diff --git a/Build/source/texk/xdvik/configure.ac b/Build/source/texk/xdvik/configure.ac index 0d438144784..c7a6b5a06df 100644 --- a/Build/source/texk/xdvik/configure.ac +++ b/Build/source/texk/xdvik/configure.ac @@ -39,6 +39,51 @@ AS_CASE([$with_ps], PS_DEF=-DPS_GS]) AC_SUBST([PS_DEF]) +dnl Required, not optional. +dnl AC_ARG_ENABLE([grey], +dnl AS_HELP_STRING([--disable-grey], +dnl [Disable greyscale anti-aliasing for shrunken bitmaps])) +AC_DEFINE([GREY], 1, [Define to enable greyscale anti-aliasing for shrunken bitmaps.]) + +dnl Required, not optional. +dnl AC_ARG_ENABLE([color], +dnl AS_HELP_STRING([--disable-color], +dnl [Disable support for color specials])) +AC_DEFINE([COLOR], 1, [Define to enable support for color specials.]) + +dnl OBSOLETE AC_ARG_ENABLE([buttons], +dnl OBSOLETE AS_HELP_STRING([--disable-buttons], +dnl OBSOLETE [Disable buttons on the side of the window])) +dnl OBSOLETE AC_DEFINE([BUTTONS], 1, [Define to enable buttons on the side of the window.]) + +dnl OBSOLETE AC_ARG_ENABLE([statusline], +dnl OBSOLETE AS_HELP_STRING([--disable-statusline], +dnl OBSOLETE [Disable statusline at bottom of window])) +dnl OBSOLETE AC_DEFINE([STATUSLINE], 1, [Define to enable statusline at bottom of window.]) + +dnl Required, not optional. +dnl AC_ARG_ENABLE([t1lib], +dnl AS_HELP_STRING([--disable-t1lib], +dnl [Do not use T1lib (direct rendering of Type1 fonts)])) +AC_DEFINE([T1LIB], 1, [Define to compile in t1lib.]) + +dnl OBSOLETE AC_ARG_ENABLE([gf], +dnl OBSOLETE AS_HELP_STRING([--enable-gf], +dnl OBSOLETE [Enable gf format pixel files (in addition to pk)])) +dnl OBSOLETE AC_DEFINE([USE_GF], 1, [Define to enable gf format files (in addition to pk format).]) + +AC_ARG_ENABLE([a4], + AS_HELP_STRING([--disable-a4], + [Set default paper size to letter and default unit to inch])) +AS_IF([test "x$enable_a4" = xno], + [AC_MSG_NOTICE([Disabled a4/cm, using letter/in instead])], + [AC_DEFINE([A4], 1, [Define to use A4 as the default paper size.])]) + +AC_ARG_ENABLE([magick], + AS_HELP_STRING([--enable-magick], + [Use ImageMagick to load/render image files. + EXPERIMENTAL - DO NOT USE!])) + AC_PROG_CXX AC_CONFIG_HEADERS([c-auto.h:c-auto.in]) @@ -67,6 +112,10 @@ XDVI_FUNC_POLL dnl ####### +dnl COMPILER_WARNINGS + +dnl ####### + dnl SU: for `--allow-multiple-definition' linker flag on Cygwin XDVI_LINKER_MULTIPLE_DEFNS @@ -84,7 +133,63 @@ AC_CHECK_FUNCS([mkstemp memcpy strerror waitpid sigaction strchr setenv ulltostr 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]) - + +dnl Check X11 headers. +xdvi_save_CPPFLAGS=$CPPFLAGS +CPPFLAGS="$CPPFLAGS $X_CFLAGS" +AC_CHECK_HEADERS([X11/Intrinsic.h X11/Xosdefs.h X11/xpm.h Xm/XpmP.h]) +dnl For editres, we need to check both the header and define a linker option. +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=$xdvi_save_CPPFLAGS + +dnl check for Xaw version +XDVI_OLD_XAW + +dnl nl_langinfo checks +AC_CACHE_CHECK([if nl_langinfo(CODESET) is working], + [xdvi_cv_nl_langinfo_codeset], + [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], + [[char* cs = nl_langinfo(CODESET);]])], + [xdvi_cv_nl_langinfo_codeset=yes], + [xdvi_cv_nl_langinfo_codeset=no])]) +AS_IF([test "x$xdvi_cv_nl_langinfo_codeset" = xyes], + [AC_DEFINE([HAVE_WORKING_NL_LANGINFO_CODESET], 1, + [Define if the CODESET argument to nl_langinfo works.])]) + +dnl ####### + +dnl First, check for libXp and libXext + +dnl ####### + +dnl Check whether -lXpm can be used +XDVI_FIND_XPM + +AC_ARG_WITH([motif-include], + AS_HELP_STRING([--with-motif-include=DIR], + [Specify the location of Motif include files])) +AC_ARG_WITH([motif-libdir], + AS_HELP_STRING([--with-motif-libdir=DIR], + [Specify the location of Motif libraries])) + +AS_CASE([$with_xdvi_x_toolkit], + [xaw3d], [prog_extension="xaw3d"; x_tool_libs="-lXaw3d"], + [neXtaw], [prog_extension="nextaw"; x_tool_libs="-lneXtaw"], + [xaw], [prog_extension="xaw"; x_tool_libs="-lXaw" + AC_DEFINE([XAW], 1, [Define to use the Xaw toolkit.])], + [motif], [XDVI_FIND_MOTIF([none])], + [XDVI_FIND_MOTIF([Xaw])]) +AC_SUBST([x_tool_libs]) +final_exec_name="xdvi-$prog_extension" +program_transform_name="'s,xdvi-bin,$final_exec_name,'" +AC_SUBST([final_exec_name]) + dnl ####### AC_ARG_WITH([iconv-libdir], @@ -148,7 +253,9 @@ AC_SUBST([XDVIK_VERSION]) AC_CONFIG_SUBDIRS([squeeze]) -AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile gui/Makefile]) + +AC_CONFIG_FILES([xdvi:xdvi-sh.in], [chmod +x xdvi]) dnl The subdirectory squeeze must be configured for the build system. dnl Can not share the cache file with the subdirectory! |