1 dnl Process this file with autoconf to produce a configure script.
9 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
11 AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION})
15 dnl For simplicity, we use the BFD configuration file for most
16 dnl things. However, we also need our own configuration file for
17 dnl the automake PACKAGE and VERSION macros. We don't name it
18 dnl config.h, to avoid any possible confusion with the bfd config.h.
19 AM_CONFIG_HEADER(gconfig.h:gconfig.in)
24 AC_CHECK_FUNCS(setmode)
26 ALL_LINGUAS="fr tr sv es id da pt_BR de"
32 AC_CHECK_HEADERS(sys/gmon_out.h)
34 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
35 AC_ARG_ENABLE(build-warnings,
36 [ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
37 [case "${enableval}" in
39 no) build_warnings="-w";;
40 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
41 build_warnings="${build_warnings} ${t}";;
42 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
43 build_warnings="${t} ${build_warnings}";;
44 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
46 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
47 echo "Setting warning flags = $build_warnings" 6>&1
50 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
51 WARN_CFLAGS="${build_warnings}"
55 AC_OUTPUT(Makefile po/Makefile.in:po/Make-in,
56 [sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])