Blame m4/autobuild.m4

Packit fc043f
# autobuild.m4 serial 2 (autobuild-3.3)
Packit fc043f
# Copyright (C) 2004 Simon Josefsson
Packit fc043f
#
Packit fc043f
# This file is free software, distributed under the terms of the GNU
Packit fc043f
# General Public License.  As a special exception to the GNU General
Packit fc043f
# Public License, this file may be distributed as part of a program
Packit fc043f
# that contains a configuration script generated by Autoconf, under
Packit fc043f
# the same distribution terms as the rest of that program.
Packit fc043f
#
Packit fc043f
# This file can can be used in projects which are not available under
Packit fc043f
# the GNU General Public License or the GNU Library General Public
Packit fc043f
# License but which still want to provide support for Autobuild.
Packit fc043f
Packit fc043f
# Usage: AB_INIT([MODE]).
Packit fc043f
AC_DEFUN([AB_INIT],
Packit fc043f
[
Packit fc043f
	AC_REQUIRE([AC_CANONICAL_BUILD])
Packit fc043f
	AC_REQUIRE([AC_CANONICAL_HOST])
Packit fc043f
Packit fc043f
	AC_MSG_NOTICE([autobuild project... ${PACKAGE_NAME:-$PACKAGE}])
Packit fc043f
	AC_MSG_NOTICE([autobuild revision... ${PACKAGE_VERSION:-$VERSION}])
Packit fc043f
	hostname=`hostname`
Packit fc043f
	if test "$hostname"; then
Packit fc043f
	   AC_MSG_NOTICE([autobuild hostname... $hostname])
Packit fc043f
	fi
Packit fc043f
	ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])])
Packit fc043f
	date=`date +%Y%m%d-%H%M%S`
Packit fc043f
	if test "$?" != 0; then
Packit fc043f
	   date=`date`
Packit fc043f
	fi
Packit fc043f
	if test "$date"; then
Packit fc043f
	   AC_MSG_NOTICE([autobuild timestamp... $date])
Packit fc043f
	fi
Packit fc043f
])