INN does not install storage.h

Egil Kvaleberg egil at kvaleberg.no
Tue Jan 21 11:56:35 UTC 2003


The INN "make install" installs libstorage.a and indeed the
corresponding man-file, libstorage.3. The man-file shows the proper way
if using libstorage, which begins with including storage.h

Unfortunately, the header files are not included. Which seems not quite
logical, in particular since the man file correctly suggests that the
include file is indeed required to use libstorage.

The attached patch suggests one way of handling this.

The patch is toward INN 2.3.4.

It may be discussed if the include files by default should end up in 
/usr/local/include/inn -- I leave that to the experts.

Egil
------------------------------------------------------------------------
*** Makefile.global.in.orig	Sun Dec 22 23:00:38 2002
--- Makefile.global.in	Tue Jan 21 11:50:11 2003
***************
*** 150,153 ****
--- 150,154 ----
  PATHMAN         = @mandir@
  PATHLIB         = @LIBDIR@
+ PATHINCLUDE     = $(prefix)/include
  PATHCONTROL     = @CONTROLDIR@
  PATHFILTER      = @FILTERDIR@
*** storage/Makefile.orig	Sun Dec 22 23:00:38 2002
--- storage/Makefile	Tue Jan 21 11:48:45 2003
***************
*** 21,25 ****
  	done
  
! install:		all $(D)$(PATHLIB)/libstorage.$(EXTLIB) 
  
  clobber clean:
--- 21,28 ----
  	done
  
! install:                all $(D)$(PATHLIB)/libstorage.$(EXTLIB) \
! 			$(D)$(PATHINCLUDE)/storage.h \
! 			$(D)$(PATHINCLUDE)/libinn.h \
! 			$(D)$(PATHINCLUDE)/config.h
  
  clobber clean:
***************
*** 79,82 ****
--- 82,94 ----
  	$(LI_XPUB) $? $@
  
+ $(D)$(PATHINCLUDE)/storage.h: ../include/storage.h
+ 	$(CP_RPUB) $? $@
+ 
+ $(D)$(PATHINCLUDE)/libinn.h: ../include/libinn.h
+ 	$(CP_RPUB) $? $@
+ 
+ $(D)$(PATHINCLUDE)/config.h: ../include/config.h
+ 	$(CP_RPUB) $? $@
+ 
  ##  Dependencies.  Default list, below, is probably good enough.
  depend:	$(SOURCES)


------------------------------------------------------------------------
 
-- 
Email: egil at kvaleberg.no  
Voice/videophone: +47 22523641 Voice: +47 92022780 Fax: +47 22525899
Mail:  Egil Kvaleberg, Husebybakken 14A, 0379 Oslo, Norway
Home:  http://www.kvaleberg.com/


More information about the inn-bugs mailing list