2004-07-11 Roland McGrath <roland@redhat.com>

* configure.ac: Add I386 as AM_CONDITIONAL.
	* Makefile.am [LINUX]: Add maintainer-mode rules to regenerate
	the ioctlent.h file.
This commit is contained in:
Roland McGrath 2004-07-12 05:45:08 +00:00
parent d265669557
commit bc44e40e2a
2 changed files with 25 additions and 0 deletions

View File

@ -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
$(<D)/$(<F) > $@
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

View File

@ -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])