-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.in
68 lines (52 loc) · 1.82 KB
/
configure.in
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
dnl gBilling configuration script input.
dnl Process this file with autoconf to produce configuration script.
dnl Ardhan Madras <[email protected]>
AC_INIT([configure.in])
AM_INIT_AUTOMAKE([gbilling-server], [0.3.2], [[email protected]])
AM_MAINTAINER_MODE
AM_CONFIG_HEADER([config.h])
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_CHECK_HEADERS([sys/file.h])
AC_CHECK_HEADERS([sys/socket.h])
AC_CHECK_HEADERS([sys/time.h])
AC_CHECK_HEADERS([arpa/inet.h])
AM_PROG_LIBTOOL
dnl Check for libraries
PKG_CHECK_MODULES(PACKAGE, [gtk+-2.0 >= 2.18.9 glib-2.0 >= 2.22.5 gthread-2.0 >= 2.22.5 gstreamer-0.10 >= 0.10.29])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
dnl Set predefined stuff in config.h
if test "x${prefix}" = "xNONE"; then
packageprefix=${ac_default_prefix}
else
packageprefix=${prefix}
fi
AC_DEFINE_UNQUOTED(SQLITE_SUPPORT, 1, [SQLite support])
AC_DEFINE_UNQUOTED(GSTREAMER_SUPPORT, 1, [GStreamer support])
AC_DEFINE_UNQUOTED(PACKAGE_VERSION, "0.3.2", [Package version])
AC_DEFINE_UNQUOTED(PACKAGE_NAME, "gBilling Server", [Package name])
AC_DEFINE_UNQUOTED(PACKAGE_BUGREPORT, "[email protected]", [Package bugreport])
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${packageprefix}/share/${PACKAGE}", [Data directory])
AC_DEFINE_UNQUOTED(PACKAGE_PIXMAPS_DIR, "${packageprefix}/share/pixmaps", [Pixmaps directory])
AC_DEFINE_UNQUOTED(PACKAGE_DOC_DIR, "${packageprefix}/doc/${PACKAGE}", [Documentation directory])
AC_OUTPUT([Makefile
gbilling-server.desktop
src/Makefile
pixmaps/Makefile
data/Makefile
ui/Makefile
sounds/Makefile
])
echo "
Configuration:
Source code location.. : ${srcdir}
Prefix................ : ${prefix}
Compiler.............. : ${CC}
"
echo "
konfigurasi selesai, jalankan 'make' untuk kompilasi dan
'make install' untuk instalasi
"