* collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
(dup2): Make static and add prototype.
* m68k/plexus.h: Don't define NO_DUP2.
* configure.in (AC_CHECK_FUNCS): Add dup2.
* config.in, configure: Regenerate.
From-SVN: r47379
2001-11-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+ * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
+ (dup2): Make static and add prototype.
+ * m68k/plexus.h: Don't define NO_DUP2.
+ * configure.in (AC_CHECK_FUNCS): Add dup2.
+ * config.in, configure: Regenerate.
+
* ia64/aix.h (REG_SIZE): Don't #undef.
* sparc.h (REG_SIZE): Delete.
* flow.c (mark_used_regs): Don't use REG_SIZE.
#endif
static char *extract_string PARAMS ((const char **));
\f
-#ifdef NO_DUP2
-int
+#ifndef HAVE_DUP2
+static int dup2 PARAMS ((int, int));
+static int
dup2 (oldfd, newfd)
int oldfd;
int newfd;
return fd;
}
-#endif
+#endif /* ! HAVE_DUP2 */
\f
/* Delete tempfiles and exit function. */
-/* 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. */
#undef C_ALLOCA
/* Define if you have the dcgettext function. */
#undef HAVE_DCGETTEXT
+/* Define if you have the dup2 function. */
+#undef HAVE_DUP2
+
/* Define if you have the feof_unlocked function. */
#undef HAVE_FEOF_UNLOCKED
and preserves file table indices exactly as given. */
#undef HAVE_AS_DWARF2_DEBUG_LINE
-/* Define 0/1 to force the choice for exception handling model. */
-#undef CONFIG_SJLJ_EXCEPTIONS
-
/* Define if your assembler supports the --gdwarf2 option. */
#undef HAVE_AS_GDWARF2_DEBUG_FLAG
/* Define if your assembler supports the --gstabs option. */
#undef HAVE_AS_GSTABS_DEBUG_FLAG
+/* Define 0/1 to force the choice for exception handling model. */
+#undef CONFIG_SJLJ_EXCEPTIONS
+
+
/* Bison unconditionally undefines `const' if neither `__STDC__' nor
__cplusplus are defined. That's a problem since we use `const' in
the GCC headers, and the resulting bison code is therefore type
/***********************************************************************/
#define NM_FLAGS ""
-#define NO_DUP2
#define SIZE_TYPE "int"
fi
# Find some useful tools
-for ac_prog in gawk mawk nawk awk
+for ac_prog in mawk gawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
fi
-for ac_func in strtoul bsearch popen times clock \
+for ac_func in strtoul bsearch popen times clock dup2 \
strchr strrchr kill getrlimit setrlimit atoll atoq \
sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
fputs_unlocked fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
dnl Disabled until we have a complete test for buggy enum bitfields.
dnl gcc_AC_C_ENUM_BF_UNSIGNED
-AC_CHECK_FUNCS(strtoul bsearch popen times clock \
+AC_CHECK_FUNCS(strtoul bsearch popen times clock dup2 \
strchr strrchr kill getrlimit setrlimit atoll atoq \
sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
fputs_unlocked fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \