* Makefile.in (maintainer-clean-subdir): Fix handling of empty
[deliverable/binutils-gdb.git] / gprof / configure.in
CommitLineData
252b5132
RH
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.13)
3AC_INIT(gprof.c)
4
5AC_CANONICAL_SYSTEM
6
fb57846b 7AM_INIT_AUTOMAKE(gprof, 2.9.5)
252b5132
RH
8
9AM_PROG_LIBTOOL
10
11dnl For simplicity, we use the BFD configuration file for most
12dnl things. However, we also need our own configuration file for
13dnl the automake PACKAGE and VERSION macros. We don't name it
14dnl config.h, to avoid any possible confusion with the bfd config.h.
15AM_CONFIG_HEADER(gconfig.h:gconfig.in)
16
17AC_PROG_CC
18AC_PROG_INSTALL
19
20AC_ISC_POSIX
21
22ALL_LINGUAS=
23CY_GNU_GETTEXT
24
25AM_MAINTAINER_MODE
26AC_EXEEXT
27
a2d91340
AC
28build_warnings="-W -Wall"
29AC_ARG_ENABLE(build-warnings,
30[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
31[case "${enableval}" in
32 yes) ;;
33 no) build_warnings="-w";;
34 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
35 build_warnings="${build_warnings} ${t}";;
36 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
37 build_warnings="${t} ${build_warnings}";;
38 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
39esac
40if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
41 echo "Setting warning flags = $build_warnings" 6>&1
42fi])dnl
43WARN_CFLAGS=""
44if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
45 WARN_CFLAGS="${build_warnings}"
46fi
47AC_SUBST(WARN_CFLAGS)
48
252b5132
RH
49AC_OUTPUT(Makefile po/Makefile.in:po/Make-in,
50[sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])
This page took 0.045989 seconds and 4 git commands to generate.