summaryrefslogtreecommitdiff
path: root/gprof/configure.ac
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-04-05 15:27:02 +0930
committerAlan Modra <amodra@gmail.com>2021-04-05 15:27:02 +0930
commit5d4d26d14ca3dcf4c2d0745df720a2a5bd1bd6a5 (patch)
tree6555379b0c6943164d1497c9a9ef11c058b0a586 /gprof/configure.ac
parent306b445a6d4cc9dbb46ecdf22d9585fe9fc98115 (diff)
downloadbinutils-gdb-5d4d26d14ca3dcf4c2d0745df720a2a5bd1bd6a5.tar.gz
C99 gprof configury
Given C99 we don't need to check for setlocale. The patch also adds setitimer checks so that they can be removed from bfd where they aren't needed. According to the automake manual AC_ISC_POSIX is obsolete, so that is removed. HAVE_SETMODE isn't checked anywhere, so it is pointless to have a configure test for setmode. * configure.ac: Check for sys/time.h and setitimer. Don't invoke AC_ISC_POSIX. Don't check for setmode. * gprof.c: Don't test HAVE_SETLOCALE. * gprof.h: Include sys/time.h. * configure: Regenerate. * gconfig.in: Regenerate.
Diffstat (limited to 'gprof/configure.ac')
-rw-r--r--gprof/configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/gprof/configure.ac b/gprof/configure.ac
index 36a40848097..25aa108ecf6 100644
--- a/gprof/configure.ac
+++ b/gprof/configure.ac
@@ -21,7 +21,6 @@ AC_INIT([gprof], BFD_VERSION)
AC_CONFIG_SRCDIR([gprof.c])
AC_CANONICAL_TARGET([])
-AC_ISC_POSIX
AM_INIT_AUTOMAKE
@@ -39,7 +38,9 @@ AC_PROG_INSTALL
LT_INIT
ACX_LARGEFILE
-AC_CHECK_FUNCS(setmode)
+# These are in addition to what is made available in bfd/.
+AC_CHECK_HEADERS(sys/time.h)
+AC_CHECK_FUNCS(setitimer)
ALL_LINGUAS="bg da de eo es fi fr ga hu id it ja ms nl pt_BR ro ru rw sr sv tr uk vi"
ZW_GNU_GETTEXT_SISTER_DIR