[maemo-developers] Check existance of hildon header files

From: Murray Cumming murrayc at murrayc.com
Date: Tue Jun 26 15:53:44 EEST 2007
On Mon, 2007-06-25 at 19:13 -0700, Ngurah wrote:
> 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 :
> 
> 
> AC_CHECK_HEADERS([hildon-widgets/hildon-program.h],[have_hildon=yes],[have_hildon=no])
> if test x$have_hildon = xyes; then

You might need to use == instead of =.

>        AC_DEFINE(HAVE_HILDON,,[define this if have hildon framework])
> fi             
> AM_CONDITIONAL([HAVE_HILDON], [test x$have_hildon = xyes])
> 
> but when i check the generated config.h , my HAVE_HILDON macro always
> undefine even there are the specified header file on system.
> 
> Anyone has experience on autoconf/automake regarding of this, please
> help me out of this problem.
> Thnks
> 
> BG
> Gusti
> 
> 
> 
> ______________________________________________________________________
> Looking for a deal? Find great prices on flights and hotels with
> Yahoo! FareChase.
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
-- 
Murray Cumming
murrayc at murrayc.com
www.murrayc.com
www.openismus.com


More information about the maemo-developers mailing list