#! /bin/sh

SSL_AREA=/afs/citi.umich.edu/machdep/i386_obsd28/usr
CONFIGURE_OPTIONS="--enable-srclinks --enable-krb5=yes --with-ssl=${SSL_AREA}"

###  Uncomment the next line for debugging
DEBUGDEF="-DDEBUG "

/bin/rm -rf i386_obsd28
/bin/mkdir i386_obsd28
if [ "$1" = "--autoconf" ]; then
        (cd src; \
                autoheader ; \
                /usr/local/bin/autoconf configure.in >configure; \
                chmod a+rx configure \
        )
fi

cd i386_obsd28
CFLAGS="-g ${DEBUGDEF}" ../src/configure ${CONFIGURE_OPTIONS}
make

# allow *binaries* to be seen by members of x509:friends

fs sa lib x509:friends rl
