-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
93 lines (77 loc) · 2.81 KB
/
configure.ac
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
dnl Process this file with autoconf to produce a configure script.
dnl prelude
AC_PREREQ([2.60])
AC_INIT([SCEngine interface library],
[0.1.0],
[martin.antony@yahoo.fr],
[sceinterface])
AC_CONFIG_SRCDIR([src/SCEInterface.c])
AC_CONFIG_AUX_DIR([build/aux])
AC_CONFIG_MACRO_DIR([build/m4])
AM_INIT_AUTOMAKE([1.10 -Wall -Werror foreign])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl check for programs
m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) dnl I hate you Automake 1.12
LT_PREREQ([2.2.0])
LT_INIT
AC_PROG_CC
SCE_CHECK_DOXYGEN
dnl basic setup
dnl
dnl revision of the library
dnl
dnl CURRENT:REVISION:AGE
dnl
dnl Please remeber to bump library version before releases
dnl Remeberer:
dnl =====================================================================
dnl | If you have... | Bump version to |
dnl =====================================================================
dnl | Not changed the interface (bug fixes) | CURRENT:REV+1:AGE |
dnl ---------------------------------------------------------------------
dnl | Augmented the interface (new functions) | CURRENT+1:0:AGE+1 |
dnl ---------------------------------------------------------------------
dnl | Broken old interface (e.g. removed functions) | CURRENT+1:0:0 |
dnl ---------------------------------------------------------------------
SCE_INTERFACE_LTVERSION="0:0:0"
AC_SUBST([SCE_INTERFACE_LTVERSION])
pkgconfigdir="$libdir/pkgconfig"
sce_includedir="$includedir/SCE"
sce_include_interfacedir="$sce_includedir/interface"
AC_SUBST([pkgconfigdir])
AC_SUBST([sce_includedir])
AC_SUBST([sce_include_interfacedir])
dnl legacy version names
AC_DEFINE([SCE_INTERFACE_VERSION_STRING], [VERSION], [Version of the package])
AC_DEFINE([FFM_VERSION_STRING], ["0.1"], [Version of the FFM sublib])
dnl check for libs & headers
SCE_CHECK_PTHREAD
PKG_CHECK_MODULES([SCE_UTILS], [sceutils])
PKG_CHECK_MODULES([SCE_CORE], [scecore])
PKG_CHECK_MODULES([SCE_RENDERER], [scerenderer])
SCE_REQUIRE_LIB([m], [pow])
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
dnl Checks for library functions.
SCE_REQUIRE_FUNCS([memset pow strstr])
SCE_CHECK_DEBUG
dnl output files
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile
Doxyfile
doc/Makefile
src/Makefile
include/Makefile
include/SCE/Makefile
include/SCE/interface/Makefile
sceinterface.pc
])
AC_OUTPUT
echo "------------------------------------------"
echo "SCEInterface version : $VERSION ($SCE_INTERFACE_LTVERSION)"
echo "Debugging enabled : $enable_debug"
echo "Base installation directory : $prefix"
echo ""
echo "Configuration succeed."
echo ""