xref: /netbsd-src/external/gpl3/gdb/dist/gdbsupport/libiberty.m4 (revision 5ba1f45f2a09259cc846f20c7c5501604d633c90)
1*5ba1f45fSchristosdnl Bits libiberty clients must do on their autoconf step.
2*5ba1f45fSchristosdnl
3*5ba1f45fSchristosdnl Copyright (C) 2012-2024 Free Software Foundation, Inc.
4*5ba1f45fSchristosdnl
5*5ba1f45fSchristosdnl This file is free software; you can redistribute it and/or modify
6*5ba1f45fSchristosdnl it under the terms of the GNU General Public License as published by
7*5ba1f45fSchristosdnl the Free Software Foundation; either version 3 of the License, or
8*5ba1f45fSchristosdnl (at your option) any later version.
9*5ba1f45fSchristosdnl
10*5ba1f45fSchristosdnl This program is distributed in the hope that it will be useful,
11*5ba1f45fSchristosdnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12*5ba1f45fSchristosdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*5ba1f45fSchristosdnl GNU General Public License for more details.
14*5ba1f45fSchristosdnl
15*5ba1f45fSchristosdnl You should have received a copy of the GNU General Public License
16*5ba1f45fSchristosdnl along with this program; see the file COPYING3.  If not see
17*5ba1f45fSchristosdnl <http://www.gnu.org/licenses/>.
18*5ba1f45fSchristosdnl
19*5ba1f45fSchristosdnl
20*5ba1f45fSchristosdnl Checks for declarations ansidecl.h and libiberty.h themselves
21*5ba1f45fSchristosdnl check with HAVE_DECL_XXX, etc.
22*5ba1f45fSchristosAC_DEFUN([libiberty_INIT],
23*5ba1f45fSchristos[dnl
24*5ba1f45fSchristos  dnl Check for presence and size of long long.
25*5ba1f45fSchristos  AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
26*5ba1f45fSchristos
27*5ba1f45fSchristos  AC_CHECK_DECLS([basename(char *)])
28*5ba1f45fSchristos  AC_CHECK_DECLS_ONCE([ffs, asprintf, vasprintf, snprintf, vsnprintf])
29*5ba1f45fSchristos  AC_CHECK_DECLS_ONCE([strtol, strtoul, strtoll, strtoull])
30*5ba1f45fSchristos  AC_CHECK_DECLS_ONCE([strverscmp])
31*5ba1f45fSchristos])
32