![]()
Parent Directory
|
Revision Log
* /bin/sh may not have 'source' * uiaconfig always re-writes /etc/uia/eid.txt * lib must come before uianet in make install
#!/bin/sh
usage () {
echo "uia configure:"
echo "runs autoconf and configure for each uia package"
echo "does not run make'"
echo ""
echo "Usage: ./configure OPTIONS"
echo "configure options:"
echo " --help this message"
echo " --reconfig repeat with prior arguments"
echo " --disable-yam don't build yam (and uianet)"
echo " --disable-sst don't build sst (and netsteria)"
echo " --disable-uianet don't build uianet"
echo " --disable-netsteria don't build neteria"
echo " yam only build yam"
echo " sst only build sst"
echo " netsteria only build netsteria (+deps)"
echo " uianet only build uianet (+deps)"
echo " All other options are passed through to each package's"
echo " configure script"
exit 1
}
yam=y
uianet=y
sst=y
netsteria=y
confargs=''
for arg in $@ ; do
case $arg in
--help)
usage
;;
-h)
usage
;;
-?)
usage
;;
--reconfig)
if test -f ./config.cache ; then
echo "loading old configuration"
. ./config.cache
fi
;;
sst)
sst=y
uianet=n
netsteria=n
yam=n
;;
netsteria)
netsteria=y
sst=y
uianet=n
yam=n
;;
yam)
yam=y
sst=n
netsteria=n
uianet=n
;;
uianet)
yam=y
uianet=y
sst=n
netsteria=n
;;
--disable-yam)
yam=n
uianet=n
;;
--disable-sst)
sst=n
netsteria=n
;;
--disable-uianet)
uianet=n
;;
--disable-netsteria)
netsteria=n
;;
*)
confargs="$confargs $arg"
;;
esac
done
cat > ./config.cache <<EOF
yam=$yam
uianet=$uianet
sst=$sst
netsteria=$netsteria
confargs='$confargs'
EOF
subdirs='SUBDIRS += '
echo "configure values:"
echo " yam=$yam"
echo " uianet=$uianet"
echo " sst=$sst"
echo " netsteria=$netsteria"
echo " confargs=$confargs"
echo "Now running autoconf setup scripts"
#setup each project
test $yam != "y" || (cd yam && ./misc/setup) || exit 1
test $uianet != "y" || (cd uianet && ./misc/setup) || exit 1
test $uianet != "y" || (cd lib && ./misc/setup) || exit 1
test $sst != "y" || (cd sst && ./misc/setup) || exit 1
test $netsteria != "y" || (cd netsteria && ./misc/setup) || exit 1
echo "done with autoconf setup scripts"
if test $yam = "y" ; then
subdirs="$subdirs yam"
(cd yam && ./configure $confargs) || exit 1
fi
if test $sst = "y" ; then
subdirs="$subdirs sst"
(cd sst && ./configure $confargs) || exit 1
fi
if test $uianet = "y" ; then
subdirs="$subdirs lib uianet"
if test $yam = "y" ; then
uiayam="--with-yam=`pwd`/yam"
else
uiayam=""
fi
(cd lib && ./configure $confargs) || exit 1
(cd uianet && ./configure $uiayam $confargs) || exit 1
fi
if test $netsteria = "y" ; then
subdirs="$subdirs netsteria"
if test $sst = "y" ; then
netsteriasst="--with-sst=`pwd`/sst"
else
netsteriasst=""
fi
(cd netsteria && ./configure $netsteriasst $confargs) || exit 1
fi
echo $subdirs > ./Makeconf
| Maintained by PDOS | ViewVC Help |
| Powered by ViewVC 1.0.3 |