source: trunk/libs/newlib/src/libgloss/testsuite/libgloss.all/configure.in @ 573

Last change on this file since 573 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.5 KB
Line 
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.
5
6srctrigger=io.c
7srcname="libgloss testsuite"
8target_dependent=true
9
10# per-host:
11
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.
15
16host_makefile_frag=../../config/default.mh
17case "${host}" in
18  i[3456]86-*-go32)
19        host_makefile_frag=../../config/dos.mh
20        ;;
21esac
22
23# per-target:
24case "${target}" in
25  m68*-unknown-*)
26        target_makefile_frag=../config/m68k.mt
27        ;;
28  hppa*-*-pro*)
29        target_makefile_frag=../config/hppa.mt
30        ;;
31  sparclite-*-*)
32        target_makefile_frag=../config/sparcl.mt
33        ;;
34  mips*-*-*)
35        target_makefile_frag=../config/mips.mt
36        ;;
37esac
38
39# post-target:
40
41case ${srcdir} in
42  .)
43    ;;
44  *)
45    grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
46      echo "source ${srcdir}/.gdbinit" >> .gdbinit
47esac
48
49objroot=`pwd | sed  -e 's@/[^/]*$@@' -e 's@/[^/]*$@@' -e 's@/[^/]*$@@'`
50srcroot=`echo $srcdir | sed  -e 's@/[^/]*$@@' -e 's@/[^/]*$@@' -e 's@/[^/]*$@@'`
51sed -e "s:^OBJROOT[     ]*=.*$:OBJROOT = ${objroot}:" -e "s:^SRCROOT[   ]*=.*$:SRCROOT = ${srcroot}:" \
52    ${Makefile} > Makefile.tem
53rm -f ${Makefile}
54mv Makefile.tem ${Makefile}
Note: See TracBrowser for help on using the repository browser.