* tmac/groff_tmac.man: Moved to...
[s-roff.git] / configure.ac
blobb71a179212d7a411e687b7150c627641d147f198
1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT
3 AC_CONFIG_HEADERS(src/include/config.h:src/include/config.hin)
4 AC_CONFIG_SRCDIR([src/roff/groff/groff.cc])
5 dnl checks for programs
6 GROFF_SRCDIR
7 GROFF_BUILDDIR
8 AC_PROG_CC
9 AC_PROG_CXX
10 GROFF_CXX_CHECK
11 GROFF_EBCDIC
12 GROFF_OS390
13 GROFF_PRINT
14 AC_PATH_PROG(PERLPATH, perl, /usr/bin/perl)
15 GROFF_PROG_YACC
16 AC_PROG_RANLIB
17 GROFF_INSTALL_SH
18 AC_PROG_INSTALL
19 AC_PROG_LN_S
20 dnl use a dummy substitution if no csh hack is necessary to avoid errors
21 dnl with non-GNU sed programs
22 GROFF_CSH_HACK(SH_SCRIPT_SED_CMD='1s/.*/:/', SH_SCRIPT_SED_CMD='1s/a/a/')
23 AC_SUBST(SH_SCRIPT_SED_CMD)
24 dnl checks for headers
25 AC_CHECK_HEADERS(stdlib.h unistd.h dirent.h limits.h sys/dir.h \
26                  string.h strings.h math.h stdint.h sys/time.h)
27 GROFF_ISC_SYSV3
28 GROFF_POSIX
29 GROFF_SRAND
30 GROFF_NEED_DECLARATION(gettimeofday)
31 GROFF_NEED_DECLARATION(hypot)
32 GROFF_NEED_DECLARATION(popen)
33 GROFF_NEED_DECLARATION(pclose)
34 GROFF_NEED_DECLARATION(putenv)
35 GROFF_NEED_DECLARATION(strcasecmp)
36 GROFF_NEED_DECLARATION(strncasecmp)
37 GROFF_SYS_NERR
38 GROFF_SYS_ERRLIST
39 GROFF_OSFCN_H
40 GROFF_LIMITS_H
41 GROFF_INTTYPES_H
42 dnl checks for typedefs
43 GROFF_UNSIGNED_LONG_LONG
44 GROFF_UINTMAX_T
45 GROFF_TIME_T
46 AC_TYPE_SIGNAL
47 GROFF_STRUCT_EXCEPTION
48 dnl checks for libraries
49 GROFF_LIBM
50 dnl checks for functions
51 AC_FUNC_MMAP
52 saved_libs="$LIBS"
53 LIBS="$LIBS -lc $LIBM"
54 AC_REPLACE_FUNCS(fmod getcwd putenv snprintf strerror strtol)
55 LIBS="$saved_libs"
56 AC_CHECK_FUNCS(gettimeofday rename strcasecmp strncasecmp strsep)
57 GROFF_MKSTEMP
58 AC_DECL_SYS_SIGLIST
59 dnl checks for compiler characteristics
60 GROFF_ARRAY_DELETE
61 GROFF_TRADITIONAL_CPP
62 dnl checks for operating system services
63 GROFF_WCOREFLAG
64 dnl other random stuff
65 GROFF_BROKEN_SPOOLER_FLAGS
66 GROFF_PAGE
67 GROFF_G
68 GROFF_TMAC
69 AC_CONFIG_FILES(stamp-h, [echo timestamp > stamp-h])
70 AC_CONFIG_FILES([Makefile src/xditview/Imakefile])
71 AC_OUTPUT
72 dnl
73 AC_MSG_NOTICE([
75   Configuration completed.
77   You can now say `make' to compile the groff package and `make install'
78   to install it afterwards.
80   If you want to compile xditview, change the directory to `src/xditview'
81   and follow the instructions given in the file `INSTALL'.