Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / groff / configure.ac
blob8cb0f2d14b1fbef431a41be6c29f9fe8f26a53ff
1 # Autoconf configuration file for groff.
2 # Copyright (C) 1989-1995, 2001, 2002, 2003, 2004, 2005
3 # Free Software Foundation, Inc.
5 # This file is part of groff.
7 # groff is free software; you can redistribute it and/or modify it under
8 # the terms of the GNU General Public License as published by the Free
9 # Software Foundation; either version 2, or (at your option) any later
10 # version.
12 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 # for more details.
17 # You should have received a copy of the GNU General Public License along
18 # with groff; see the file COPYING.  If not, write to the Free Software
19 # Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
21 # Process this file with autoconf to produce a configure script.
23 AC_INIT
24 AC_PREREQ(2.59)
26 AC_CONFIG_HEADERS([src/include/config.h:src/include/config.hin])
27 AC_CONFIG_SRCDIR([src/roff/groff/groff.cpp])
29 # checks for programs
30 AC_PROG_CC
31 AC_PROG_CXX
32 GROFF_CXX_CHECK
33 GROFF_EBCDIC
34 GROFF_OS390
35 GROFF_X11
36 GROFF_APPRESDIR_OPTION
37 GROFF_APPRESDIR_DEFAULT
38 GROFF_PRINT
39 AC_PATH_PROG([PERLPATH], [perl], [/usr/bin/perl])
40 GROFF_PROG_YACC
41 AC_PROG_RANLIB
42 GROFF_INSTALL_SH
43 GROFF_INSTALL_INFO
44 AC_PROG_INSTALL
45 AC_PROG_LN_S
47 SH_SCRIPT_SED_CMD="1s,/bin/sh,${CONFIG_SHELL},"
48 AC_SUBST([SH_SCRIPT_SED_CMD])
50 # checks for headers
51 AC_CHECK_HEADERS([stdlib.h unistd.h dirent.h limits.h sys/dir.h \
52                   string.h strings.h math.h sys/time.h direct.h process.h])
53 GROFF_ISC_SYSV3
54 GROFF_POSIX
56 # checks for header stuff
57 GROFF_SRAND
58 GROFF_NEED_DECLARATION([gettimeofday])
59 GROFF_NEED_DECLARATION([hypot])
60 GROFF_NEED_DECLARATION([popen])
61 GROFF_NEED_DECLARATION([pclose])
62 GROFF_NEED_DECLARATION([putenv])
63 GROFF_NEED_DECLARATION([rand])
64 GROFF_NEED_DECLARATION([snprintf])
65 GROFF_NEED_DECLARATION([srand])
66 GROFF_NEED_DECLARATION([strcasecmp])
67 GROFF_NEED_DECLARATION([strncasecmp])
68 GROFF_NEED_DECLARATION([vfprintf])
69 GROFF_NEED_DECLARATION([vsnprintf])
70 GROFF_SYS_NERR
71 GROFF_SYS_ERRLIST
72 GROFF_OSFCN_H
73 GROFF_LIMITS_H
74 GROFF_INTTYPES_H
76 # checks for typedefs
77 GROFF_UNSIGNED_LONG_LONG
78 GROFF_UINTMAX_T
79 GROFF_TIME_T
80 GROFF_TYPE_SIGNAL
81 GROFF_STRUCT_EXCEPTION
83 # checks for libraries
84 GROFF_LIBC
85 GROFF_LIBM
87 # checks for functions
88 AC_FUNC_MMAP
89 saved_libs="$LIBS"
90 LIBS="$LIBS $LIBC $LIBM"
91 AC_REPLACE_FUNCS([fmod getcwd putenv snprintf strcasecmp \
92                   strerror strncasecmp strtol])
93 # vsnprintf is in the same source file as snprintf
94 AC_CHECK_FUNCS([vsnprintf], [], [AC_LIBOBJ([snprintf])])
95 LIBS="$saved_libs"
96 AC_CHECK_FUNCS([gettimeofday isatty kill rename setlocale strsep])
97 GROFF_MKSTEMP
98 AC_CHECK_DECLS([sys_siglist])
100 # checks for compiler characteristics
101 GROFF_ARRAY_DELETE
102 GROFF_TRADITIONAL_CPP
104 # checks for operating system services
105 GROFF_WCOREFLAG
107 # other random stuff
108 GROFF_BROKEN_SPOOLER_FLAGS
109 GROFF_PAGE
110 GROFF_G
111 GROFF_TMAC
112 GROFF_TARGET_PATH_SEPARATOR
113 GROFF_HTML_PROGRAMS
114 GROFF_PDFDOC_PROGRAMS
115 GROFF_PNMTOPS_NOSETPAGE
117 AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h])
118 AC_CONFIG_FILES([Makefile doc/Makefile src/utils/xtotroff/Makefile])
119 AC_CONFIG_FILES([contrib/gdiffmk/tests/runtests],
120                 [chmod +x contrib/gdiffmk/tests/runtests])
121 AC_CONFIG_FILES([test-groff], [chmod +x test-groff])
122 AC_OUTPUT
124 GROFF_APPRESDIR_CHECK