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
12 AC_PATH_PROG(PERLPATH, perl, /usr/bin/perl)
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)
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)
37 dnl checks for typedefs
40 GROFF_STRUCT_EXCEPTION
41 dnl checks for libraries
43 dnl checks for functions
46 LIBS="$LIBS -lc $LIBM"
47 AC_REPLACE_FUNCS(fmod strtol getcwd strerror putenv)
49 AC_CHECK_FUNCS(rename mkstemp strcasecmp strncasecmp strsep strdup)
51 dnl checks for compiler characteristics
54 dnl checks for operating system services
56 dnl other random stuff
57 GROFF_BROKEN_SPOOLER_FLAGS
61 $srcdir/mkinstalldirs src/xditview
62 AC_OUTPUT(Makefile src/xditview/Imakefile)