diff options
author | Ranjith Kumaran <ranjith@cygnus.com> | 2000-03-17 22:48:54 +0000 |
---|---|---|
committer | Ranjith Kumaran <ranjith@cygnus.com> | 2000-03-17 22:48:54 +0000 |
commit | 03261851a10dd2d6900a0a00a7515a0a46fb5d76 (patch) | |
tree | 7c22ac6cbbc99fd5cd1b5426853be8d4fd7bfcf1 /libgloss/testsuite/libgloss.all/configure.in | |
parent | fae4c299f14fc23e2829c8656992eba21f79242a (diff) | |
download | cygnal-03261851a10dd2d6900a0a00a7515a0a46fb5d76.tar.gz cygnal-03261851a10dd2d6900a0a00a7515a0a46fb5d76.tar.bz2 cygnal-03261851a10dd2d6900a0a00a7515a0a46fb5d76.zip |
20000317 sourceware import
Diffstat (limited to 'libgloss/testsuite/libgloss.all/configure.in')
-rw-r--r-- | libgloss/testsuite/libgloss.all/configure.in | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/libgloss/testsuite/libgloss.all/configure.in b/libgloss/testsuite/libgloss.all/configure.in new file mode 100644 index 000000000..d51e60224 --- /dev/null +++ b/libgloss/testsuite/libgloss.all/configure.in @@ -0,0 +1,54 @@ +# This file is a shell script fragment that supplies the information +# necessary to tailor a template configure script into the configure +# script appropriate for this directory. For more information, check +# any existing configure script. + +srctrigger=io.c +srcname="libgloss testsuite" +target_dependent=true + +# per-host: + +# This is basically a hack so that we don't have to replicate the same +# defines in all the Makefiles. We put a standard set of definitions +# in host/any, and use them everywhere except DOS, which is braindead. + +host_makefile_frag=../../config/default.mh +case "${host}" in + i[3456]86-*-go32) + host_makefile_frag=../../config/dos.mh + ;; +esac + +# per-target: +case "${target}" in + m68*-unknown-*) + target_makefile_frag=../config/m68k.mt + ;; + hppa*-*-pro*) + target_makefile_frag=../config/hppa.mt + ;; + sparclite-*-*) + target_makefile_frag=../config/sparcl.mt + ;; + mips*-*-*) + target_makefile_frag=../config/mips.mt + ;; +esac + +# post-target: + +case ${srcdir} in + .) + ;; + *) + grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \ + echo "source ${srcdir}/.gdbinit" >> .gdbinit +esac + +objroot=`pwd | sed -e 's@/[^/]*$@@' -e 's@/[^/]*$@@' -e 's@/[^/]*$@@'` +srcroot=`echo $srcdir | sed -e 's@/[^/]*$@@' -e 's@/[^/]*$@@' -e 's@/[^/]*$@@'` +sed -e "s:^OBJROOT[ ]*=.*$:OBJROOT = ${objroot}:" -e "s:^SRCROOT[ ]*=.*$:SRCROOT = ${srcroot}:" \ + ${Makefile} > Makefile.tem +rm -f ${Makefile} +mv Makefile.tem ${Makefile} |