+Wed Oct 6 02:00:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
+
+ * Update cvsbuild to give a better error if autoconf isn't installed
+ * Add test for linux/ptrace.h to configure
+ * Since we define GNU_SOURCE in the Makefile we don't need to define
+ USE_GNU in file.c anymore
+
+Fri Sep 10 04:35:16 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
+
+ * #define USE_GNU before including file.c so we get some extra O_* flags
+
+Tue Aug 31 16:27:21 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
+
+ * Add missing } in IPv6 output
+
Tue Aug 31 01:23:08 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
* Update copyright for strace-graph to BSD to be consistent with
AC_SIG_ATOMIC_T
AC_CHECK_LIB(nsl, main)
AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl putpmsg prctl sendmsg inet_ntop)
-AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h sys/stream.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h)
+AC_CHECK_HEADERS(sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h sys/stream.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h)
AC_DECL_SYS_ERRLIST
AC_DECL_SYS_SIGLIST
AC_DECL__SYS_SIGLIST
#! /bin/sh
+PROJECT=strace
+
+DIE=0
+
+(autoconf --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have autoconf installed to compile $PROJECT."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+ DIE=1
+}
+
+if test "$DIE" -eq 1; then
+ exit 1
+fi
+
autoheader
autoconf
./configure $@
{
tprintf("{sin6_family=AF_INET6, ");
inet_ntop(AF_INET6, &sa6.sin6_addr, string_addr, sizeof(string_addr));
- tprintf("sin6_port=htons(%u), inet_pton(AF_INET6, \"%s\", &sin6_addr), sin6_flowinfo=htonl(%u)",
+ tprintf("sin6_port=htons(%u), inet_pton(AF_INET6, \"%s\", &sin6_addr), sin6_flowinfo=htonl(%u)}",
ntohs(sa6.sin6_port), string_addr, ntohl(sa6.sin6_flowinfo));
}
break;
#include <machine/reg.h>
#endif /* SUNOS4 */
-#if defined(linux) && !defined(__GLIBC__)
+#if HAVE_LINUX_PTRACE_H
+#undef PTRACE_SYSCALL
#include <linux/ptrace.h>
#endif
#ifdef HAVE_SYS_REG_H
# include <sys/reg.h>
+#ifndef PTRACE_PEEKUSR
# define PTRACE_PEEKUSR PTRACE_PEEKUSER
+#endif
+#ifndef PTRACE_POKEUSR
# define PTRACE_POKEUSR PTRACE_POKEUSER
#endif
+#endif
#ifdef LINUX
#include <asm/posix_types.h>
#include <sys/ucontext.h>
#endif /* SVR4 */
-#if defined(linux) && !defined(__GLIBC__)
+#if HAVE_LINUX_PTRACE_H
+#undef PTRACE_SYSCALL
#include <linux/ptrace.h>
#endif
#ifdef HAVE_SYS_REG_H
# include <sys/reg.h>
+#ifndef PTRACE_PEEKUSR
# define PTRACE_PEEKUSR PTRACE_PEEKUSER
+#endif
+#ifndef PTRACE_POKEUSR
# define PTRACE_POKEUSR PTRACE_POKEUSER
#endif
+#endif
#ifdef LINUX
#include <sys/syscall.h>
#include <sys/param.h>
-#if defined(LINUX) && defined(SPARC)
+#if HAVE_ASM_REG_H
#include <asm/reg.h>
#endif
+#if HAVE_LINUX_PTRACE_H
+#undef PTRACE_SYSCALL
+#include <linux/ptrace.h>
+#endif
+
#ifdef HAVE_SYS_REG_H
#include <sys/reg.h>
+#ifndef PTRACE_PEEKUSR
# define PTRACE_PEEKUSR PTRACE_PEEKUSER
#endif
-
-#if defined(linux) && !defined(__GLIBC__)
-#include <linux/ptrace.h>
-#endif
+#endif
#ifndef SYS_ERRLIST_DECLARED
extern int sys_nerr;
#include <link.h>
#endif /* SUNOS4 */
-#if defined(linux) && !defined(__GLIBC__)
+#if defined(linux)
#include <linux/ptrace.h>
#endif