Improve TCL detection (for Ubuntu Feisty) and use tclConfig.sh for header file location
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9886 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
aa32a6b094
commit
665917ebae
1 changed files with 6 additions and 4 deletions
10
configure.in
10
configure.in
|
|
@ -470,9 +470,11 @@ if test x"${with_tclconfig}" != x ; then
|
||||||
fi
|
fi
|
||||||
# check in a few common install locations
|
# check in a few common install locations
|
||||||
if test x"${TCLCONFIG}" = x ; then
|
if test x"${TCLCONFIG}" = x ; then
|
||||||
for i in `ls -d /usr/lib 2>/dev/null` \
|
for i in `ls -d /usr/lib/ 2>/dev/null` \
|
||||||
`ls -d /usr/local/lib 2>/dev/null` ; do
|
`ls -d -r /usr/lib/tcl*/ 2>/dev/null` \
|
||||||
if test -f "$i/tclConfig.sh" ; then
|
`ls -d /usr/local/lib/ 2>/dev/null` \
|
||||||
|
`ls -d -r /usr/local/lib/tcl*/ 2>/dev/null` ; do
|
||||||
|
if test -f $i"tclConfig.sh" ; then
|
||||||
TCLCONFIG=`(cd $i; pwd)`
|
TCLCONFIG=`(cd $i; pwd)`
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
@ -484,7 +486,7 @@ else
|
||||||
AC_MSG_RESULT(found $TCLCONFIG/tclConfig.sh)
|
AC_MSG_RESULT(found $TCLCONFIG/tclConfig.sh)
|
||||||
. $TCLCONFIG/tclConfig.sh
|
. $TCLCONFIG/tclConfig.sh
|
||||||
if test -z "$TCLINCLUDE"; then
|
if test -z "$TCLINCLUDE"; then
|
||||||
TCLINCLUDE=$ISYSTEM$TCL_PREFIX/include
|
TCLINCLUDE=`echo $TCL_INCLUDE_SPEC | sed "s/-I/$ISYSTEM/"`
|
||||||
fi
|
fi
|
||||||
if test -z "$TCLLIB"; then
|
if test -z "$TCLLIB"; then
|
||||||
TCLLIB=$TCL_LIB_SPEC
|
TCLLIB=$TCL_LIB_SPEC
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue