summaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-08-24 03:13:05 +0000
committerAlan Modra <amodra@gmail.com>2008-08-24 03:13:05 +0000
commitda594c4a29ff199ff1b1986587cdd3babcaf1693 (patch)
tree024e56e9da96ff3d0186d33791ec8bafe647f168 /gprof
parentf27f411ae75833a958518eada4cfaa33ff5c87f8 (diff)
downloadbinutils-gdb-da594c4a29ff199ff1b1986587cdd3babcaf1693.tar.gz
Update a number of obsolete autoconf macros.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog4
-rw-r--r--gprof/configure.in4
2 files changed, 6 insertions, 2 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index dd51b93b9b2..9f9975c641c 100644
--- a/gprof/ChangeLog
+++ b/gprof/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-24 Alan Modra <amodra@bigpond.net.au>
+
+ *configure.in: Update a number of obsolete autoconf macros.
+
2008-08-15 Alan Modra <amodra@bigpond.net.au>
PR 6526
diff --git a/gprof/configure.in b/gprof/configure.in
index 18475d74ded..904e0519542 100644
--- a/gprof/configure.in
+++ b/gprof/configure.in
@@ -22,7 +22,7 @@ AC_GNU_SOURCE
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_INSTALL
-AM_PROG_LIBTOOL
+LT_INIT
AC_CHECK_FUNCS(setmode)
@@ -38,7 +38,7 @@ AC_CHECK_HEADERS(sys/gmon_out.h)
AC_MSG_CHECKING(for a known getopt prototype in unistd.h)
AC_CACHE_VAL(gprof_cv_decl_getopt_unistd_h,
-[AC_TRY_COMPILE([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);],
+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>], [extern int getopt (int, char *const*, const char *);])],
gprof_cv_decl_getopt_unistd_h=yes, gprof_cv_decl_getopt_unistd_h=no)])
AC_MSG_RESULT($gprof_cv_decl_getopt_unistd_h)
if test $gprof_cv_decl_getopt_unistd_h = yes; then