]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gprof/configure.in
top level:
[thirdparty/binutils-gdb.git] / gprof / configure.in
CommitLineData
252b5132 1dnl Process this file with autoconf to produce a configure script.
6bf9431b
BE
2AC_PREREQ(2.59)
3AC_INIT
4AC_CONFIG_SRCDIR([gprof.c])
252b5132 5
6bf9431b 6AC_CANONICAL_TARGET([])
5d64ca4e 7AC_ISC_POSIX
252b5132 8
27b7e12d
AM
9changequote(,)dnl
10BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
11changequote([,])dnl
12AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION})
252b5132
RH
13
14AM_PROG_LIBTOOL
15
92f01d61
JM
16# Package version. For an official FSF release, it is empty.
17AC_ARG_WITH(pkgversion,
18 AS_HELP_STRING([--with-pkgversion=PKG],
19 [Add PKG to the version string]),
20 [case "$withval" in
21 yes) AC_MSG_ERROR([package version not specified]) ;;
22 no) PKGVERSION= ;;
23 *) PKGVERSION="($withval) " ;;
24 esac],
25 PKGVERSION=
26)
27AC_SUBST(PKGVERSION)
28
29# The location to which bugs should be reported.
30AC_ARG_WITH(bugurl,
31 AS_HELP_STRING([--with-bugurl=URL],
32 [Direct users to URL to report a bug]),
33 [case "$withval" in
34 yes) AC_MSG_ERROR([bug URL not specified]) ;;
35 no) REPORT_BUGS_TO="" ;;
36 *) REPORT_BUGS_TO="<URL:$withval>" ;;
37 esac],
38 REPORT_BUGS_TO="<URL:http://www.sourceware.org/bugzilla/>"
39)
40AC_SUBST(REPORT_BUGS_TO)
41
252b5132
RH
42dnl For simplicity, we use the BFD configuration file for most
43dnl things. However, we also need our own configuration file for
44dnl the automake PACKAGE and VERSION macros. We don't name it
45dnl config.h, to avoid any possible confusion with the bfd config.h.
6bf9431b 46AC_CONFIG_HEADERS([gconfig.h:gconfig.in])
252b5132
RH
47
48AC_PROG_CC
49AC_PROG_INSTALL
50
5af11cab 51AC_CHECK_FUNCS(setmode)
252b5132 52
221ca466 53ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga ms"
20e95c23
DJ
54ZW_GNU_GETTEXT_SISTER_DIR
55AM_PO_SUBDIRS
252b5132
RH
56
57AM_MAINTAINER_MODE
d5fbea21 58AM_CONDITIONAL(GENINSRC_NEVER, false)
252b5132
RH
59AC_EXEEXT
60
0eee5820
AM
61AC_CHECK_HEADERS(sys/gmon_out.h)
62
34875e64
NC
63AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
64AC_CACHE_VAL(gprof_cv_decl_getopt_unistd_h,
65[AC_TRY_COMPILE([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);],
66gprof_cv_decl_getopt_unistd_h=yes, gprof_cv_decl_getopt_unistd_h=no)])
67AC_MSG_RESULT($gprof_cv_decl_getopt_unistd_h)
68if test $gprof_cv_decl_getopt_unistd_h = yes; then
69 AC_DEFINE([HAVE_DECL_GETOPT], 1,
70 [Is the prototype for getopt in <unistd.h> in the expected format?])
71fi
72
9e9b66a9 73AM_BINUTILS_WARNINGS
a2d91340 74
108a6f8e
CD
75dnl Required by html and install-html
76AC_SUBST(datarootdir)
77AC_SUBST(docdir)
78AC_SUBST(htmldir)
79
6bf9431b 80AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
6bf9431b 81AC_OUTPUT