summaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-09-11 17:57:07 +0000
committerKevin Buettner <kevinb@redhat.com>2000-09-11 17:57:07 +0000
commit6f4266cc78f865ec830b7fcfb4469326b79553d3 (patch)
treeda82848c3079c96327e812a2b98d3f165ccd5bf2 /gdb/configure.in
parentf574bd0b9fff6fdab6b26b01ed99232850dc9cce (diff)
downloadgdb-6f4266cc78f865ec830b7fcfb4469326b79553d3.tar.gz
Fix HAVE_STRUCT_LINK_MAP32 configure test.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in13
1 files changed, 3 insertions, 10 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 6dda43ab442..c1967af79da 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -239,17 +239,10 @@ if test "$ac_cv_header_sys_procfs_h" = yes; then
AC_MSG_CHECKING(for struct link_map32 in sys/link.h)
AC_CACHE_VAL(gdb_cv_have_struct_link_map32,
- [AC_TRY_RUN([#define _SYSCALL32
- #include <sys/link.h>
- int main()
- {
- if (sizeof (struct link_map32) > 0)
- return 1;
- return 0;
- }],
- gdb_cv_have_struct_link_map32=no,
+ [AC_TRY_COMPILE([#define _SYSCALL32
+#include <sys/link.h>], [struct link_map32 l;],
gdb_cv_have_struct_link_map32=yes,
- gdb_cv_have_struct_link_map32=yes)])
+ gdb_cv_have_struct_link_map32=no)])
AC_MSG_RESULT($gdb_cv_have_struct_link_map32)
if test $gdb_cv_have_struct_link_map32 = yes; then
AC_DEFINE(HAVE_STRUCT_LINK_MAP32)