AC_INIT(gprof.c)
AC_CANONICAL_SYSTEM
+AC_ISC_POSIX
-AM_INIT_AUTOMAKE(gprof, 2.9.5)
+changequote(,)dnl
+BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
+changequote([,])dnl
+AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION})
AM_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_INSTALL
-AC_ISC_POSIX
+AC_CHECK_FUNCS(setmode)
-ALL_LINGUAS=
+ALL_LINGUAS="fr tr sv es id da pt_BR de"
CY_GNU_GETTEXT
AM_MAINTAINER_MODE
AC_EXEEXT
-build_warnings="-W -Wall"
+AC_CHECK_HEADERS(sys/gmon_out.h)
+
+build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
AC_ARG_ENABLE(build-warnings,
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
[case "${enableval}" in