Added extra presence check for tcl.h, because some systems have
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 9 Oct 2006 22:13:06 +0000 (22:13 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 9 Oct 2006 22:13:06 +0000 (22:13 +0000)
tclConfig.sh installed even though Tcl C headers are missing.

configure.in
perl/lib/IDZebra.pm

index 9c1907f..0b28cfd 100644 (file)
@@ -1,5 +1,5 @@
 dnl Zebra, Index Data Aps, 1995-2006
-dnl $Id: configure.in,v 1.91.2.28 2006-10-04 09:20:14 adam Exp $
+dnl $Id: configure.in,v 1.91.2.29 2006-10-09 22:13:06 adam Exp $
 dnl
 AC_INIT(include/zebraver.h)
 AM_INIT_AUTOMAKE(idzebra,1.3.40)
@@ -74,7 +74,11 @@ if test -r ${tclconfig}/tclConfig.sh; then
         SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
         SHLIB_VERSION=$TCL_SHLIB_VERSION
         AC_MSG_RESULT($TCL_VERSION)
-       AC_DEFINE(HAVE_TCL_H,1)
+
+       old_CPPFLAGS=$CPPFLAGS
+       CPPFLAGS="${TCL_INCLUDE} $CPPFLAGS"
+       AC_CHECK_HEADERS(tcl.h)
+       CPPFLAGS=${old_CPPFLAGS}
 else
         AC_MSG_RESULT(Not found)
        AC_DEFINE(HAVE_TCL_H,0)
index 87d88e5..6d251a9 100644 (file)
@@ -1,4 +1,4 @@
-# This file was created automatically by SWIG 1.3.28.
+# This file was created automatically by SWIG 1.3.29.
 # Don't modify this file, modify the SWIG interface instead.
 package IDZebra;
 require Exporter;