diff options
author | Alan Modra <amodra@gmail.com> | 2021-04-05 15:27:02 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-04-05 15:27:02 +0930 |
commit | 5d4d26d14ca3dcf4c2d0745df720a2a5bd1bd6a5 (patch) | |
tree | 6555379b0c6943164d1497c9a9ef11c058b0a586 /gprof/configure.ac | |
parent | 306b445a6d4cc9dbb46ecdf22d9585fe9fc98115 (diff) | |
download | gdb-5d4d26d14ca3dcf4c2d0745df720a2a5bd1bd6a5.zip gdb-5d4d26d14ca3dcf4c2d0745df720a2a5bd1bd6a5.tar.gz gdb-5d4d26d14ca3dcf4c2d0745df720a2a5bd1bd6a5.tar.bz2 |
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.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gprof/configure.ac b/gprof/configure.ac index 36a4084..25aa108 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 |