Several projects uses autobuild.m4 (at least gnutls, gsasl, inetutils, libidn) and also use gnulib. It seems easier to distribute autobuild.m4 via gnulib. Any objections to this patch?
/Simon Index: ChangeLog =================================================================== RCS file: /sources/gnulib/gnulib/ChangeLog,v retrieving revision 1.1545 diff -u -p -r1.1545 ChangeLog --- ChangeLog 6 Apr 2007 21:22:02 -0000 1.1545 +++ ChangeLog 12 Apr 2007 08:30:40 -0000 @@ -1,3 +1,9 @@ +2007-04-12 Simon Josefsson <[EMAIL PROTECTED]> + + * modules/autobuild: New module. + + * m4/autobuild.m4: New file. + 2007-04-06 Bruno Haible <[EMAIL PROTECTED]> * lib/vasnprintf.c: Include <math.h>. Don't include float+.h. Index: m4/autobuild.m4 =================================================================== RCS file: m4/autobuild.m4 diff -N m4/autobuild.m4 --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ m4/autobuild.m4 12 Apr 2007 08:30:40 -0000 @@ -0,0 +1,39 @@ +# autobuild.m4 serial 4 +dnl Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Simon Josefsson + +# Usage: AB_INIT([MODE]). +AC_DEFUN([AB_INIT], +[ + AC_REQUIRE([AC_CANONICAL_BUILD]) + AC_REQUIRE([AC_CANONICAL_HOST]) + + if test -z "$AB_PACKAGE"; then + AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE} + fi + AC_MSG_NOTICE([autobuild project... $AB_PACKAGE]) + + if test -z "$AB_VERSION"; then + AB_VERSION=${PACKAGE_VERSION:-$VERSION} + fi + AC_MSG_NOTICE([autobuild revision... $AB_VERSION]) + + hostname=`hostname` + if test "$hostname"; then + AC_MSG_NOTICE([autobuild hostname... $hostname]) + fi + + ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])]) + + date=`date +%Y%m%d-%H%M%S` + if test "$?" != 0; then + date=`date` + fi + if test "$date"; then + AC_MSG_NOTICE([autobuild timestamp... $date]) + fi +]) Index: modules/autobuild =================================================================== RCS file: modules/autobuild diff -N modules/autobuild --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ modules/autobuild 12 Apr 2007 08:30:40 -0000 @@ -0,0 +1,19 @@ +Description: +Macros to print information about the build, useful for the autobuild parser. + +Files: +m4/autobuild.m4 + +Depends-on: + +configure.ac: + +Makefile.am: + +Include: + +License: +unlimited + +Maintainer: +Simon Josefsson