File: configure.in

package info (click to toggle)
tetex-bin 0.9-7
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 31,840 kB
  • ctags: 20,484
  • sloc: ansic: 183,676; sh: 7,743; perl: 3,431; makefile: 2,891; pascal: 1,546; yacc: 1,507; cpp: 608; awk: 522; asm: 500; lex: 323; sed: 322; csh: 47
file content (65 lines) | stat: -rw-r--r-- 1,923 bytes parent folder | download | duplicates (4)
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
dnl Top-level configure for kpathsea-using programs.
dnl Our job is to run configure in the relevant subdirectories.
dnl
dnl Assumption: each program will create a c-auto.h that defines
dnl everything kpathsea needs.  We arrange this by including (at
dnl autoconf time) kpathsea/common.ac.
dnl 
dnl Consequence: we don't need to run configure in the kpathsea directory
dnl itself; we can just copy from a program directory.  We'll use the
dnl first one.
dnl 
AC_INIT(kpathsea/kpathsea.texi)

dnl These configure scripts won't work with anything else.
AC_PREREQ(2.12.1)

AC_PROG_MAKE_SET

dnl Because we include make/common.make.
AC_PROG_CC
AC_ISC_POSIX
AC_PROG_LN_S

dnl If we guessed the prefix in the subdirectories, it might guess
dnl differently than the prefix here, and that would cause confusion.
AC_PREFIX_PROGRAM(tex)

dnl Pass this down from the top level so that when the subprograms
dnl install kpathsea a command line value is propagated.
AC_PROG_INSTALL

dnl If the other programs ever acquire their own --with or --enable
dnl options, they must be added, so configure --help at the top level
dnl will show all the options.
sinclude(acklibtool.m4)
sinclude(withenable.ac)
sinclude(kpathsea/withenable.ac)
sinclude(web2c/withenable.ac)
sinclude(xdvik/withenable.ac)
sinclude(libwww/withenable.ac)

if test "x$with_omega" = xno; then
  with_odvipsk=no
  with_oxdvik=no
fi

ESUBDIRS=
DSUBDIRS=
for pkg in dtl dvidvi dviljk dvipsk gsftopk lacheck makeindexk musixflx \
    odvipsk oxdvik ps2pkm seetexk tetex tex4htk xdvik; do
  if eval "test \"x`echo '$with_'${pkg}`\" = xno"; then
    DSUBDIRS="$DSUBDIRS $pkg"
  else
    ESUBDIRS="$ESUBDIRS $pkg"
  fi
done

AC_SUBST(ESUBDIRS)
AC_SUBST(DSUBDIRS)

AC_CONFIG_SUBDIRS(kpathsea web2c dtl dvidvi dviljk dvipsk gsftopk lacheck \
                  libwww makeindexk musixflx odvipsk oxdvik ps2pkm seetexk \
                  tetex tex4htk xdvik)

AC_OUTPUT(Makefile)