File: configure.in

package info (click to toggle)
spellutils 0.7-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 716 kB
  • ctags: 359
  • sloc: ansic: 3,981; sh: 2,693; makefile: 235; sed: 93
file content (42 lines) | stat: -rw-r--r-- 998 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
dnl Process this file with autoconf to produce a configure script.
AC_INIT(pospell.c)
AM_INIT_AUTOMAKE(spellutils, 0.7)
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)

dnl Set of available languages.
ALL_LINGUAS="da"

dnl Checks for programs
AC_PROG_CC
if test "$ac_cv_prog_gcc" = yes ; then
	CFLAGS="-Wall -pedantic $CFLAGS"
fi
AC_ISC_POSIX
AC_PROG_INSTALL

dnl Checks for header files.

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_TYPE_PID_T

dnl internationalization macros
AM_GNU_GETTEXT
if test "x$prefix" != xNONE; then
	LOCALEDIR=$prefix/share/locale
else
	LOCALEDIR=$ac_default_prefix/share/locale
fi
AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR")
			
dnl Checks for library functions.
AC_CHECK_FUNCS(strerror strsignal mkstemp)
AC_REPLACE_FUNCS(getopt)
AC_CHECK_FUNC(strncasecmp,
  [AC_DEFINE(HAVE_STRNCASECMP)], [newsbody_LIBOJS=strncasecmp.o])
AC_SUBST(LIBOBJS)
AC_SUBST(newsbody_LIBOBJS)

AC_OUTPUT(Makefile intl/Makefile po/Makefile.in)