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
|
||||
# check in a few common install locations
|
||||
if test x"${TCLCONFIG}" = x ; then
|
||||
for i in `ls -d /usr/lib 2>/dev/null` \
|
||||
`ls -d /usr/local/lib 2>/dev/null` ; do
|
||||
if test -f "$i/tclConfig.sh" ; then
|
||||
for i in `ls -d /usr/lib/ 2>/dev/null` \
|
||||
`ls -d -r /usr/lib/tcl*/ 2>/dev/null` \
|
||||
`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)`
|
||||
break
|
||||
fi
|
||||
|
|
@ -484,7 +486,7 @@ else
|
|||
AC_MSG_RESULT(found $TCLCONFIG/tclConfig.sh)
|
||||
. $TCLCONFIG/tclConfig.sh
|
||||
if test -z "$TCLINCLUDE"; then
|
||||
TCLINCLUDE=$ISYSTEM$TCL_PREFIX/include
|
||||
TCLINCLUDE=`echo $TCL_INCLUDE_SPEC | sed "s/-I/$ISYSTEM/"`
|
||||
fi
|
||||
if test -z "$TCLLIB"; then
|
||||
TCLLIB=$TCL_LIB_SPEC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue