Re: [AD] m4 macro for allegro

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Tuesday 13 July 2004 18:25, Jon Rafkind wrote:
> in configure.in, add this line:
> 
> AM_PATH_ALLEGRO(4.1.0)

Ah, yes! Very useful indeed!

> BTW, I explained all of this in the announcement email of allegro.m4 
> some time ago on 6/06/04.

The one I replied to this morning, I think. Anyway, [AD] has been fairly 
quiet which is probably why this was missed up to now.

Just one question:

#if 0
      ||
/* The last released version of liballegro-1.x has an incorrect micro 
version in
 * the header file so neither the includes nor the library will match the
 * micro_version to the output of allegro-config
 */
      (allegro_micro_version != $ALLEGRO_CONFIG_micro_version)
#endif 

I take it this does nothing and can savely be ignored? (Even more so 
because there is no liballegro-1.x...)

Otherwise, I think the following patch should install the allegro.m4 macro 
to the proper location, although I don't like the hack I used to get the 
directory names proper. If it works, I'll look into making it prettier and 
adding your patch.

--- allegro/makefile.in	2004-05-15 13:42:42.000000000 +0200
+++ alleg_work/makefile.in	2004-07-13 19:07:29.000000000 +0200
@@ -490,6 +490,9 @@
 	    (cd $(DESTDIR)$(libdir); ln -s lib$${l}-$(shared_version).so lib$
${l}.so.${shared_major_minor}); \
 	  fi; \
 	done
+	$(mkinstalldirs) $(DESTDIR)$(prefix)/share/aclocal
+	@echo Installing allegro.m4 to $(DESTDIR)$(prefix)/share/aclocal
+	@$(INSTALL_DATA) allegro.m4 $(DESTDIR)$(prefix)/share/aclocal
 
 install-headers:
 	$(mkinstalldirs) $(DESTDIR)$(includedir)/allegro

Evert





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/