summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-08-13 14:35:24 +0000
committerjlam <jlam@pkgsrc.org>2004-08-13 14:35:24 +0000
commit42de748c5e40a274e7f19da5fe5ed8e3d9267630 (patch)
treeb9e0133aa91a28d8a787563b3f2ca5f3173c6fb2 /pkgtools
parent49de9de068483993255e76b82435e41f91bbf30f (diff)
downloadpkgsrc-42de748c5e40a274e7f19da5fe5ed8e3d9267630.tar.gz
Add checks for all of the system headers used in the sources. Also include
missing <netdb.h> in lib/ftpio.c for MAXHOSTNAMELEN definition on Solaris.
Diffstat (limited to 'pkgtools')
-rwxr-xr-xpkgtools/pkg_install/files/configure43
-rw-r--r--pkgtools/pkg_install/files/configure.ac8
-rw-r--r--pkgtools/pkg_install/files/lib/config.h.in88
-rw-r--r--pkgtools/pkg_install/files/lib/ftpio.c7
4 files changed, 137 insertions, 9 deletions
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 <assert.h> 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 <ctype.h> header file. */
+#undef HAVE_CTYPE_H
+
/* Define to 1 if you have the <db1/db.h> header file. */
#undef HAVE_DB1_DB_H
@@ -12,30 +18,66 @@
/* Define to 1 if you have the <db.h> header file. */
#undef HAVE_DB_H
+/* Define to 1 if you have the <dirent.h> header file. */
+#undef HAVE_DIRENT_H
+
+/* Define to 1 if you have the <errno.h> header file. */
+#undef HAVE_ERRNO_H
+
+/* Define to 1 if you have the <err.h> header file. */
+#undef HAVE_ERR_H
+
+/* Define to 1 if you have the <fnctl.h> header file. */
+#undef HAVE_FNCTL_H
+
/* Define to 1 if you have the <fnmatch.h> 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 <glob.h> header file. */
+#undef HAVE_GLOB_H
+
/* Define to 1 if you have the <inttypes.h> 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 <limits.h> header file. */
+#undef HAVE_LIMITS_H
+
+/* Define to 1 if you have the <md5.h> header file. */
+#undef HAVE_MD5_H
+
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
-/* Define to 1 if you have the <regex.h> header file. */
-#undef HAVE_REGEX_H
+/* Define to 1 if you have the <netdb.h> header file. */
+#undef HAVE_NETDB_H
+
+/* Define to 1 if you have the <pwd.h> header file. */
+#undef HAVE_PWD_H
+
+/* Define to 1 if you have the <regext.h> 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 <signal.h> header file. */
+#undef HAVE_SIGNAL_H
+
+/* Define to 1 if you have the <stdarg.h> header file. */
+#undef HAVE_STDARG_H
+
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
+/* Define to 1 if you have the <stdio.h> header file. */
+#undef HAVE_STDIO_H
+
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
@@ -45,33 +87,75 @@
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
+/* Define to 1 if you have the <sys/cdefs.h> header file. */
+#undef HAVE_SYS_CDEFS_H
+
+/* Define to 1 if you have the <sys/file.h> header file. */
+#undef HAVE_SYS_FILE_H
+
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H
+/* Define to 1 if you have the <sys/mount.h> header file. */
+#undef HAVE_SYS_MOUNT_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/poll.h> header file. */
+#undef HAVE_SYS_POLL_H
+
+/* Define to 1 if you have the <sys/queue.h> header file. */
+#undef HAVE_SYS_QUEUE_H
+
/* Define to 1 if you have the <sys/resource.h> header file. */
#undef HAVE_SYS_RESOURCE_H
+/* Define to 1 if you have the <sys/signal.h> header file. */
+#undef HAVE_SYS_SIGNAL_H
+
+/* Define to 1 if you have the <sys/statvfs.h> header file. */
+#undef HAVE_SYS_STATVFS_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 <sys/time.h> header file. */
+#undef HAVE_SYS_TIME_H
+
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <sys/utsname.h> header file. */
#undef HAVE_SYS_UTSNAME_H
+/* Define to 1 if you have the <sys/vfs.h> header file. */
+#undef HAVE_SYS_VFS_H
+
/* Define to 1 if you have the <sys/wait.h> header file. */
#undef HAVE_SYS_WAIT_H
+/* Define to 1 if you have the <termcap.h> header file. */
+#undef HAVE_TERMCAP_H
+
+/* Define to 1 if you have the <termios.h> 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 <time.h> header file. */
+#undef HAVE_TIME_H
+
/* Define to 1 if you have the <unistd.h> 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 <vis.h> 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 <sys/cdefs.h>
#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 <fcntl.h>
#endif
+#if HAVE_NETDB_H
+#include <netdb.h>
+#endif
#if HAVE_REGEX_H
#include <regex.h>
#endif