]> granicus.if.org Git - strace/commitdiff
2002-12-29 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Mon, 30 Dec 2002 01:11:08 +0000 (01:11 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 30 Dec 2002 01:11:08 +0000 (01:11 +0000)
* configure.ac, Makefile.am: Punt subdirs, handle everything here.

Makefile.am
configure.ac

index 8a7680036246c16b54a87ddffeb131e1ed756b56..c61ccca3d95016d9837b94b2593ea3ef831fd399 100644 (file)
@@ -7,17 +7,26 @@ man_MANS = strace.1
 OS             = @opsys@
 # ARCH is `i386', `m68k', `sparc', etc.
 ARCH           = @arch@
-# OSARCH is OS/ARCH if a makefile exists there, otherwise just OS.
-OSARCH         = @osarch@
 
 INCLUDES = -I$(OS)/$(ARCH) -I$(srcdir)/$(OS)/$(ARCH) -I$(OS) -I$(srcdir)/$(OS)
 
-SUBDIRS = $(OSARCH)
-DIST_SUBDIRS = test freebsd/i386 sunos4 svr4 linux
-
 strace_SOURCES = strace.c version.c syscall.c util.c desc.c file.c ipc.c \
                 io.c ioctl.c mem.c net.c process.c bjm.c \
                 resource.c signal.c sock.c system.c term.c time.c \
                 proc.c stream.c
 
-EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c
+EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \
+            linux/ioctlsort.c \
+            linux/ioctlent.h linux/errnoent.h linux/signalent.h \
+            linux/syscall.h linux/syscallent.h linux/dummy.h \
+            linux/*/errnoent.h linux/*/ioctlent.h \
+            linux/*/signalent.h linux/*/syscallent.h \
+            freebsd/ioctlent.sh \
+            freebsd/syscalls.cat freebsd/syscalls.pl freebsd/syscalls.print \
+            freebsd/*/errnoent.h freebsd/*/ioctlent.h \
+            freebsd/*/signalent.h freebsd/*/syscall.h freebsd/*/syscallent.h
+            sunos4/dummy.h sunos4/errnoent.h \
+            sunos4/ioctlent.h sunos4/ioctlent.sh sunos4/signalent.h \
+            sunos4/syscall.h sunos4/syscallent.h \
+            svr4/dummy.h svr4/errnoent.h svr4/ioctlent.h svr4/ioctlent.sh \
+            svr4/signalent.h svr4/syscall.h svr4/syscallent.h
index a0d12a78a861ed6f527b47fa0a161a227fbd796f..5fda9fc1ada54a19ce48d8097b155927d573ac7f 100644 (file)
@@ -12,10 +12,12 @@ case "$host_os" in
 linux*)
        opsys=linux
        AC_DEFINE([LINUX], 1, [Define for the Linux operating system.])
+       AM_CONDITIONAL([LINUX], [test x$opsys = xlinux])
        ;;
 sunos4*)
        opsys=sunos4
        AC_DEFINE([SUNOS4], 1, [Define for the SunOS 4.x operating system.])
+       AM_CONDITIONAL([SUNOS4], [test x$opsys = xsunos4])
        ;;
 solaris2* | sysv[[45]]* | irix[[56]]*)
        opsys=svr4
@@ -29,10 +31,12 @@ system or a derivative like Solaris 2.x or Irix 5.x.])
                AC_DEFINE(UNIXWARE, 7, [Define for UnixWare systems.])
                ;;
        esac
+       AM_CONDITIONAL([SVR4], [test x$opsys = xsvr4])
        ;;
 freebsd*)
        opsys=freebsd
        AC_DEFINE([FREEBSD], 1, [Define for the FreeBSD operating system.])
+       AM_CONDITIONAL([FREEBSD], [test x$opsys = xfreebsd])
        ;;
 *)
        AC_MSG_RESULT([NO!])
@@ -102,14 +106,8 @@ x86?64*)
 esac
 AC_MSG_RESULT($arch)
 
-osarch="$opsys"
-if test -r "$srcdir/$opsys/$arch/Makefile.in"; then
-       osarch="$opsys/$arch"
-fi
-
 AC_SUBST(opsys)
 AC_SUBST(arch)
-AC_SUBST(osarch)
 
 CFLAGS="-D_GNU_SOURCE $CFLAGS"
 AC_PROG_CC
@@ -194,5 +192,5 @@ AC_CHECK_DECLS([sys_siglist, _sys_siglist],,, [#include <signal.h>])
 
 AC_PATH_PROG([PERL], [perl])
 
-AC_CONFIG_FILES([Makefile $osarch/Makefile])
+AC_CONFIG_FILES([Makefile])
 AC_OUTPUT