summaryrefslogtreecommitdiff
path: root/ndb/old_files/configure
blob: f0fc197f45e0b42258a4713efac4c1bfbefb0ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /bin/sh

if [ $# -gt 0 -a "$1" = "-p" ]
then
	shift
	NDB_TOP=$1
	shift
else
	NDB_TOP=`pwd`
fi

cd $NDB_TOP
NDB_TOP=`pwd`

for i in `find . -name 'Makefile' -exec dirname {} \;`
do
    cd $i
    rel_path=.
    while [ $NDB_TOP != `pwd` ]
    do
	rel_path=$rel_path"/.."
	cd ..
    done

    (
		echo "NDB_TOP=$rel_path"
		echo "include $rel_path/Defs.mk"
    ) > $i/.defs.mk
done

( cd config ; aclocal ; automake ; aclocal ; autoconf ; ./configure )
export NDB_TOP
. config/GuessConfig.sh  $*