1
by epii
first commit |
1 |
# -*- Autoconf -*- |
2 |
# Process this file with autoconf to produce a configure script. |
|
3 |
||
4 |
AC_PREREQ([2.60]) |
|
19
by epii
version number changed |
5 |
AC_INIT([Vibrio], [0.0.1], [m-hyuga@mail.117.cx]) |
1
by epii
first commit |
6 |
AC_CONFIG_SRCDIR([vibrio.c]) |
7 |
AC_CONFIG_HEADERS([config.h]) |
|
8 |
AM_INIT_AUTOMAKE([-Wall -Werror foreign]) |
|
9 |
||
10 |
# Checks for programs. |
|
11 |
AC_PROG_CC
|
|
12 |
AC_PROG_CC_C99
|
|
13 |
PKG_PROG_PKG_CONFIG([0.9.0]) |
|
14 |
||
45
by epii
checking whether build environment is in bazaar repository or not, automatically |
15 |
# Checks if in Bazaar repository |
46
by epii
Oops, failed to detect bazaar repository. fixing... |
16 |
AC_MSG_CHECKING([whether we are in bazaar repository]) |
17 |
AM_CONDITIONAL(IS_IN_BZR, [bzr info 2>&1 | grep "branch root: .$" >/dev/null]) |
|
18 |
AM_COND_IF([IS_IN_BZR], |
|
19 |
AC_MSG_RESULT([yes]), |
|
20 |
AC_MSG_RESULT([no]) |
|
21 |
)
|
|
45
by epii
checking whether build environment is in bazaar repository or not, automatically |
22 |
|
1
by epii
first commit |
23 |
# Checks for libraries. |
24 |
AC_CHECK_LIB([m], [sin]) |
|
25 |
PKG_CHECK_MODULES([GLIB], [glib-2.0]) |
|
9
by epii
changing sound library PulseAudio -> libao |
26 |
PKG_CHECK_MODULES([AO], [ao]) |
1
by epii
first commit |
27 |
|
28 |
# Checks for header files. |
|
14
by epii
added gettext support |
29 |
AC_CHECK_HEADERS([libintl.h locale.h stdint.h stdlib.h string.h unistd.h]) |
1
by epii
first commit |
30 |
|
31 |
# Checks for typedefs, structures, and compiler characteristics. |
|
3
by epii
added wave output support |
32 |
AC_HEADER_STDBOOL
|
14
by epii
added gettext support |
33 |
AC_C_INLINE
|
1
by epii
first commit |
34 |
AC_TYPE_INT16_T
|
14
by epii
added gettext support |
35 |
AC_TYPE_SIZE_T
|
1
by epii
first commit |
36 |
|
37 |
# Checks for library functions. |
|
20
by epii
changed AM_GNU_GETTEXT place (in configure.ac) |
38 |
AM_GNU_GETTEXT([external]) |
39 |
AM_GNU_GETTEXT_VERSION([0.18.1]) |
|
1
by epii
first commit |
40 |
AC_FUNC_MALLOC
|
14
by epii
added gettext support |
41 |
AC_CHECK_FUNCS([modf setlocale]) |
1
by epii
first commit |
42 |
|
14
by epii
added gettext support |
43 |
AC_CONFIG_FILES([Makefile po/Makefile.in]) |
1
by epii
first commit |
44 |
AC_OUTPUT
|