pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files Allow this to compile on sy...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b920a941798e
branches: trunk
changeset: 460816:b920a941798e
user: jlam <jlam%pkgsrc.org@localhost>
date: Thu Sep 04 20:34:04 2003 +0000
description:
Allow this to compile on systems without vfork by #define'ing it to fork.
This is okay since we just do vfork()/exec() in lib/ftpio.c and don't rely
on any vfork vs. fork semantics.
diffstat:
pkgtools/pkg_install/files/configure | 6 +++++-
pkgtools/pkg_install/files/configure.ac | 8 +++++++-
pkgtools/pkg_install/files/lib/config.h.in | 8 ++++++++
3 files changed, 20 insertions(+), 2 deletions(-)
diffs (64 lines):
diff -r 7872284976ae -r b920a941798e pkgtools/pkg_install/files/configure
--- a/pkgtools/pkg_install/files/configure Thu Sep 04 20:20:08 2003 +0000
+++ b/pkgtools/pkg_install/files/configure Thu Sep 04 20:34:04 2003 +0000
@@ -3560,7 +3560,8 @@
-for ac_func in chflags dbopen tgetent
+
+for ac_func in chflags dbopen tgetent vfork
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -3729,6 +3730,9 @@
done
+
+
+
ac_config_files="$ac_config_files Makefile add/Makefile admin/Makefile create/Makefile delete/Makefile info/Makefile
lib/Makefile view/Makefile"
cat >confcache <<\_ACEOF
diff -r 7872284976ae -r b920a941798e pkgtools/pkg_install/files/configure.ac
--- a/pkgtools/pkg_install/files/configure.ac Thu Sep 04 20:20:08 2003 +0000
+++ b/pkgtools/pkg_install/files/configure.ac Thu Sep 04 20:34:04 2003 +0000
@@ -40,8 +40,14 @@
AC_CHECK_HEADERS([sys/ioctl.h sys/resource.h sys/wait.h])
# Checks for library functions.
-AC_CHECK_FUNCS([chflags dbopen tgetent])
+AC_CHECK_FUNCS([chflags dbopen tgetent vfork])
AC_CHECK_FUNCS([getrlimit setrlimit])
+AH_BOTTOM(
+#if !HAVE_VFORK
+# define vfork fork
+#endif
+)
+
AC_CONFIG_FILES([Makefile add/Makefile admin/Makefile create/Makefile delete/Makefile info/Makefile lib/Makefile view/Makefile])
AC_OUTPUT
diff -r 7872284976ae -r b920a941798e pkgtools/pkg_install/files/lib/config.h.in
--- a/pkgtools/pkg_install/files/lib/config.h.in Thu Sep 04 20:20:08 2003 +0000
+++ b/pkgtools/pkg_install/files/lib/config.h.in Thu Sep 04 20:34:04 2003 +0000
@@ -69,6 +69,9 @@
/* 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 the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
@@ -86,3 +89,8 @@
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
+
+#if !HAVE_VFORK
+# define vfork fork
+#endif
+
Home |
Main Index |
Thread Index |
Old Index