1 dnl Process this file with autoconf to produce a configure script.
4 AC_CONFIG_SRCDIR([gprof.c])
6 AC_CANONICAL_TARGET([])
10 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
12 AM_INIT_AUTOMAKE(gprof, ${BFD_VERSION})
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.
20 AC_CONFIG_HEADERS([gconfig.h:gconfig.in])
25 AC_CHECK_FUNCS(setmode)
27 ALL_LINGUAS="fr tr sv es id da pt_BR de vi"
33 AC_CHECK_HEADERS(sys/gmon_out.h)
35 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
36 AC_ARG_ENABLE(build-warnings,
37 [ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
38 [case "${enableval}" in
40 no) build_warnings="-w";;
41 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
42 build_warnings="${build_warnings} ${t}";;
43 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
44 build_warnings="${t} ${build_warnings}";;
45 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
47 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
48 echo "Setting warning flags = $build_warnings" 6>&1
51 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
52 WARN_CFLAGS="${build_warnings}"
56 AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
57 AC_CONFIG_COMMANDS([default],[[sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile]],[[]])