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
10 AC_PATH_PROG(PERLPATH, perl, /usr/bin/perl)
16 GROFF_CSH_HACK(SH_SCRIPT_SED_CMD='1s/.*/:/', SH_SCRIPT_SED_CMD='')
17 AC_SUBST(SH_SCRIPT_SED_CMD)
18 dnl checks for headers
19 AC_CHECK_HEADERS(unistd.h dirent.h limits.h sys/dir.h stdlib.h)
30 dnl checks for typedefs
33 GROFF_STRUCT_EXCEPTION
34 dnl checks for libraries
36 dnl checks for functions
39 LIBS="$LIBS -lc $LIBM"
40 AC_REPLACE_FUNCS(fmod strtol getcwd strerror putenv)
42 AC_CHECK_FUNCS(rename mkstemp strcasecmp strsep strdup)
44 dnl checks for compiler characteristics
47 dnl checks for operating system services
49 dnl other random stuff
50 GROFF_BROKEN_SPOOLER_FLAGS
54 $srcdir/mkinstalldirs src/xditview
55 AC_OUTPUT(Makefile src/xditview/Imakefile)