~ubuntu-branches/debian/squeeze/sword/squeeze

« back to all changes in this revision

Viewing changes to bindings/swig/package/tcl.m4

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Marsden, Jonathan Marsden, Dmitrijs Ledkovs, Closed Bugs
  • Date: 2009-05-30 11:55:55 UTC
  • mfrom: (1.3.1 upstream) (6.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090530115555-r427zsn3amivdpfu
Tags: 1.6.0+dfsg-1
[ Jonathan Marsden ]
* New upstream release. (Closes: #507960) (LP: #320558)
* debian/patches/02_libver.diff:
  - Bump SONAME to 8 -- SWORD 1.6 is not backward compatible with 1.5.11.
* debian/patches/series:
  - Remove 10_diatheke.diff -- included in upstream source.
* debian/patches/:
  - Remove several old unused .diff files.
  - Add 11_regex_only_when_needed.diff to conditionally include regex lib.
  - Add 12_fix_compiler_warnings.diff to remove all compiler warnings.
  - Add 13_fix_osis2mod_compression_default.diff from upstream svn.
  - Add 14_closing_section_not_chapter.diff from upstream svn.
* debian/libsword7.*: 
  - Rename to libsword8.*
  - Change libsword7 to libsword8 within files.
* debian/rules: 
  - SONAME bump to 8.
  - Set library version check to >= 1.6
* debian/control:
  - Change libsword7 to libsword8.
  - Add libsword7 to Conflicts.
  - Fix case of sword to SWORD in package descriptions.
  - Bump Standards-Version to 3.8.1 (no changes needed).
  - Fix section for libsword-dbg to avoid lintian warning.
* debian/rules:
  - Add DFSG get-orig-source target.
* debian/copyright:
  - Fix various mistakes in initial attempt to document copyrights.

[ Dmitrijs Ledkovs ]
* debian/rules: Added utils.mk to use missing-files target and call it on
  each build.
* debian/libsword-dev.install: Added libsword.la, previously missing.
* debian/libsword7.install: Added missing libicu translit files.
* debian/control:
  - Updated all uses of SWORD version to 1.6
  - Added libsword-dbg package
* debian/watch: Fixed a small mistake which was resulting in extra "."
  in final version name.
* debian/rules: simplified manpage processing.
* debian/libsword8.lintian-overrides: added override for module
  installation directory.
* debian/copyright: Updated with information about everyfile.
  Closes: #513448 LP: #322638
* debian/diatheke.examples: moved examples here from the diatheke.install
* debian/rules:
  - enabled shell script based testsuite
  - added commented out cppunit testsuite
* debian/patches/40_missing_includes.diff: 
  - added several missing stdio.h includes to prevent FTBFS of testsuite.

[ Closed Bugs ]
* FTBFS on intrepid (LP: #305172)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#--------------------------------------------------------------------
 
2
#       Try to locate the Tcl package
 
3
#--------------------------------------------------------------------
 
4
 
 
5
AC_DEFUN(SW_FIND_TCL,
 
6
[
 
7
 
 
8
 
 
9
TCLINCLUDE=
 
10
TCLLIB=
 
11
TCLPACKAGE=
 
12
#TCLSWIG=
 
13
 
 
14
AC_ARG_WITH(tclconfig,[  --with-tclconfig=path  Set location of tclConfig.sh],
 
15
        with_tclconfig="$withval")
 
16
AC_ARG_WITH(tcl,[  --with-tcl=path         Set location of Tcl package],[
 
17
        TCLPACKAGE="$withval"], [TCLPACKAGE=])
 
18
AC_ARG_WITH(tclincl,[  --with-tclincl=path     Set location of Tcl include directory],[
 
19
        TCLINCLUDE="-I$withval"], [TCLINCLUDE=])
 
20
AC_ARG_WITH(tcllib,[  --with-tcllib=path      Set location of Tcl library directory],[
 
21
        TCLLIB="-L$withval"], [TCLLIB=])
 
22
 
 
23
AC_MSG_CHECKING([for Tcl configuration])
 
24
# First check to see if --with-tclconfig was specified.
 
25
if test x"${with_tclconfig}" != x ; then
 
26
   if test -f "${with_tclconfig}/tclConfig.sh" ; then
 
27
      TCLCONFIG=`(cd ${with_tclconfig}; pwd)`
 
28
   else
 
29
      AC_MSG_ERROR([${with_tcl} directory doesn't contain tclConfig.sh])
 
30
   fi
 
31
fi
 
32
# check in a few common install locations
 
33
if test x"${TCLCONFIG}" = x ; then
 
34
    for i in `ls -d /usr/lib 2>/dev/null` \
 
35
             `ls -d ${prefix}/lib 2>/dev/null` \
 
36
            `ls -d /usr/local/lib 2>/dev/null` ; do
 
37
        if test -f "$i/tclConfig.sh" ; then
 
38
            TCLCONFIG=`(cd $i; pwd)`
 
39
            break
 
40
        fi
 
41
    done
 
42
fi
 
43
if test x"${TCLCONFIG}" = x ; then
 
44
    AC_MSG_RESULT(no)
 
45
else
 
46
    AC_MSG_RESULT(found $TCLCONFIG/tclConfig.sh)
 
47
    . $TCLCONFIG/tclConfig.sh
 
48
    TCLINCLUDE=-I$TCL_PREFIX/include
 
49
    TCLLIB=$TCL_LIB_SPEC
 
50
fi
 
51
 
 
52
if test -z "$TCLINCLUDE"; then
 
53
   if test -n "$TCLPACKAGE"; then
 
54
        TCLINCLUDE="-I$TCLPACKAGE/include"
 
55
   fi
 
56
fi
 
57
 
 
58
if test -z "$TCLLIB"; then
 
59
   if test -n "$TCLPACKAGE"; then
 
60
        TCLLIB="-L$TCLPACKAGE/lib -ltcl"
 
61
   fi
 
62
fi
 
63
 
 
64
AC_MSG_CHECKING(for Tcl header files)
 
65
if test -z "$TCLINCLUDE"; then
 
66
AC_TRY_CPP([#include <tcl.h>], , TCLINCLUDE="")
 
67
if test -z "$TCLINCLUDE"; then
 
68
        dirs="$prefix/include /usr/local/include /usr/include /opt/local/include"
 
69
        for i in $dirs ; do
 
70
                if test -r $i/tcl.h; then
 
71
                        AC_MSG_RESULT($i)
 
72
                        TCLINCLUDE="-I$i"
 
73
                        break
 
74
                fi
 
75
        done
 
76
fi
 
77
if test -z "$TCLINCLUDE"; then
 
78
#       TCLINCLUDE="-I/usr/local/include"
 
79
        AC_MSG_RESULT(not found)
 
80
fi
 
81
else
 
82
        AC_MSG_RESULT($TCLINCLUDE)
 
83
fi
 
84
 
 
85
AC_MSG_CHECKING(for Tcl library)
 
86
if test -z "$TCLLIB"; then
 
87
dirs="$prefix/lib /usr/local/lib /usr/lib /opt/local/lib"
 
88
for i in $dirs ; do
 
89
        if test -r $i/libtcl.a; then
 
90
            AC_MSG_RESULT($i)
 
91
            TCLLIB="-L$i -ltcl"
 
92
            break
 
93
        fi
 
94
done
 
95
if test -z "$TCLLIB"; then
 
96
        AC_MSG_RESULT(not found)
 
97
#       TCLLIB="-L/usr/local/lib"
 
98
fi
 
99
else
 
100
AC_MSG_RESULT($TCLLIB)
 
101
fi
 
102
 
 
103
# Only cygwin (Windows) needs the library for dynamic linking
 
104
case $ac_sys_system/$ac_sys_release in
 
105
CYGWIN*) TCLDYNAMICLINKING="$TCLLIB";;
 
106
*)TCLDYNAMICLINKING="";;
 
107
esac
 
108
 
 
109
AC_SUBST(TCLINCLUDE)
 
110
AC_SUBST(TCLLIB)
 
111
AC_SUBST(TCLDYNAMICLINKING)
 
112
#AC_SUBST(TCLSWIG)
 
113
 
 
114
])