Commit 99e757d5 by Kaveh R. Ghazi Committed by Kaveh Ghazi

aclocal.m4: (GCC_HEADER_STRING...

        * aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
        GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
        GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
        AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
        EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.

        * configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
        GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
        GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
        GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
        new macros names.

From-SVN: r33383
parent be961d57
2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* aclocal.m4: (GCC_HEADER_STRING, GCC_NEED_DECLARATION,
GCC_NEED_DECLARATIONS, GCC_FUNC_VFPRINTF_DOPRNT,
GCC_FUNC_PRINTF_PTR, GCC_PROG_LN_S, GCC_PROG_LN, GCC_C_VOLATILE,
AC_GCC_C_LONG_DOUBLE, GCC_FUNC_MKDIR_TAKES_ONE_ARG,
EGCS_PROG_INSTALL): Rename autoconf macros with prefix gcc_AC_.
* configure.in (AC_GCC_C_LONG_DOUBLE, GCC_PROG_LN, GCC_PROG_LN_S,
GCC_C_VOLATILE, EGCS_PROG_INSTALL, GCC_HEADER_STRING,
GCC_FUNC_VFPRINTF_DOPRNT, GCC_FUNC_PRINTF_PTR,
GCC_NEED_DECLARATIONS, GCC_FUNC_MKDIR_TAKES_ONE_ARG): Invoke with
new macros names.
2000-04-24 Mumit Khan <khan@xraylith.wisc.edu> 2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
* c-pragma.c (push_alignment): Use BITS_PER_UNIT macro. * c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
......
dnl See whether we can include both string.h and strings.h. dnl See whether we can include both string.h and strings.h.
AC_DEFUN(GCC_HEADER_STRING, AC_DEFUN(gcc_AC_HEADER_STRING,
[AC_CACHE_CHECK([whether string.h and strings.h may both be included], [AC_CACHE_CHECK([whether string.h and strings.h may both be included],
gcc_cv_header_string, gcc_cv_header_string,
[AC_TRY_COMPILE([#include <string.h> [AC_TRY_COMPILE([#include <string.h>
...@@ -10,8 +10,8 @@ fi ...@@ -10,8 +10,8 @@ fi
]) ])
dnl See whether we need a declaration for a function. dnl See whether we need a declaration for a function.
dnl GCC_NEED_DECLARATION(FUNCTION [, EXTRA-HEADER-FILES]) dnl gcc_AC_NEED_DECLARATION(FUNCTION [, EXTRA-HEADER-FILES])
AC_DEFUN(GCC_NEED_DECLARATION, AC_DEFUN(gcc_AC_NEED_DECLARATION,
[AC_MSG_CHECKING([whether $1 must be declared]) [AC_MSG_CHECKING([whether $1 must be declared])
AC_CACHE_VAL(gcc_cv_decl_needed_$1, AC_CACHE_VAL(gcc_cv_decl_needed_$1,
[AC_TRY_COMPILE([ [AC_TRY_COMPILE([
...@@ -57,17 +57,17 @@ fi ...@@ -57,17 +57,17 @@ fi
])dnl ])dnl
dnl Check multiple functions to see whether each needs a declaration. dnl Check multiple functions to see whether each needs a declaration.
dnl GCC_NEED_DECLARATIONS(FUNCTION... [, EXTRA-HEADER-FILES]) dnl gcc_AC_NEED_DECLARATIONS(FUNCTION... [, EXTRA-HEADER-FILES])
AC_DEFUN(GCC_NEED_DECLARATIONS, AC_DEFUN(gcc_AC_NEED_DECLARATIONS,
[for ac_func in $1 [for ac_func in $1
do do
GCC_NEED_DECLARATION($ac_func, $2) gcc_AC_NEED_DECLARATION($ac_func, $2)
done done
]) ])
dnl Check if we have vprintf and possibly _doprnt. dnl Check if we have vprintf and possibly _doprnt.
dnl Note autoconf checks for vprintf even though we care about vfprintf. dnl Note autoconf checks for vprintf even though we care about vfprintf.
AC_DEFUN(GCC_FUNC_VFPRINTF_DOPRNT, AC_DEFUN(gcc_AC_FUNC_VFPRINTF_DOPRNT,
[AC_FUNC_VPRINTF [AC_FUNC_VPRINTF
vfprintf= vfprintf=
doprint= doprint=
...@@ -82,7 +82,7 @@ AC_SUBST(doprint) ...@@ -82,7 +82,7 @@ AC_SUBST(doprint)
]) ])
dnl See if the printf functions in libc support %p in format strings. dnl See if the printf functions in libc support %p in format strings.
AC_DEFUN(GCC_FUNC_PRINTF_PTR, AC_DEFUN(gcc_AC_FUNC_PRINTF_PTR,
[AC_CACHE_CHECK(whether the printf functions support %p, [AC_CACHE_CHECK(whether the printf functions support %p,
gcc_cv_func_printf_ptr, gcc_cv_func_printf_ptr,
[AC_TRY_RUN([#include <stdio.h> [AC_TRY_RUN([#include <stdio.h>
...@@ -103,7 +103,7 @@ fi ...@@ -103,7 +103,7 @@ fi
]) ])
dnl See if symbolic links work and if not, try to substitute either hard links or simple copy. dnl See if symbolic links work and if not, try to substitute either hard links or simple copy.
AC_DEFUN(GCC_PROG_LN_S, AC_DEFUN(gcc_AC_PROG_LN_S,
[AC_MSG_CHECKING(whether ln -s works) [AC_MSG_CHECKING(whether ln -s works)
AC_CACHE_VAL(gcc_cv_prog_LN_S, AC_CACHE_VAL(gcc_cv_prog_LN_S,
[rm -f conftestdata_t [rm -f conftestdata_t
...@@ -135,7 +135,7 @@ AC_SUBST(LN_S)dnl ...@@ -135,7 +135,7 @@ AC_SUBST(LN_S)dnl
]) ])
dnl See if hard links work and if not, try to substitute either symbolic links or simple copy. dnl See if hard links work and if not, try to substitute either symbolic links or simple copy.
AC_DEFUN(GCC_PROG_LN, AC_DEFUN(gcc_AC_PROG_LN,
[AC_MSG_CHECKING(whether ln works) [AC_MSG_CHECKING(whether ln works)
AC_CACHE_VAL(gcc_cv_prog_LN, AC_CACHE_VAL(gcc_cv_prog_LN,
[rm -f conftestdata_t [rm -f conftestdata_t
...@@ -167,7 +167,7 @@ AC_SUBST(LN)dnl ...@@ -167,7 +167,7 @@ AC_SUBST(LN)dnl
]) ])
dnl See whether the stage1 host compiler accepts the volatile keyword. dnl See whether the stage1 host compiler accepts the volatile keyword.
AC_DEFUN(GCC_C_VOLATILE, AC_DEFUN(gcc_AC_C_VOLATILE,
[AC_CACHE_CHECK([for volatile], gcc_cv_c_volatile, [AC_CACHE_CHECK([for volatile], gcc_cv_c_volatile,
[AC_TRY_COMPILE(, [volatile int foo;], [AC_TRY_COMPILE(, [volatile int foo;],
gcc_cv_c_volatile=yes, gcc_cv_c_volatile=no)]) gcc_cv_c_volatile=yes, gcc_cv_c_volatile=no)])
...@@ -178,7 +178,7 @@ fi ...@@ -178,7 +178,7 @@ fi
dnl Check whether long double is supported. This differs from the dnl Check whether long double is supported. This differs from the
dnl built-in autoconf test in that it works for cross compiles. dnl built-in autoconf test in that it works for cross compiles.
AC_DEFUN(AC_GCC_C_LONG_DOUBLE, AC_DEFUN(gcc_AC_C_LONG_DOUBLE,
[AC_CACHE_CHECK(for long double, gcc_cv_c_long_double, [AC_CACHE_CHECK(for long double, gcc_cv_c_long_double,
[if test "$GCC" = yes; then [if test "$GCC" = yes; then
gcc_cv_c_long_double=yes gcc_cv_c_long_double=yes
...@@ -197,7 +197,7 @@ fi ...@@ -197,7 +197,7 @@ fi
dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead
dnl of the usual 2. dnl of the usual 2.
AC_DEFUN(GCC_FUNC_MKDIR_TAKES_ONE_ARG, AC_DEFUN(gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG,
[AC_CACHE_CHECK([if mkdir takes one argument], gcc_cv_mkdir_takes_one_arg, [AC_CACHE_CHECK([if mkdir takes one argument], gcc_cv_mkdir_takes_one_arg,
[AC_TRY_COMPILE([ [AC_TRY_COMPILE([
#include <sys/types.h> #include <sys/types.h>
...@@ -216,7 +216,7 @@ if test $gcc_cv_mkdir_takes_one_arg = yes ; then ...@@ -216,7 +216,7 @@ if test $gcc_cv_mkdir_takes_one_arg = yes ; then
fi fi
]) ])
AC_DEFUN(EGCS_PROG_INSTALL, AC_DEFUN(gcc_AC_PROG_INSTALL,
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
# Find a good install program. We prefer a C program (faster), # Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or # so one script is as good as another. But avoid the broken or
......
...@@ -6734,7 +6734,7 @@ else ...@@ -6734,7 +6734,7 @@ else
int main() { int main() {
/* Ultrix mips cc rejects this. */ /* Ultrix mips cc rejects this. */
typedef int charset[2]; const charset x = {0,0}; typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this. */ /* SunOS 4.1.1 cc rejects this. */
char const *const *ccp; char const *const *ccp;
char **p; char **p;
...@@ -6809,7 +6809,7 @@ for ac_kw in inline __inline__ __inline; do ...@@ -6809,7 +6809,7 @@ for ac_kw in inline __inline__ __inline; do
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
} int $ac_kw foo() { } $ac_kw foo() {
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:6816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:6816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
...@@ -6915,7 +6915,7 @@ else ...@@ -6915,7 +6915,7 @@ else
#include "confdefs.h" #include "confdefs.h"
#include <alloca.h> #include <alloca.h>
int main() { int main() {
void *p = alloca(2 * sizeof(int)); char *p = alloca(2 * sizeof(int));
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
......
...@@ -287,7 +287,7 @@ AC_CANONICAL_SYSTEM ...@@ -287,7 +287,7 @@ AC_CANONICAL_SYSTEM
# Find the native compiler # Find the native compiler
AC_PROG_CC AC_PROG_CC
AC_GCC_C_LONG_DOUBLE gcc_AC_C_LONG_DOUBLE
# If the native compiler is GCC, we can enable warnings even in stage1. # If the native compiler is GCC, we can enable warnings even in stage1.
# That's useful for people building cross-compilers, or just running a # That's useful for people building cross-compilers, or just running a
...@@ -326,16 +326,16 @@ fi ...@@ -326,16 +326,16 @@ fi
# Find some useful tools # Find some useful tools
AC_PROG_AWK AC_PROG_AWK
AC_PROG_LEX AC_PROG_LEX
GCC_PROG_LN gcc_AC_PROG_LN
GCC_PROG_LN_S gcc_AC_PROG_LN_S
GCC_C_VOLATILE gcc_AC_C_VOLATILE
AC_PROG_RANLIB AC_PROG_RANLIB
AC_PROG_YACC AC_PROG_YACC
EGCS_PROG_INSTALL gcc_AC_PROG_INSTALL
AC_HEADER_STDC AC_HEADER_STDC
AC_HEADER_TIME AC_HEADER_TIME
GCC_HEADER_STRING gcc_AC_HEADER_STRING
AC_HEADER_SYS_WAIT AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \ AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
fcntl.h unistd.h stab.h sys/file.h sys/time.h \ fcntl.h unistd.h stab.h sys/file.h sys/time.h \
...@@ -397,8 +397,8 @@ AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \ ...@@ -397,8 +397,8 @@ AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
# Make sure wchar_t is available # Make sure wchar_t is available
#AC_CHECK_TYPE(wchar_t, unsigned int) #AC_CHECK_TYPE(wchar_t, unsigned int)
GCC_FUNC_VFPRINTF_DOPRNT gcc_AC_FUNC_VFPRINTF_DOPRNT
GCC_FUNC_PRINTF_PTR gcc_AC_FUNC_PRINTF_PTR
case "${host}" in case "${host}" in
*-*-uwin*) *-*-uwin*)
...@@ -412,17 +412,17 @@ AC_FUNC_VFORK ...@@ -412,17 +412,17 @@ AC_FUNC_VFORK
AC_FUNC_MMAP_ANYWHERE AC_FUNC_MMAP_ANYWHERE
AC_FUNC_MMAP_FILE AC_FUNC_MMAP_FILE
GCC_NEED_DECLARATIONS(bcopy bzero bcmp \ gcc_AC_NEED_DECLARATIONS(bcopy bzero bcmp \
index rindex getenv atol sbrk abort atof getcwd getwd \ index rindex getenv atol sbrk abort atof getcwd getwd \
strsignal putc_unlocked fputs_unlocked strstr environ) strsignal putc_unlocked fputs_unlocked strstr environ)
GCC_NEED_DECLARATIONS(malloc realloc calloc free, [ gcc_AC_NEED_DECLARATIONS(malloc realloc calloc free, [
#ifdef HAVE_MALLOC_H #ifdef HAVE_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif
]) ])
GCC_NEED_DECLARATIONS(getrlimit setrlimit getrusage, [ gcc_AC_NEED_DECLARATIONS(getrlimit setrlimit getrusage, [
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_RESOURCE_H #ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h> #include <sys/resource.h>
...@@ -430,7 +430,7 @@ GCC_NEED_DECLARATIONS(getrlimit setrlimit getrusage, [ ...@@ -430,7 +430,7 @@ GCC_NEED_DECLARATIONS(getrlimit setrlimit getrusage, [
]) ])
# mkdir takes a single argument on some systems. # mkdir takes a single argument on some systems.
GCC_FUNC_MKDIR_TAKES_ONE_ARG gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
# File extensions # File extensions
manext='.1' manext='.1'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment