dnl <http://www.gnu.org/licenses/>.
m4_include([../bfd/version.m4])
+m4_include([../config/zlib.m4])
AC_INIT([gprofng], BFD_VERSION)
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([subdir-objects])
AC_PROG_INSTALL
AC_PROG_RANLIB
AM_PROG_AR
+gl_PROG_BISON([BISON],[3.0.4])
+if test x$BISON = "x:"; then
+ AC_MSG_ERROR([Building gprofng requires bison 3.0.4 or later.])
+fi
AC_DISABLE_SHARED
LT_INIT
build_collector=
build_src=
-# This is annoying: it means we have to pass --enable-shared explicitly to
-# get gprofng, while the configure default is supposed to be that shared libs
-# are on by default. But as long as libiberty has code like this, so must
-# we...
-
- case "${target}" in
+ case "${host}" in
x86_64-*-linux*)
build_src=true
build_collector=true
;;
i?86-*-linux*)
- build_collector=true
+ build_src=true
build_collector=true
;;
aarch64-*-linux*)
])
AM_CONDITIONAL(TCL_TRY, test "${ac_cv_libctf_tcl_try}" = yes)
+AM_ZLIB
# Generate manpages, if possible.
if test $cross_compiling = no; then