summaryrefslogtreecommitdiffstats
path: root/gcc/aclocal.m4
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-13 00:37:06 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-13 00:37:06 +0000
commit397f15741071ccf1587b18884a5ca5c0b5ab355f (patch)
treed3dff74afbeffac820b068280d9d819772186d74 /gcc/aclocal.m4
parentd38a93879a8e545cac9fd11426e4432147a1f312 (diff)
downloadppe42-gcc-397f15741071ccf1587b18884a5ca5c0b5ab355f.tar.gz
ppe42-gcc-397f15741071ccf1587b18884a5ca5c0b5ab355f.zip
* configure.in (i?86-*-beos{pe,elf,}*): Recognize.
* i386/t-beos, i386/x-beos, i386/xm-beos.h: New files. * i386/beos-elf.h, i386/beos-pe.h: New files. * Makefile.in (CROSS_SYSTEM_HEADER_DIR): New. * cross-make (SYSTEM_HEADER_DIR): Define using CROSS_SYSTEM_HEADER_DIR. * gcc.c (LIBRARY_PATH_ENV): Provide default. (process_command): Use it. (main): Likewise. Kill trailing = from env vars. (build_search_list): Put it back. * collect2.c (main): Use LIBRARY_PATH_ENV. * configure.in (GCC_NEED_DECLARATIONS): Add environ. * toplev.c: Use NEED_DECLARATION_ENVIRON. * tm.texi (Frame Layout): Document SMALL_STACK. * c-common.c (c_common_nodes_and_builtins): Check it. * system.h: Undef alloca after including glibc's <stdlib.h>, if USE_C_ALLOCA is defined. * gcc.c (set_input): New fn. (main): After all input files are compiled, reset the input file info to the first. * aclocal.m4 (rindex, index): If already defined, don't attempt to redefine. * ginclude/varargs.h: (__va_list__): Define ifndef. * ginclude/stdarg.h: Likewise. * ginclude/stddef.h (__WCHAR_TYPE__) [BEOS]: Use int instead of unsigned char. * hash.h (true, false, boolean): Undef before enum. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31366 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r--gcc/aclocal.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4
index 543938325ed..300127f2931 100644
--- a/gcc/aclocal.m4
+++ b/gcc/aclocal.m4
@@ -35,11 +35,15 @@ AC_CACHE_VAL(gcc_cv_decl_needed_$1,
#include <unistd.h>
#endif
#ifndef HAVE_RINDEX
+#ifndef rindex
#define rindex strrchr
#endif
+#endif
#ifndef HAVE_INDEX
+#ifndef index
#define index strchr
#endif
+#endif
$2],
[char *(*pfn) = (char *(*)) $1],
eval "gcc_cv_decl_needed_$1=no", eval "gcc_cv_decl_needed_$1=yes")])
OpenPOWER on IntegriCloud