Better configure help.
[idzebra-moved-to-github.git] / configure.in
index c4e4371..a5aa931 100644 (file)
@@ -1,5 +1,5 @@
 dnl Zebra, Index Data Aps, 1994-1999
-dnl $Id: configure.in,v 1.12 1999-12-01 13:30:30 adam Exp $
+dnl $Id: configure.in,v 1.15 2000-02-04 08:49:26 adam Exp $
 dnl See the file LICENSE.2 for details.
 dnl
 AC_INIT(include/zebraver.h)
@@ -20,6 +20,13 @@ AC_PROG_CPP
 AC_PROG_INSTALL
 AC_PROG_RANLIB
 dnl
+dnl ------ Create sub directory lib/bin
+if test ! -d lib; then
+       mkdir lib
+fi
+if test ! -d bin; then
+       mkdir bin
+fi
 dnl ------ Build root
 AC_SUBST(build_root)
 AC_ARG_WITH(build-root, [  --with-buildroot        RPM Build root],[build_root=$withval],[build_root=""])
@@ -30,7 +37,7 @@ dnl use ../yaz if is a directory (internal development); otherwise
 dnl use yaz-config found in PATH.
 yazconfig=NONE
 yazpath=NONE
-AC_ARG_WITH(yazconfig, [  --with-yazconfig        Path for yaz-config], [yazpath=$withval])
+AC_ARG_WITH(yazconfig, [  --with-yazconfig=DIR    yaz-config in DIR (example /home/yaz-1.5)], [yazpath=$withval])
 if test "x$yazpath" != "xNONE"; then
        yazconfig=$yazpath/yaz-config
 else
@@ -60,15 +67,15 @@ dnl disable Tcl.
 TCL_LIB=""
 TCL_INCLUDE=""
 tclconfig=NONE
-AC_ARG_WITH(tclconfig, [  --with-tclconfig        Path for tclConfig.sh], [tclconfig=$withval])
+AC_ARG_WITH(tclconfig, [  --with-tclconfig=DIR    tclConfig.sh in DIR], [tclconfig=$withval])
 if test "x$tclconfig" = xNONE; then
        saveprefix=${prefix}
        AC_PREFIX_PROGRAM(tclsh)
        tclconfig=${prefix}/lib
        prefix=${saveprefix}
 fi
+AC_MSG_CHECKING(for Tcl)
 if test -r ${tclconfig}/tclConfig.sh; then
-       AC_MSG_CHECKING(for Tcl)
        . ${tclconfig}/tclConfig.sh
        if test -r ${tclconfig}/../generic/tcl.h; then
                TCL_INCLUDE=-I${tclconfig}/../generic
@@ -84,6 +91,7 @@ if test -r ${tclconfig}/tclConfig.sh; then
         AC_MSG_RESULT($TCL_VERSION)
        ODEFS="-DHAVE_TCL_H=1"
 else
+        AC_MSG_RESULT(Not found)
        ODEFS="-DHAVE_TCL_H=0"
 fi
 dnl
@@ -117,16 +125,16 @@ else
  ../lib/recctrl.a ../lib/bfile.a ../lib/dfa.a\
  ../lib/zebrautl.a"
        AC_DEFINE(ZMBOL,0)
-       if ! test -d isamc; then
+       if test ! -d isamc; then
                mkdir isamc
        fi
-       if ! test -r isamc/Makefile.in; then
+       if test ! -r isamc/Makefile.in; then
                touch isamc/Makefile.in
        fi
-       if ! test -d isam; then
+       if test ! -d isam; then
                mkdir isam
        fi
-       if ! test -r isam/Makefile.in; then
+       if test ! -r isam/Makefile.in; then
                touch isam/Makefile.in
        fi
 fi