[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: Define to...
From: |
Akim Demaille |
Subject: |
FYI: Define to... |
Date: |
12 Nov 2001 16:59:54 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) |
Someone sent a bug report to Bison because he was compiling on MacOS,
without running configure. So he filled config.h by hand, and
sometimes did not define to 1, just he defined. Since the tendency
now is to rely onto #if instead of #ifdef, it seems to me that
Autoconf should be more helping.
Index: ChangeLog
from Akim Demaille <address@hidden>
* lib/autoconf/c.m4, lib/autoconf/fortran.m4,
* lib/autoconf/functions.m4, lib/autoconf/general.m4,
* lib/autoconf/headers.m4, lib/autoconf/libs.m4,
* lib/autoconf/programs.m4, lib/autoconf/specific.m4,
* lib/autoconf/types.m4: When invoking AC_DEFINE and friends,
specify to what the macro should be defined (typically to 1).
Index: lib/autoconf/c.m4
===================================================================
RCS file: /cvs/autoconf/lib/autoconf/c.m4,v
retrieving revision 1.156
diff -u -u -r1.156 c.m4
--- lib/autoconf/c.m4 2001/09/22 15:20:45 1.156
+++ lib/autoconf/c.m4 2001/11/12 16:06:08
@@ -543,7 +543,7 @@
else
AC_MSG_RESULT([no])
AC_DEFINE(NO_MINUS_C_MINUS_O, 1,
- [Define if your C compiler doesn't accept -c and -o together.])
+ [Define to 1 if your C compiler doesn't accept -c and -o together.])
fi
])# AC_PROG_CC_C_O
@@ -811,7 +811,7 @@
# ------------------
AC_DEFUN([AC_C_CHAR_UNSIGNED],
[AH_VERBATIM([__CHAR_UNSIGNED__],
-[/* Define if type `char' is unsigned and you are not using gcc. */
+[/* Define to 1 if type `char' is unsigned and you are not using gcc. */
#ifndef __CHAR_UNSIGNED__
# undef __CHAR_UNSIGNED__
#endif])dnl
@@ -846,7 +846,7 @@
fi])
if test $ac_cv_c_long_double = yes; then
AC_DEFINE(HAVE_LONG_DOUBLE, 1,
- [Define if the `long double' type works.])
+ [Define to 1 if the `long double' type works.])
fi
])# AC_C_LONG_DOUBLE
@@ -909,7 +909,7 @@
yes)
m4_default([$1],
[AC_DEFINE([WORDS_BIGENDIAN], 1,
- [Define if your processor stores words with the most significant
+ [Define to 1 if your processor stores words with the most significant
byte first (like Motorola and SPARC, unlike Intel and VAX).])]) ;;
no)
$2 ;;
@@ -1052,7 +1052,7 @@
[ac_cv_c_stringize=yes])])
if test $ac_cv_c_stringize = yes; then
AC_DEFINE(HAVE_STRINGIZE, 1,
- [Define if cpp supports the ANSI @%:@ stringizing operator.])
+ [Define to 1 if cpp supports the ANSI @%:@ stringizing operator.])
fi
])# AC_C_STRINGIZE
@@ -1067,7 +1067,7 @@
if test "$ac_cv_prog_cc_stdc" != no; then
AC_MSG_RESULT([yes])
AC_DEFINE(PROTOTYPES, 1,
- [Define if the C compiler supports function prototypes.])
+ [Define to 1 if the C compiler supports function prototypes.])
else
AC_MSG_RESULT([no])
fi
Index: lib/autoconf/fortran.m4
===================================================================
RCS file: /cvs/autoconf/lib/autoconf/fortran.m4,v
retrieving revision 1.151
diff -u -u -r1.151 fortran.m4
--- lib/autoconf/fortran.m4 2001/08/22 06:24:46 1.151
+++ lib/autoconf/fortran.m4 2001/11/12 16:06:08
@@ -332,7 +332,8 @@
rm -f conftest*])
if test $ac_cv_prog_f77_c_o = no; then
AC_DEFINE(F77_NO_MINUS_C_MINUS_O, 1,
- [Define if your Fortran 77 compiler doesn't accept -c and -o
together.])
+ [Define to 1 if your Fortran 77 compiler doesn't accept
+ -c and -o together.])
fi
])# AC_PROG_F77_C_O
Index: lib/autoconf/functions.m4
===================================================================
RCS file: /cvs/autoconf/lib/autoconf/functions.m4,v
retrieving revision 1.50
diff -u -u -r1.50 functions.m4
--- lib/autoconf/functions.m4 2001/11/12 15:47:36 1.50
+++ lib/autoconf/functions.m4 2001/11/12 16:06:09
@@ -79,7 +79,7 @@
AC_DEFUN([AC_CHECK_FUNCS],
[AC_FOREACH([AC_Func], [$1],
[AH_TEMPLATE(AS_TR_CPP(HAVE_[]AC_Func),
- [Define if you have the `]AC_Func[' function.])])dnl
+ [Define to 1 if you have the `]AC_Func[' function.])])dnl
for ac_func in $1
do
AC_CHECK_FUNC($ac_func,
@@ -146,7 +146,7 @@
# use ar to extract alloca.o from them instead of compiling alloca.c.
AC_LIBSOURCES(alloca.c)
AC_SUBST(ALLOCA, alloca.$ac_objext)dnl
-AC_DEFINE(C_ALLOCA, 1, [Define if using `alloca.c'.])
+AC_DEFINE(C_ALLOCA, 1, [Define to 1 if using `alloca.c'.])
AC_CACHE_CHECK(whether `alloca.c' needs Cray hooks, ac_cv_os_cray,
[AC_EGREP_CPP(webecray,
@@ -218,7 +218,7 @@
[ac_cv_working_alloca_h=no])])
if test $ac_cv_working_alloca_h = yes; then
AC_DEFINE(HAVE_ALLOCA_H, 1,
- [Define if you have <alloca.h> and it should be used
+ [Define to 1 if you have <alloca.h> and it should be used
(not on Ultrix).])
fi
@@ -250,7 +250,7 @@
if test $ac_cv_func_alloca_works = yes; then
AC_DEFINE(HAVE_ALLOCA, 1,
- [Define if you have `alloca', as a function or macro.])
+ [Define to 1 if you have `alloca', as a function or macro.])
else
_AC_LIBOBJ_ALLOCA
fi
@@ -293,7 +293,7 @@
])
if test $ac_cv_func_chown_works = yes; then
AC_DEFINE(HAVE_CHOWN, 1,
- [Define if your system has a working `chown' function.])
+ [Define to 1 if your system has a working `chown' function.])
fi
])# AC_FUNC_CHOWN
@@ -318,7 +318,8 @@
[ac_cv_func_closedir_void=yes])])
if test $ac_cv_func_closedir_void = yes; then
AC_DEFINE(CLOSEDIR_VOID, 1,
- [Define if the `closedir' function returns void instead of `int'.])
+ [Define to 1 if the `closedir' function returns void instead
+ of `int'.])
fi
])
@@ -363,7 +364,7 @@
[ac_cv_func_fnmatch_works=no])])
if test $ac_cv_func_fnmatch_works = yes; then
AC_DEFINE(HAVE_FNMATCH, 1,
- [Define if your system has a working `fnmatch' function.])
+ [Define to 1 if your system has a working `fnmatch' function.])
fi
])# AC_FUNC_FNMATCH
@@ -380,7 +381,7 @@
AC_DEFUN([AC_FUNC_FSEEKO],
[_AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1,
[ac_cv_sys_largefile_source],
- [Define to make fseeko visible on some hosts (e.g. glibc 2.2).],
+ [Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2).],
address@hidden:@include <stdio.h>], [return !fseeko;])
# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
@@ -393,7 +394,7 @@
[ac_cv_func_fseeko=no])])
if test $ac_cv_func_fseeko = yes; then
AC_DEFINE(HAVE_FSEEKO, 1,
- [Define if fseeko (and presumably ftello) exists and is declared.])
+ [Define to 1 if fseeko (and presumably ftello) exists and is declared.])
fi
])# AC_FUNC_FSEEKO
@@ -427,7 +428,7 @@
])
if test $ac_cv_func_getgroups_works = yes; then
AC_DEFINE(HAVE_GETGROUPS, 1,
- [Define if your system has a working `getgroups' function.])
+ [Define to 1 if your system has a working `getgroups' function.])
fi
fi
LIBS=$ac_save_LIBS
@@ -439,12 +440,12 @@
# Set up the AC_LIBOBJ replacement of `getloadavg'.
m4_define([_AC_LIBOBJ_GETLOADAVG],
[AC_LIBOBJ(getloadavg)
-AC_DEFINE(C_GETLOADAVG, 1, [Define if using `getloadavg.c'.])
+AC_DEFINE(C_GETLOADAVG, 1, [Define to 1 if using `getloadavg.c'.])
# Figure out what our getloadavg.c needs.
ac_have_func=no
AC_CHECK_HEADER(sys/dg_sys_info.h,
[ac_have_func=yes
- AC_DEFINE(DGUX, 1, [Define for DGUX with <sys/dg_sys_info.h>.])
+ AC_DEFINE(DGUX, 1, [Define to 1 for DGUX with <sys/dg_sys_info.h>.])
AC_CHECK_LIB(dgc, dg_sys_info)])
AC_CHECK_HEADER(locale.h)
@@ -455,15 +456,15 @@
# Irix 4.0.5F has the header but not the library.
if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
ac_have_func=yes
- AC_DEFINE(SVR4, 1, [Define on System V Release 4.])
+ AC_DEFINE(SVR4, 1, [Define to 1 on System V Release 4.])
fi
if test $ac_have_func = no; then
AC_CHECK_HEADER(inq_stats/cpustats.h,
[ac_have_func=yes
- AC_DEFINE(UMAX, 1, [Define for Encore UMAX.])
+ AC_DEFINE(UMAX, 1, [Define to 1 for Encore UMAX.])
AC_DEFINE(UMAX4_3, 1,
- [Define for Encore UMAX 4.3 that has <inq_status/cpustats.h>
+ [Define to 1 for Encore UMAX 4.3 that has <inq_status/cpustats.h>
instead of <sys/cpustats.h>.])])
fi
@@ -479,7 +480,7 @@
AC_CHECK_HEADERS(nlist.h,
[AC_CHECK_MEMBERS([struct nlist.n_un.n_name],
[AC_DEFINE(NLIST_NAME_UNION, 1,
- [Define if your `struct nlist' has an
+ [Define to 1 if your `struct nlist' has an
`n_un' member. Obsolete, depend on
`HAVE_STRUCT_NLIST_N_UN_N_NAME])], [],
address@hidden:@include <nlist.h>])
@@ -546,7 +547,7 @@
if test $ac_cv_func_getloadavg_setgid = yes; then
NEED_SETGID=true
AC_DEFINE(GETLOADAVG_PRIVILEGED, 1,
- [Define if the `getloadavg' function needs to be run setuid
+ [Define to 1 if the `getloadavg' function needs to be run setuid
or setgid.])
else
NEED_SETGID=false
@@ -591,7 +592,7 @@
[AC_CHECK_LIB(gen, getmntent, LIBS="-lgen $LIBS")])])
AC_CHECK_FUNC(getmntent,
[AC_DEFINE(HAVE_GETMNTENT, 1,
- [Define if you have the `getmntent' function.])])])
+ [Define to 1 if you have the `getmntent'
function.])])])
# AC_FUNC_GETPGRP
@@ -607,7 +608,7 @@
])
if test $ac_cv_func_getpgrp_void = yes; then
AC_DEFINE(GETPGRP_VOID, 1,
- [Define if the `getpgrp' function requires zero arguments.])
+ [Define to 1 if the `getpgrp' function requires zero arguments.])
fi
])# AC_FUNC_GETPGRP
@@ -643,7 +644,7 @@
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
AC_DEFINE_UNQUOTED(LSTAT_FOLLOWS_SLASHED_SYMLINK, 1,
- [Define if `lstat' dereferences a symlink specified
+ [Define to 1 if `lstat' dereferences a symlink specified
with a trailing slash.])
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
@@ -673,7 +674,7 @@
[ac_cv_func_malloc_works=no])])
if test $ac_cv_func_malloc_works = yes; then
AC_DEFINE(HAVE_MALLOC, 1,
- [Define if your system has a working `malloc' function.])
+ [Define to 1 if your system has a working `malloc' function.])
fi
])# AC_FUNC_MALLOC
@@ -1015,7 +1016,7 @@
[ac_cv_func_mmap_fixed_mapped=no])])
if test $ac_cv_func_mmap_fixed_mapped = yes; then
AC_DEFINE(HAVE_MMAP, 1,
- [Define if you have a working `mmap' system call.])
+ [Define to 1 if you have a working `mmap' system call.])
fi
rm -f conftest.mmap
])# AC_FUNC_MMAP
@@ -1038,7 +1039,7 @@
[ac_cv_func_obstack=yes],
[ac_cv_func_obstack=no])])
if test $ac_cv_func_obstack = yes; then
- AC_DEFINE(HAVE_OBSTACK, 1, [Define if libc includes obstacks.])
+ AC_DEFINE(HAVE_OBSTACK, 1, [Define to 1 if libc includes obstacks.])
else
AC_LIBOBJ(obstack)
fi
@@ -1114,7 +1115,7 @@
[AC_MSG_ERROR([cannot check setpgrp if cross compiling])])])
if test $ac_cv_func_setpgrp_void = yes; then
AC_DEFINE(SETPGRP_VOID, 1,
- [Define if the `setpgrp' function takes no argument.])
+ [Define to 1 if the `setpgrp' function takes no argument.])
fi
])# AC_FUNC_SETPGRP
@@ -1141,7 +1142,7 @@
if test $ac_cv_func_$1_empty_string_bug = yes; then
AC_LIBOBJ([$1])
AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_$1_EMPTY_STRING_BUG]), 1,
- [Define if `$1' has the bug that it succeeds when
+ [Define to 1 if `$1' has the bug that it succeeds when
given the zero-length file name argument.])
fi
])# _AC_FUNC_STAT
@@ -1283,7 +1284,7 @@
rm -f core core.* *.core])
if test $ac_cv_func_setvbuf_reversed = yes; then
AC_DEFINE(SETVBUF_REVERSED, 1,
- [Define if the `setvbuf' function takes the buffering type as
+ [Define to 1 if the `setvbuf' function takes the buffering type as
its second argument and the buffer pointer as the third, as on
System V before release 3.])
fi
@@ -1308,7 +1309,7 @@
ac_cv_func_strcoll_works=no)])
if test $ac_cv_func_strcoll_works = yes; then
AC_DEFINE(HAVE_STRCOLL, 1,
- [Define if you have the `strcoll' function and it is properly
+ [Define to 1 if you have the `strcoll' function and it is properly
defined.])
fi
])# AC_FUNC_STRCOLL
@@ -1338,7 +1339,7 @@
rm -f core core.* *.core])
if test $ac_cv_func_utime_null = yes; then
AC_DEFINE(HAVE_UTIME_NULL, 1,
- [Define if `utime(file, NULL)' sets file's timestamp to the
+ [Define to 1 if `utime(file, NULL)' sets file's timestamp to the
present.])
fi
rm -f conftest.data
@@ -1382,12 +1383,12 @@
fi
if test "x$ac_cv_func_vfork_works" = xyes; then
- AC_DEFINE(HAVE_WORKING_VFORK, 1, [Define if `vfork' works.])
+ AC_DEFINE(HAVE_WORKING_VFORK, 1, [Define to 1 if `vfork' works.])
else
AC_DEFINE(vfork, fork, [Define as `fork' if `vfork' does not work.])
fi
if test "x$ac_cv_func_fork_works" = xyes; then
- AC_DEFINE(HAVE_WORKING_FORK, 1, [Define if `fork' works.])
+ AC_DEFINE(HAVE_WORKING_FORK, 1, [Define to 1 if `fork' works.])
fi
])# AC_FUNC_FORK
@@ -1534,7 +1535,7 @@
[AC_CHECK_FUNCS(vprintf, []
[AC_CHECK_FUNC(_doprnt,
[AC_DEFINE(HAVE_DOPRNT, 1,
- [Define if you don't have `vprintf' but do have
+ [Define to 1 if you don't have `vprintf' but do have
`_doprnt.'])])])
])
@@ -1596,7 +1597,7 @@
[ac_cv_func_wait3_rusage=no])])
if test $ac_cv_func_wait3_rusage = yes; then
AC_DEFINE(HAVE_WAIT3, 1,
- [Define if you have the `wait3' system call.
+ [Define to 1 if you have the `wait3' system call.
Deprecated, you should no longer depend upon `wait3'.])
fi
])# AC_FUNC_WAIT3
Index: lib/autoconf/general.m4
===================================================================
RCS file: /cvs/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.778
diff -u -u -r1.778 general.m4
--- lib/autoconf/general.m4 2001/11/09 16:04:55 1.778
+++ lib/autoconf/general.m4 2001/11/12 16:06:09
@@ -2267,7 +2267,8 @@
[AC_FOREACH([AC_FILE_NAME], [$1],
[AC_CHECK_FILE(AC_FILE_NAME,
[AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]AC_FILE_NAME), 1,
- [Define if you have the file `]AC_File['.])
+ [Define to 1 if you have the
+ file `]AC_File['.])
$2],
[$3])])])
Index: lib/autoconf/headers.m4
===================================================================
RCS file: /cvs/autoconf/lib/autoconf/headers.m4,v
retrieving revision 1.16
diff -u -u -r1.16 headers.m4
--- lib/autoconf/headers.m4 2001/10/10 12:58:44 1.16
+++ lib/autoconf/headers.m4 2001/11/12 16:06:09
@@ -174,7 +174,7 @@
m4_define([AH_CHECK_HEADERS],
[AC_FOREACH([AC_Header], [$1],
[AH_TEMPLATE(AS_TR_CPP(HAVE_[]AC_Header),
- [Define if you have the <]AC_Header[> header file.])])])
+ [Define to 1 if you have the <]AC_Header[> header file.])])])
# AC_CHECK_HEADERS(HEADER-FILE...
@@ -304,7 +304,7 @@
m4_define([AH_CHECK_HEADERS_DIRENT],
[AC_FOREACH([AC_Header], [$1],
[AH_TEMPLATE(AS_TR_CPP(HAVE_[]AC_Header),
- [Define if you have the <]AC_Header[> header file, and
+ [Define to 1 if you have the <]AC_Header[> header file, and
it defines `DIR'.])])])
@@ -341,14 +341,14 @@
if test $ac_cv_header_sys_types_h_makedev = no; then
AC_CHECK_HEADER(sys/mkdev.h,
[AC_DEFINE(MAJOR_IN_MKDEV, 1,
- [Define if `major', `minor', and `makedev' are
+ [Define to 1 if `major', `minor', and `makedev' are
declared in <mkdev.h>.])])
if test $ac_cv_header_sys_mkdev_h = no; then
AC_CHECK_HEADER(sys/sysmacros.h,
[AC_DEFINE(MAJOR_IN_SYSMACROS, 1,
- [Define if `major', `minor', and `makedev' are
- declared in <sysmacros.h>.])])
+ [Define to 1 if `major', `minor', and `makedev'
+ are declared in <sysmacros.h>.])])
fi
fi
])# AC_HEADER_MAJOR
@@ -389,7 +389,7 @@
], ac_cv_header_stat_broken=yes, ac_cv_header_stat_broken=no)])
if test $ac_cv_header_stat_broken = yes; then
AC_DEFINE(STAT_MACROS_BROKEN, 1,
- [Define if the `S_IS*' macros in <sys/stat.h> do not
+ [Define to 1 if the `S_IS*' macros in <sys/stat.h> do not
work properly.])
fi
])# AC_HEADER_STAT
@@ -442,7 +442,8 @@
}], , ac_cv_header_stdc=no, :)
fi])
if test $ac_cv_header_stdc = yes; then
- AC_DEFINE(STDC_HEADERS, 1, [Define if you have the ANSI C header files.])
+ AC_DEFINE(STDC_HEADERS, 1,
+ [Define to 1 if you have the ANSI C header files.])
fi
])# AC_HEADER_STDC
@@ -469,7 +470,7 @@
[ac_cv_header_sys_wait_h=no])])
if test $ac_cv_header_sys_wait_h = yes; then
AC_DEFINE(HAVE_SYS_WAIT_H, 1,
- [Define if you have <sys/wait.h> that is POSIX.1 compatible.])
+ [Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible.])
fi
])# AC_HEADER_SYS_WAIT
@@ -489,7 +490,8 @@
[ac_cv_header_time=no])])
if test $ac_cv_header_time = yes; then
AC_DEFINE(TIME_WITH_SYS_TIME, 1,
- [Define if you can safely include both <sys/time.h> and <time.h>.])
+ [Define to 1 if you can safely include both <sys/time.h>
+ and <time.h>.])
fi
])# AC_HEADER_TIME
@@ -542,7 +544,7 @@
_AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL
if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
AC_DEFINE(GWINSZ_IN_SYS_IOCTL,1,
- [Define if `TIOCGWINSZ' requires <sys/ioctl.h>])
+ [Define to 1 if `TIOCGWINSZ' requires <sys/ioctl.h>.])
fi
fi
])# AC_HEADER_TIOCGWINSZ
@@ -566,7 +568,7 @@
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
AC_DEFINE(USG, 1,
- [Define if you do not have <strings.h>, index, bzero, etc...
+ [Define to 1 if you do not have <strings.h>, index, bzero, etc...
This symbol is obsolete, you should not depend upon it.])])
AC_CHECK_HEADERS(string.h)])
Index: lib/autoconf/libs.m4
===================================================================
RCS file: /cvs/autoconf/lib/autoconf/libs.m4,v
retrieving revision 1.2
diff -u -u -r1.2 libs.m4
--- lib/autoconf/libs.m4 2001/10/08 08:22:33 1.2
+++ lib/autoconf/libs.m4 2001/11/12 16:06:09
@@ -137,7 +137,7 @@
# ---------------------
m4_define([AH_CHECK_LIB],
[AH_TEMPLATE(AS_TR_CPP(HAVE_LIB$1),
- [Define if you have the `]$1[' library (-l]$1[).])])
+ [Define to 1 if you have the `]$1[' library (-l]$1[).])])
# AC_HAVE_LIBRARY(LIBRARY,
@@ -369,7 +369,7 @@
if test "$no_x" = yes; then
# Not all programs may use this symbol, but it does not hurt to define it.
AC_DEFINE([X_DISPLAY_MISSING], 1,
- [Define if the X Window System is missing or not being used.])
+ [Define to 1 if the X Window System is missing or not being used.])
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
else
if test -n "$x_includes"; then
Index: lib/autoconf/programs.m4
===================================================================
RCS file: /cvs/autoconf/lib/autoconf/programs.m4,v
retrieving revision 1.7
diff -u -u -r1.7 programs.m4
--- lib/autoconf/programs.m4 2001/11/12 08:59:54 1.7
+++ lib/autoconf/programs.m4 2001/11/12 16:06:09
@@ -392,7 +392,7 @@
dnl
if test $ac_cv_prog_lex_yytext_pointer = yes; then
AC_DEFINE(YYTEXT_POINTER, 1,
- [Define if `lex' declares `yytext' as a `char *' by default,
+ [Define to 1 if `lex' declares `yytext' as a `char *' by default,
not a `char[]'.])
fi
])# _AC_PROG_LEX_YYTEXT_DECL
Index: lib/autoconf/specific.m4
===================================================================
RCS file: /cvs/autoconf/lib/autoconf/specific.m4,v
retrieving revision 1.346
diff -u -u -r1.346 specific.m4
--- lib/autoconf/specific.m4 2001/09/17 19:46:31 1.346
+++ lib/autoconf/specific.m4 2001/11/12 16:06:09
@@ -72,7 +72,8 @@
[ac_cv_decl_sys_siglist=no])])
if test $ac_cv_decl_sys_siglist = yes; then
AC_DEFINE(SYS_SIGLIST_DECLARED, 1,
- [Define if `sys_siglist' is declared by <signal.h> or <unistd.h>.])
+ [Define to 1 if `sys_siglist' is declared by <signal.h>
+ or <unistd.h>.])
fi
])# AC_DECL_SYS_SIGLIST
@@ -248,7 +249,7 @@
done])
if test $ac_cv_sys_long_file_names = yes; then
AC_DEFINE(HAVE_LONG_FILE_NAMES, 1,
- [Define if you support file names longer than 14 characters.])
+ [Define to 1 if you support file names longer than 14 characters.])
fi
])
@@ -312,8 +313,8 @@
[ac_cv_sys_restartable_syscalls=no])])
if test $ac_cv_sys_restartable_syscalls = yes; then
AC_DEFINE(HAVE_RESTARTABLE_SYSCALLS, 1,
- [Define if system calls automatically restart after interruption
- by a signal.])
+ [Define to 1 if system calls automatically restart after
+ interruption by a signal.])
fi
])# AC_SYS_RESTARTABLE_SYSCALLS
@@ -398,7 +399,7 @@
# ------
AC_DEFUN([AC_AIX],
[AH_VERBATIM([_ALL_SOURCE],
-[/* Define if on AIX 3.
+[/* Define to 1 if on AIX 3.
System headers sometimes define this.
We just want to avoid a redefinition error message. */
@%:@ifndef _ALL_SOURCE
@@ -426,13 +427,13 @@
AC_CHECK_HEADER(minix/config.h, MINIX=yes, MINIX=)
if test "$MINIX" = yes; then
AC_DEFINE(_POSIX_SOURCE, 1,
- [Define if you need to in order for `stat' and other things to
+ [Define to 1 if you need to in order for `stat' and other things to
work.])
AC_DEFINE(_POSIX_1_SOURCE, 2,
- [Define if the system does not provide POSIX.1 features except
+ [Define to 2 if the system does not provide POSIX.1 features except
with this defined.])
AC_DEFINE(_MINIX, 1,
- [Define if on MINIX.])
+ [Define to 1 if on MINIX.])
fi
])# AC_MINIX
Index: lib/autoconf/types.m4
===================================================================
RCS file: /cvs/autoconf/lib/autoconf/types.m4,v
retrieving revision 1.13
diff -u -u -r1.13 types.m4
--- lib/autoconf/types.m4 2001/10/18 23:42:01 1.13
+++ lib/autoconf/types.m4 2001/11/12 16:06:09
@@ -165,8 +165,8 @@
[m4_foreach([AC_Type], [$1],
[_AC_CHECK_TYPE_NEW(AC_Type,
[AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]AC_Type), 1,
- [Define if the system has the type
- `]AC_Type['.])
+ [Define to 1 if the system has the
+ type `]AC_Type['.])
$2],
[$3],
[$4])])])
@@ -384,7 +384,7 @@
adjust the code.])dnl
test $ac_cv_sizeof_int = 2 &&
AC_DEFINE(INT_16_BITS, 1,
- [Define if `sizeof (int)' = 2. Obsolete, use `SIZEOF_INT'.])
+ [Define to 1 if `sizeof (int)' = 2. Obsolete, use `SIZEOF_INT'.])
])
@@ -398,7 +398,7 @@
you adjust the code.])dnl
test $ac_cv_sizeof_long_int = 8 &&
AC_DEFINE(LONG_64_BITS, 1,
- [Define if `sizeof (long int)' = 8. Obsolete, use
+ [Define to 1 if `sizeof (long int)' = 8. Obsolete, use
`SIZEOF_LONG_INT'.])
])
@@ -449,7 +449,7 @@
[m4_foreach([AC_Member], [$1],
[AC_CHECK_MEMBER(AC_Member,
[AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]AC_Member), 1,
- [Define if `]m4_bpatsubst(AC_Member,
+ [Define to 1 if `]m4_bpatsubst(AC_Member,
[^[^.]*\.])[' is
member of `]m4_bpatsubst(AC_Member, [\..*])['.])
$2],
@@ -472,7 +472,7 @@
the `AC_DEFINE' when you adjust the code.])
AC_CHECK_MEMBERS([struct stat.st_blksize],
[AC_DEFINE(HAVE_ST_BLKSIZE, 1,
- [Define if your `struct stat' has
+ [Define to 1 if your `struct stat' has
`st_blksize'. Deprecated, use
`HAVE_STRUCT_STAT_ST_BLKSIZE' instead.])])
])# AC_STRUCT_ST_BLKSIZE
@@ -495,7 +495,7 @@
AC_DEFUN([AC_STRUCT_ST_BLOCKS],
[AC_CHECK_MEMBERS([struct stat.st_blocks],
[AC_DEFINE(HAVE_ST_BLOCKS, 1,
- [Define if your `struct stat' has
+ [Define to 1 if your `struct stat' has
`st_blocks'. Deprecated, use
`HAVE_STRUCT_STAT_ST_BLOCKS' instead.])],
[AC_LIBOBJ([fileblocks])])
@@ -511,7 +511,7 @@
the `AC_DEFINE' when you adjust the code.])
AC_CHECK_MEMBERS([struct stat.st_rdev],
[AC_DEFINE(HAVE_ST_RDEV, 1,
- [Define if your `struct stat' has `st_rdev'.
+ [Define to 1 if your `struct stat' has `st_rdev'.
Deprecated, use `HAVE_STRUCT_STAT_ST_RDEV'
instead.])])
])# AC_STRUCT_ST_RDEV
@@ -532,7 +532,7 @@
[ac_cv_struct_tm=sys/time.h])])
if test $ac_cv_struct_tm = sys/time.h; then
AC_DEFINE(TM_IN_SYS_TIME, 1,
- [Define if your <sys/time.h> declares `struct tm'.])
+ [Define to 1 if your <sys/time.h> declares `struct tm'.])
fi
])# AC_STRUCT_TM
@@ -549,7 +549,7 @@
])
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
AC_DEFINE(HAVE_TM_ZONE, 1,
- [Define if your `struct tm' has `tm_zone'. Deprecated, use
+ [Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use
`HAVE_STRUCT_TM_TM_ZONE' instead.])
else
AC_CACHE_CHECK(for tzname, ac_cv_var_tzname,
@@ -562,7 +562,7 @@
[atoi(*tzname);], ac_cv_var_tzname=yes, ac_cv_var_tzname=no)])
if test $ac_cv_var_tzname = yes; then
AC_DEFINE(HAVE_TZNAME, 1,
- [Define if you don't have `tm_zone' but do have the external
+ [Define to 1 if you don't have `tm_zone' but do have the external
array `tzname'.])
fi
fi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: Define to...,
Akim Demaille <=