* aclocal.m4: Properly quote names of macros being defined.
From-SVN: r72499
This commit is contained in:
parent
296da0016d
commit
f6db393e1c
@ -1,5 +1,7 @@
|
||||
2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
|
||||
|
||||
* aclocal.m4: Properly quote names of macros being defined.
|
||||
|
||||
* config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
|
||||
|
||||
2003-10-14 Steve Ellcey <sje@cup.hp.com>
|
||||
|
34
gcc/aclocal.m4
vendored
34
gcc/aclocal.m4
vendored
@ -4,7 +4,7 @@ sinclude(../config/gettext.m4)
|
||||
sinclude(../config/progtest.m4)
|
||||
|
||||
dnl See if stdbool.h properly defines bool and true/false.
|
||||
AC_DEFUN(gcc_AC_HEADER_STDBOOL,
|
||||
AC_DEFUN([gcc_AC_HEADER_STDBOOL],
|
||||
[AC_CACHE_CHECK([for working stdbool.h],
|
||||
ac_cv_header_stdbool_h,
|
||||
[AC_TRY_COMPILE([#include <stdbool.h>],
|
||||
@ -18,7 +18,7 @@ fi
|
||||
|
||||
dnl Fixed AC_CHECK_TYPE that doesn't need anything in acconfig.h.
|
||||
dnl Remove after migrating to 2.5x.
|
||||
AC_DEFUN(gcc_AC_CHECK_TYPE,
|
||||
AC_DEFUN([gcc_AC_CHECK_TYPE],
|
||||
[AC_REQUIRE([AC_HEADER_STDC])dnl
|
||||
AC_MSG_CHECKING(for $1)
|
||||
AC_CACHE_VAL(ac_cv_type_$1,
|
||||
@ -38,7 +38,7 @@ fi
|
||||
|
||||
|
||||
dnl See whether we can include both string.h and strings.h.
|
||||
AC_DEFUN(gcc_AC_HEADER_STRING,
|
||||
AC_DEFUN([gcc_AC_HEADER_STRING],
|
||||
[AC_CACHE_CHECK([whether string.h and strings.h may both be included],
|
||||
gcc_cv_header_string,
|
||||
[AC_TRY_COMPILE([#include <string.h>
|
||||
@ -54,7 +54,7 @@ dnl to use a different cache variable name in this macro if it is invoked
|
||||
dnl in a different context somewhere else.
|
||||
dnl gcc_AC_CHECK_DECL(SYMBOL,
|
||||
dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, INCLUDES]]])
|
||||
AC_DEFUN(gcc_AC_CHECK_DECL,
|
||||
AC_DEFUN([gcc_AC_CHECK_DECL],
|
||||
[AC_MSG_CHECKING([whether $1 is declared])
|
||||
AC_CACHE_VAL(gcc_cv_have_decl_$1,
|
||||
[AC_TRY_COMPILE([$4],
|
||||
@ -72,7 +72,7 @@ dnl Check multiple functions to see whether each needs a declaration.
|
||||
dnl Arrange to define HAVE_DECL_<FUNCTION> to 0 or 1 as appropriate.
|
||||
dnl gcc_AC_CHECK_DECLS(SYMBOLS,
|
||||
dnl [ACTION-IF-NEEDED [, ACTION-IF-NOT-NEEDED [, INCLUDES]]])
|
||||
AC_DEFUN(gcc_AC_CHECK_DECLS,
|
||||
AC_DEFUN([gcc_AC_CHECK_DECLS],
|
||||
[for ac_func in $1
|
||||
do
|
||||
changequote(, )dnl
|
||||
@ -107,7 +107,7 @@ dnl "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2"
|
||||
dnl but we need to sink errors and handle broken shells. We also test
|
||||
dnl for the parameter format "cmp file1 file2 skip1 skip2" which is
|
||||
dnl accepted by cmp on some systems.
|
||||
AC_DEFUN(gcc_AC_PROG_CMP_IGNORE_INITIAL,
|
||||
AC_DEFUN([gcc_AC_PROG_CMP_IGNORE_INITIAL],
|
||||
[AC_CACHE_CHECK([for cmp's capabilities], gcc_cv_prog_cmp_skip,
|
||||
[ echo abfoo >t1
|
||||
echo cdfoo >t2
|
||||
@ -135,7 +135,7 @@ AC_SUBST(make_compare_target)
|
||||
])
|
||||
|
||||
dnl See if the printf functions in libc support %p in format strings.
|
||||
AC_DEFUN(gcc_AC_FUNC_PRINTF_PTR,
|
||||
AC_DEFUN([gcc_AC_FUNC_PRINTF_PTR],
|
||||
[AC_CACHE_CHECK(whether the printf functions support %p,
|
||||
gcc_cv_func_printf_ptr,
|
||||
[AC_TRY_RUN([#include <stdio.h>
|
||||
@ -156,7 +156,7 @@ fi
|
||||
])
|
||||
|
||||
dnl See if symbolic links work and if not, try to substitute either hard links or simple copy.
|
||||
AC_DEFUN(gcc_AC_PROG_LN_S,
|
||||
AC_DEFUN([gcc_AC_PROG_LN_S],
|
||||
[AC_MSG_CHECKING(whether ln -s works)
|
||||
AC_CACHE_VAL(gcc_cv_prog_LN_S,
|
||||
[rm -f conftestdata_t
|
||||
@ -188,7 +188,7 @@ AC_SUBST(LN_S)dnl
|
||||
])
|
||||
|
||||
dnl See if hard links work and if not, try to substitute either symbolic links or simple copy.
|
||||
AC_DEFUN(gcc_AC_PROG_LN,
|
||||
AC_DEFUN([gcc_AC_PROG_LN],
|
||||
[AC_MSG_CHECKING(whether ln works)
|
||||
AC_CACHE_VAL(gcc_cv_prog_LN,
|
||||
[rm -f conftestdata_t
|
||||
@ -220,7 +220,7 @@ AC_SUBST(LN)dnl
|
||||
])
|
||||
|
||||
dnl Check whether _Bool is built-in.
|
||||
AC_DEFUN(gcc_AC_C__BOOL,
|
||||
AC_DEFUN([gcc_AC_C__BOOL],
|
||||
[AC_CACHE_CHECK(for built-in _Bool, gcc_cv_c__bool,
|
||||
[AC_TRY_COMPILE(,
|
||||
[_Bool foo;],
|
||||
@ -233,7 +233,7 @@ fi
|
||||
|
||||
dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead
|
||||
dnl of the usual 2.
|
||||
AC_DEFUN(gcc_AC_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_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
@ -252,7 +252,7 @@ if test $gcc_cv_mkdir_takes_one_arg = yes ; then
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN(gcc_AC_PROG_INSTALL,
|
||||
AC_DEFUN([gcc_AC_PROG_INSTALL],
|
||||
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
||||
# Find a good install program. We prefer a C program (faster),
|
||||
# so one script is as good as another. But avoid the broken or
|
||||
@ -366,7 +366,7 @@ fi
|
||||
|
||||
dnl GCC_PATH_PROG(VARIABLE, PROG-TO-CHECK-FOR [, VALUE-IF-NOT-FOUND [, PATH]])
|
||||
dnl like AC_PATH_PROG but use other cache variables
|
||||
AC_DEFUN(GCC_PATH_PROG,
|
||||
AC_DEFUN([GCC_PATH_PROG],
|
||||
[# Extract the first word of "$2", so it can be a program name with args.
|
||||
set dummy $2; ac_word=[$]2
|
||||
AC_MSG_CHECKING([for $ac_word])
|
||||
@ -499,7 +499,7 @@ fi
|
||||
dnl Locate a program and check that its version is acceptable.
|
||||
dnl AC_PROG_CHECK_VER(var, name, version-switch,
|
||||
dnl version-extract-regexp, version-glob)
|
||||
AC_DEFUN(gcc_AC_CHECK_PROG_VER,
|
||||
AC_DEFUN([gcc_AC_CHECK_PROG_VER],
|
||||
[AC_CHECK_PROG([$1], [$2], [$2])
|
||||
if test -n "[$]$1"; then
|
||||
# Found it, now check the version.
|
||||
@ -526,7 +526,7 @@ fi
|
||||
dnl Determine if enumerated bitfields are unsigned. ISO C says they can
|
||||
dnl be either signed or unsigned.
|
||||
dnl
|
||||
AC_DEFUN(gcc_AC_C_ENUM_BF_UNSIGNED,
|
||||
AC_DEFUN([gcc_AC_C_ENUM_BF_UNSIGNED],
|
||||
[AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
|
||||
[AC_TRY_RUN(#include <stdlib.h>
|
||||
enum t { BLAH = 128 } ;
|
||||
@ -546,7 +546,7 @@ fi])
|
||||
dnl Probe number of bits in a byte.
|
||||
dnl Note C89 requires CHAR_BIT >= 8.
|
||||
dnl
|
||||
AC_DEFUN(gcc_AC_C_CHAR_BIT,
|
||||
AC_DEFUN([gcc_AC_C_CHAR_BIT],
|
||||
[AC_CACHE_CHECK(for CHAR_BIT, gcc_cv_decl_char_bit,
|
||||
[AC_EGREP_CPP(found,
|
||||
[#ifdef HAVE_LIMITS_H
|
||||
@ -673,7 +673,7 @@ size_t iconv();
|
||||
AC_SUBST(LIBICONV)
|
||||
])
|
||||
|
||||
AC_DEFUN(gcc_AC_INITFINI_ARRAY,
|
||||
AC_DEFUN([gcc_AC_INITFINI_ARRAY],
|
||||
[AC_ARG_ENABLE(initfini-array,
|
||||
[ --enable-initfini-array use .init_array/.fini_array sections],
|
||||
[], [
|
||||
|
Loading…
Reference in New Issue
Block a user