ltmain.in: Use func_warning for all warnings
[libtool.git] / m4 / autobuild.m4
blob9092d2bebacb1d2c4b6841d6a4b68128c24a2679
1 # autobuild.m4 serial 7
2 dnl Copyright (C) 2004, 2006-2019, 2021-2024 Free Software Foundation,
3 dnl Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl From Simon Josefsson
10 # Usage: AB_INIT([MODE]).
11 AC_DEFUN([AB_INIT],
13   AC_REQUIRE([AC_CANONICAL_BUILD])
14   AC_REQUIRE([AC_CANONICAL_HOST])
16   if test -z "$AB_PACKAGE"; then
17     AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE}
18   fi
19   AC_MSG_NOTICE([autobuild project... $AB_PACKAGE])
21   if test -z "$AB_VERSION"; then
22     AB_VERSION=${PACKAGE_VERSION:-$VERSION}
23   fi
24   AC_MSG_NOTICE([autobuild revision... $AB_VERSION])
26   hostname=`hostname`
27   if test "$hostname"; then
28     AC_MSG_NOTICE([autobuild hostname... $hostname])
29   fi
31   ifelse([$1],[],,[AC_MSG_NOTICE([autobuild mode... $1])])
33   date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ`
34   if test "$?" != 0; then
35     date=`date`
36   fi
37   if test "$date"; then
38     AC_MSG_NOTICE([autobuild timestamp... $date])
39   fi