Previous: Standard Symbols, Up: Common Behavior   [Contents][Index]


5.1.2 ¥Ç¥Õ¥©¥ë¥È¤Î¥¤¥ó¥¯¥ë¡¼¥É

¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤ÎÀßÄê¤Ë°Í¸¤¹¤ë¥Æ¥¹¥È¤â¤¢¤ê¤Þ¤¹¡¥¤³¤ì¤é¤Î¥Ø¥Ã¥À¤ÏÎ㳰̵¤¯ ÍøÍѲÄǽ¤È¤¤¤¦¤ï¤±¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¤¥Æ¥¹¥È¤Ï¡¤°Ê²¼¤Î¤è¤¦¤Ê¥¤¥ó¥¯¥ë¡¼¥É¤òÊÝ¸î ¤¹¤ë(¥³¡¼¥É¤Î)ÁȤò¡¤¼ÂºÝ¤ËÄ󶡤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡¥

#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
#  include <sys/time.h>
# else
#  include <time.h>
# endif
#endif

¤É¤¦¤¹¤ì¤ÐÎɤ¤¤«Àµ³Î¤ËÃΤé¤Ê¤¤¾ì¹ç¡¤Ìµ¾ò·ï¤Î¥¤¥ó¥¯¥ë¡¼¥É¤Î»ÈÍѤÏÈò¤±¡¤¥¤ ¥ó¥¯¥ë¡¼¥É¤¹¤ëÁ°¤Ë¥Ø¥Ã¥À¤Î¸ºß¤òÄ´ºº¤¹¤Ù¤­¤Ç¤¹(see Header Files)¡¥

ºÇ¤â°ìÈÌŪ¤Ê¥Þ¥¯¥í¤Ï¡¤°Ê²¼¤Î¤è¤¦¤Ê¥¤¥ó¥¯¥ë¡¼¥É¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÁȤòÄ󶡤¹¤ë ¥Þ¥¯¥í¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤¹¡¥

Macro: AC_DEFAULT_INCLUDES ([include-directives])

include-directives¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¤½¤ì¤òŸ³«¤·¡¤¤½¤¦¤Ç¤Ê¤±¤ì ¤Ð°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡¥

#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# if HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#if HAVE_STRINGS_H
# include <strings.h>
#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
#  include <stdint.h>
# endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif

¥Ç¥Õ¥©¥ë¥È¤Î¥¤¥ó¥¯¥ë¡¼¥É¤¬»ÈÍѤµ¤ì¤ë¾ì¹ç¡¤¤³¤ì¤é¤Î¥Ø¥Ã¥À¤Î¸ºß¤È¤½¤Î¸ß´¹ À­¤òÄ´ºº¤·¤Þ¤¹¡¥¤¹¤Ê¤ï¤Á¡¤AC_HEADERS_STDC¤ò¼Â¹Ô¤¹¤ëɬÍפ⡤ stdlib.h¤Ê¤É¤òÄ´ºº¤¹¤ëɬÍפ⤢¤ê¤Þ¤»¤ó¡¥

¤³¤ì¤é¤Î¥Ø¥Ã¥À¤Ï¡¤¥¤¥ó¥¯¥ë¡¼¥É¤µ¤ì¤ë½çÈÖ¤ÈÆ±¤¸½çÈÖ¤ÇÄ´ºº¤µ¤ì¤Þ¤¹¡¥Î㤨¤Ð¡¤ string.h¤Èstrings.h¤ÎξÊý¤¬¤¢¤ë¥·¥¹¥Æ¥à¤â¤¢¤ê¤Þ¤¹¤¬¡¤¶¥¹ç ¤·¤Þ¤»¤ó¡¥¤½¤³¤Ç¤Ï¡¤HAVE_STRING_H¤ÏÄêµÁ¤µ¤ì¤Þ¤¹¤¬¡¤ HAVE_STRINGS_H¤ÏÄêµÁ¤µ¤ì¤Þ¤»¤ó¡¥