1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
dnl withenable.ac: --with and --enable options.
# Check if the user wants to use Ghostscript, DPS or NeWS to
# display PostScript.
AC_ARG_WITH(ps,
[ --with-ps=PS use PostScript; default gs (PS=no/yes/gs/dps/news)],
[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)
# Set configuration file directory.
XDVIETCDIR='$(texmf)/xdvi'
AC_ARG_ENABLE(xdvietcdir,
[ --enable-xdvietcdir=DIR set configuration file directory; default /usr/local/share/texmf/xdvi],
[case $enableval in
/*) XDVIETCDIR="$enableval";;
*)] AC_MSG_WARN(Unknown --enable-xdvietcdir argument \`$enableval'; set to default.);;
esac)
# Check if the user wants to use many Japanese fonts or not.
VFLIB_DEF="-DDEFAULT_FONTMAP=\\\"$XDVIETCDIR/vfontmap\\\""
AC_ARG_WITH(vfontmap,
[ --with-vfontmap=VFNTMAP use vfontmap; default yes (VFNTMAP=yes/no)],
[case $withval in
yes) VFLIB_DEF="-DDEFAULT_FONTMAP=\\\"$XDVIETCDIR/vfontmap\\\"";;
no) VFLIB_DEF="-DNOVFONTMAP";;
*)] AC_MSG_WARN(Unknown --with-vfontmap argument \`$withval'; set yes.);;
esac)
# Check if the user wants to use VFlib or not.
AC_ARG_WITH(vflib,
[ --with-vflib=VFLIB use VFlib; default yes (VFLIB=yes/no/asciionly/nontt)],
[case $withval in
yes) VFLIB_DEF="$VFLIB_DEF";;
no) VFLIB_DEF="-DNOZEIT";;
asciionly|nontt) VFLIB_DEF="$VFLIB_DEF -DNONTTZEIT";;
*)] AC_MSG_WARN(Unknown --with-vflib argument \`$withval'; set yes.);;
esac)
# Check what command the user wants to use for dvi filter.
DVIFILTER="dvips"
AC_ARG_WITH(dvifilter,
[ --with-dvifilter=CMD use DVI filter; default dvips (CMD=dvips/dvi2ps/jdvi2kps/no)],
[case $withval in
dvips) DVIFILTERCMD=""
DVIFILTER="dvips";;
dvi2ps) DVIFILTERCMD="-DDVI2PS"
DVIFILTER="dvi2ps";;
jdvi2kps) DVIFILTERCMD="-DJDVI2KPS"
DVIFILTER="jdvi2kps";;
no) DVIFILTERCMD="-DNOPRINTDVI -DNODVISEL";;
*)] AC_MSG_WARN(Unknown --with-dvifilter argument \`$withval'; using dvips.);;
esac)
# Check what command the user wants to use for print-out.
XDVIPRINTCMD='$(scriptdir)/xdviprint'
XDVIPRINT_DEF="-DXDVIPRINTCMD=\\\"$XDVIPRINTCMD\\\""
AC_ARG_ENABLE(xdviprint,
[ --enable-xdviprint=CMD set print-out script path or no; default /usr/local/bin/xdviprint],
[case $enableval in
yes) XDVIPRINTCMD='$(scriptdir)/xdviprint'
XDVIPRINT_DEF="-DXDVIPRINTCMD=\\\"$XDVIPRINTCMD\\\"";;
no) XDVIPRINTCMD=no
XDVIPRINT_DEF="-DNODVISEL";;
/*) XDVIPRINTCMD="$enableval"
XDVIPRINT_DEF="-DXDVIPRINTCMD=\\\"$XDVIPRINTCMD\\\"";;
*)] AC_MSG_WARN(Unknown --enable-xdviprint argument \`$enableval'; set to default.);;
esac)
AC_ARG_ENABLE(grey,
[ --disable-grey disable greyscale anti-aliasing for shrunken bitmaps]
,
[if test "$enableval" = yes; then
AC_DEFINE(GREY)
fi],
AC_DEFINE(GREY))
AC_ARG_ENABLE(buttons,
[ --disable-buttons disable buttons on the side of the window],
[if test "$enableval" = yes; then
AC_DEFINE(BUTTONS)
fi],
AC_DEFINE(BUTTONS))
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])
# default is A4 in Japanese environment.
AC_ARG_ENABLE(a4,
[ --enable-a4 set default paper size to A4 and default unit to cm; default yes],
[if test "$enableval" != no; then
AC_DEFINE(A4)
fi],[AC_DEFINE(A4)])
AC_ARG_ENABLE(vikey,
[ --enable-vikey make key stroke vi-like; default yes],
[if test "$enableval" != no; then
XDEFS="$XDEFS -DVI_KEY"
fi],[XDEFS="$XDEFS -DVI_KEY"])
AC_ARG_ENABLE(smallpanel,
[ --enable-smallpanel make panel smaller; default yes],
[if test "$enableval" != no; then
XDEFS="$XDEFS -DSMALL_PANEL"
fi],[XDEFS="$XDEFS -DSMALL_PANEL"])
AC_ARG_ENABLE(zoombutton,
[ --enable-zoombutton make zoom buttons; default yes],
[if test "$enableval" != no; then
XDEFS="$XDEFS -DZOOM_BUTTON"
fi],[XDEFS="$XDEFS -DZOOM_BUTTON"])
AC_ARG_ENABLE(bdpi,
[ --enable-bdpi=BDPI set base DPI; default 600],
[XDEFS="$XDEFS -DBDPI=$enableval"],[XDEFS="$XDEFS -DBDPI=600"])
AC_ARG_ENABLE(shrink,
[ --enable-shrink=SIZE set default shrink size; default 10],
[XDEFS="$XDEFS -DSHRINK=$enableval"],[XDEFS="$XDEFS -DSHRINK=10"])
|