1 # This file is a shell script fragment that supplies the information
2 # necessary to tailor a template configure script into the configure
3 # script appropriate for this directory. For more information, check
4 # any existing configure script.
7 srcname="libgloss testsuite"
12 # This is basically a hack so that we don't have to replicate the same
13 # defines in all the Makefiles. We put a standard set of definitions
14 # in host/any, and use them everywhere except DOS, which is braindead.
16 host_makefile_frag=../../config/default.mh
19 host_makefile_frag=../../config/dos.mh
26 target_makefile_frag=../config/m68k.mt
29 target_makefile_frag=../config/hppa.mt
32 target_makefile_frag=../config/sparcl.mt
35 target_makefile_frag=../config/mips.mt
45 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
46 echo "source ${srcdir}/.gdbinit" >> .gdbinit
49 objroot=`pwd | sed -e 's@/[^/]*$@@' -e 's@/[^/]*$@@' -e 's@/[^/]*$@@'`
50 srcroot=`echo $srcdir | sed -e 's@/[^/]*$@@' -e 's@/[^/]*$@@' -e 's@/[^/]*$@@'`
51 sed -e "s:^OBJROOT[ ]*=.*$:OBJROOT = ${objroot}:" -e "s:^SRCROOT[ ]*=.*$:SRCROOT = ${srcroot}:" \
52 ${Makefile} > Makefile.tem
54 mv Makefile.tem ${Makefile}