1 # autobuild.m4 serial 8
2 dnl Copyright (C) 2004, 2006-2020 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 dnl From Simon Josefsson
9 # Usage: AB_INIT([MODE]).
12 AC_REQUIRE([AC_CANONICAL_BUILD])
13 AC_REQUIRE([AC_CANONICAL_HOST])
15 if test -z "$AB_PACKAGE"; then
16 AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
18 AC_MSG_NOTICE([autobuild project... $AB_PACKAGE])
20 if test -z "$AB_VERSION"; then
21 AB_VERSION=${PACKAGE_VERSION:-$VERSION}
23 AC_MSG_NOTICE([autobuild revision... $AB_VERSION])
26 if test "$hostname"; then
27 AC_MSG_NOTICE([autobuild hostname... $hostname])
30 m4_if([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])])
32 date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
33 if test "$?" != 0; then
37 AC_MSG_NOTICE([autobuild timestamp... $date])