chiark / gitweb /
Build system: Use -lresolv only if inet_aton is not found otherwise.
[secnet] / aclocal.m4
1 # aclocal.m4 - package-specific macros for autoconf
2
3 dnl This file is part of secnet.
4 dnl See README for full list of copyright holders.
5 dnl
6 dnl secnet is free software; you can redistribute it and/or modify it
7 dnl under the terms of the GNU General Public License as published by
8 dnl the Free Software Foundation; either version d of the License, or
9 dnl (at your option) any later version.
10 dnl 
11 dnl secnet is distributed in the hope that it will be useful, but
12 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
13 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 dnl General Public License for more details.
15 dnl 
16 dnl You should have received a copy of the GNU General Public License
17 dnl version 3 along with secnet; if not, see
18 dnl https://www.gnu.org/licenses/gpl.html.
19
20 dnl This next macro came from adns.git,
21 dnl (d8fa191ed7774818862febd6ade774cb7e149ab9).
22 define(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 ])