Created idzebra-config that returns compiler flags and libs
[idzebra-moved-to-github.git] / configure.in
index e1223d1..100c591 100644 (file)
@@ -1,8 +1,9 @@
 dnl Zebra, Index Data Aps, 1995-2004
-dnl $Id: configure.in,v 1.89 2004-03-09 15:12:14 adam Exp $
+dnl $Id: configure.in,v 1.96 2004-08-29 12:31:32 adam Exp $
 dnl
-AC_INIT(include/zebraver.h)
-AM_INIT_AUTOMAKE(idzebra,1.3.15)
+AC_INIT(include/idzebra/version.h)
+AM_INIT_AUTOMAKE(idzebra,1.4.0)
+AM_PROG_LIBTOOL
 dnl ------ Substitutions
 AC_SUBST(TCL_INCLUDE)
 AC_SUBST(TCL_LIB)
@@ -361,6 +362,10 @@ AC_STDC_HEADERS
 if test "$ac_cv_header_stdc" = "no"; then
        AC_MSG_WARN(Your system doesn't seem to support ANSI C)
 fi
+AC_SUBST(IDZEBRA_SRC_ROOT)
+AC_SUBST(IDZEBRA_BUILD_ROOT)
+IDZEBRA_SRC_ROOT=`cd ${srcdir}; pwd`
+IDZEBRA_BUILD_ROOT=`pwd`
 dnl ------ Create Makefiles
 AC_OUTPUT([
   Makefile
@@ -371,13 +376,12 @@ AC_OUTPUT([
   isamb/Makefile
   isams/Makefile
   isamc/Makefile
-  isam/Makefile
   rset/Makefile
   data1/Makefile
   recctrl/Makefile
   recctrl/perlread.h
   index/Makefile
-  include/Makefile
+  include/Makefile include/idzebra/Makefile
   tab/Makefile
   doc/Makefile
   doc/zebra.xml
@@ -390,10 +394,11 @@ AC_OUTPUT([
   test/config/Makefile
   perl/Makefile.PL test/xelm/Makefile
   test/dmoz/Makefile test/xpath/Makefile test/sort/Makefile test/zsh/Makefile
-  test/marcxml/Makefile test/charmap/Makefile
+  test/marcxml/Makefile test/charmap/Makefile test/codec/Makefile
   examples/Makefile examples/gils/Makefile examples/zthes/Makefile
   idzebra.spec
-])
+  idzebra-config
+],[sed s%idzebra_echo_source=yes%idzebra_echo_source=no%g < idzebra-config > util/idzebra-config && chmod +x idzebra-config util/idzebra-config])
 if test -x "$perlbin"; then
        res=`cd perl ; $perlbin Makefile.PL ; cd .. ;`;
 fi