Commit | Line | Data |
---|---|---|
252b5132 | 1 | dnl Process this file with autoconf to produce a configure script. |
6bf9431b BE |
2 | AC_PREREQ(2.59) |
3 | AC_INIT | |
4 | AC_CONFIG_SRCDIR([gprof.c]) | |
252b5132 | 5 | |
6bf9431b | 6 | AC_CANONICAL_TARGET([]) |
5d64ca4e | 7 | AC_ISC_POSIX |
252b5132 | 8 | |
27b7e12d AM |
9 | changequote(,)dnl |
10 | BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in` | |
11 | changequote([,])dnl | |
12 | AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION}) | |
252b5132 RH |
13 | |
14 | AM_PROG_LIBTOOL | |
15 | ||
16 | dnl For simplicity, we use the BFD configuration file for most | |
17 | dnl things. However, we also need our own configuration file for | |
18 | dnl the automake PACKAGE and VERSION macros. We don't name it | |
19 | dnl config.h, to avoid any possible confusion with the bfd config.h. | |
6bf9431b | 20 | AC_CONFIG_HEADERS([gconfig.h:gconfig.in]) |
252b5132 RH |
21 | |
22 | AC_PROG_CC | |
23 | AC_PROG_INSTALL | |
24 | ||
5af11cab | 25 | AC_CHECK_FUNCS(setmode) |
252b5132 | 26 | |
bd42febf | 27 | ALL_LINGUAS="fr tr sv es id da pt_BR de vi rw ga" |
20e95c23 DJ |
28 | ZW_GNU_GETTEXT_SISTER_DIR |
29 | AM_PO_SUBDIRS | |
252b5132 RH |
30 | |
31 | AM_MAINTAINER_MODE | |
32 | AC_EXEEXT | |
33 | ||
0eee5820 AM |
34 | AC_CHECK_HEADERS(sys/gmon_out.h) |
35 | ||
34875e64 NC |
36 | AC_MSG_CHECKING(for a known getopt prototype in unistd.h) |
37 | AC_CACHE_VAL(gprof_cv_decl_getopt_unistd_h, | |
38 | [AC_TRY_COMPILE([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);], | |
39 | gprof_cv_decl_getopt_unistd_h=yes, gprof_cv_decl_getopt_unistd_h=no)]) | |
40 | AC_MSG_RESULT($gprof_cv_decl_getopt_unistd_h) | |
41 | if test $gprof_cv_decl_getopt_unistd_h = yes; then | |
42 | AC_DEFINE([HAVE_DECL_GETOPT], 1, | |
43 | [Is the prototype for getopt in <unistd.h> in the expected format?]) | |
44 | fi | |
45 | ||
9e9b66a9 | 46 | AM_BINUTILS_WARNINGS |
a2d91340 | 47 | |
108a6f8e CD |
48 | dnl Required by html and install-html |
49 | AC_SUBST(datarootdir) | |
50 | AC_SUBST(docdir) | |
51 | AC_SUBST(htmldir) | |
52 | ||
6bf9431b | 53 | AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in]) |
6bf9431b | 54 | AC_OUTPUT |