]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbsupport/configure.ac
Fix two typos in gdb_binary_search.h
[thirdparty/binutils-gdb.git] / gdbsupport / configure.ac
CommitLineData
01027315
TT
1dnl Autoconf configure script for GDB support library
2dnl Copyright (C) 2020 Free Software Foundation, Inc.
3dnl
4dnl This program is free software; you can redistribute it and/or modify
5dnl it under the terms of the GNU General Public License as published by
6dnl the Free Software Foundation; either version 3 of the License, or
7dnl (at your option) any later version.
8dnl
9dnl This program is distributed in the hope that it will be useful,
10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12dnl GNU General Public License for more details.
13dnl
14dnl You should have received a copy of the GNU General Public License
15dnl along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17dnl Process this file with autoconf to produce a configure script.
18
19AC_INIT([gdbsupport], 1.0)
20AC_CONFIG_SRCDIR(common-defs.h)
3684d331 21AC_CONFIG_HEADER(config.h:config.in)
01027315
TT
22AC_CANONICAL_SYSTEM
23AM_MAINTAINER_MODE
24AC_CONFIG_AUX_DIR(..)
25AM_INIT_AUTOMAKE
26AM_SILENT_RULES([yes])
27
28AC_PROG_CC
29AC_PROG_CXX
30AC_PROG_RANLIB
31
32AC_USE_SYSTEM_EXTENSIONS
33ACX_LARGEFILE
34AM_PROG_CC_STDC
35
3d1e5a43
VP
36# Set the 'development' global.
37. $srcdir/../bfd/development.sh
38
01027315
TT
39# We require a C++11 compiler. Check if one is available, and if
40# necessary, set CXX_DIALECT to some -std=xxx switch.
41AX_CXX_COMPILE_STDCXX(11, , mandatory)
42
43dnl Set up for gettext.
44ZW_GNU_GETTEXT_SISTER_DIR
45
46libiberty_INIT
47GDB_AC_COMMON
48GDB_AC_SELFTEST
49AM_CONDITIONAL(SELFTEST, $enable_unittests)
50
05ea2a05
TT
51# Check the return and argument types of ptrace.
52GDB_AC_PTRACE
53
629c2962
SM
54# Detect support warning flags.
55AM_GDB_WARNINGS
56
01027315
TT
57TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h`
58AC_DEFINE_UNQUOTED(TARGET_WORD_SIZE, $TARGET_WORD_SIZE,
59 [Define to the word size for the target.])
60
61case ${host} in
62 *mingw32*)
63 AC_DEFINE(USE_WIN32API, 1,
64 [Define if we should use the Windows API, instead of the
65 POSIX API. On Windows, we use the Windows API when
66 building for MinGW, but the POSIX API when building
67 for Cygwin.])
68 ;;
69esac
70
71AC_CONFIG_FILES([Makefile])
72AC_OUTPUT