Re: Netfilter API and libiptc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 12, 2009 at 11:42:08AM +0100, thus spake Jesper Dangaard Brouer:
> Whats missing is that the libiptc.h header file should be installed.
> My patch below is not doing the right thing. I don't know automake well  
> enough, to make it create a directory libiptc/ under include/ where it  
> should install libiptc.h.

See the attached patch.  The idea is to add a Makefile.am into include/ and
then use the nobase_ prefix to prevent automake from stripping the
subdirectory name from the files.

-- 
Sex on TV doesn't hurt....unless you fall off.
diff --git a/Makefile.am b/Makefile.am
index dbdfa97..3ea4a69 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -79,7 +79,8 @@ man_MANS         = iptables.8 iptables-restore.8 iptables-save.8 \
                    ip6tables-save.8
 CLEANFILES       = iptables.8 ip6tables.8
 if ENABLE_DEVEL
-include_HEADERS  = include/xtables.h
+SUBDIRS += include
+#nobase_include_HEADERS  = include/xtables.h include/libiptc/libiptc.h
 endif
 
 if ENABLE_STATIC
diff --git a/configure.ac b/configure.ac
index 888ba42..96a2c8d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,6 +78,6 @@ AC_SUBST([libxtables_vage])
 libxtables_vmajor=$(($libxtables_vcurrent - $libxtables_vage));
 AC_SUBST([libxtables_vmajor])
 
-AC_CONFIG_FILES([Makefile extensions/GNUmakefile libipq/Makefile
+AC_CONFIG_FILES([Makefile extensions/GNUmakefile include/Makefile libipq/Makefile
 	include/xtables.h include/iptables/internal.h xtables.pc])
 AC_OUTPUT
diff --git a/include/Makefile.am b/include/Makefile.am
new file mode 100644
index 0000000..7564466
--- /dev/null
+++ b/include/Makefile.am
@@ -0,0 +1 @@
+nobase_include_HEADERS = xtables.h libiptc/libiptc.h

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux