* src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
[s-roff.git] / configure.in
blob92024e0392022621c05f76ca49ef1a0b0c444f84
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(src/roff/groff/groff.cc)
3 dnl checks for programs
4 GROFF_SRCDIR
5 GROFF_BUILDDIR
6 AC_PROG_CC
7 AC_PROG_CXX
8 GROFF_CXX_CHECK
9 GROFF_EBCDIC
10 GROFF_OS390
11 GROFF_PRINT
12 AC_PATH_PROG(PERLPATH, perl, /usr/bin/perl)
13 GROFF_PROG_YACC
14 AC_PROG_RANLIB
15 GROFF_INSTALL_SH
16 AC_PROG_INSTALL
17 AC_PROG_LN_S
18 dnl use a dummy substitution if no csh hack is necessary to avoid errors
19 dnl with non-GNU sed programs
20 GROFF_CSH_HACK(SH_SCRIPT_SED_CMD='1s/.*/:/', SH_SCRIPT_SED_CMD='1s/a/a/')
21 AC_SUBST(SH_SCRIPT_SED_CMD)
22 dnl checks for headers
23 AC_CHECK_HEADERS(stdlib.h unistd.h dirent.h limits.h sys/dir.h \
24                  string.h strings.h math.h)
25 GROFF_ISC_SYSV3
26 GROFF_POSIX
27 GROFF_SRAND
28 GROFF_NEED_DECLARATION(hypot)
29 GROFF_NEED_DECLARATION(popen)
30 GROFF_NEED_DECLARATION(pclose)
31 GROFF_NEED_DECLARATION(putenv)
32 GROFF_NEED_DECLARATION(strncasecmp)
33 GROFF_SYS_NERR
34 GROFF_SYS_ERRLIST
35 GROFF_OSFCN_H
36 GROFF_LIMITS_H
37 dnl checks for typedefs
38 GROFF_TIME_T
39 AC_TYPE_SIGNAL
40 GROFF_STRUCT_EXCEPTION
41 dnl checks for libraries
42 GROFF_LIBM
43 dnl checks for functions
44 AC_FUNC_MMAP
45 saved_libs="$LIBS"
46 LIBS="$LIBS -lc $LIBM"
47 AC_REPLACE_FUNCS(fmod strtol getcwd strerror putenv)
48 LIBS="$saved_libs"
49 AC_CHECK_FUNCS(rename mkstemp strcasecmp strncasecmp strsep strdup)
50 AC_DECL_SYS_SIGLIST
51 dnl checks for compiler characteristics
52 GROFF_ARRAY_DELETE
53 GROFF_TRADITIONAL_CPP
54 dnl checks for operating system services
55 GROFF_WCOREFLAG
56 dnl other random stuff
57 GROFF_BROKEN_SPOOLER_FLAGS
58 GROFF_PAGE
59 GROFF_G
60 GROFF_TMAC
61 $srcdir/mkinstalldirs src/xditview
62 AC_OUTPUT(Makefile src/xditview/Imakefile)