gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / gprof / configure.ac
CommitLineData
252b5132 1dnl Process this file with autoconf to produce a configure script.
5bf135a7 2dnl
b3adc24a 3dnl Copyright (C) 2012-2020 Free Software Foundation, Inc.
5bf135a7
NC
4dnl
5dnl This file is free software; you can redistribute it and/or modify
6dnl it under the terms of the GNU General Public License as published by
7dnl the Free Software Foundation; either version 3 of the License, or
8dnl (at your option) any later version.
f3445b37 9dnl
5bf135a7
NC
10dnl This program is distributed in the hope that it will be useful,
11dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13dnl GNU General Public License for more details.
f3445b37 14dnl
5bf135a7
NC
15dnl You should have received a copy of the GNU General Public License
16dnl along with this program; see the file COPYING3. If not see
17dnl <http://www.gnu.org/licenses/>.
18dnl
2e98a7bd
AM
19m4_include([../bfd/version.m4])
20AC_INIT([gprof], BFD_VERSION)
6bf9431b 21AC_CONFIG_SRCDIR([gprof.c])
252b5132 22
6bf9431b 23AC_CANONICAL_TARGET([])
5d64ca4e 24AC_ISC_POSIX
252b5132 25
2e98a7bd 26AM_INIT_AUTOMAKE
252b5132 27
252b5132
RH
28dnl For simplicity, we use the BFD configuration file for most
29dnl things. However, we also need our own configuration file for
30dnl the automake PACKAGE and VERSION macros. We don't name it
31dnl config.h, to avoid any possible confusion with the bfd config.h.
6bf9431b 32AC_CONFIG_HEADERS([gconfig.h:gconfig.in])
252b5132
RH
33
34AC_PROG_CC
0ab6f085 35AC_GNU_SOURCE
7357c5b6 36AC_USE_SYSTEM_EXTENSIONS
252b5132
RH
37AC_PROG_INSTALL
38
da594c4a 39LT_INIT
b879806f 40ACX_LARGEFILE
ce2cded5 41
5af11cab 42AC_CHECK_FUNCS(setmode)
252b5132 43
e184813f 44ALL_LINGUAS="bg da de eo es fi fr ga hu id it ja ms nl pt_BR ro ru rw sr sv tr uk vi"
20e95c23
DJ
45ZW_GNU_GETTEXT_SISTER_DIR
46AM_PO_SUBDIRS
252b5132
RH
47
48AM_MAINTAINER_MODE
d5fbea21 49AM_CONDITIONAL(GENINSRC_NEVER, false)
252b5132
RH
50AC_EXEEXT
51
0eee5820
AM
52AC_CHECK_HEADERS(sys/gmon_out.h)
53
34875e64
NC
54AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
55AC_CACHE_VAL(gprof_cv_decl_getopt_unistd_h,
da594c4a 56[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
34875e64
NC
57gprof_cv_decl_getopt_unistd_h=yes, gprof_cv_decl_getopt_unistd_h=no)])
58AC_MSG_RESULT($gprof_cv_decl_getopt_unistd_h)
59if test $gprof_cv_decl_getopt_unistd_h = yes; then
60 AC_DEFINE([HAVE_DECL_GETOPT], 1,
61 [Is the prototype for getopt in <unistd.h> in the expected format?])
62fi
63
1b9750d6
NC
64# Some systems have fabs only in -lm, not in -lc.
65AC_SEARCH_LIBS(fabs, m)
66
9e9b66a9 67AM_BINUTILS_WARNINGS
a2d91340 68
31dd3154 69dnl Required by html, pdf, install-pdf and install-html
108a6f8e
CD
70AC_SUBST(datarootdir)
71AC_SUBST(docdir)
72AC_SUBST(htmldir)
31dd3154 73AC_SUBST(pdfdir)
108a6f8e 74
6bf9431b 75AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
6bf9431b 76AC_OUTPUT
This page took 0.830438 seconds and 4 git commands to generate.