1 dnl YAZ++ Toolkit configure script.
2 dnl (c) Index Data ApS 1999
3 dnl See the file LICENSE for details.
4 dnl $Id: configure.in,v 1.4 2000-07-04 13:48:49 adam Exp $
5 AC_INIT(../include/yaz-socket-manager.h)
7 dnl ------ Checking programs
15 dnl ------ Look for Yaz
16 dnl See if user specified location of yaz-config; otherwise
17 dnl use ../yaz if is a directory (internal development); otherwise
18 dnl use yaz-config found in PATH.
23 AC_ARG_WITH(yazconfig, [ --with-yazconfig=DIR yaz-config in DIR (example /home/yaz-1.6)], [yazpath=$withval])
24 if test "x$yazpath" != "xNONE"; then
25 yazconfig=$yazpath/yaz-config
27 for i in ../../yaz* ../../yaz; do
29 if test -r $i/yaz-config; then
30 yazconfig=$i/yaz-config
34 if test "x$yazconfig" = "xNONE"; then
35 AC_PATH_PROG(yazconfig, yaz-config, NONE)
38 AC_MSG_CHECKING(for YAZ)
39 if test -r $yazconfig; then
41 AC_MSG_RESULT($yazconfig)
43 AC_MSG_RESULT(Not found)
47 AC_OUTPUT(Makefile ../src/Makefile)