help-smalltalk
[Top][All Lists]
Advanced

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

Re: Re : [Help-smalltalk] Add a package in the build tool


From: Mathieu Suen
Subject: Re: Re : [Help-smalltalk] Add a package in the build tool
Date: Fri, 2 Jul 2010 21:14:30 +0200

Ok so I check the /usr/local/share/aclocal here what I get:
$ ls /usr/local/share/aclocal/
gst.m4  gst-package.m4  lightning.m4  snprintfv.m4


Here is my configure.ac:
----------------------------------------------
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])

#m4_include([build-aux/lightning.m4])

AC_INIT([GST-GNU lightning], [0.0])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_HEADERS([config.h])


LIGHTNING_CONFIGURE_IF_NOT_FOUND([], [])

AM_PATH_GST([3.2])
AC_PROG_CC
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([gst], [chmod +x gst])

AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)

AC_OUTPUT
----------------------------------------------


And my Makefile.am:
----------------------------------------------
# build gst-lightning
#
AM_CPPFLAGS = -I$(INCLIGHTNING)
ACLOCAL_AMFLAGS = -I m4

if !HAVE_INSTALLED_LIGHTNING
AM_CPPFLAGS += -I$(top_srcdir)/lightning -I$(top_builddir)/lightning
endif

lib_LTLIBRARIES = libgstlightning.la
libgstlightning_la_SOURCES = gst-lightning.c gst-lightning.h

DISTCLEANFILES = pkgrules.tmp
all-local:
clean-local::
install-data-hook::
dist-hook::
uninstall-local::

@PACKAGE_RULES@
----------------------------------------------


And here the output:
$ autoreconf -vi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
configure.ac:14: warning: macro `AM_PATH_GST' not found in library
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --install --copy
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/config.guess'
libtoolize: copying file `build-aux/config.sub'
libtoolize: copying file `build-aux/install-sh'
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:14: warning: macro `AM_PATH_GST' not found in library
autoreconf: running: /usr/bin/autoconf
configure.ac:14: error: possibly undefined macro: AM_PATH_GST
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1


Did I miss something ?


Thanks a lot

        Mth




On Jul 2, 2010, at 5:48 PM, Paolo Bonzini wrote:

> First of all,
> 
>> libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
> 
> Do so. :)
> 
>> I am not familiar with the m4 script. Is that the aclocal running with the 
>> autoreconf -vi?
> 
> Yes.  It is already running, you're just not relying on it fully. Anyway, 
> that's not a problem.
> 
>> AC_CONFIG_AUX_DIR([build-aux])
>> AC_CONFIG_MACRO_DIR([build-aux])
> 
> Yes.  AUX_DIR is fine, but I suggest you use a separate directory as your 
> MACRO_DIR (e.g. name it "m4").
> 
>> Have you an idea wihy I got the  'warning: macro `AM_PATH_GST' not found in 
>> library'?
> 
> Maybe you installed gst in /usr/local?  I suggest you create symbolic links 
> from /usr/share/aclocal/{gst,gst-package}.m4 to the corresponding files in 
> /usr/local/share/aclocal if this is the case.
> 
> Paolo






___________________________________________________________________________
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]