diff --git a/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/Makefile.am b/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/Makefile.am index dd87335016d..efd24311de9 100644 --- a/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/Makefile.am +++ b/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/Makefile.am @@ -1 +1,2 @@ SUBDIRS=$(libName) include exampleProgram +ACLOCAL_AMFLAGS=-I m4 diff --git a/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/configure.ac b/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/configure.ac index 85c2c362651..db600beea03 100644 --- a/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/configure.ac +++ b/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/configure.ac @@ -6,6 +6,8 @@ AC_PROG_CC AC_CANONICAL_SYSTEM +AC_CONFIG_MACRO_DIR([m4]) + dnl Initialize automake AM_INIT_AUTOMAKE @@ -15,10 +17,6 @@ AM_PROG_CC_C_O dnl Initialize Libtool LT_INIT -dnl Check if Libtool is present -dnl Libtool is used for building share libraries -AC_PROG_LIBTOOL - AC_CONFIG_FILES(Makefile exampleProgram/Makefile $(libName)/Makefile diff --git a/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/exampleProgram/Makefile.am b/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/exampleProgram/Makefile.am index 9c61633ad4d..2b6dd211636 100644 --- a/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/exampleProgram/Makefile.am +++ b/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/exampleProgram/Makefile.am @@ -15,11 +15,16 @@ noinst_PROGRAMS=exampleProgram # replaced by '_'. So a.out becomes a_out and the appropriate suffex added. # '_SOURCES' for example. +ACLOCAL_AMFLAGS=-I ../m4 + # Sources for the a.out exampleProgram_SOURCES= exampleProgram.c +# Libraries for a.out +exampleProgram_LDADD = $(top_srcdir)/$(libName)/$(libName).la + # Linker options for a.out -exampleProgram_LDFLAGS = $(top_srcdir)/$(libName)/$(libName).la +exampleProgram_LDFLAGS = -rpath `cd $(top_srcdir);pwd`/$(libName)/.libs # Compiler options for a.out exampleProgram_CPPFLAGS = -I$(top_srcdir)/include diff --git a/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/template.xml b/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/template.xml index b55e4d86ae8..e9978ef1353 100644 --- a/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/template.xml +++ b/build/org.eclipse.cdt.autotools.ui/templates/projecttemplates/AutotoolsSharedLibraryProject/template.xml @@ -52,6 +52,11 @@ + + + + +