~epii/+junk/vibrio

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
43
44
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.60])
AC_INIT([Vibrio], [0.0.1], [m-hyuga@mail.117.cx])
AC_CONFIG_SRCDIR([vibrio.c])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])

# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
PKG_PROG_PKG_CONFIG([0.9.0])

# Checks if in Bazaar repository
AC_MSG_CHECKING([whether we are in bazaar repository])
AM_CONDITIONAL(IS_IN_BZR, [bzr info 2>&1 | grep "branch root: .$" >/dev/null])
AM_COND_IF([IS_IN_BZR],
	AC_MSG_RESULT([yes]),
	AC_MSG_RESULT([no])
)

# Checks for libraries.
AC_CHECK_LIB([m], [sin])
PKG_CHECK_MODULES([GLIB], [glib-2.0])
PKG_CHECK_MODULES([AO], [ao])

# Checks for header files.
AC_CHECK_HEADERS([libintl.h locale.h stdint.h stdlib.h string.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_SIZE_T

# Checks for library functions.
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.18.1])
AC_FUNC_MALLOC
AC_CHECK_FUNCS([modf setlocale])

AC_CONFIG_FILES([Makefile po/Makefile.in])
AC_OUTPUT