OSDN Git Service

* configure.ac: added checking functions `fnmatch' and `basename'.
authorarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Mon, 16 Dec 2002 16:34:26 +0000 (16:34 +0000)
committerarai <arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Mon, 16 Dec 2002 16:34:26 +0000 (16:34 +0000)
but not yet prepare the free fnmatch.c.

* config.h.in: ditto.

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@601 6a8cc165-1e22-0410-a132-eb4e3f353aba

config.h.in
configure.ac

index c513833..6f782ff 100644 (file)
@@ -9,6 +9,9 @@
 /* Define to 1 if the 2nd argument of gettimeofday() is effective. */
 #undef GETTIMEOFDAY_HAS_2ND_ARG
 
 /* Define to 1 if the 2nd argument of gettimeofday() is effective. */
 #undef GETTIMEOFDAY_HAS_2ND_ARG
 
+/* Define to 1 if you have the `basename' function. */
+#undef HAVE_BASENAME
+
 /* Define to 1 if you have the `chsize' function. */
 #undef HAVE_CHSIZE
 
 /* Define to 1 if you have the `chsize' function. */
 #undef HAVE_CHSIZE
 
 /* Define to 1 if you have the <fcntl.h> header file. */
 #undef HAVE_FCNTL_H
 
 /* Define to 1 if you have the <fcntl.h> header file. */
 #undef HAVE_FCNTL_H
 
+/* Define to 1 if you have the `fnmatch' function. */
+#undef HAVE_FNMATCH
+
+/* Define to 1 if you have the <fnmatch.h> header file. */
+#undef HAVE_FNMATCH_H
+
 /* Define to 1 if you have the `fork' function. */
 #undef HAVE_FORK
 
 /* Define to 1 if you have the `fork' function. */
 #undef HAVE_FORK
 
index 4d08be9..11f5da8 100644 (file)
@@ -22,7 +22,7 @@ AC_SEARCH_LIBS(opendir, [mingwex])
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/param.h sys/time.h)
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/param.h sys/time.h)
-AC_CHECK_HEADERS(pwd.h grp.h utime.h inttypes.h stdint.h)
+AC_CHECK_HEADERS(pwd.h grp.h utime.h inttypes.h stdint.h fnmatch.h)
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
@@ -56,12 +56,17 @@ AC_CHECK_MEMBERS([struct tm.tm_gmtoff, struct stat.st_ino],,,
 AC_TYPE_SIGNAL
 AC_FUNC_FORK
 AC_FUNC_UTIME_NULL
 AC_TYPE_SIGNAL
 AC_FUNC_FORK
 AC_FUNC_UTIME_NULL
+AC_FUNC_FNMATCH
 AC_CHECK_FUNCS(strchr strdup memcpy memset memmove strcasecmp)
 AC_CHECK_FUNCS(mktime timelocal tzset ftime gettimeofday utime)
 AC_CHECK_FUNCS(mkdir rmdir ftruncate chsize lchown mkstemp link)
 AC_CHECK_FUNCS(getpwuid getgrgid getpwnam getgrnam)
 AC_CHECK_FUNCS(strchr strdup memcpy memset memmove strcasecmp)
 AC_CHECK_FUNCS(mktime timelocal tzset ftime gettimeofday utime)
 AC_CHECK_FUNCS(mkdir rmdir ftruncate chsize lchown mkstemp link)
 AC_CHECK_FUNCS(getpwuid getgrgid getpwnam getgrnam)
-AC_CHECK_FUNCS(iconv)
-AC_REPLACE_FUNCS(vsnprintf)
+AC_CHECK_FUNCS(iconv basename)
+AC_REPLACE_FUNCS(vsnprintf fnmatch)
+
+if test x$ac_cv_func_fnmatch_works != xyes; then
+  AC_LIBOBJ(fnmatch)
+fi
 
 if test $ac_header_dirent = no; then
   AC_LIBOBJ(lhdir)
 
 if test $ac_header_dirent = no; then
   AC_LIBOBJ(lhdir)