From 246e9777f5dbb151c788a30572378054c74c7386 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Mon, 23 Sep 1996 06:45:32 +0200
Subject: [PATCH] ARGH! BORT!

Rev: src/modules/image/Makefile.in:1.2(DEAD)
Rev: src/modules/image/configure.in:1.2
Rev: src/modules/image/font.c:1.2
---
 src/modules/image/Makefile.in  | 79 ----------------------------------
 src/modules/image/configure.in |  2 +
 src/modules/image/font.c       |  6 ++-
 3 files changed, 6 insertions(+), 81 deletions(-)
 delete mode 100644 src/modules/image/Makefile.in

diff --git a/src/modules/image/Makefile.in b/src/modules/image/Makefile.in
deleted file mode 100644
index c04a34c52e..0000000000
--- a/src/modules/image/Makefile.in
+++ /dev/null
@@ -1,79 +0,0 @@
-SRCDIR=@srcdir@
-VPATH=@srcdir@:@srcdir@/../..:../..
-PREFLAGS=-I$(SRCDIR) -I$(SRCDIR)/../.. -I../..
-CFLAGS=$(PREFLAGS) $(OTHERFLAGS) @DEFS@
-
-FILES=image.o font.o quant.o lzw.o togif.o
-
-image.a: $(FILES)
-	-rm -f image.a
-	ar cq image.a $(FILES)
-	-@RANLIB@ image.a
-
-clean:
-	-rm -f *.o *.a
-
-pike: image.a
-	cd ../..; make
-
-pure: image.a
-	cd ../..; make pure
-
-
-depend:
-	gcc -MM $(PREFLAGS) $(SRCDIR)/*.c | $(FIXDEP) $(SRCDIR)
-
-# Depencies begin here
-font.o: font.c \
- global.h machine.h \
- config.h \
- port.h \
- stralloc.h \
- macros.h \
- object.h \
- svalue.h \
- constants.h \
- hashtable.h \
- las.h \
- dynamic_buffer.h \
- program.h \
- interpret.h \
- array.h \
- image.h
-image.o: image.c \
- stralloc.h \
- types.h machine.h \
- global.h \
- config.h \
- port.h \
- macros.h \
- object.h \
- svalue.h \
- constants.h \
- hashtable.h \
- las.h \
- dynamic_buffer.h \
- program.h \
- interpret.h \
- array.h \
- error.h \
- image.h
-lzw.o: lzw.c \
- lzw.h
-quant.o: quant.c \
- types.h machine.h \
- image.h \
- error.h \
- svalue.h \
- global.h \
- config.h \
- port.h
-togif.o: togif.c \
- stralloc.h \
- types.h machine.h \
- global.h \
- config.h \
- port.h \
- dynamic_buffer.h \
- image.h \
- lzw.h
diff --git a/src/modules/image/configure.in b/src/modules/image/configure.in
index fcaf3dc941..8f7f9ec818 100644
--- a/src/modules/image/configure.in
+++ b/src/modules/image/configure.in
@@ -3,6 +3,8 @@ AC_INIT(image.c)
 AC_PROG_CC
 AC_PROG_RANLIB
 
+AC_CHECK_HEADER(sys/fcntl.h fcntl.h)
+
 AC_SUBST(RANLIB)
 
 AC_OUTPUT(Makefile,echo FOO >stamp-h )
diff --git a/src/modules/image/font.c b/src/modules/image/font.c
index 489403dda4..0152fa2cf5 100644
--- a/src/modules/image/font.c
+++ b/src/modules/image/font.c
@@ -3,9 +3,11 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-#ifdef _AIX
+#ifdef HAVE_FCNTL_H
 #include <fcntl.h>
-#else
+#endif
+
+#ifdef HAVE_SYS_FCNTL_H
 #include <sys/fcntl.h>
 #endif
 
-- 
GitLab