gnome-user-share/gnome-user-share-httpd-detection.patch

18 lines
714 B
Diff

Index: gnome-user-share-0.40/configure.in
===================================================================
--- gnome-user-share-0.40.orig/configure.in
+++ gnome-user-share-0.40/configure.in
@@ -31,10 +31,10 @@ AC_TYPE_SIGNAL
AC_TYPE_SIZE_T
AC_TYPE_UID_T
-AC_PATH_PROG([HTTPD], [httpd],,
+AC_PATH_PROG([HTTPD], [httpd2],,
[$PATH:/usr/sbin])
-default_httpd_version=`$HTTPD -v | head -1 | sed "s#.*/##" | cut -f 1-2 -d .`
+default_httpd_version=`$HTTPD -v | head -1 | sed "s#^.*Apache/\([^ ]*\).*#\1#" | cut -f 1-2 -d .`
AC_ARG_WITH(httpd-version, [ --with-httpd-version=VERSION Httpd version used.],
HTTPD_VERSION="$withval", HTTPD_VERSION="$default_httpd_version")