[maemo-developers] Check existance of hildon header files

From: Kalle Vahlman kalle.vahlman at gmail.com
Date: Tue Jun 26 08:06:59 EEST 2007
2007/6/26, Ngurah <ignabandika at yahoo.com>:
> Hi,
>
>   Last night i trying to make some configure.in script on
> scratchbox.Basically i need to define when to use hildon and when to only
> use gtk , so in my configure.in i include this line :
[snip]

Not sure what's wrong with that snippet, but I'd recommend using
pkg-config to find out if the Hildon libraries are present or not:

PKG_CHECK_MODULES(hildon, [hildon-libs, hildon-fm], HAVE_HILDON="yes",
HAVE_HILDON="no" )
AC_SUBST(hildon_CFLAGS)
AC_SUBST(hildon_LIBS)

-- 
Kalle Vahlman, zuh at iki.fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi

More information about the maemo-developers mailing list