From: Roland McGrath Date: Mon, 12 Jul 2004 05:45:08 +0000 (+0000) Subject: 2004-07-11 Roland McGrath X-Git-Tag: v4.5.18~565 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc44e40e2a41c740eb92dfb410af73635709a6a6;p=strace 2004-07-11 Roland McGrath * configure.ac: Add I386 as AM_CONDITIONAL. * Makefile.am [LINUX]: Add maintainer-mode rules to regenerate the ioctlent.h file. --- diff --git a/Makefile.am b/Makefile.am index 5e5f4ae7..6612d2cd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -64,3 +64,27 @@ EXTRA_DIST = $(man_MANS) errnoent.sh signalent.sh syscallent.sh ioctlsort.c \ 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 + +if MAINTAINER_MODE +if LINUX + +IOCTLDIR = /usr/include + +if I386 +ioctlent_h = linux/ioctlent.h +else +ioctlent_h = linux/$(ARCH)/ioctlent.h +endif + +BUILT_SOURCES = $(ioctlent_h) + +$(srcdir)/$(ioctlent_h): ioctlsort + $( $@ +ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h + $(LINK.c) -I. -o $@ $< +ioctls.h: $(srcdir)/linux/ioctlent.sh + $(SHELL) $< $(IOCTLDIR) +ioctldefs.h: ioctls.h ; + +endif +endif diff --git a/configure.ac b/configure.ac index d0f962cd..d7e17617 100644 --- a/configure.ac +++ b/configure.ac @@ -110,6 +110,7 @@ AC_SUBST(opsys) AC_SUBST(arch) AM_CONDITIONAL([LINUX], [test x$opsys = xlinux]) +AM_CONDITIONAL([I386], [test x$arch = xi386]) AM_CONDITIONAL([X86_64], [test x$arch = xx86_64]) AM_CONDITIONAL([SUNOS4], [test x$opsys = xsunos4]) AM_CONDITIONAL([SVR4], [test x$opsys = xsvr4])