Merge remote-tracking branch 'mdw/mdw/powm-sec'
[secnet] / aclocal.m4
CommitLineData
695904f2
IJ
1# aclocal.m4 - package-specific macros for autoconf
2
3dnl This file is part of secnet.
4dnl See README for full list of copyright holders.
5dnl
6dnl secnet is free software; you can redistribute it and/or modify it
7dnl under the terms of the GNU General Public License as published by
8dnl the Free Software Foundation; either version d of the License, or
9dnl (at your option) any later version.
10dnl
11dnl secnet is distributed in the hope that it will be useful, but
12dnl WITHOUT ANY WARRANTY; without even the implied warranty of
13dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14dnl General Public License for more details.
15dnl
16dnl You should have received a copy of the GNU General Public License
17dnl version 3 along with secnet; if not, see
18dnl https://www.gnu.org/licenses/gpl.html.
19
20dnl This next macro came from adns.git,
21dnl (d8fa191ed7774818862febd6ade774cb7e149ab9).
22define(ADNS_C_GETFUNC,[
23 AC_CHECK_FUNC([$1],,[
24 AC_CHECK_LIB([$2],[$1],[$3],[
25 AC_MSG_ERROR([cannot find library function $1])
26 ])
27 ])
28])
c143276b
IJ
29
30define(SECNET_C_GETFUNC,[
31 ADNS_C_GETFUNC($1,$2,[
32 LIBS="-l$2 $LIBS";
33 AC_MSG_WARN([$1 is in lib$2, urgh. Must use -l$2.])
34 ])
35])