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
|
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(pidgin-audacioius, 2.0.0, yaz@honeyplanet.jp)
AC_CONFIG_SRCDIR([pidgin-audacious.c])
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
# Checks for libraries.
PKG_CHECK_MODULES(AUDACIOUS, [audacious >= 1.4.0], , [
AC_MSG_RESULT(no)
AC_MSG_ERROR([
You must have audacious >= 1.4.0 development headers installed to build.
])])
AUD_CFLAGS=`pkg-config --cflags audclient 2> /dev/null`
AUD_LIBS=`pkg-config --libs audclient 2> /dev/null`
AUD_LIB_DIR=`pkg-config --variable=lib_dir audclient 2> /dev/null`
AC_SUBST(AUD_CFLAGS)
AC_SUBST(AUD_LIBS)
AC_SUBST(AUD_LIB_DIR)
PKG_CHECK_MODULES(PIDGIN, [pidgin >= 2.0.0], , [
AC_MSG_RESULT(no)
AC_MSG_ERROR([
You must have pidgin >= 2.0.0 development headers installed to build.
])])
PIDGIN_CFLAGS=`pkg-config --cflags pidgin 2> /dev/null`
PIDGIN_LIBS=`pkg-config --libs pidgin 2> /dev/null`
PIDGIN_LIB_DIR=`pkg-config --variable=libdir pidgin 2> /dev/null`
AC_SUBST(PIDGIN_CFLAGS)
AC_SUBST(PIDGIN_LIBS)
AC_SUBST(PIDGIN_LIB_DIR)
PKG_CHECK_MODULES(DBUSGLIB, [dbus-glib-1 >= 0.72], , [
AC_MSG_RESULT(no)
AC_MSG_ERROR([
You must have dbus-glib-1 >= 0.72 development headers installed to build.
])])
DBUS_GLIB_CFLAGS=`pkg-config --cflags dbus-glib-1`
DBUS_GLIB_LIBS=`pkg-config --libs dbus-glib-1`
DBUS_GLIB_LIB_DIR=`pkg-config --variable=libdir dbus-glib-1`
AC_SUBST(DBUS_GLIB_CFLAGS)
AC_SUBST(DBUS_GLIB_LIBS)
AC_SUBST(DBUS_GLIB_LIB_DIR)
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# Checks for library functions.
AC_CHECK_FUNCS([strstr])
#AC_CONFIG_FILES([Makefile])
AC_OUTPUT(Makefile)
|