]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/openobex-apps/openobex-apps-1.0.0/m4.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / openobex-apps / openobex-apps-1.0.0 / m4.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- /dev/null   2003-09-23 18:19:32.000000000 -0400
7 +++ openobex-apps-1.0.0/m4/openobex.m4  2004-01-26 18:48:04.000000000 -0500
8 @@ -0,0 +1,56 @@
9 +dnl Check for openobex library
10 +dnl Written by Pontus Fuchs 2000-08-18
11 +dnl Version checking fixed by Christian W. Zuckschwerdt 2002-10-17
12 +
13 +AC_DEFUN([AM_PATH_OPENOBEX], [
14 +       AC_PATH_PROG(OPENOBEX_CONFIG, openobex-config, no)
15 +
16 +       if test "$OPENOBEX_CONFIG" = "no" ; then
17 +               AC_MSG_ERROR(openobex-config not found. Pehaps openobex is not installed.)
18 +       fi
19 +
20 +       min_obex_version=ifelse([$1], ,0.9.6,$1)
21 +       AC_MSG_CHECKING(for openobex - version >= $min_obex_version)
22 +
23 +       OPENOBEX_CFLAGS=`$OPENOBEX_CONFIG --cflags`
24 +       OPENOBEX_LIBS=`$OPENOBEX_CONFIG --libs`
25 +
26 +       obex_config_version=`$OPENOBEX_CONFIG --version`
27 +
28 +       obex_config_major_version=`$OPENOBEX_CONFIG --version | \
29 +               sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
30 +       obex_config_minor_version=`$OPENOBEX_CONFIG --version | \
31 +               sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
32 +       obex_config_micro_version=`$OPENOBEX_CONFIG --version | \
33 +               sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
34 +
35 +       obex_req_major_version=`echo $min_obex_version | \
36 +               sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
37 +       obex_req_minor_version=`echo $min_obex_version | \
38 +               sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
39 +       obex_req_micro_version=`echo $min_obex_version | \
40 +               sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
41 +
42 +
43 +       if test $obex_req_major_version -lt $obex_config_major_version ; then
44 +                       obex_config_version_ok="yes"
45 +               fi
46 +       if test $obex_req_major_version -eq $obex_config_major_version ; then
47 +               if test $obex_req_minor_version -lt $obex_config_minor_version ; then
48 +                               obex_config_version_ok="yes"
49 +               fi
50 +               if test $obex_req_minor_version -eq $obex_config_minor_version ; then
51 +                       if test $obex_req_micro_version -le $obex_config_micro_version ; then
52 +                               obex_config_version_ok="yes"
53 +                       fi
54 +               fi
55 +       fi
56 +       
57 +       if test "$obex_config_version_ok" != "yes" ; then
58 +               AC_MSG_ERROR(Installed openobex library too old ($obex_config_version))
59 +       fi
60 +
61 +       AC_SUBST(OPENOBEX_CFLAGS)
62 +       AC_SUBST(OPENOBEX_LIBS)
63 +       AC_MSG_RESULT(yes)
64 +])