I'm trying to check for the presence of expect.h using autoconf. In my
configure.in file I have the line:
AC_CHECK_HEADERS(expect.h)
I have expect installed, and the program compiles without problems, but
the header check fails when I run configure. The relevant lines from
config.log are:
configure:3104: checking for expect.h
configure:3114: gcc -E conftest.c >/dev/null 2>conftest.out
In file included from /usr/include/tclRegexp.h:14,
from /usr/include/expect_comm.h:95,
from /usr/include/expect.h:14,
from configure:3110:
/usr/include/tcl.h:221: warning: `EXTERN' redefined
/usr/include/expect_comm.h:79: warning: this is the location of the
previous def
inition
configure: failed program was:
#line 3109 "configure"
#include "confdefs.h"
#include <expect.h>
(tcl.h is included by expect.h)
Can anyone suggest a way to get around this problem, so that configure
recognizes that expect.h is present? Do I have to write a custom autoconf
check? Are there any software packages that use autoconf to check for
expect, that I can use as models? Thanks!
-Ted
--
Ted Belding [EMAIL PROTECTED]
University of Michigan Center for the Study of Complex Systems
Homepage: http://www-personal.umich.edu/~streak/
PGP key: http://www-personal.umich.edu/~streak/pgp-key.html
--
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null