1999-05-03 09:29:11 +02:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2004-06-15 05:24:57 +02:00
|
|
|
AC_PREREQ(2.59)
|
|
|
|
AC_INIT
|
|
|
|
AC_CONFIG_SRCDIR([gprof.c])
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2004-06-15 05:24:57 +02:00
|
|
|
AC_CANONICAL_TARGET([])
|
2000-09-07 23:08:51 +02:00
|
|
|
AC_ISC_POSIX
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2001-02-27 07:43:56 +01:00
|
|
|
changequote(,)dnl
|
|
|
|
BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
|
|
|
|
changequote([,])dnl
|
|
|
|
AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION})
|
1999-05-03 09:29:11 +02:00
|
|
|
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
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 05:24:57 +02:00
|
|
|
AC_CONFIG_HEADERS([gconfig.h:gconfig.in])
|
1999-05-03 09:29:11 +02:00
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
2000-05-26 15:11:57 +02:00
|
|
|
AC_CHECK_FUNCS(setmode)
|
1999-05-03 09:29:11 +02:00
|
|
|
|
2005-10-03 12:53:35 +02:00
|
|
|
ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga"
|
2006-05-31 17:14:46 +02:00
|
|
|
ZW_GNU_GETTEXT_SISTER_DIR
|
|
|
|
AM_PO_SUBDIRS
|
1999-05-03 09:29:11 +02:00
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
AC_EXEEXT
|
|
|
|
|
2001-03-14 04:14:56 +01:00
|
|
|
AC_CHECK_HEADERS(sys/gmon_out.h)
|
|
|
|
|
2005-04-04 13:27:16 +02:00
|
|
|
AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
|
|
|
|
AC_CACHE_VAL(gprof_cv_decl_getopt_unistd_h,
|
|
|
|
[AC_TRY_COMPILE([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);],
|
|
|
|
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
|
|
|
|
|
2005-04-14 07:26:44 +02:00
|
|
|
AM_BINUTILS_WARNINGS
|
2000-04-09 14:17:43 +02:00
|
|
|
|
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 23:49:35 +02:00
|
|
|
dnl Required by html and install-html
|
|
|
|
AC_SUBST(datarootdir)
|
|
|
|
AC_SUBST(docdir)
|
|
|
|
AC_SUBST(htmldir)
|
|
|
|
|
2004-06-15 05:24:57 +02:00
|
|
|
AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
|
|
|
|
AC_OUTPUT
|