view configure.in @ 4:9ac8cea32513

now distclean erases aclocal.m4 too
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Wed, 30 Apr 2008 15:47:33 +0900
parents 71241cfaef1e
children 8e1c8afac4dd
line wrap: on
line source

#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT(pidgin-twitter, 0.1.0, yaz@honeyplanet.jp)
AC_CONFIG_SRCDIR([pidgin-twitter.c])

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.14.0], , [
        AC_MSG_RESULT(no)
        AC_MSG_ERROR([

You must have glib >= 2.14.0 development headers installed to build.
])])

GLIB_CFLAGS=`pkg-config --cflags glib-2.0 2> /dev/null`
GLIB_LIBS=`pkg-config --libs glib-2.0 2> /dev/null`
GLIB_LIB_DIR=`pkg-config --variable=lib_dir glib-2.0 2> /dev/null`
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
AC_SUBST(GLIB_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)

# 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)