On 07/02/2010 02:46 PM, Mathieu Suen wrote:
Hi,

I am trying to write the configure.ac  Makefile.am so that when I do a make 
make install  it
build a package:

I have add the gst-package.m4 from the build-aux of gst.

I suggest you look at the output of gst-package --prepare.

Anyway.

AC_CONFIG_MACRO_DIR([m4])

If you use this...

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

... you should instead use aclocal. No need to put the files in build-aux/ (especially gst-package.m4), they will automatically be put in m4/ instead by aclocal.

AC_INIT([package], [version])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_HEADERS([config.h])

LIGHTNING_CONFIGURE_IF_NOT_FOUND([], [])


Add here:

AM_PATH_GST([3.2])

GST_PACKAGE_ENABLE([Lightning], [gst-lightning])

AC_PROG_CC
AC_CONFIG_FILES([Makefile])

Add here:

AC_CONFIG_FILES([gst], [chmod +x gst])

AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)

AC_OUTPUT

The rest is okay.

But the package is not build.
I might miss some stuff in the Makefile.am

Yes:

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

@PACKAGE_RULES@

Paolo

_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to