+2001-07-04 Akim Demaille <akim@epita.fr>
+
+ * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include
+ strings.h if usable with string.h.
+ Suggested by Paul Eggert.
+
2001-07-04 Akim Demaille <akim@epita.fr>
* autoscan.in (&scan_file): Skip FILE if there is FILE.in.
** Default includes
- Now include stdint.h.
- sys/types.h and sys/stat.h are guarded.
+- strings.h is included if available, and not conflicting with string.h.
** Bug fixes
- The test suite is more robust and presents less false failures.
# include <memory.h>
# endif
# include <string.h>
-#else
-# if HAVE_STRINGS_H
-# include <strings.h>
-# endif
+#endif
+#if HAVE_STRINGS_H
+# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
@end example
If the default includes are used, then Autoconf will automatically check
-for the presence of these headers, i.e., you don't need to run
-@code{AC_HEADERS_STDC}, nor check for @file{stdlib.h} etc.
+for the presence of these headers and their compatibility, i.e., you
+don't need to run @code{AC_HEADERS_STDC}, nor check for @file{stdlib.h}
+etc.
+
+These headers are checked for in the same order as they are included.
+For instance, on some systems @file{string.h} and @file{strings.h} both
+exist, but conflict. Then @code{HAVE_STRING_H} will be defined, but
+@code{HAVE_STRINGS_H} won't.
@node Alternative Programs, Libraries, Common Behavior, Existing Tests
@section Alternative Programs