[dovecot-cvs] dovecot Makefile.am, 1.9, 1.10 configure.in, 1.323, 1.324 dovecot-config.in.in, 1.2, 1.3

tss at dovecot.org tss at dovecot.org
Thu Feb 22 21:50:48 UTC 2007


Update of /var/lib/cvs/dovecot
In directory talvi:/tmp/cvs-serv26850

Modified Files:
	Makefile.am configure.in dovecot-config.in.in 
Log Message:
Added --with-headers configure option to install .h files.



Index: Makefile.am
===================================================================
RCS file: /var/lib/cvs/dovecot/Makefile.am,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Makefile.am	16 Jun 2006 09:25:19 -0000	1.9
+++ Makefile.am	22 Feb 2007 21:50:46 -0000	1.10
@@ -14,10 +14,18 @@
 	COPYING.MIT \
 	$(conf_DATA)
 
-noinst_DATA = dovecot-config
+if INSTALL_HEADERS
+  pkginclude_HEADERS = config.h
+  pkglib_DATA = dovecot-config
+else
+  noinst_HEADERS = $(headers)
+  noinst_DATA = dovecot-config
+endif
 
-dovecot-config: dovecot-config.in
-	cat dovecot-config.in|sed "s|moduledir=|moduledir=$(moduledir)|" > dovecot-config
+dovecot-config: dovecot-config.in Makefile
+	cat dovecot-config.in | sed \
+	-e "s|^moduledir=|moduledir=$(moduledir)|" \
+	-e "s|^dovecot_incdir=|dovecot_incdir=$(pkgincludedir)|" > dovecot-config
 
 CLEANFILES = $(noinst_DATA)
 

Index: configure.in
===================================================================
RCS file: /var/lib/cvs/dovecot/configure.in,v
retrieving revision 1.323
retrieving revision 1.324
diff -u -d -r1.323 -r1.324
--- configure.in	17 Feb 2007 12:28:27 -0000	1.323
+++ configure.in	22 Feb 2007 21:50:46 -0000	1.324
@@ -357,6 +357,16 @@
 	want_docs=yes)
 AM_CONDITIONAL(BUILD_DOCS, test "$want_docs" = "yes")
 
+AC_ARG_WITH(headers,
+[  --with-headers          Install development headers],
+	if test x$withval = xno; then
+		want_headers=no
+	else
+		want_headers=yes
+	fi,
+	want_headers=no)
+AM_CONDITIONAL(INSTALL_HEADERS, test "$want_headers" = "yes")
+
 dnl * gcc specific options
 if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
 	# -Wcast-qual -Wcast-align -Wconversion -Wunreachable-code # too many warnings

Index: dovecot-config.in.in
===================================================================
RCS file: /var/lib/cvs/dovecot/dovecot-config.in.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- dovecot-config.in.in	16 Jun 2006 09:25:19 -0000	1.2
+++ dovecot-config.in.in	22 Feb 2007 21:50:46 -0000	1.3
@@ -6,4 +6,5 @@
 RAND_LIBS="@RAND_LIBS@"
 MODULE_LIBS="@MODULE_LIBS@"
 
+dovecot_incdir=
 moduledir=



More information about the dovecot-cvs mailing list