#!/bin/sh
-# $Id: buildconf.sh,v 1.4 2000-12-07 13:27:14 adam Exp $
-aclocal -I .
-libtoolize --force
-automake -a
+# $Id: buildconf.sh,v 1.9 2002-09-10 12:00:20 adam Exp $
+set -x
+dir=`aclocal --print-ac-dir`
+if [ -f $dir/yaz.m4 ]; then
+ aclocal
+else
+ aclocal -I .
+fi
+libtoolize --force
+automake -a
autoconf
+if [ -f config.cache ]; then
+ rm config.cache
+fi