Commit | Line | Data |
---|---|---|
698d2280 MB |
1 | The way the configure script determines the version of libwmf is by temporarily |
2 | making dots separator characters, but since the file name of the program which | |
3 | returns the version contains dots in Guix (the version in the store entry name), | |
4 | doing it this way will always fail. | |
5 | ||
6 | This is a simple guix-specific fix for the problem. | |
7 | ||
8 | --- a/configure 2010-06-13 23:17:37.000000000 +0200 | |
9 | +++ b/configure 2014-09-08 17:31:52.102371800 +0200 | |
10 | @@ -21140,13 +21140,11 @@ | |
11 | $as_echo "$as_me: WARNING: wmf plugin: program libwmf-config not found in path" >&2;} | |
12 | fi | |
13 | else | |
14 | - IFS_old="$IFS" | |
15 | - IFS='.' | |
16 | - set -- `$libwmfconfig --version` | |
17 | - libwmf_major_found="${1}" | |
18 | - libwmf_minor_found="${2}" | |
19 | - libwmf_micro_found="${3}" | |
20 | - IFS="$IFS_old" | |
21 | + libwmf_fullver_found=`$libwmfconfig --version` | |
22 | + libwmf_major_found=$(echo $libwmf_fullver_found | cut -d . -f 1) | |
23 | + libwmf_minor_found=$(echo $libwmf_fullver_found | cut -d . -f 2) | |
24 | + libwmf_micro_found=$(echo $libwmf_fullver_found | cut -d . -f 3) | |
25 | + | |
26 | if test "$libwmf_major_found" -gt "$libwmf_major_req"; then | |
27 | wmf_deps="yes" | |
28 | elif test "$libwmf_major_found" -eq "$libwmf_major_req" && |