1 dnl IR toolkit for tcl/tk
2 dnl (c) Index Data 1995
3 dnl See the file LICENSE for details.
4 dnl $Id: configure.in,v 1.2 1995-06-21 15:16:43 adam Exp $
10 AC_CHECK_FUNC(connect, tk_checkSocket=0, tk_checkSocket=1)
11 if test "$tk_checkSocket" = 1; then
12 AC_CHECK_LIB(socket, main, LIBS="$LIBS -lsocket", checkBoth=1)
14 if test "$checkBoth" = 1; then
16 LIBS="$LIBS -lsocket -lnsl"
17 AC_CHECK_FUNC(accept, tk_checkNsl=0, [LIBS=$tk_oldLibs])
19 AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"]))
24 AC_CHECK_LIB(tcl, Tcl_Eval, tclFound=1)
25 if test "$tclFound" = 1; then
28 TCLLIB=/usr/local/lib/libtcl.a
32 AC_CHECK_LIB(tk, Tk_MainLoop, tkFound=1,, -ltcl)
33 if test "$tkFound" = 1; then
36 TKLIB=/usr/local/lib/libtk.a
42 AC_MSG_CHECKING(for Yaz directory)
43 AC_ARG_WITH(yazdir,[ --with-yazdir Yaz directory], [YAZDIR=$withval])
44 if test "$YAZDIR" = "yes"; then
46 elif test "$YAZDIR" = ""; then
48 if test -d "../yaz-1.0b"; then
52 AC_MSG_RESULT($YAZDIR)
53 if test ! -d $YAZDIR; then
54 AC_MSG_WARN(Yaz directory doesnt exist)
56 AC_MSG_CHECKING(for MOSI)
57 AC_ARG_WITH(mosidir, [ --with-mosidir MOSI directory], [MOSIDIR=$withval])
58 if test "$MOSIDIR" = "yes"; then
59 MOSIDIR="../xtimosi/src"
60 elif test "$MOSIDIR" = ""; then
61 MOSIDIR="../xtimosi/src"
63 if test -r ${YAZDIR}/lib/librfc.a; then
66 MOSILIB='$(MOSIDIR)/libmosi.a $(YAZDIR)/lib/librfc.a'
74 AC_MSG_RESULT($MOSITELL)
78 if test "x$x_includes" != x; then
79 XINCLUDE=-I$x_includes
83 if test "x$x_libraries" != x; then