aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/adesklets/files/patch-configure
blob: b8915ff11115cbbbd69ce852ac0d7e27feeb94be (plain) (blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--- configure.orig  2006-03-31 05:19:07.000000000 +0400
+++ configure   2008-03-15 00:14:53.000000000 +0300
@@ -5352,7 +5352,8 @@
 UNAME_REDUX=`uname -r -s | sed 's/\..*//' 2> /dev/null`
 if test "$UNAME_REDUX" != 'FreeBSD 5' && \
    test "$UNAME_REDUX" != 'FreeBSD 6' && \
-   test "$UNAME_REDUX" != 'FreeBSD 7'
+   test "$UNAME_REDUX" != 'FreeBSD 7' && \
+   test "$UNAME_REDUX" != 'FreeBSD 8'
 then
 
 cat >>confdefs.h <<\_ACEOF
@@ -6735,13 +6736,13 @@
 echo "${ECHO_T}no" >&6
 fi
 
-if ! test x$PKG_CONFIG = "x" ; then
+if ! test "x$PKG_CONFIG" = "x" ; then
    if $PKG_CONFIG --exists fontconfig 2> /dev/null; then
       FONTCONFIG_LIBS=`pkg-config --libs fontconfig`
       FONTCONFIG_CFLAGS=`pkg-config --cflags fontconfig`
    fi
 fi
-if test x$FONTCONFIG_LIBS = "x"; then
+if test "x$FONTCONFIG_LIBS" = "x"; then
    FONTCONFIG_LIBS=-lfontconfig
 fi
 LIBS="$LIBS $FONTCONFIG_LIBS"
@@ -7367,11 +7368,11 @@
      IMLIB2_LIBS="`$IMLIB2_CONFIG $imlib2_config_args --libs`"
 
         imlib2_config_major_version=`$IMLIB2_CONFIG $imlib2_config_args \
-         --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
+         --version | sed -E -e 's/[^0-9]*([0-9]+).*/\1/'`
         imlib2_config_minor_version=`$IMLIB2_CONFIG $imlib2_config_args \
-         --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
+         --version | sed -E -e 's/[^0-9]*([0-9]+)\.([0-9]+).*/\2/'`
         imlib2_config_micro_version=`$IMLIB2_CONFIG $imlib2_config_args \
-         --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
+         --version | sed -E -e 's/[^0-9]*([0-9]+)\.([0-9]+)\.([0-9]+).*/\3/'`
         imlib2_wanted_major_version="1"
         imlib2_wanted_minor_version="1"
         imlib2_wanted_micro_version="2"
@@ -7441,11 +7442,11 @@
 echo $ECHO_N "checking for imlib2 - version >= 1.2.0... $ECHO_C" >&6
 
         imlib2_config_major_version=`$IMLIB2_CONFIG $imlib2_config_args \
-         --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
+         --version | sed -E -e 's/[^0-9]*([0-9]+).*/\1/'`
         imlib2_config_minor_version=`$IMLIB2_CONFIG $imlib2_config_args \
-         --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
+         --version | sed -E -e 's/[^0-9]*([0-9]+)\.([0-9]+).*/\2/'`
         imlib2_config_micro_version=`$IMLIB2_CONFIG $imlib2_config_args \
-         --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
+         --version | sed -E -e 's/[^0-9]*([0-9]+)\.([0-9]+)\.([0-9]+).*/\3/'`
         imlib2_wished_major_version="1"
         imlib2_wished_minor_version="2"
         imlib2_wished_micro_version="0"