This repository has been archived by the owner on Apr 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
configure.ac
94 lines (76 loc) · 1.95 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
94
#
# Most of this configure script was ripped from gaim or the
# gaim-encryption configure script, thanks guys ;)
#
NETSOUL_VERSION=m4_esyscmd([tr -d '\n' <VERSION])
AC_INIT([netsoul-purple], m4_esyscmd([tr -d '\n' <VERSION]))
AC_CONFIG_SRCDIR([src/netsoul.c])
AC_PREREQ([2.50])
AM_INIT_AUTOMAKE
AC_DEFINE_UNQUOTED(NETSOUL_VERSION, "$NETSOUL_VERSION", [Gaim-Netsoul Version])
AC_PATH_PROG(sedpath, sed)
#
# Our header
#
AH_TOP([ /* our header */
#ifndef _NETSOUL_CONFIG_H
#define _NETSOUL_CONFIG_H
])
AH_BOTTOM([
#endif /* _NETSOUL_CONFIG_H */
])
#
# Look for the C compiler
#
CFLAGS_save="$CFLAGS"
AC_PROG_CC
CFLAGS="$CFLAGS_save"
AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no)
if test "x$enable_debug" = "xyes" ; then
DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
fi
AC_SUBST(DEBUG_CFLAGS)
if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -Wall -g3"
fi
AC_SUBST(CFLAGS)
#
# Check for Gaim
#
PKG_CHECK_MODULES([PIDGIN], [pidgin], AC_SUBST([PIDGIN_CFLAGS]), [PKG_CHECK_MODULES([PIDGIN], [purple], AC_SUBST([PIDGIN_CFLAGS]))])
AC_SUBST(PIDGIN_CFLAGS)
#
# check for gtk and other dependencies
#
AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([
*** GLib 2.0 is required to build netsoul-purple; please make sure you have
*** the GLib development headers installed. The latest version of GLib is
*** always available at http://www.gtk.org/.]))
AC_SUBST(GLIB_CFLAGS)
#
# Check if plugins are enabled
#
want_plugins=yes
AM_CONDITIONAL(PLUGINS, test "$want_plugins" = "yes")
#
# Setup libtool
#
AM_PROG_LIBTOOL
LIBTOOL="$LIBTOOL --silent"
#
# Finish up
#
AC_CONFIG_HEADERS(pre_config.h)
AC_CONFIG_MACRO_DIR([m4])
AC_OUTPUT([Makefile
pixmaps/Makefile
src/Makefile
])
echo;
echo Configuration complete
echo;
echo Debugging enabled..............: $enable_debug
echo;
echo Type make to compile
echo;