From: David MacKenzie Date: Wed, 28 Sep 1994 13:04:57 +0000 (+0000) Subject: rename AC_CHECK_TYPE to AC_CHECK_TYPEDEF X-Git-Tag: fsf-origin~426 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bf8d59c76a0495bf7f0c61dddb80d732a8783e8;p=thirdparty%2Fautoconf.git rename AC_CHECK_TYPE to AC_CHECK_TYPEDEF --- diff --git a/NEWS b/NEWS index d4d642bc2..e1faabf0e 100644 --- a/NEWS +++ b/NEWS @@ -49,7 +49,7 @@ Major changes in release 2.0: * AC_ARG_PROGRAM, which uses the options --program-prefix, --program-suffix, and --program-transform-name to change the names of programs being installed. -* AC_CHECK_TYPE, which checks whether sys/types.h defines a given type. +* AC_CHECK_TYPEDEF, which checks whether sys/types.h defines a given type. * AC_CHECK_LIB, which checks for a particular function in a library. * AC_MSG_CHECKING and AC_MSG_RESULT to print test results, on a single line, whether or not the test succeeds. They obsolete AC_CHECKING and AC_VERBOSE. diff --git a/acgeneral.m4 b/acgeneral.m4 index c60e34054..951e6070a 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -8,17 +8,17 @@ dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2, or (at your option) dnl any later version. dnl -dnl This program is distributed in the hope that it will be useful, +dnl This file is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software +dnl along with this file; if not, write to the Free Software dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. dnl -dnl As a special exception, if you use parts of this file in a -dnl configure script, doing so does not cause the resulting script to +dnl As a special exception, using parts of this file in a +dnl configure script does not cause the resulting script to dnl be covered by the GNU General Public License. dnl dnl Written by David MacKenzie, with help from @@ -28,7 +28,7 @@ dnl divert(-1)dnl Throw away output until AC_INIT is called. changequote([, ]) -define(AC_ACVERSION, 1.120) +define(AC_ACVERSION, 1.121) dnl Some old m4's don't support m4exit. But they provide dnl equivalent functionality by core dumping because of the @@ -122,8 +122,8 @@ AC_DEFUN(AC_INIT_NOTICE, # Generated automatically using autoconf version] AC_ACVERSION [ # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. # -# This configure script is free software; there are no restrictions on how you -# can redistribute it and/or modify it. +# This configure script is free software; there are no restrictions on +# how you can redistribute it and/or modify it. ac_help=]) @@ -1449,8 +1449,8 @@ undefine([AC_CV_NAME])dnl dnl ### Checking for typedefs -dnl AC_CHECK_TYPE(TYPE, DEFAULT) -AC_DEFUN(AC_CHECK_TYPE, +dnl AC_CHECK_TYPEDEF(TYPE, DEFAULT) +AC_DEFUN(AC_CHECK_TYPEDEF, [AC_REQUIRE([AC_HEADER_STDC])dnl AC_MSG_CHECKING(for $1) AC_CACHE_VAL(ac_cv_type_$1, diff --git a/acspecific.m4 b/acspecific.m4 index dfc43b5ed..535536606 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -7,17 +7,17 @@ dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2, or (at your option) dnl any later version. dnl -dnl This program is distributed in the hope that it will be useful, +dnl This file is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software +dnl along with this file; if not, write to the Free Software dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. dnl -dnl As a special exception, if you use parts of this file in a -dnl configure script, doing so does not cause the resulting script to +dnl As a special exception, using parts of this file in a +dnl configure script does not cause the resulting script to dnl be covered by the GNU General Public License. dnl dnl Written by David MacKenzie, with help from @@ -661,16 +661,16 @@ fi ]) AC_DEFUN(AC_TYPE_SIZE_T, -[AC_CHECK_TYPE(size_t, unsigned)]) +[AC_CHECK_TYPEDEF(size_t, unsigned)]) AC_DEFUN(AC_TYPE_PID_T, -[AC_CHECK_TYPE(pid_t, int)]) +[AC_CHECK_TYPEDEF(pid_t, int)]) AC_DEFUN(AC_TYPE_OFF_T, -[AC_CHECK_TYPE(off_t, long)]) +[AC_CHECK_TYPEDEF(off_t, long)]) AC_DEFUN(AC_TYPE_MODE_T, -[AC_CHECK_TYPE(mode_t, int)]) +[AC_CHECK_TYPEDEF(mode_t, int)]) dnl Note that identifiers starting with SIG are reserved by ANSI C. AC_DEFUN(AC_TYPE_SIGNAL, @@ -1071,8 +1071,8 @@ AC_CHECK_LIB(elf, elf_read, fi if test $ac_have_func = no; then AC_CHECK_HEADER(inq_stats/cpustats.h, - [ac_have_func=yes AC_DEFINE(UMAX4_3) - AC_DEFINE(UMAX)]) + [ac_have_func=yes AC_DEFINE(UMAX) + AC_DEFINE(UMAX4_3)]) fi if test $ac_have_func = no; then AC_CHECK_HEADER(sys/cpustats.h, diff --git a/autoconf.texi b/autoconf.texi index 89e667b0b..66642972e 100644 --- a/autoconf.texi +++ b/autoconf.texi @@ -6,8 +6,8 @@ @c @setchapternewpage odd @c %**end of header -@set EDITION 1.120 -@set VERSION 1.120 +@set EDITION 1.121 +@set VERSION 1.121 @set UPDATED September 1994 @iftex @@ -2250,8 +2250,8 @@ If @code{uid_t} is not defined in @file{sys/types.h}, define This macro is used to check for typedefs not covered by the particular test macros. -@defmac AC_CHECK_TYPE (@var{type}, @var{default}) -@maindex CHECK_TYPE +@defmac AC_CHECK_TYPEDEF (@var{type}, @var{default}) +@maindex CHECK_TYPEDEF If the type @var{type} is not defined in @file{sys/types.h} or @file{stdlib.h} (if that is present), define it to be the C (or C++) builtin type @var{default}; e.g., @samp{short} or @samp{unsigned}. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 89e667b0b..66642972e 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -6,8 +6,8 @@ @c @setchapternewpage odd @c %**end of header -@set EDITION 1.120 -@set VERSION 1.120 +@set EDITION 1.121 +@set VERSION 1.121 @set UPDATED September 1994 @iftex @@ -2250,8 +2250,8 @@ If @code{uid_t} is not defined in @file{sys/types.h}, define This macro is used to check for typedefs not covered by the particular test macros. -@defmac AC_CHECK_TYPE (@var{type}, @var{default}) -@maindex CHECK_TYPE +@defmac AC_CHECK_TYPEDEF (@var{type}, @var{default}) +@maindex CHECK_TYPEDEF If the type @var{type} is not defined in @file{sys/types.h} or @file{stdlib.h} (if that is present), define it to be the C (or C++) builtin type @var{default}; e.g., @samp{short} or @samp{unsigned}. diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index c60e34054..951e6070a 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -8,17 +8,17 @@ dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2, or (at your option) dnl any later version. dnl -dnl This program is distributed in the hope that it will be useful, +dnl This file is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software +dnl along with this file; if not, write to the Free Software dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. dnl -dnl As a special exception, if you use parts of this file in a -dnl configure script, doing so does not cause the resulting script to +dnl As a special exception, using parts of this file in a +dnl configure script does not cause the resulting script to dnl be covered by the GNU General Public License. dnl dnl Written by David MacKenzie, with help from @@ -28,7 +28,7 @@ dnl divert(-1)dnl Throw away output until AC_INIT is called. changequote([, ]) -define(AC_ACVERSION, 1.120) +define(AC_ACVERSION, 1.121) dnl Some old m4's don't support m4exit. But they provide dnl equivalent functionality by core dumping because of the @@ -122,8 +122,8 @@ AC_DEFUN(AC_INIT_NOTICE, # Generated automatically using autoconf version] AC_ACVERSION [ # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. # -# This configure script is free software; there are no restrictions on how you -# can redistribute it and/or modify it. +# This configure script is free software; there are no restrictions on +# how you can redistribute it and/or modify it. ac_help=]) @@ -1449,8 +1449,8 @@ undefine([AC_CV_NAME])dnl dnl ### Checking for typedefs -dnl AC_CHECK_TYPE(TYPE, DEFAULT) -AC_DEFUN(AC_CHECK_TYPE, +dnl AC_CHECK_TYPEDEF(TYPE, DEFAULT) +AC_DEFUN(AC_CHECK_TYPEDEF, [AC_REQUIRE([AC_HEADER_STDC])dnl AC_MSG_CHECKING(for $1) AC_CACHE_VAL(ac_cv_type_$1, diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index dfc43b5ed..535536606 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -7,17 +7,17 @@ dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2, or (at your option) dnl any later version. dnl -dnl This program is distributed in the hope that it will be useful, +dnl This file is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software +dnl along with this file; if not, write to the Free Software dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. dnl -dnl As a special exception, if you use parts of this file in a -dnl configure script, doing so does not cause the resulting script to +dnl As a special exception, using parts of this file in a +dnl configure script does not cause the resulting script to dnl be covered by the GNU General Public License. dnl dnl Written by David MacKenzie, with help from @@ -661,16 +661,16 @@ fi ]) AC_DEFUN(AC_TYPE_SIZE_T, -[AC_CHECK_TYPE(size_t, unsigned)]) +[AC_CHECK_TYPEDEF(size_t, unsigned)]) AC_DEFUN(AC_TYPE_PID_T, -[AC_CHECK_TYPE(pid_t, int)]) +[AC_CHECK_TYPEDEF(pid_t, int)]) AC_DEFUN(AC_TYPE_OFF_T, -[AC_CHECK_TYPE(off_t, long)]) +[AC_CHECK_TYPEDEF(off_t, long)]) AC_DEFUN(AC_TYPE_MODE_T, -[AC_CHECK_TYPE(mode_t, int)]) +[AC_CHECK_TYPEDEF(mode_t, int)]) dnl Note that identifiers starting with SIG are reserved by ANSI C. AC_DEFUN(AC_TYPE_SIGNAL, @@ -1071,8 +1071,8 @@ AC_CHECK_LIB(elf, elf_read, fi if test $ac_have_func = no; then AC_CHECK_HEADER(inq_stats/cpustats.h, - [ac_have_func=yes AC_DEFINE(UMAX4_3) - AC_DEFINE(UMAX)]) + [ac_have_func=yes AC_DEFINE(UMAX) + AC_DEFINE(UMAX4_3)]) fi if test $ac_have_func = no; then AC_CHECK_HEADER(sys/cpustats.h, diff --git a/testsuite/autoconf.s/defines.exp b/testsuite/autoconf.s/defines.exp index 44be7d80f..b07012451 100644 --- a/testsuite/autoconf.s/defines.exp +++ b/testsuite/autoconf.s/defines.exp @@ -23,7 +23,7 @@ set top_srcdir "$srcdir/.." set uscript {s/^#undef[ ]*\([^ ]*\).*/\1/p} set undefs [exec sed -n $uscript $top_srcdir/acconfig.h] -set dscript {s/.*AC_DEFINE[A-Z_]*(\([^$,)]*\).*/\1/p; s/.*AC_CHECK_TYPE(\([^$,)]*\).*/\1/p} +set dscript {s/.*AC_DEFINE[A-Z_]*(\([^$,)]*\).*/\1/p; s/.*AC_CHECK_TYPEDEF(\([^$,)]*\).*/\1/p} set defines [exec sed -n $dscript $top_srcdir/acspecific.m4] send_user "Checking acspecific.m4 for definitions of symbols in acconfig.h...\n"