summaryrefslogtreecommitdiff
path: root/gprof/configure.in
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2008-08-24 03:13:05 +0000
committerAlan Modra <amodra@bigpond.net.au>2008-08-24 03:13:05 +0000
commit660909e1c54642597701268c8c18876c524f8be6 (patch)
tree0a9ba39b710844e6933a69aa1a00b596d14d6834 /gprof/configure.in
parent3fff843379a9a17496a9b01080d6ec4a24f5bf19 (diff)
downloadbinutils-redhat-660909e1c54642597701268c8c18876c524f8be6.tar.gz
Update a number of obsolete autoconf macros.
Diffstat (limited to 'gprof/configure.in')
-rw-r--r--gprof/configure.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/gprof/configure.in b/gprof/configure.in
index 18475d74de..904e051954 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