From 68724c3d39f77dc02261f8c7fe57b50842a35f68 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 14 Apr 2009 18:05:58 +0000 Subject: merge from gcc --- libiberty/configure.ac | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) (limited to 'libiberty/configure.ac') diff --git a/libiberty/configure.ac b/libiberty/configure.ac index 6cfe335c687..90d60601124 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac @@ -466,6 +466,28 @@ if test -n "${with_target_subdir}"; then # Of the functions in $checkfuncs, Mingw only has strerror. AC_DEFINE(HAVE_STRERROR) + setobjs=yes + ;; + + *-*-msdosdjgpp) + AC_LIBOBJ([vasprintf]) + AC_LIBOBJ([vsnprintf]) + AC_LIBOBJ([snprintf]) + AC_LIBOBJ([asprintf]) + + for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \ + getcwd getpagesize getrusage gettimeofday \ + index insque memchr memcmp memcpy memmove memset psignal \ + putenv random rename rindex sbrk setenv stpcpy strcasecmp \ + strchr strdup strerror strncasecmp strrchr strstr strtod \ + strtol strtoul sysconf times tmpnam vfprintf vprintf \ + vsprintf waitpid + do + n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + AC_DEFINE_UNQUOTED($n) + done + + setobjs=yes ;; @@ -545,23 +567,6 @@ if test -z "${setobjs}"; then # Of the functions in $checkfuncs, VxWorks only has strerror. AC_DEFINE(HAVE_STRERROR) - setobjs=yes - ;; - - *-*-msdosdjgpp) - for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \ - getcwd getpagesize getrusage gettimeofday \ - index insque memchr memcmp memcpy memmove memset psignal \ - putenv random rename rindex sbrk setenv stpcpy strcasecmp \ - strchr strdup strerror strncasecmp strrchr strstr strtod \ - strtol strtoul sysconf times tmpnam vfprintf vprintf \ - vsprintf waitpid - do - n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - AC_DEFINE_UNQUOTED($n) - done - - setobjs=yes ;; -- cgit v1.2.1