From: Doug Evans Date: Sat, 19 Jul 1997 02:37:36 +0000 (+0000) Subject: Initial revision X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f51182ac3209817ffcea613aa84a0a60de287ae;p=gcc.git Initial revision From-SVN: r14486 --- diff --git a/gcc/acconfig.h b/gcc/acconfig.h new file mode 100644 index 00000000000..690a21301a6 --- /dev/null +++ b/gcc/acconfig.h @@ -0,0 +1,14 @@ + +/* Include the old config.h as config2.h to simplify the transition + to autoconf. */ +#include "config2.h" + +/* 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 +@TOP@ diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4 new file mode 100644 index 00000000000..6a45a4cfb81 --- /dev/null +++ b/gcc/aclocal.m4 @@ -0,0 +1,27 @@ +dnl See whether we need a declaration for a function. +AC_DEFUN(GCC_NEED_DECLARATION, +[AC_MSG_CHECKING([whether $1 must be declared]) +AC_CACHE_VAL(gcc_cv_decl_needed_$1, +[AC_TRY_COMPILE([ +#include +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif +#ifdef HAVE_STDLIB_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif], +[char *(*pfn) = (char *(*)) $1], +gcc_cv_decl_needed_$1=no, gcc_cv_decl_needed_$1=yes)]) +AC_MSG_RESULT($gcc_cv_decl_needed_$1) +if test $gcc_cv_decl_needed_$1 = yes; then + gcc_tr_decl=NEED_DECLARATION_`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + AC_DEFINE_UNQUOTED($gcc_tr_decl) +fi +])dnl