annotate configure.ac @ 169:7ca25f18902f

Autotoolize MadButterfly.
author sylee@eeepc
date Fri, 31 Oct 2008 00:12:17 +0800
parents
children 9008ac31efbd
rev   line source
169
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
1 # -*- Autoconf -*-
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
2 # Process this file with autoconf to produce a configure script.
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
3
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
4 AC_PREREQ(2.61)
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
5 AC_INIT([MadButterfly], [0.0], [http://www.assembla.com/spaces/MadButterfly])
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
6 AC_CONFIG_HEADER([config.h])
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
7 AM_INIT_AUTOMAKE([foreign])
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
8
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
9 # Checks for programs.
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
10 AC_PROG_CC
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
11 AM_PROG_LIBTOOL
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
12
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
13 # Checks for libraries.
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
14 PKG_CHECK_MODULES([cairo], [cairo >= 1.6.0], , AC_MSG_ERROR([not found]))
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
15
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
16 # Checks for header files.
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
17 AC_PATH_X
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
18 AC_HEADER_STDC
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
19 AC_CHECK_HEADERS([stdint.h stdlib.h string.h sys/time.h unistd.h])
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
20
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
21 # Checks for typedefs, structures, and compiler characteristics.
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
22 AC_C_CONST
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
23 AC_TYPE_SIZE_T
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
24 AC_HEADER_TIME
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
25 AC_STRUCT_TM
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
26 AC_TYPE_UINT32_T
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
27 AC_TYPE_UINT64_T
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
28
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
29 # Checks for library functions.
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
30 AC_FUNC_MALLOC
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
31 AC_FUNC_REALLOC
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
32 AC_FUNC_SELECT_ARGTYPES
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
33 AC_CHECK_FUNCS([gettimeofday memset select sqrt strdup])
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
34
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
35 AC_CONFIG_FILES([Makefile
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
36 libmbfly.pc
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
37 src/Makefile])
7ca25f18902f Autotoolize MadButterfly.
sylee@eeepc
parents:
diff changeset
38 AC_OUTPUT