Commit 351df804 by Kaveh R. Ghazi Committed by Kaveh Ghazi

collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before prototyping.

	* collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
	prototyping.
	* configure.in: Check for <ldfcn.h> and ldgetname() prototype.

	* config.in, configure: Regenerate.

From-SVN: r61511
parent e3289412
2003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
prototyping.
* configure.in: Check for <ldfcn.h> and ldgetname() prototype.
* config.in, configure: Regenerate.
2003-01-20 Nick Clifton <nickc@redhat.com> 2003-01-20 Nick Clifton <nickc@redhat.com>
* config/arm/arm.md (sibcall_epilogue): Add an * config/arm/arm.md (sibcall_epilogue): Add an
......
...@@ -2720,7 +2720,9 @@ ignore_library (name) ...@@ -2720,7 +2720,9 @@ ignore_library (name)
} }
#endif /* COLLECT_EXPORT_LIST */ #endif /* COLLECT_EXPORT_LIST */
extern char *ldgetname PARAMS ((struct ldfile *, void *)); #if defined (HAVE_DECL_LDGETNAME) && !HAVE_DECL_LDGETNAME
extern char *ldgetname PARAMS ((LDFILE *, GCC_SYMENT *));
#endif
/* COFF version to scan the name list of the loaded program for /* COFF version to scan the name list of the loaded program for
the symbols g++ uses for static constructors and destructors. the symbols g++ uses for static constructors and destructors.
......
/* config.in. Generated automatically from configure.in by autoheader 2.13. */ /* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */ /* Define if using alloca.c. */
#undef C_ALLOCA #undef C_ALLOCA
...@@ -225,6 +225,9 @@ ...@@ -225,6 +225,9 @@
/* Define if you have the <langinfo.h> header file. */ /* Define if you have the <langinfo.h> header file. */
#undef HAVE_LANGINFO_H #undef HAVE_LANGINFO_H
/* Define if you have the <ldfcn.h> header file. */
#undef HAVE_LDFCN_H
/* Define if you have the <limits.h> header file. */ /* Define if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H #undef HAVE_LIMITS_H
...@@ -484,6 +487,9 @@ ...@@ -484,6 +487,9 @@
#undef HAVE_DECL_GETRUSAGE #undef HAVE_DECL_GETRUSAGE
/* Define to 1 if we found this declaration otherwise define to 0. */ /* Define to 1 if we found this declaration otherwise define to 0. */
#undef HAVE_DECL_LDGETNAME
/* Define to 1 if we found this declaration otherwise define to 0. */
#undef HAVE_DECL_TIMES #undef HAVE_DECL_TIMES
/* Define if <sys/times.h> defines struct tms. */ /* Define if <sys/times.h> defines struct tms. */
......
...@@ -569,7 +569,7 @@ AC_HEADER_SYS_WAIT ...@@ -569,7 +569,7 @@ AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \ AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
fcntl.h unistd.h sys/file.h sys/time.h \ fcntl.h unistd.h sys/file.h sys/time.h \
sys/resource.h sys/param.h sys/times.h sys/stat.h \ sys/resource.h sys/param.h sys/times.h sys/stat.h \
direct.h malloc.h langinfo.h) direct.h malloc.h langinfo.h ldfcn.h)
# Check for thread headers. # Check for thread headers.
AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=]) AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
...@@ -750,6 +750,14 @@ gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[ ...@@ -750,6 +750,14 @@ gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
#endif #endif
]) ])
gcc_AC_CHECK_DECLS(ldgetname, , ,[
#include "ansidecl.h"
#include "system.h"
#ifdef HAVE_LDFCN_H
#include <ldfcn.h>
#endif
])
gcc_AC_CHECK_DECLS(times, , ,[ gcc_AC_CHECK_DECLS(times, , ,[
#include "ansidecl.h" #include "ansidecl.h"
#include "system.h" #include "system.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment