summaryrefslogtreecommitdiffstats
path: root/configure.in
blob: 7a253e64044c1f58f1e349053f6fe8e6dee6d059 (plain)
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(magicfilter.c)

AC_CONFIG_HEADER(config.h filters/filters1.h filters/filters2.h)

dnl Figure out the C compiler
AC_PROG_CC
AC_MINIX
AC_AIX
AC_ISC_POSIX

dnl Check for programs used by makefiles
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_YACC

dnl Check for programs used in filters
MF_PATH_INCLUDE(GHOSTSCRIPT, gs)
MF_PATH_INCLUDE(PDF2PS, pdf2ps)
MF_PATH_INCLUDE(GROG, grog)
MF_PATH_INCLUDE(GROFF, groff)
MF_PATH_INCLUDE(DITROFF, gtroff ditroff troff)
MF_PATH_INCLUDE(GROPS, grops)
MF_PATH_INCLUDE(GRODVI, grodvi)
MF_PATH_INCLUDE(GROTTY, grotty)
MF_PATH_INCLUDE(GROLJ4, grolj4)
MF_PATH_INCLUDE(GZIP, gzip gunzip gzcat)
MF_PATH_INCLUDE(ZCAT, zcat)
MF_PATH_INCLUDE(UNCOMPRESS, uncompress)
MF_PATH_INCLUDE(DVIPS, dvips)
MF_PATH_INCLUDE(PNMTOPS, pnmtops)
MF_PATH_INCLUDE(GIFTOPPM, giftopnm giftoppm)
MF_PATH_INCLUDE(DJPEG, djpeg)
MF_PATH_INCLUDE(PNGTOPNM, pngtopnm)
MF_PATH_INCLUDE(SGITOPNM, sgitopnm)
MF_PATH_INCLUDE(TOPS, tops)
MF_PATH_INCLUDE(SGITOPS, sgitops)
MF_PATH_INCLUDE(TIFFTOPNM, tifftopnm)
MF_PATH_INCLUDE(BMPTOPPM, bmptopnm bmptoppm)
MF_PATH_INCLUDE(RASTTOPNM, rasttopnm)
MF_PATH_INCLUDE(NENSCRIPT, nenscript enscript)
MF_PATH_INCLUDE(A2X, a2x)
MF_PATH_INCLUDE(A2PS, a2ps)
MF_PATH_INCLUDE(FIG2DEV, fig2dev)

dnl Check to see if zcat is gzip
MF_PROG_GNU_ZCAT($ZCAT)

dnl Check to see if ditroff works
MF_PROG_DITROFF($DITROFF)

dnl Look for sendmail or mail for sending mail to users
mf_save_path="$PATH"
PATH=$PATH:/usr/libexec:/usr/sbin:/usr/lib:/usr/etc:/etc:/bin:/usr/ucb
MF_PATH_INCLUDE(SENDMAIL, sendmail smail mail Mail)
PATH="$mf_save_path"

dnl Check for header files
AC_CHECK_HEADERS(memory.h)
AC_CHECK_HEADERS(paths.h)
AC_CHECK_HEADERS(stdlib.h)
AC_CHECK_HEADERS(unistd.h)
AC_HEADER_SYS_WAIT

dnl Check for missing C things
AC_C_CONST
AC_TYPE_PID_T
AC_CHECK_FUNCS(dup2)
AC_CHECK_FUNCS(tmpnam)
AC_CHECK_FUNCS(waitpid)
AC_CHECK_FUNCS(wait4)
AC_CHECK_FUNCS(unsetenv)

dnl Write Makefile
AC_OUTPUT(Makefile filters/Makefile)