1999-05-03 07:29:11 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2012-12-17 16:56:12 +00:00
|
|
|
dnl
|
2016-01-01 11:25:12 +00:00
|
|
|
dnl Copyright (C) 2012-2016 Free Software Foundation, Inc.
|
2012-12-17 16:56:12 +00: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 11:43:32 +00:00
|
|
|
dnl
|
2012-12-17 16:56:12 +00: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 11:43:32 +00:00
|
|
|
dnl
|
2012-12-17 16:56:12 +00: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
|
2004-06-15 03:24:57 +00:00
|
|
|
AC_PREREQ(2.59)
|
2014-07-04 02:05:16 +00:00
|
|
|
m4_include([../bfd/version.m4])
|
|
|
|
AC_INIT([gprof], BFD_VERSION)
|
2004-06-15 03:24:57 +00:00
|
|
|
AC_CONFIG_SRCDIR([gprof.c])
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2004-06-15 03:24:57 +00:00
|
|
|
AC_CANONICAL_TARGET([])
|
2000-09-07 21:08:51 +00:00
|
|
|
AC_ISC_POSIX
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2014-07-04 02:05:16 +00:00
|
|
|
AM_INIT_AUTOMAKE
|
1999-05-03 07:29:11 +00: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 03:24:57 +00:00
|
|
|
AC_CONFIG_HEADERS([gconfig.h:gconfig.in])
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
AC_PROG_CC
|
2007-10-24 04:56:12 +00:00
|
|
|
AC_GNU_SOURCE
|
2008-08-15 08:31:52 +00:00
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
1999-05-03 07:29:11 +00:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
2008-08-24 03:13:05 +00:00
|
|
|
LT_INIT
|
2014-08-14 04:16:09 +00:00
|
|
|
ACX_LARGEFILE
|
2007-10-24 16:45:53 +00:00
|
|
|
|
2000-05-26 13:11:57 +00:00
|
|
|
AC_CHECK_FUNCS(setmode)
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2014-11-03 12:26:48 +00:00
|
|
|
ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms fi nl bg eo ja sr hu"
|
2006-05-31 15:14:46 +00:00
|
|
|
ZW_GNU_GETTEXT_SISTER_DIR
|
|
|
|
AM_PO_SUBDIRS
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
2006-12-11 15:09:46 +00:00
|
|
|
AM_CONDITIONAL(GENINSRC_NEVER, false)
|
1999-05-03 07:29:11 +00:00
|
|
|
AC_EXEEXT
|
|
|
|
|
2001-03-14 03:14:56 +00:00
|
|
|
AC_CHECK_HEADERS(sys/gmon_out.h)
|
|
|
|
|
2005-04-04 11:27:16 +00:00
|
|
|
AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
|
|
|
|
AC_CACHE_VAL(gprof_cv_decl_getopt_unistd_h,
|
2008-08-24 03:13:05 +00:00
|
|
|
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
|
2005-04-04 11:27:16 +00: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-12 16:36:48 +00:00
|
|
|
# Some systems have fabs only in -lm, not in -lc.
|
|
|
|
AC_SEARCH_LIBS(fabs, m)
|
|
|
|
|
2005-04-14 05:26:44 +00:00
|
|
|
AM_BINUTILS_WARNINGS
|
2000-04-09 12:17:43 +00:00
|
|
|
|
2009-02-03 15:54:05 +00: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-06 21:49:35 +00:00
|
|
|
AC_SUBST(datarootdir)
|
|
|
|
AC_SUBST(docdir)
|
|
|
|
AC_SUBST(htmldir)
|
2009-02-03 15:54:05 +00: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-06 21:49:35 +00:00
|
|
|
|
2004-06-15 03:24:57 +00:00
|
|
|
AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
|
|
|
|
AC_OUTPUT
|