[r20]: cbrpager-maemo / branches / MAEMO_0_9_20 / configure.in Maximize Restore History

Download this file

configure.in    63 lines (47 with data), 1.4 kB

dnl Process this file with autoconf to produce a configure script.

AC_INIT(configure.in)
AM_INIT_AUTOMAKE(cbrpager, 0.9.25)
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)

AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC

AC_C_CONST
AC_PROG_CXX

pkg_modules="gtk+-2.0 >= 2.4.0 gconf-2.0 gdk-pixbuf-2.0"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
AC_CHECK_FUNCS([strdup])
AC_CHECK_FUNCS([strstr])

GETTEXT_PACKAGE=cbrpager
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")

dnl Add the languages which your application supports here.
ALL_LINGUAS="fr"
AM_GLIB_GNU_GETTEXT

dnl Check for hildon libraries
AC_ARG_ENABLE(hildon,
               AC_HELP_STRING([--enable-hildon],[Build with Maemo/Hildon support]),
               enable_hildon="$enableval",
               enable_hildon=no)
 
if test "x$enable_hildon" = "xyes" ; then
        PKG_CHECK_MODULES(HILDON,
                          hildon-1 hildon-fm-2 libosso,
                          HAVE_HILDON=yes, HAVE_HILDON=no)
fi
 
if test "x$HAVE_HILDON" = "xyes" ; then
    AC_DEFINE(USE_HILDON, 1, [Build with Maemo/Hildon support])
fi
 
AM_CONDITIONAL(USE_HILDON, test "x$HAVE_HILDON" = "xyes")
 
AC_SUBST(HILDON_CFLAGS)
AC_SUBST(HILDON_LIBS)

dnl make HILDON_CFLAGS and HILDON_LIBS available
AC_SUBST(HILDON_CFLAGS)
AC_SUBST(HILDON_LIBS)


AC_OUTPUT([
Makefile
src/Makefile
po/Makefile.in
])