From 92b94878f8a07f9b25448f04b7653ba77e3c68bd Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 13 Aug 2004 14:35:24 +0000 Subject: Add checks for all of the system headers used in the sources. Also include missing in lib/ftpio.c for MAXHOSTNAMELEN definition on Solaris. --- pkgtools/pkg_install/files/configure | 43 ++++++++++++++- pkgtools/pkg_install/files/configure.ac | 8 ++- pkgtools/pkg_install/files/lib/config.h.in | 88 +++++++++++++++++++++++++++++- pkgtools/pkg_install/files/lib/ftpio.c | 7 ++- 4 files changed, 137 insertions(+), 9 deletions(-) (limited to 'pkgtools') diff --git a/pkgtools/pkg_install/files/configure b/pkgtools/pkg_install/files/configure index 50f249a01c0..011f5c4ba4b 100755 --- a/pkgtools/pkg_install/files/configure +++ b/pkgtools/pkg_install/files/configure @@ -3820,7 +3820,30 @@ done -for ac_header in db1/db.h db.h + + + + + + + + + + + + + + + + + + + + + +for ac_header in assert.h ctype.h dirent.h errno.h err.h fnctl.h fnmatch.h \ + glob.h limits.h md5.h netdb.h pwd.h regext.h signal.h stdarg.h \ + stdio.h stdlib.h string.h termcap.h termios.h time.h unistd.h vis.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -3971,7 +3994,7 @@ done -for ac_header in fnmatch.h regex.h +for ac_header in db1/db.h db.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then @@ -4124,7 +4147,21 @@ done -for ac_header in sys/ioctl.h sys/resource.h sys/utsname.h sys/wait.h + + + + + + + + + + + + +for ac_header in sys/cdefs.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h \ + sys/poll.h sys/queue.h sys/resource.h sys/signal.h sys/statvfs.h \ + sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/vfs.h sys/wait.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then diff --git a/pkgtools/pkg_install/files/configure.ac b/pkgtools/pkg_install/files/configure.ac index 94e652e8d57..cc4345c6d40 100644 --- a/pkgtools/pkg_install/files/configure.ac +++ b/pkgtools/pkg_install/files/configure.ac @@ -73,9 +73,13 @@ AC_SEARCH_LIBS(tgetent, [termcap termlib curses ncurses]) dnl Checks for header files. AC_HEADER_STDC +AC_CHECK_HEADERS([assert.h ctype.h dirent.h errno.h err.h fnctl.h fnmatch.h \ + glob.h limits.h md5.h netdb.h pwd.h regext.h signal.h stdarg.h \ + stdio.h stdlib.h string.h termcap.h termios.h time.h unistd.h vis.h]) AC_CHECK_HEADERS([db1/db.h db.h]) -AC_CHECK_HEADERS([fnmatch.h regex.h]) -AC_CHECK_HEADERS([sys/ioctl.h sys/resource.h sys/utsname.h sys/wait.h]) +AC_CHECK_HEADERS([sys/cdefs.h sys/file.h sys/ioctl.h sys/mount.h sys/param.h \ + sys/poll.h sys/queue.h sys/resource.h sys/signal.h sys/statvfs.h \ + sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/vfs.h sys/wait.h]) # Checks for library functions. AC_CHECK_FUNCS([chflags dbopen tgetent vfork]) diff --git a/pkgtools/pkg_install/files/lib/config.h.in b/pkgtools/pkg_install/files/lib/config.h.in index a5622700757..0f239c332f8 100644 --- a/pkgtools/pkg_install/files/lib/config.h.in +++ b/pkgtools/pkg_install/files/lib/config.h.in @@ -1,8 +1,14 @@ /* lib/config.h.in. Generated from configure.ac by autoheader. */ +/* Define to 1 if you have the header file. */ +#undef HAVE_ASSERT_H + /* Define to 1 if you have the `chflags' function. */ #undef HAVE_CHFLAGS +/* Define to 1 if you have the header file. */ +#undef HAVE_CTYPE_H + /* Define to 1 if you have the header file. */ #undef HAVE_DB1_DB_H @@ -12,30 +18,66 @@ /* Define to 1 if you have the header file. */ #undef HAVE_DB_H +/* Define to 1 if you have the header file. */ +#undef HAVE_DIRENT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_ERRNO_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_ERR_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_FNCTL_H + /* Define to 1 if you have the header file. */ #undef HAVE_FNMATCH_H /* Define to 1 if you have the `getrlimit' function. */ #undef HAVE_GETRLIMIT +/* Define to 1 if you have the header file. */ +#undef HAVE_GLOB_H + /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `db1' library (-ldb1). */ #undef HAVE_LIBDB1 +/* Define to 1 if you have the header file. */ +#undef HAVE_LIMITS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MD5_H + /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H -/* Define to 1 if you have the header file. */ -#undef HAVE_REGEX_H +/* Define to 1 if you have the header file. */ +#undef HAVE_NETDB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_PWD_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_REGEXT_H /* Define to 1 if you have the `setrlimit' function. */ #undef HAVE_SETRLIMIT +/* Define to 1 if you have the header file. */ +#undef HAVE_SIGNAL_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDARG_H + /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H +/* Define to 1 if you have the header file. */ +#undef HAVE_STDIO_H + /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H @@ -45,33 +87,75 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_CDEFS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_FILE_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_IOCTL_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_MOUNT_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_POLL_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_QUEUE_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_RESOURCE_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_SIGNAL_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STATVFS_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TIME_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_UTSNAME_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_VFS_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_WAIT_H +/* Define to 1 if you have the header file. */ +#undef HAVE_TERMCAP_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_TERMIOS_H + /* Define to 1 if you have the `tgetent' function. */ #undef HAVE_TGETENT +/* Define to 1 if you have the header file. */ +#undef HAVE_TIME_H + /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `vfork' function. */ #undef HAVE_VFORK +/* Define to 1 if you have the header file. */ +#undef HAVE_VIS_H + /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT diff --git a/pkgtools/pkg_install/files/lib/ftpio.c b/pkgtools/pkg_install/files/lib/ftpio.c index da72c5489b4..d7ea5b9468d 100644 --- a/pkgtools/pkg_install/files/lib/ftpio.c +++ b/pkgtools/pkg_install/files/lib/ftpio.c @@ -1,4 +1,4 @@ -/* $NetBSD: ftpio.c,v 1.8 2003/12/20 04:23:05 grant Exp $ */ +/* $NetBSD: ftpio.c,v 1.9 2004/08/13 14:35:24 jlam Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -8,7 +8,7 @@ #include #endif #ifndef lint -__RCSID("$NetBSD: ftpio.c,v 1.8 2003/12/20 04:23:05 grant Exp $"); +__RCSID("$NetBSD: ftpio.c,v 1.9 2004/08/13 14:35:24 jlam Exp $"); #endif /*- @@ -107,6 +107,9 @@ __RCSID("$NetBSD: ftpio.c,v 1.8 2003/12/20 04:23:05 grant Exp $"); #if HAVE_FCNTL_H #include #endif +#if HAVE_NETDB_H +#include +#endif #if HAVE_REGEX_H #include #endif -- cgit v1.2.3