|
Packit |
47b4ca |
# autobuild.m4 serial 7
|
|
Packit |
47b4ca |
dnl Copyright (C) 2004, 2006-2012 Free Software Foundation, Inc.
|
|
Packit |
47b4ca |
dnl This file is free software; the Free Software Foundation
|
|
Packit |
47b4ca |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit |
47b4ca |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
dnl From Simon Josefsson
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
# Usage: AB_INIT([MODE]).
|
|
Packit |
47b4ca |
AC_DEFUN([AB_INIT],
|
|
Packit |
47b4ca |
[
|
|
Packit |
47b4ca |
AC_REQUIRE([AC_CANONICAL_BUILD])
|
|
Packit |
47b4ca |
AC_REQUIRE([AC_CANONICAL_HOST])
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
if test -z "$AB_PACKAGE"; then
|
|
Packit |
47b4ca |
AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
|
|
Packit |
47b4ca |
fi
|
|
Packit |
47b4ca |
AC_MSG_NOTICE([autobuild project... $AB_PACKAGE])
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
if test -z "$AB_VERSION"; then
|
|
Packit |
47b4ca |
AB_VERSION=${PACKAGE_VERSION:-$VERSION}
|
|
Packit |
47b4ca |
fi
|
|
Packit |
47b4ca |
AC_MSG_NOTICE([autobuild revision... $AB_VERSION])
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
hostname=`hostname`
|
|
Packit |
47b4ca |
if test "$hostname"; then
|
|
Packit |
47b4ca |
AC_MSG_NOTICE([autobuild hostname... $hostname])
|
|
Packit |
47b4ca |
fi
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])])
|
|
Packit |
47b4ca |
|
|
Packit |
47b4ca |
date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
|
|
Packit |
47b4ca |
if test "$?" != 0; then
|
|
Packit |
47b4ca |
date=`date`
|
|
Packit |
47b4ca |
fi
|
|
Packit |
47b4ca |
if test "$date"; then
|
|
Packit |
47b4ca |
AC_MSG_NOTICE([autobuild timestamp... $date])
|
|
Packit |
47b4ca |
fi
|
|
Packit |
47b4ca |
])
|