#!/bin/sh
-# $Id: buildconf.sh,v 1.1 2001-02-21 09:52:39 adam Exp $
-aclocal -I .
-automake -a
+# $Id: buildconf.sh,v 1.10 2003-05-06 12:09:24 adam Exp $
+set -x
+dir=`aclocal --print-ac-dir`
+if [ -f $dir/yaz.m4 ]; then
+ aclocal
+else
+ aclocal -I .
+fi
+automake -a
+automake -a
autoconf
+if [ -f config.cache ]; then
+ rm config.cache
+fi