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.3 1995-06-22 07:15:59 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, , [LIBS=$tk_oldLibs])
19 AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, main, [LIBS="$LIBS -lnsl"]))
22 AC_CHECK_LIB(tcl, Tcl_Eval, tclFound=1, tclFound=0, -lm)
23 if test "$tclFound" = 1; then
26 TCLLIB=/usr/local/lib/libtcl.a
32 AC_MSG_CHECKING(for YAZ directory)
33 AC_ARG_WITH(yazdir,[ --with-yazdir Yaz directory], [YAZDIR=$withval])
34 if test "$YAZDIR" = "yes"; then
36 elif test "$YAZDIR" = ""; then
38 if test -d "../yaz"; then
42 AC_MSG_RESULT($YAZDIR)
43 if test ! -d $YAZDIR; then
44 AC_MSG_WARN(YAZ directory doesnt exist)
46 AC_MSG_CHECKING(for MOSI)
47 AC_ARG_WITH(mosidir, [ --with-mosidir MOSI directory], [MOSIDIR=$withval])
48 if test "$MOSIDIR" = "yes"; then
49 MOSIDIR="../xtimosi/src"
50 elif test "$MOSIDIR" = ""; then
51 MOSIDIR="../xtimosi/src"
53 if test -r ${YAZDIR}/lib/librfc.a; then
56 MOSILIB='$(MOSIDIR)/libmosi.a $(YAZDIR)/lib/librfc.a'
64 AC_MSG_RESULT($MOSITELL)
68 if test "x$x_includes" != x; then
69 XINCLUDE=-I$x_includes
73 if test "x$x_libraries" != x; then
79 AC_CHECK_LIB(tk, Tk_MainLoop, tkFound=1, tkFound=0, $TCLLIB $XLIB -lX11 -lm)
80 if test "$tkFound" = 1; then
83 TKLIB=/usr/local/lib/libtk.a