OSDN Git Service

* configure.in, configure.ac, config.h.in: refined.
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 25 May 2002 07:09:23 +0000 (07:09 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Sat, 25 May 2002 07:09:23 +0000 (07:09 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@93 6a8cc165-1e22-0410-a132-eb4e3f353aba

config.h.in
configure.ac
configure.in

index 3e843bc..3188703 100644 (file)
@@ -10,6 +10,9 @@
 /* Define to 1 if you have the <fcntl.h> 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 <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
@@ -93,6 +99,9 @@
    */
 #undef HAVE_SYS_NDIR_H
 
+/* Define to 1 if you have the <sys/param.h> header file. */
+#undef HAVE_SYS_PARAM_H
+
 /* Define to 1 if you have the <sys/stat.h> header file. */
 #undef HAVE_SYS_STAT_H
 
 /* Define to 1 if you have the <unistd.h> 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 <vfork.h> 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
 
 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
 #undef TIME_WITH_SYS_TIME
 
-/* temporary file template */
+/* temporary file template for mktemp/mkstemp */
 #undef TMP_FILENAME_TEMPLATE
 
 /* Define to 1 if your <sys/time.h> declares `struct tm'. */
 
 /* Define to empty if `const' does not conform to ANSI C. */
 #undef const
+
+/* Define to `int' if <sys/types.h> does not define. */
+#undef pid_t
+
+/* Define as `fork' if `vfork' does not work. */
+#undef vfork
index 712a92b..428c90d 100644 (file)
@@ -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
index 9d9da48..dc72a2b 100644 (file)
@@ -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