From 6ebc4a4b1e0130a8f3370f0245ae234e6c47d822 Mon Sep 17 00:00:00 2001 From: arai Date: Sat, 25 May 2002 07:09:23 +0000 Subject: [PATCH] * configure.in, configure.ac, config.h.in: refined. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@93 6a8cc165-1e22-0410-a132-eb4e3f353aba --- config.h.in | 32 +++++++++++++++++++++++++++++++- configure.ac | 15 ++++++++------- configure.in | 15 ++++++++------- 3 files changed, 47 insertions(+), 15 deletions(-) diff --git a/config.h.in b/config.h.in index 3e843bc..3188703 100644 --- a/config.h.in +++ b/config.h.in @@ -10,6 +10,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H +/* Define to 1 if you have the `fork' function. */ +#undef HAVE_FORK + /* Define to 1 if you have the `ftime' function. */ #undef HAVE_FTIME @@ -34,6 +37,9 @@ /* Define to 1 if you have the `memcpy' function. */ #undef HAVE_MEMCPY +/* Define to 1 if you have the `memmove' function. */ +#undef HAVE_MEMMOVE + /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H @@ -93,6 +99,9 @@ */ #undef HAVE_SYS_NDIR_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_PARAM_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H @@ -122,9 +131,24 @@ /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H +/* Define to 1 if you have the `utime' function. */ +#undef HAVE_UTIME + /* Define to 1 if `utime(file, NULL)' sets file's timestamp to the present. */ #undef HAVE_UTIME_NULL +/* Define to 1 if you have the `vfork' function. */ +#undef HAVE_VFORK + +/* Define to 1 if you have the header file. */ +#undef HAVE_VFORK_H + +/* Define to 1 if `fork' works. */ +#undef HAVE_WORKING_FORK + +/* Define to 1 if `vfork' works. */ +#undef HAVE_WORKING_VFORK + /* Define you want to use multibyte filename */ #undef MULTIBYTE_CHAR @@ -164,7 +188,7 @@ /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME -/* temporary file template */ +/* temporary file template for mktemp/mkstemp */ #undef TMP_FILENAME_TEMPLATE /* Define to 1 if your declares `struct tm'. */ @@ -185,3 +209,9 @@ /* Define to empty if `const' does not conform to ANSI C. */ #undef const + +/* Define to `int' if does not define. */ +#undef pid_t + +/* Define as `fork' if `vfork' does not work. */ +#undef vfork diff --git a/configure.ac b/configure.ac index 712a92b..428c90d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT(lha, 1.14i-ac20020522) +AC_INIT(lha, 1.14i-ac20020525) AC_CANONICAL_TARGET AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) @@ -14,16 +14,16 @@ AC_PROG_INSTALL AC_PROG_MAKE_SET AC_MINIX AM_C_PROTOTYPES -AC_C_CONST dnl Checks for libraries. dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC -AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/time.h) +AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/param.h sys/time.h) dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST AC_HEADER_TIME AC_STRUCT_TM AC_STRUCT_TIMEZONE @@ -57,10 +57,11 @@ fi dnl Checks for library functions. AC_TYPE_SIGNAL +AC_FUNC_FORK AC_FUNC_UTIME_NULL -AC_CHECK_FUNCS(strchr memcpy) -AC_CHECK_FUNCS(mktime timelocal tzset ftime gettimeofday) -AC_CHECK_FUNCS(mkdir rmdir strdup memset ftruncate lchown mkstemp) +AC_CHECK_FUNCS(strchr strdup memcpy memset memmove) +AC_CHECK_FUNCS(mktime timelocal tzset ftime gettimeofday utime) +AC_CHECK_FUNCS(mkdir rmdir ftruncate lchown mkstemp) AC_CHECK_FUNCS(strcasecmp link) if test $ac_header_dirent = no; then @@ -110,7 +111,7 @@ AC_ARG_WITH(tmp_file, AC_MSG_RESULT($with_tmp_file) if test x"$with_tmp_file" != xno; then AC_DEFINE_UNQUOTED(TMP_FILENAME_TEMPLATE, "$with_tmp_file", - [temporary file template]) + [temporary file template for mktemp/mkstemp]) fi dnl incremental indicator diff --git a/configure.in b/configure.in index 9d9da48..dc72a2b 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(src/lha.h) -AM_INIT_AUTOMAKE(lha, 1.14i-ac20020522) +AM_INIT_AUTOMAKE(lha, 1.14i-ac20020525) AM_CONFIG_HEADER(config.h) AC_CANONICAL_HOST @@ -15,7 +15,6 @@ AC_PROG_INSTALL AC_PROG_MAKE_SET AC_MINIX AM_C_PROTOTYPES -AC_C_CONST AC_EXEEXT AC_OBJEXT @@ -24,9 +23,10 @@ dnl Checks for libraries. dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC -AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/time.h) +AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/param.h sys/time.h) dnl Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST AC_HEADER_TIME AC_STRUCT_TM AC_STRUCT_TIMEZONE @@ -60,10 +60,11 @@ fi dnl Checks for library functions. AC_TYPE_SIGNAL +AC_FUNC_FORK AC_FUNC_UTIME_NULL -AC_CHECK_FUNCS(strchr memcpy) -AC_CHECK_FUNCS(mktime timelocal tzset ftime gettimeofday) -AC_CHECK_FUNCS(mkdir rmdir strdup memset ftruncate lchown mkstemp) +AC_CHECK_FUNCS(strchr strdup memcpy memset memmove) +AC_CHECK_FUNCS(mktime timelocal tzset ftime gettimeofday utime) +AC_CHECK_FUNCS(mkdir rmdir ftruncate lchown mkstemp) AC_CHECK_FUNCS(strcasecmp link) AC_SUBST(LIBOBJS) @@ -111,7 +112,7 @@ AC_ARG_WITH(tmp_file, AC_MSG_RESULT($with_tmp_file) if test x"$with_tmp_file" != xno; then AC_DEFINE_UNQUOTED(TMP_FILENAME_TEMPLATE, "$with_tmp_file", - [temporary file template]) + [temporary file template for mktemp/mkstemp]) fi dnl incremental indicator -- 2.11.0