annotate configure.in @ 0:8d4d17a528ef

initial import
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Thu, 28 Jun 2007 19:48:21 +0900
parents
children fbad40babe88
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
1 # -*- Autoconf -*-
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
2 # Process this file with autoconf to produce a configure script.
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
3
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
4 AC_PREREQ(2.59)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
5 AC_INIT(pidgin-audacioius, 2.0.0, yaz@honeyplanet.jp)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
6 AC_CONFIG_SRCDIR([pidgin-audacious.c])
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
7
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
8 # Checks for programs.
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
9 AC_PROG_CC
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
10 AC_PROG_INSTALL
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
11
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
12 # Checks for libraries.
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
13 PKG_CHECK_MODULES(AUDACIOUS, [audacious >= 1.4.0], , [
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
14 AC_MSG_RESULT(no)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
15 AC_MSG_ERROR([
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
16
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
17 You must have audacious >= 1.4.0 development headers installed to build.
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
18 ])])
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
19 AUD_CFLAGS=`pkg-config --cflags audacious 2> /dev/null`
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
20 AUD_LIBS=`pkg-config --libs audacious 2> /dev/null`
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
21 AUD_LIB_DIR=`pkg-config --variable=lib_dir audacious 2> /dev/null`
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
22 AC_SUBST(AUD_CFLAGS)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
23 AC_SUBST(AUD_LIBS)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
24 AC_SUBST(AUD_LIB_DIR)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
25
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
26 PKG_CHECK_MODULES(PIDGIN, [pidgin >= 2.0.0], , [
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
27 AC_MSG_RESULT(no)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
28 AC_MSG_ERROR([
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
29
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
30 You must have pidgin >= 2.0.0 development headers installed to build.
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
31 ])])
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
32 PIDGIN_CFLAGS=`pkg-config --cflags pidgin 2> /dev/null`
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
33 PIDGIN_LIBS=`pkg-config --libs pidgin 2> /dev/null`
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
34 PIDGIN_LIB_DIR=`pkg-config --variable=libdir pidgin 2> /dev/null`
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
35 AC_SUBST(PIDGIN_CFLAGS)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
36 AC_SUBST(PIDGIN_LIBS)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
37 AC_SUBST(PIDGIN_LIB_DIR)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
38
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
39 PKG_CHECK_MODULES(DBUSGLIB, [dbus-glib-1 >= 0.72], , [
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
40 AC_MSG_RESULT(no)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
41 AC_MSG_ERROR([
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
42
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
43 You must have dbus-glib-1 >= 0.72 development headers installed to build.
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
44 ])])
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
45 DBUS_GLIB_CFLAGS=`pkg-config --cflags dbus-glib-1`
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
46 DBUS_GLIB_LIBS=`pkg-config --libs dbus-glib-1`
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
47 DBUS_GLIB_LIB_DIR=`pkg-config --variable=libdir dbus-glib-1`
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
48 AC_SUBST(DBUS_GLIB_CFLAGS)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
49 AC_SUBST(DBUS_GLIB_LIBS)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
50 AC_SUBST(DBUS_GLIB_LIB_DIR)
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
51
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
52 # Checks for header files.
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
53 AC_HEADER_STDC
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
54 AC_CHECK_HEADERS([stdlib.h string.h])
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
55
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
56 # Checks for typedefs, structures, and compiler characteristics.
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
57 AC_C_CONST
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
58
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
59 # Checks for library functions.
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
60 AC_CHECK_FUNCS([strstr])
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
61
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
62 #AC_CONFIG_FILES([Makefile])
8d4d17a528ef initial import
Yoshiki Yazawa <yaz@cc.rim.or.jp>
parents:
diff changeset
63 AC_OUTPUT(Makefile)