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 64 65 66 67 68 69 70 71 72 73 74 75
|
AC_PREREQ(2.53)
AC_INIT([matchbox-common], 0.9.1, [mallum@handhelds.org])
AC_CONFIG_SRCDIR([icons/mbadd.xpm])
AM_INIT_AUTOMAKE()
AM_MAINTAINER_MODE
AM_CONFIG_HEADER([config.h])
# Checks for programs.
# XXX
# should be installed after libmb so we can check for;
# - PNG support for png icons
#
# XXX should install panel icons ?
# --disable-panel-icons
#
dnl ----- Args -------------------------------------------------------------
AC_ARG_ENABLE(pda_folders,
[ --enable-pda-folders Use PDA style app folder setup ( Rather than Desktop )],
enable_pda_folders=$enableval, enable_pda_folders=no)
## AC_ARG_ENABLE(small-icons,
## [ --enable-small-icons Enable small defualt icons.],
## enable_sicons=$enableval, enable_sicons=no)
dnl ---- Check for libmb so we can figure out PNG / XPM support ------------
PKG_CHECK_MODULES(LIBMB, libmb >= 1.1,, AC_MSG_ERROR([*** libmb required and not found ***]))
# below is quite bad ...
if $PKG_CONFIG --libs --static libmb | grep png ; then
found_png="yes"
else
found_png="no"
fi
AM_CONDITIONAL(WANT_PNG, test x$found_png = xyes)
## AM_CONDITIONAL(WANT_SMALL_ICONS, test x$enable_sicons = xyes)
AM_CONDITIONAL(WANT_PDA_FOLDERS, test x$enable_pda_folders = xyes)
## XXX should we install a .pc file so the panel and desktop can
## can check common has been installed ?
## panel should have a --enable-large-default-icons switch
## or summin
## XXX add mbsession to this aswell
AC_OUTPUT([
Makefile
data/Makefile
data/vfolders-pda/Makefile
data/vfolders-desktop/Makefile
icons/Makefile
icons/blondie/Makefile
])
dnl ==========================================================================
echo "
matchbox-common $VERSION
==========================
prefix: ${prefix}
source code location: ${srcdir}
Installing PNGs ${found_png}
Installing PDA Folders ${enable_pda_folders}
"
|