1999-05-03 15:29:11 +08:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2012-12-18 00:56:12 +08:00
|
|
|
dnl
|
2024-01-04 19:52:08 +08:00
|
|
|
dnl Copyright (C) 2012-2024 Free Software Foundation, Inc.
|
2012-12-18 00:56:12 +08:00
|
|
|
dnl
|
|
|
|
dnl This file is free software; you can redistribute it and/or modify
|
|
|
|
dnl it under the terms of the GNU General Public License as published by
|
|
|
|
dnl the Free Software Foundation; either version 3 of the License, or
|
|
|
|
dnl (at your option) any later version.
|
2015-08-12 19:43:32 +08:00
|
|
|
dnl
|
2012-12-18 00:56:12 +08:00
|
|
|
dnl This program is distributed in the hope that it will be useful,
|
|
|
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
dnl GNU General Public License for more details.
|
2015-08-12 19:43:32 +08:00
|
|
|
dnl
|
2012-12-18 00:56:12 +08:00
|
|
|
dnl You should have received a copy of the GNU General Public License
|
|
|
|
dnl along with this program; see the file COPYING3. If not see
|
|
|
|
dnl <http://www.gnu.org/licenses/>.
|
|
|
|
dnl
|
2014-07-04 10:05:16 +08:00
|
|
|
m4_include([../bfd/version.m4])
|
|
|
|
AC_INIT([gprof], BFD_VERSION)
|
2004-06-15 11:24:57 +08:00
|
|
|
AC_CONFIG_SRCDIR([gprof.c])
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2004-06-15 11:24:57 +08:00
|
|
|
AC_CANONICAL_TARGET([])
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2014-07-04 10:05:16 +08:00
|
|
|
AM_INIT_AUTOMAKE
|
2021-11-26 12:30:36 +08:00
|
|
|
AM_SILENT_RULES([yes])
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
dnl For simplicity, we use the BFD configuration file for most
|
|
|
|
dnl things. However, we also need our own configuration file for
|
|
|
|
dnl the automake PACKAGE and VERSION macros. We don't name it
|
|
|
|
dnl config.h, to avoid any possible confusion with the bfd config.h.
|
2004-06-15 11:24:57 +08:00
|
|
|
AC_CONFIG_HEADERS([gconfig.h:gconfig.in])
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
AC_PROG_CC
|
2008-08-15 16:31:52 +08:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
1999-05-03 15:29:11 +08:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
2008-08-24 11:13:05 +08:00
|
|
|
LT_INIT
|
2014-08-14 12:16:09 +08:00
|
|
|
ACX_LARGEFILE
|
2007-10-25 00:45:53 +08:00
|
|
|
|
2021-04-05 13:57:02 +08:00
|
|
|
# These are in addition to what is made available in bfd/.
|
|
|
|
AC_CHECK_HEADERS(sys/time.h)
|
|
|
|
AC_CHECK_FUNCS(setitimer)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2018-03-01 05:56:51 +08:00
|
|
|
ALL_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"
|
2006-05-31 23:14:46 +08:00
|
|
|
ZW_GNU_GETTEXT_SISTER_DIR
|
|
|
|
AM_PO_SUBDIRS
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
2006-12-11 23:09:46 +08:00
|
|
|
AM_CONDITIONAL(GENINSRC_NEVER, false)
|
1999-05-03 15:29:11 +08:00
|
|
|
AC_EXEEXT
|
|
|
|
|
2001-03-14 11:14:56 +08:00
|
|
|
AC_CHECK_HEADERS(sys/gmon_out.h)
|
|
|
|
|
2005-04-04 19:27:16 +08:00
|
|
|
AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
|
|
|
|
AC_CACHE_VAL(gprof_cv_decl_getopt_unistd_h,
|
2008-08-24 11:13:05 +08:00
|
|
|
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
|
2005-04-04 19:27:16 +08:00
|
|
|
gprof_cv_decl_getopt_unistd_h=yes, gprof_cv_decl_getopt_unistd_h=no)])
|
|
|
|
AC_MSG_RESULT($gprof_cv_decl_getopt_unistd_h)
|
|
|
|
if test $gprof_cv_decl_getopt_unistd_h = yes; then
|
|
|
|
AC_DEFINE([HAVE_DECL_GETOPT], 1,
|
|
|
|
[Is the prototype for getopt in <unistd.h> in the expected format?])
|
|
|
|
fi
|
|
|
|
|
2007-10-13 00:36:48 +08:00
|
|
|
# Some systems have fabs only in -lm, not in -lc.
|
|
|
|
AC_SEARCH_LIBS(fabs, m)
|
|
|
|
|
2005-04-14 13:26:44 +08:00
|
|
|
AM_BINUTILS_WARNINGS
|
2000-04-09 20:17:43 +08:00
|
|
|
|
2009-02-03 23:54:05 +08:00
|
|
|
dnl Required by html, pdf, install-pdf and install-html
|
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.tpl: Add install-html target.
* Makefile.def: Add install-html target.
* Makefile.in: Regenerate.
* configure.in: Add --with-datarootdir, --with-docdir,
and --with-htmldir options.
* configure: Regenerate.
bfd/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir
htmldir. Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST for datarootdir, docdir and htmldir.
* configure: Regenerate.
bfd/doc/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html and install-html-am targets.
Define datarootdir, docdir and htmldir.
* Makefile.in: Regenerate.
binutils/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir and htmldir.
* configure: Regenerate.
* doc/Makefile.am: Add install-html and install-html-am targets.
* doc/Makefile.in: Regenerate.
etc/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.in: Add install-html target. Add htmldir,
docdir and datarootdir.
* configure.texi: Document install-html target.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
gas/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
* doc/Makefile.am: Add install-html and install-html-am targets.
* doc/Makefile.in: Regenerate.
gprof/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html, install-html-am and
install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
intl/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* intl/Makefile.in: Add html info and dvi and install-html to .PHONY
Add install-html target.
ld/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html, install-html-am, and
install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
* po/Make-in: Add install-html target.
opcodes/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html target.
* Makefile.in: Regenerate.
2006-04-07 05:49:35 +08:00
|
|
|
AC_SUBST(datarootdir)
|
|
|
|
AC_SUBST(docdir)
|
|
|
|
AC_SUBST(htmldir)
|
2009-02-03 23:54:05 +08:00
|
|
|
AC_SUBST(pdfdir)
|
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.tpl: Add install-html target.
* Makefile.def: Add install-html target.
* Makefile.in: Regenerate.
* configure.in: Add --with-datarootdir, --with-docdir,
and --with-htmldir options.
* configure: Regenerate.
bfd/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir
htmldir. Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST for datarootdir, docdir and htmldir.
* configure: Regenerate.
bfd/doc/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html and install-html-am targets.
Define datarootdir, docdir and htmldir.
* Makefile.in: Regenerate.
binutils/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir and htmldir.
* configure: Regenerate.
* doc/Makefile.am: Add install-html and install-html-am targets.
* doc/Makefile.in: Regenerate.
etc/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.in: Add install-html target. Add htmldir,
docdir and datarootdir.
* configure.texi: Document install-html target.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
gas/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html and install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
* doc/Makefile.am: Add install-html and install-html-am targets.
* doc/Makefile.in: Regenerate.
gprof/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* po/Make-in: Add install-html target.
* Makefile.am: Add install-html, install-html-am and
install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
intl/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* intl/Makefile.in: Add html info and dvi and install-html to .PHONY
Add install-html target.
ld/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html, install-html-am, and
install-html-recursive targets.
* Makefile.in: Regenerate.
* configure.in: AC_SUBST datarootdir, docdir, htmldir.
* configure: Regenerate.
* po/Make-in: Add install-html target.
opcodes/
2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html target.
* Makefile.in: Regenerate.
2006-04-07 05:49:35 +08:00
|
|
|
|
2004-06-15 11:24:57 +08:00
|
|
|
AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
|
|
|
|
AC_OUTPUT
|
2021-01-12 21:45:28 +08:00
|
|
|
|
|
|
|
GNU_MAKE_JOBSERVER
|