From 60f1ad85ac75dd967184852cad217a695a727091 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 22 Jul 1997 19:11:04 +0000 Subject: [PATCH] * configure.in: Check for fdopen. * configure, config.in: Rebuild. * opncls.c (bfd_fdopenr): Check HAVE_FDOPEN rather than VMS or __GO32__. Reindent a bit. --- bfd/ChangeLog | 7 +++++++ bfd/config.in | 27 +++++++++++++++++++++++++++ bfd/configure | 4 ++-- bfd/configure.in | 4 ++-- 4 files changed, 38 insertions(+), 4 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9179b0f..34d9d2c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +Tue Jul 22 15:09:12 1997 Ian Lance Taylor + + * configure.in: Check for fdopen. + * configure, config.in: Rebuild. + * opncls.c (bfd_fdopenr): Check HAVE_FDOPEN rather than VMS or + __GO32__. Reindent a bit. + Sun Jul 20 20:05:20 1997 Ian Lance Taylor * sunos.c (sunos_create_dynamic_sections): Set SEC_LINKER_CREATED diff --git a/bfd/config.in b/bfd/config.in index 21e16d2..7698b5f 100644 --- a/bfd/config.in +++ b/bfd/config.in @@ -1,14 +1,29 @@ /* config.in. Generated automatically from configure.in by autoheader. */ +/* Whether strstr must be declared even if is included. */ +#undef NEED_DECLARATION_STRSTR + /* Whether malloc must be declared even if is included. */ #undef NEED_DECLARATION_MALLOC +/* Whether realloc must be declared even if is included. */ +#undef NEED_DECLARATION_REALLOC + /* Whether free must be declared even if is included. */ #undef NEED_DECLARATION_FREE +/* Whether getenv must be declared even if is included. */ +#undef NEED_DECLARATION_GETENV + /* Define if you have a working `mmap' system call. */ #undef HAVE_MMAP +/* Define if you need to in order for stat and other things to work. */ +#undef _POSIX_SOURCE + +/* Define if you can safely include both and . */ +#undef TIME_WITH_SYS_TIME + /* Do we need to use the b modifier when opening binary files? */ #undef USE_BINARY_FOPEN @@ -24,6 +39,9 @@ /* Define if you have the fcntl function. */ #undef HAVE_FCNTL +/* Define if you have the fdopen function. */ +#undef HAVE_FDOPEN + /* Define if you have the getpagesize function. */ #undef HAVE_GETPAGESIZE @@ -33,6 +51,12 @@ /* Define if you have the mprotect function. */ #undef HAVE_MPROTECT +/* Define if you have the setitimer function. */ +#undef HAVE_SETITIMER + +/* Define if you have the sysconf function. */ +#undef HAVE_SYSCONF + /* Define if you have the header file. */ #undef HAVE_FCNTL_H @@ -51,6 +75,9 @@ /* Define if you have the header file. */ #undef HAVE_SYS_FILE_H +/* Define if you have the header file. */ +#undef HAVE_SYS_TIME_H + /* Define if you have the header file. */ #undef HAVE_TIME_H diff --git a/bfd/configure b/bfd/configure index 96d6c95..0adee2a 100755 --- a/bfd/configure +++ b/bfd/configure @@ -1327,7 +1327,7 @@ EOF fi -for ac_func in fcntl getpagesize setitimer sysconf +for ac_func in fcntl getpagesize setitimer sysconf fdopen do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:1334: checking for $ac_func" >&5 @@ -1925,7 +1925,7 @@ fi if test -n "$enable_targets" ; then for targ in `echo $enable_targets | sed 's/,/ /g'` do - result=`$ac_config_sub $targ 2>/dev/null` + result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null` if test -n "$result" ; then canon_targets="$canon_targets $result" else diff --git a/bfd/configure.in b/bfd/configure.in index 58a2e42..6315d93 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -136,7 +136,7 @@ BFD_CC_FOR_BUILD AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h) AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h) AC_HEADER_TIME -AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf) +AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen) BFD_BINARY_FOPEN @@ -352,7 +352,7 @@ AC_SUBST(COREFLAG) if test -n "$enable_targets" ; then for targ in `echo $enable_targets | sed 's/,/ /g'` do - result=`$ac_config_sub $targ 2>/dev/null` + result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null` if test -n "$result" ; then canon_targets="$canon_targets $result" else -- 2.7.4