3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- /dev/null 2003-09-23 18:19:32.000000000 -0400
7 +++ obexftp-0.10.3/m4/openobex.m4 2004-03-06 05:10:27.000000000 -0500
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
13 +AC_DEFUN([AM_PATH_OPENOBEX], [
14 + AC_PATH_PROG(OPENOBEX_CONFIG, openobex-config, no)
16 + if test "$OPENOBEX_CONFIG" = "no" ; then
17 + AC_MSG_ERROR(openobex-config not found. Pehaps openobex is not installed.)
20 + min_obex_version=ifelse([$1], ,0.9.6,$1)
21 + AC_MSG_CHECKING(for openobex - version >= $min_obex_version)
23 + OPENOBEX_CFLAGS=`$OPENOBEX_CONFIG --cflags`
24 + OPENOBEX_LIBS=`$OPENOBEX_CONFIG --libs`
26 + obex_config_version=`$OPENOBEX_CONFIG --version`
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/'`
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/'`
43 + if test $obex_req_major_version -lt $obex_config_major_version ; then
44 + obex_config_version_ok="yes"
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"
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"
57 + if test "$obex_config_version_ok" != "yes" ; then
58 + AC_MSG_ERROR(Installed openobex library too old ($obex_config_version))
61 + AC_SUBST(OPENOBEX_CFLAGS)
62 + AC_SUBST(OPENOBEX_LIBS)