1178825Sdfr# autobuild.m4 serial 2 (autobuild-3.3) 2178825Sdfr# Copyright (C) 2004 Simon Josefsson 3178825Sdfr# 4178825Sdfr# This file is free software, distributed under the terms of the GNU 5178825Sdfr# General Public License. As a special exception to the GNU General 6178825Sdfr# Public License, this file may be distributed as part of a program 7178825Sdfr# that contains a configuration script generated by Autoconf, under 8178825Sdfr# the same distribution terms as the rest of that program. 9178825Sdfr# 10178825Sdfr# This file can can be used in projects which are not available under 11178825Sdfr# the GNU General Public License or the GNU Library General Public 12178825Sdfr# License but which still want to provide support for Autobuild. 13178825Sdfr 14178825Sdfr# Usage: AB_INIT([MODE]). 15178825SdfrAC_DEFUN([AB_INIT], 16178825Sdfr[ 17178825Sdfr AC_REQUIRE([AC_CANONICAL_BUILD]) 18178825Sdfr AC_REQUIRE([AC_CANONICAL_HOST]) 19178825Sdfr 20178825Sdfr AC_MSG_NOTICE([autobuild project... ${PACKAGE_NAME:-$PACKAGE}]) 21178825Sdfr AC_MSG_NOTICE([autobuild revision... ${PACKAGE_VERSION:-$VERSION}]) 22178825Sdfr hostname=`hostname` 23178825Sdfr if test "$hostname"; then 24178825Sdfr AC_MSG_NOTICE([autobuild hostname... $hostname]) 25178825Sdfr fi 26178825Sdfr ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])]) 27178825Sdfr date=`date +%Y%m%d-%H%M%S` 28178825Sdfr if test "$?" != 0; then 29178825Sdfr date=`date` 30178825Sdfr fi 31178825Sdfr if test "$date"; then 32178825Sdfr AC_MSG_NOTICE([autobuild timestamp... $date]) 33178825Sdfr fi 34178825Sdfr]) 35