[openib-general] [PATCH] osm: avoid override of user given includedir for ib_types.h

Eitan Zahavi eitan at mellanox.co.il
Tue Aug 16 08:19:23 PDT 2005


Hi Hal

The include/iba/ib_types.h used override of the includedir variable
which was overriding any user given --include-dir to the configure.

The fix uses pkginclude to add "infiniband" as the package subdirectory.

I tested the patch on :
2.6.12.3-smp SuSE Linux 9.3 (i586)

Signed-off-by:  Eitan Zahavi <eitan at mellanox.co.il>

Index: include/configure.in
===================================================================
--- include/configure.in	(revision 3107)
+++ include/configure.in	(working copy)
@@ -6,7 +6,7 @@ AC_CONFIG_SRCDIR()
 AC_CONFIG_AUX_DIR(config)
 AM_CONFIG_HEADER(config.h)
 AM_INIT_AUTOMAKE()
-AM_INIT_AUTOMAKE(libinc, 0.9.0)
+AM_INIT_AUTOMAKE(infiniband, 0.9.0)
 AM_PROG_LIBTOOL
 
 dnl Checks for programs
Index: include/Makefile.am
===================================================================
--- include/Makefile.am	(revision 3107)
+++ include/Makefile.am	(working copy)
@@ -1,9 +1,6 @@
-# HACK: as we do not use the standard "prefix/include" subdir
-includedir = ${prefix}/include/infiniband
-
 SUBDIRS = .
 
-nobase_include_HEADERS = iba/ib_types.h
+nobase_pkginclude_HEADERS = iba/ib_types.h
 
 EXTRA_DIST = $(srcdir)/iba/ib_types.h
 




More information about the general mailing list