Re: AM_PATH_GTK_2_0 fails for c++ programs
- From: rsteinke w-link net
- To: otaylor redhat com
- Cc: gtk-devel-list gnome org, cactus cactus rulez org
- Subject: Re: AM_PATH_GTK_2_0 fails for c++ programs
- Date: Mon, 25 Mar 2002 10:42:32 -0800
> From: Owen Taylor <otaylor redhat com>
>
> rsteinke w-link net writes:
>
> > From: ERDI Gergo <cactus cactus rulez org>
> > >
> > > On Sat, 23 Mar 2002 rsteinke w-link net wrote:
> > >
> > > > It seems like the fix could simply set CXXFLAGS as well
> > > > as CFLAGS. I'm not sure if the m4 file is dynamically
> > > > generated, though, so I don't know where to put the fix.
> > >
> > > no, it should push/pop the C language before/after doing the test.
> >
> > It's failing to do that, though.
>
> Would you have the time to try making patches for glib-2.0.m4 and
> gtk+-2.0.m4 that use:
>
> AC_LANG_SAVE
> AC_LANG_C
>
> AC_LANG_RESTORE
>
> and test them?
There appears to be an additional complication with this method.
If -l flags for C++ libraries have been added to $LIBS
before the check for gtk, doing
$LIBS="$LIBS $GTK_LIBS$"
causes it to fail under AC_LANG_C. However, not including
$LIBS doesn't allow people to pass -L options.
Ron
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]