1
dnl Process this file with autoconf to produce a configure script.
2
AC_INIT(GNU Indent, 2.2.7, bug-indent@gnu.org)
3
AC_CONFIG_SRCDIR(src/indent.c)
4
AC_CONFIG_AUX_DIR(config)
5
AM_INIT_AUTOMAKE(indent, 2.2.7)
6
AM_CONFIG_HEADER(config.h)
10
dnl Checks for programs.
18
dnl Checks for UNIX variants that set DEFS,
21
dnl Checks for compiler output filename suffixes.
25
dnl Checks for typedefs, structures, and compiler characteristics.
29
dnl Check for tools needed for formatting the documentation.
30
ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
31
AC_PATH_PROG(DVIPS, dvips, $ac_aux_dir_abs/missing dvips)
32
AC_PATH_PROG(TEXI2PDF, texi2pdf, $ac_aux_dir_abs/missing texi2pdf)
33
AC_PATH_PROG(TEXI2HTML, texi2html, $ac_aux_dir_abs/missing texi2html)
35
dnl Needed for the gettext support:
36
ALL_LINGUAS="zh_TW.Big5"
37
dnl These are the only lines required to internationalize the package.
38
dnl (OK, not quite, the AC_OUTPUT has also some parts.)
41
AC_DEFINE(HAVE_CATGETS)
43
AC_DEFINE(HAVE_LC_MESSAGES)
44
AC_DEFINE(HAVE_STPCPY)
45
localedir=${datadir}/locale
49
AC_CHECK_FUNCS(strchr memcpy memmove utime)
50
AC_CHECK_HEADERS(unistd.h string.h malloc.h utime.h sys/utime.h)
52
if test "$ac_cv_func_utime" = yes ; then
53
if test "$ac_cv_header_utime_h" = yes ; then
68
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])