[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: using conditionals in autoconf/automake

Em Wed, 23 May 2001 10:52:20 -0400
Peter S Galbraith <GalbraithP@dfo-mpo.gc.ca> escreveu:

> Why don't you just build-depend on the GNOME stuff so that every
> architecture will have a similar package?
I won't just compile the gnome stuff in it cause I don't think my little 
program should depend on the *whole* gnome to work =) it doesn't need it 
but I think a gnome applet is good stuff to help if you have gnome already =)

I just couldn't "parse" what you meant with "so that every architecture
will have a similar package"... I'll surely build-depend in gnome
but I'll compile the program in 2 packages, one with gnome enabled and
other with gnome disabled

> That said, try AC_CHECK_PROG in configure.in to set a variable,
> and then use that in the Makefile:
something like AC_CHECK_PROG(TEST_GNOME, gnome-config, yes, no)?
there's one already but how do I check for it in Makefile.am?

>      already set, do nothing.  Calls `AC_SUBST' for VARIABLE.
I did a not-so-beatiful hack using AC_SUBST but I would still like to
know how to do it the Right Way (tm)

And I'm still wishing to know how to put in a new gnome applet =)

I have one more question... I set up new commands for distclean: and
clean: rules in my Makefile.am like this:

        rm -f `find . -name \*~`
        rm -f po/*.gmo
        rm -f `find . -name \*~`
        rm -f po/*.gmo

but whenever I run make distclean/clean, I keep receiving messages like

Makefile:453: warning: overriding commands for target `distclean'
Makefile:426: warning: ignoring old commands for target `distclean'

I did this change to avoid po/*.gmo being in the tar.gz when debianizing
it cause they're binary and they're modified so dpkg-source complains...
any clue about that?


       Gustavo Noronha Silva - kov <http://www.metainfo.org/kov>
|  .''`.  | Debian GNU/Linux: <http://www.debian.org>            |  (___)  |
| : :'  : | Debian BR.......: <http://debian-br.sourceforge.net> | < o o > |
| `. `'`  |                  Be Happy! Be FREE!                  |  \ ^ /  |
|   `-    |             "Think globally, act locally!"           |   (")   |

Reply to: