0
|
1 # -*- Autoconf -*-
|
|
2 # Process this file with autoconf to produce a configure script.
|
|
3
|
|
4 AC_PREREQ(2.59)
|
22
|
5 AC_INIT(pidgin-audacioius, 3.0.0, yaz@honeyplanet.jp)
|
0
|
6 AC_CONFIG_SRCDIR([pidgin-audacious.c])
|
|
7
|
|
8 # Checks for programs.
|
|
9 AC_PROG_CC
|
|
10 AC_PROG_INSTALL
|
|
11
|
|
12 # Checks for libraries.
|
22
|
13 PKG_CHECK_MODULES(AUDACIOUS, [audacious >= 1.5.0], , [
|
0
|
14 AC_MSG_RESULT(no)
|
|
15 AC_MSG_ERROR([
|
|
16
|
22
|
17 You must have audacious >= 1.5.0 development headers installed to build.
|
0
|
18 ])])
|
|
19 AUD_CFLAGS=`pkg-config --cflags audacious 2> /dev/null`
|
|
20 AUD_LIBS=`pkg-config --libs audacious 2> /dev/null`
|
|
21 AUD_LIB_DIR=`pkg-config --variable=lib_dir audacious 2> /dev/null`
|
|
22 AC_SUBST(AUD_CFLAGS)
|
|
23 AC_SUBST(AUD_LIBS)
|
|
24 AC_SUBST(AUD_LIB_DIR)
|
|
25
|
22
|
26 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.14.0], , [
|
0
|
27 AC_MSG_RESULT(no)
|
|
28 AC_MSG_ERROR([
|
|
29
|
22
|
30 You must have glib >= 2.14.0 development headers installed to build.
|
|
31 ])])
|
|
32
|
|
33 GLIB_CFLAGS=`pkg-config --cflags glib-2.0 2> /dev/null`
|
|
34 GLIB_LIBS=`pkg-config --libs glib-2.0 2> /dev/null`
|
|
35 GLIB_LIB_DIR=`pkg-config --variable=lib_dir glib-2.0 2> /dev/null`
|
|
36 AC_SUBST(GLIB_CFLAGS)
|
|
37 AC_SUBST(GLIB_LIBS)
|
|
38 AC_SUBST(GLIB_LIB_DIR)
|
|
39
|
|
40 PKG_CHECK_MODULES(PIDGIN, [pidgin >= 2.5.0], , [
|
|
41 AC_MSG_RESULT(no)
|
|
42 AC_MSG_ERROR([
|
|
43
|
|
44 You must have pidgin >= 2.5.0 development headers installed to build.
|
0
|
45 ])])
|
|
46 PIDGIN_CFLAGS=`pkg-config --cflags pidgin 2> /dev/null`
|
|
47 PIDGIN_LIBS=`pkg-config --libs pidgin 2> /dev/null`
|
22
|
48 if test x"$prefix" = x"NONE" ; then
|
|
49 PIDGIN_PREFIX=`pkg-config --variable=prefix pidgin 2> /dev/null`
|
|
50 else
|
|
51 PIDGIN_PREFIX=$prefix
|
|
52 fi
|
0
|
53 AC_SUBST(PIDGIN_CFLAGS)
|
|
54 AC_SUBST(PIDGIN_LIBS)
|
22
|
55 AC_SUBST(PIDGIN_PREFIX)
|
0
|
56
|
|
57 PKG_CHECK_MODULES(DBUSGLIB, [dbus-glib-1 >= 0.72], , [
|
|
58 AC_MSG_RESULT(no)
|
|
59 AC_MSG_ERROR([
|
|
60
|
|
61 You must have dbus-glib-1 >= 0.72 development headers installed to build.
|
|
62 ])])
|
|
63 DBUS_GLIB_CFLAGS=`pkg-config --cflags dbus-glib-1`
|
|
64 DBUS_GLIB_LIBS=`pkg-config --libs dbus-glib-1`
|
|
65 DBUS_GLIB_LIB_DIR=`pkg-config --variable=libdir dbus-glib-1`
|
|
66 AC_SUBST(DBUS_GLIB_CFLAGS)
|
|
67 AC_SUBST(DBUS_GLIB_LIBS)
|
|
68 AC_SUBST(DBUS_GLIB_LIB_DIR)
|
|
69
|
|
70 # Checks for header files.
|
|
71 AC_HEADER_STDC
|
|
72 AC_CHECK_HEADERS([stdlib.h string.h])
|
|
73
|
|
74 # Checks for typedefs, structures, and compiler characteristics.
|
|
75 AC_C_CONST
|
|
76
|
|
77 # Checks for library functions.
|
|
78 AC_CHECK_FUNCS([strstr])
|
|
79
|
|
80 #AC_CONFIG_FILES([Makefile])
|
|
81 AC_OUTPUT(Makefile)
|