Add a check to see if the section for the symbol is chosen using
[deliverable/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
16dnl For simplicity, we use the BFD configuration file for most
17dnl things. However, we also need our own configuration file for
18dnl the automake PACKAGE and VERSION macros. We don't name it
19dnl config.h, to avoid any possible confusion with the bfd config.h.
6bf9431b 20AC_CONFIG_HEADERS([gconfig.h:gconfig.in])
252b5132
RH
21
22AC_PROG_CC
23AC_PROG_INSTALL
24
5af11cab 25AC_CHECK_FUNCS(setmode)
252b5132 26
e87b2913 27ALL_LINGUAS="fr tr sv es id da pt_BR de vi"
252b5132
RH
28CY_GNU_GETTEXT
29
30AM_MAINTAINER_MODE
31AC_EXEEXT
32
0eee5820
AM
33AC_CHECK_HEADERS(sys/gmon_out.h)
34
66477e87 35build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 36
569acd2c
NC
37AC_ARG_ENABLE(werror,
38 [ --enable-werror treat compile warnings as errors],
1ad12f97
NC
39 [case "${enableval}" in
40 yes | y) ERROR_ON_WARNING="yes" ;;
41 no | n) ERROR_ON_WARNING="no" ;;
569acd2c 42 *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
1ad12f97
NC
43 esac])
44
569acd2c 45# Enable -Werror by default, suppressing it only for --disable-werror
1ad12f97
NC
46# or --disable-build-warnings.
47if test "${ERROR_ON_WARNING}" != no
48then
49 build_warnings="$build_warnings -Werror"
50fi
569acd2c 51
a2d91340
AC
52AC_ARG_ENABLE(build-warnings,
53[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
54[case "${enableval}" in
55 yes) ;;
56 no) build_warnings="-w";;
57 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
58 build_warnings="${build_warnings} ${t}";;
59 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
60 build_warnings="${t} ${build_warnings}";;
61 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
62esac
63if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
64 echo "Setting warning flags = $build_warnings" 6>&1
65fi])dnl
66WARN_CFLAGS=""
67if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
68 WARN_CFLAGS="${build_warnings}"
69fi
70AC_SUBST(WARN_CFLAGS)
71
6bf9431b
BE
72AC_CONFIG_FILES([Makefile po/Makefile.in:po/Make-in])
73AC_CONFIG_COMMANDS([default],[[sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile]],[[]])
74AC_OUTPUT
This page took 0.225295 seconds and 4 git commands to generate.