From 29b66b8ec360eea80b14e2cd2c3a4edf1309dbdb Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 20 Jun 2009 23:03:32 +0000 Subject: Install libc substitute headers only if really needed. And only to the correct path. --- Makefile.am | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 0ceed26..1705888 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,6 +6,16 @@ libax25ioincludedir = $(includedir) INCLUDES = -DAX25_SYSCONFDIR=\""$(sysconfdir)/ax25/"\" \ -DAX25_LOCALSTATEDIR=\""$(localstatedir)/ax25/"\" +if !AX25_H +USE_LIBAX25_AX25_H = netax25/ax25.h +endif +if !NETROM_H +USE_LIBAX25_NETROM_H = netrom/netrom.h +endif +if !ROSE_H +USE_LIBAX25_ROSE_H = netrose/rose.h +endif + nobase_libax25include_HEADERS = \ netax25/axlib.h \ netax25/axconfig.h \ @@ -14,10 +24,10 @@ nobase_libax25include_HEADERS = \ netax25/daemon.h \ netax25/ttyutils.h \ netax25/procutils.h \ - netax25/kernel_ax25.h \ - netax25/kernel_rose.h \ - netax25/kernel_netrom.h \ - netax25/mheard.h + netax25/mheard.h \ + $(USE_LIBAX25_AX25_H) \ + $(USE_LIBAX25_NETROM_H) \ + $(USE_LIBAX25_ROSE_H) nobase_libax25ioinclude_HEADERS = \ netax25/ax25io.h @@ -40,8 +50,8 @@ libax25_la_SOURCES = \ netax25/rsconfig.h \ ttyutils.c \ netax25/ttyutils.h \ - netax25/kernel_ax25.h \ - netax25/kernel_rose.h + $(USE_LIBAX25_AX25_H) \ + $(USE_LIBAX25_ROSE_H) libax25io_la_SOURCES = \ ax25io.c \ -- cgit v1.2.3