mirror of
https://https.git.savannah.gnu.org/git/diffutils.git
synced 2026-01-27 18:04:32 +00:00
(XGETTEXT): Restore from pre-2004-04-12 version. This fixes a bug that lost many msgids in doc/diffutils.pot. (AC_INIT): Version 2.8.7.
91 lines
2.5 KiB
Plaintext
91 lines
2.5 KiB
Plaintext
# Configure template for GNU Diffutils.
|
|
|
|
# Copyright (C) 1994, 1995, 1998, 2001, 2002, 2004 Free Software
|
|
# Foundation, Inc.
|
|
|
|
# This program 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.
|
|
|
|
# This program 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 this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
# 02111-1307, USA.
|
|
|
|
AC_PREREQ(2.53)
|
|
|
|
AC_INIT([GNU diffutils], [2.8.7], [bug-gnu-utils@gnu.org])
|
|
AC_CONFIG_SRCDIR([src/diff.c])
|
|
AC_CONFIG_AUX_DIR([config])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
AM_INIT_AUTOMAKE([gnits])
|
|
AC_CONFIG_HEADER([config.h:config.hin])
|
|
|
|
gl_USE_SYSTEM_EXTENSIONS
|
|
AC_PROG_AWK
|
|
AC_PROG_CC
|
|
AM_PROG_CC_STDC
|
|
AM_MISSING_PROG(HELP2MAN, help2man)
|
|
AC_PROG_RANLIB
|
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
AC_C_VARARRAYS
|
|
|
|
AC_DEFINE(DEFAULT_EDITOR_PROGRAM, "ed",
|
|
[Name of editor program, unless overridden.])
|
|
|
|
AC_PATH_PROG(PR_PROGRAM, pr, "")
|
|
AC_DEFINE_UNQUOTED(PR_PROGRAM, "$PR_PROGRAM", [Name of "pr" program.])
|
|
|
|
AC_CHECK_HEADERS(fcntl.h locale.h sys/file.h unistd.h)
|
|
AC_CHECK_MEMBERS([struct stat.st_blksize])
|
|
AC_CHECK_MEMBERS([struct stat.st_rdev])
|
|
jm_AC_TYPE_INTMAX_T
|
|
jm_AC_TYPE_UINTMAX_T
|
|
AC_HEADER_DIRENT
|
|
AC_HEADER_SYS_WAIT
|
|
AC_STRUCT_ST_MTIM_NSEC
|
|
AC_TYPE_PID_T
|
|
|
|
AC_CHECK_FUNCS(dup2 gettimeofday sigaction sigprocmask strcasecoll stricoll)
|
|
AC_REPLACE_FUNCS(waitpid)
|
|
AC_FUNC_CLOSEDIR_VOID
|
|
AC_FUNC_FORK
|
|
AC_DEFINE([REGEX_MALLOC], 1,
|
|
[Define to 1 to avoid alloca in the regular-expression implementation.])
|
|
|
|
|
|
GNULIB_AUTOCONF_SNIPPET
|
|
AM_GNU_GETTEXT_VERSION([0.14.1])
|
|
XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
|
|
|
|
|
|
# Check for clock_gettime and its library. Solaris puts it in -lrt or
|
|
# -lposix4, but we don't want to link that library unless we have to.
|
|
diff_saved_libs=$LIBS
|
|
AC_SEARCH_LIBS(clock_gettime, [rt posix4])
|
|
case $ac_cv_search_clock_gettime in
|
|
no | 'none required')
|
|
LIB_CLOCK_GETTIME=;;
|
|
*)
|
|
LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime;;
|
|
esac
|
|
AC_SUBST([LIB_CLOCK_GETTIME])
|
|
AC_CHECK_FUNCS(clock_gettime)
|
|
LIBS=$diff_saved_libs
|
|
|
|
AC_FUNC_SETMODE_DOS
|
|
|
|
AC_CONFIG_FILES([Makefile doc/Makefile \
|
|
lib/Makefile man/Makefile \
|
|
m4/Makefile ms/Makefile po/Makefile.in src/Makefile])
|
|
AC_OUTPUT
|