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

Bug#389562: apache2-redirtoservname: FTBFS with apache 2.2



Package: apache2-redirtoservname
Version: 0.1-1
Tags: patch

Please upload a version of apache2-redirtoservname that compiles and
works with apache 2.2, since that may go into sid and etch soon.  The
main problem is the use of apr-1 instead of apr-0.  You can test with
apache 2.2 in experimental.

The following patch may help, but I can't test it, as I'm getting
mysterious autoconf-related errors which seem to be unrelated to the
patch.

Thanks,
Peter

Index: configure.ac
--- configure.ac
+++ configure.ac
@@ -11,6 +11,18 @@
 AC_PROG_CC
 
 # Checks for libraries.
+if pkg-config --cflags apr-1 >/dev/null 2>&1
+then
+  CPPFLAGS="$CPPFLAGS `pkg-config --cflags apr-1`"
+  LIBS="$LIBS `pkg-config --libs apr-1`"
+elif apr-config --cflags >/dev/null 2>&1
+then
+  CFLAGS="$CFLAGS `apr-config --cflags`"
+  CPPFLAGS="$CPPFLAGS `apr-config --cppflags --includes`"
+  LIBS="$LIBS `apr-config --ldflags --link-ld`"
+else
+  AC_ERROR([Cannot find libapr configuration])
+fi
 
 # Checks for header files.
 
Index: debian/rules
--- debian/rules
+++ debian/rules
@@ -17,7 +17,6 @@
 config.status: configure
 	dh_testdir
 	./configure CFLAGS="$(CFLAGS)" \
-	  CPPFLAGS=-I/usr/include/apr-0 \
 	  --disable-static \
 	  --host=$(DEB_HOST_GNU_TYPE) \
 	  --build=$(DEB_BUILD_GNU_TYPE) \

Attachment: signature.asc
Description: Digital signature


Reply to: