summaryrefslogtreecommitdiff
path: root/package/pcrepp/patches/patch-configure
blob: da7ab7b3e42189f1e9b37e7f6a181b1e803c8305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- pcre++-0.9.5.orig/configure	2004-08-25 01:38:03.000000000 +0200
+++ pcre++-0.9.5/configure	2014-03-17 20:07:03.000000000 +0100
@@ -3844,7 +3844,7 @@ irix5* | irix6* | nonstopux*)
   ;;
 
 # This must be Linux ELF.
-linux-gnu*)
+linux-*)
   case $host_cpu in
   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
     lt_cv_deplibs_check_method=pass_all ;;
@@ -6598,7 +6598,7 @@ linux-gnuoldld* | linux-gnuaout* | linux
   ;;
 
 # This must be Linux ELF.
-linux-gnu*)
+linux-*)
   version_type=linux
   need_lib_prefix=no
   need_version=no
@@ -8612,7 +8612,7 @@ if test "x$with_pcre_include" = "x"; the
 			CPPFLAGS="$CPPFLAGS -I/include"
 			;;
 	*-*-linux*)
-			CPPFLAGS="$CPPFLAGS `pcre-config --cflags` -I/usr/include -I/usr/local/include"
+			CPPFLAGS="$CPPFLAGS `pcre-config --cflags`"
 			;;
 	*-*-freebsd*)
 			CPPFLAGS="$CPPFLAGS `pcre-config --cflags` -I/usr/local/include"
@@ -8621,7 +8621,7 @@ if test "x$with_pcre_include" = "x"; the
 			CPPFLAGS="$CPPFLAGS `pcre-config --cflags` -I$prefix/include -I/usr/local/include"
 			;;
 	*)
-			CPPFLAGS="-I/usr/include -I/usr/local/include"
+			CPPFLAGS="$CPPFLAGS `pcre-config --cflags`"
 			;;
    esac
 fi