8acecbfae5af0138c3a33a8224409fb4ad976fed
[openwrt/svn-archive/archive.git] / net / lighttpd / patches / 500-configure_cross.patch
1 Index: lighttpd-1.4.16/configure
2 ===================================================================
3 --- lighttpd-1.4.16.orig/configure 2007-07-26 11:58:37.000000000 +0200
4 +++ lighttpd-1.4.16/configure 2007-07-26 11:58:37.000000000 +0200
5 @@ -23844,7 +23844,7 @@
6 { echo "$as_me:$LINENO: result: $WITH_PCRE" >&5
7 echo "${ECHO_T}$WITH_PCRE" >&6; }
8
9 -if test "x$cross_compiling" = xno -a "$WITH_PCRE" != "no"; then
10 +if test "$WITH_PCRE" != "no"; then
11 # Extract the first word of "pcre-config", so it can be a program name with args.
12 set dummy pcre-config; ac_word=$2
13 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14 Index: lighttpd-1.4.16/configure.in
15 ===================================================================
16 --- lighttpd-1.4.16.orig/configure.in 2007-07-26 11:58:37.000000000 +0200
17 +++ lighttpd-1.4.16/configure.in 2007-07-26 11:58:37.000000000 +0200
18 @@ -250,7 +250,7 @@
19 [WITH_PCRE=$withval],[WITH_PCRE=yes])
20 AC_MSG_RESULT([$WITH_PCRE])
21
22 -if test "x$cross_compiling" = xno -a "$WITH_PCRE" != "no"; then
23 +if test "$WITH_PCRE" != "no"; then
24 AC_PATH_PROG(PCRECONFIG, pcre-config)
25
26 if test x"$PCRECONFIG" != x; then