~ubuntu-branches/ubuntu/trusty/indent/trusty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2002-01-27 18:47:28 UTC
  • Revision ID: james.westby@ubuntu.com-20020127184728-5w6lnpj072bqil91
Tags: upstream-2.2.7
ImportĀ upstreamĀ versionĀ 2.2.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
7
 
 
8
AM_MAINTAINER_MODE
 
9
 
 
10
dnl Checks for programs.
 
11
AC_PROG_CC
 
12
AC_PROG_CPP
 
13
AC_PROG_INSTALL
 
14
 
 
15
AC_AIX
 
16
AC_MINIX
 
17
 
 
18
dnl Checks for UNIX variants that set DEFS,
 
19
AC_ISC_POSIX
 
20
 
 
21
dnl Checks for compiler output filename suffixes.
 
22
AC_EXEEXT
 
23
AC_OBJEXT
 
24
 
 
25
dnl Checks for typedefs, structures, and compiler characteristics.
 
26
dnl AM_C_PROTOTYPES
 
27
AC_C_CONST
 
28
 
 
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)
 
34
 
 
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.)
 
39
AM_GNU_GETTEXT
 
40
 
 
41
AC_DEFINE(HAVE_CATGETS)
 
42
AC_DEFINE(ENABLE_NLS)
 
43
AC_DEFINE(HAVE_LC_MESSAGES)
 
44
AC_DEFINE(HAVE_STPCPY)
 
45
localedir=${datadir}/locale
 
46
AC_SUBST(localedir)
 
47
 
 
48
AC_HEADER_STDC
 
49
AC_CHECK_FUNCS(strchr memcpy memmove utime)
 
50
AC_CHECK_HEADERS(unistd.h string.h malloc.h utime.h sys/utime.h)
 
51
 
 
52
if test "$ac_cv_func_utime" = yes ; then
 
53
if test "$ac_cv_header_utime_h" = yes ; then
 
54
indent_UTIMBUF
 
55
fi
 
56
fi
 
57
 
 
58
AC_HEADER_DIRENT
 
59
 
 
60
AC_OUTPUT([
 
61
Makefile
 
62
src/Makefile
 
63
doc/Makefile
 
64
man/Makefile
 
65
po/Makefile.in
 
66
intl/Makefile],
 
67
[touch Makefile.in
 
68
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile])
 
69