#! /bin/sh
# Location of source directory
export srcdir=`cd ..; pwd | sed -e 's,[a-z][:],,g'`

# give now the configure script some hints
topdir=`(cd $srcdir/..; pwd | sed -e 's,[a-z][:],,g';)`
AS=`test -f $DJDIR/bin/as.exe && echo $DJDIR/bin/as.exe`
export AS=${AS-as}
export CC=gcc
export CXX=gpp
export LD=ld
export DEFAULT_LEX=flex
export LEX=flex
export RANLIB=ranlib
export ac_cv_path_install="ginstall -c"
export CONFIG_SHELL=bash
dft_target=i586-pc-msdosdjgpp
#
# just in case
export PATH_SEPARATOR=:
#
$srcdir/configure --srcdir=$srcdir --disable-shared --verbose \
		  --with-gxx-include-dir=\\\${prefix}/lang/cxx \
		  --with-gnu-ld	--target=${target-${dft_target}} \
		  --host=${target-${dft_target}} \
		  --prefix=\\\$\$DJDIR
#
rc=$?
dtou `find . -name Makefile`
exit ${rc}
