2005-10-20 10:45:19 +00:00
|
|
|
# Autoconf configuration file for groff.
|
|
|
|
# Copyright (C) 1989-1995, 2001, 2002, 2003, 2004, 2005
|
|
|
|
# Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# This file is part of groff.
|
|
|
|
#
|
|
|
|
# groff is free software; you can redistribute it and/or modify it under
|
|
|
|
# the terms of the GNU General Public License as published by the Free
|
|
|
|
# Software Foundation; either version 2, or (at your option) any later
|
|
|
|
# version.
|
|
|
|
#
|
|
|
|
# groff is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License along
|
|
|
|
# with groff; see the file COPYING. If not, write to the Free Software
|
|
|
|
# Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
#
|
|
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
|
2001-07-10 17:09:00 +00:00
|
|
|
AC_INIT
|
2005-10-20 10:45:19 +00:00
|
|
|
AC_PREREQ(2.59)
|
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([src/include/config.h:src/include/config.hin])
|
2003-05-01 13:09:50 +00:00
|
|
|
AC_CONFIG_SRCDIR([src/roff/groff/groff.cpp])
|
2005-10-20 10:45:19 +00:00
|
|
|
|
|
|
|
# checks for programs
|
2001-07-10 17:09:00 +00:00
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CXX
|
|
|
|
GROFF_CXX_CHECK
|
|
|
|
GROFF_EBCDIC
|
|
|
|
GROFF_OS390
|
2005-10-20 10:45:19 +00:00
|
|
|
GROFF_X11
|
|
|
|
GROFF_APPRESDIR_OPTION
|
|
|
|
GROFF_APPRESDIR_DEFAULT
|
2001-07-10 17:09:00 +00:00
|
|
|
GROFF_PRINT
|
2005-10-20 10:45:19 +00:00
|
|
|
AC_PATH_PROG([PERLPATH], [perl], [/usr/bin/perl])
|
2001-07-10 17:09:00 +00:00
|
|
|
GROFF_PROG_YACC
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
GROFF_INSTALL_SH
|
2002-10-11 08:52:17 +00:00
|
|
|
GROFF_INSTALL_INFO
|
2001-07-10 17:09:00 +00:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
2005-10-20 10:45:19 +00:00
|
|
|
|
|
|
|
# use a dummy substitution if no csh hack is necessary to avoid errors
|
|
|
|
# with non-GNU sed programs
|
|
|
|
GROFF_CSH_HACK([SH_SCRIPT_SED_CMD='1s/.*/:/'], [SH_SCRIPT_SED_CMD='1s/a/a/'])
|
|
|
|
AC_SUBST([SH_SCRIPT_SED_CMD])
|
|
|
|
|
|
|
|
# checks for headers
|
|
|
|
AC_CHECK_HEADERS([stdlib.h unistd.h dirent.h limits.h sys/dir.h \
|
|
|
|
string.h strings.h math.h sys/time.h direct.h process.h])
|
2001-07-10 17:09:00 +00:00
|
|
|
GROFF_ISC_SYSV3
|
|
|
|
GROFF_POSIX
|
2005-10-20 10:45:19 +00:00
|
|
|
|
|
|
|
# checks for header stuff
|
2001-07-10 17:09:00 +00:00
|
|
|
GROFF_SRAND
|
2005-10-20 10:45:19 +00:00
|
|
|
GROFF_NEED_DECLARATION([gettimeofday])
|
|
|
|
GROFF_NEED_DECLARATION([hypot])
|
|
|
|
GROFF_NEED_DECLARATION([popen])
|
|
|
|
GROFF_NEED_DECLARATION([pclose])
|
|
|
|
GROFF_NEED_DECLARATION([putenv])
|
|
|
|
GROFF_NEED_DECLARATION([rand])
|
|
|
|
GROFF_NEED_DECLARATION([snprintf])
|
|
|
|
GROFF_NEED_DECLARATION([srand])
|
|
|
|
GROFF_NEED_DECLARATION([strcasecmp])
|
|
|
|
GROFF_NEED_DECLARATION([strncasecmp])
|
|
|
|
GROFF_NEED_DECLARATION([vfprintf])
|
|
|
|
GROFF_NEED_DECLARATION([vsnprintf])
|
2001-07-10 17:09:00 +00:00
|
|
|
GROFF_SYS_NERR
|
|
|
|
GROFF_SYS_ERRLIST
|
|
|
|
GROFF_OSFCN_H
|
|
|
|
GROFF_LIMITS_H
|
2002-10-11 08:52:17 +00:00
|
|
|
GROFF_INTTYPES_H
|
2005-10-20 10:45:19 +00:00
|
|
|
|
|
|
|
# checks for typedefs
|
2002-10-11 08:52:17 +00:00
|
|
|
GROFF_UNSIGNED_LONG_LONG
|
|
|
|
GROFF_UINTMAX_T
|
2001-07-10 17:09:00 +00:00
|
|
|
GROFF_TIME_T
|
2005-10-20 10:45:19 +00:00
|
|
|
GROFF_TYPE_SIGNAL
|
2001-07-10 17:09:00 +00:00
|
|
|
GROFF_STRUCT_EXCEPTION
|
2005-10-20 10:45:19 +00:00
|
|
|
|
|
|
|
# checks for libraries
|
|
|
|
GROFF_LIBC
|
2001-07-10 17:09:00 +00:00
|
|
|
GROFF_LIBM
|
2005-10-20 10:45:19 +00:00
|
|
|
|
|
|
|
# checks for functions
|
2001-07-10 17:09:00 +00:00
|
|
|
AC_FUNC_MMAP
|
|
|
|
saved_libs="$LIBS"
|
2005-10-20 10:45:19 +00:00
|
|
|
LIBS="$LIBS $LIBC $LIBM"
|
|
|
|
AC_REPLACE_FUNCS([fmod getcwd putenv snprintf strcasecmp \
|
|
|
|
strerror strncasecmp strtol])
|
|
|
|
# vsnprintf is in the same source file as snprintf
|
|
|
|
AC_CHECK_FUNCS([vsnprintf], [], [AC_LIBOBJ([snprintf])])
|
2001-07-10 17:09:00 +00:00
|
|
|
LIBS="$saved_libs"
|
2005-10-20 10:45:19 +00:00
|
|
|
AC_CHECK_FUNCS([gettimeofday isatty kill rename setlocale strsep])
|
2001-07-10 17:09:00 +00:00
|
|
|
GROFF_MKSTEMP
|
2005-10-20 10:45:19 +00:00
|
|
|
AC_CHECK_DECLS([sys_siglist])
|
|
|
|
|
|
|
|
# checks for compiler characteristics
|
2001-07-10 17:09:00 +00:00
|
|
|
GROFF_ARRAY_DELETE
|
|
|
|
GROFF_TRADITIONAL_CPP
|
2005-10-20 10:45:19 +00:00
|
|
|
|
|
|
|
# checks for operating system services
|
2001-07-10 17:09:00 +00:00
|
|
|
GROFF_WCOREFLAG
|
2005-10-20 10:45:19 +00:00
|
|
|
|
|
|
|
# other random stuff
|
2001-07-10 17:09:00 +00:00
|
|
|
GROFF_BROKEN_SPOOLER_FLAGS
|
|
|
|
GROFF_PAGE
|
|
|
|
GROFF_G
|
|
|
|
GROFF_TMAC
|
2005-10-20 10:45:19 +00:00
|
|
|
GROFF_TARGET_PATH_SEPARATOR
|
2002-10-11 08:52:17 +00:00
|
|
|
GROFF_HTML_PROGRAMS
|
2005-10-20 10:45:19 +00:00
|
|
|
GROFF_PDFDOC_PROGRAMS
|
2003-05-01 13:09:50 +00:00
|
|
|
GROFF_PNMTOPS_NOSETPAGE
|
2002-10-11 08:52:17 +00:00
|
|
|
|
2005-10-20 10:45:19 +00:00
|
|
|
AC_CONFIG_FILES([stamp-h], [echo timestamp > stamp-h])
|
|
|
|
AC_CONFIG_FILES([Makefile doc/Makefile src/utils/xtotroff/Makefile])
|
|
|
|
AC_CONFIG_FILES([contrib/gdiffmk/tests/runtests],
|
|
|
|
[chmod +x contrib/gdiffmk/tests/runtests])
|
|
|
|
AC_CONFIG_FILES([test-groff], [chmod +x test-groff])
|
|
|
|
AC_OUTPUT
|
2002-10-11 08:52:17 +00:00
|
|
|
|
2005-10-20 10:45:19 +00:00
|
|
|
GROFF_APPRESDIR_CHECK
|