diff options
author | agc <agc@pkgsrc.org> | 1998-03-31 11:56:32 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-03-31 11:56:32 +0000 |
commit | a6a767f3b610e4bbbaaea22ec1616e97f234336b (patch) | |
tree | 79a9a18da57fbf587a1dabce7d00d26c946a1af4 /lang/elk | |
parent | 372f0ef8e8416c9d575ba8a0d1fe8385b286fb84 (diff) | |
download | pkgsrc-a6a767f3b610e4bbbaaea22ec1616e97f234336b.tar.gz |
Modify this for NetBSD - use symbolic links, rather than copying the
file. Work out, form the architecture, what format of executable to
use (a.out or ELF), and use the appropriate configuration file.
However, here is (as yet) no ELF configuration file, because I have no
ELF system to try this on.
Diffstat (limited to 'lang/elk')
-rw-r--r-- | lang/elk/scripts/configure | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/lang/elk/scripts/configure b/lang/elk/scripts/configure index 8336f879540..0c8e0196a84 100644 --- a/lang/elk/scripts/configure +++ b/lang/elk/scripts/configure @@ -1,4 +1,21 @@ #!/bin/sh -cp ${WRKSRC}/config/untested/386pc-freebsd2.1-cc ${WRKSRC}/config/system -cp ${WRKSRC}/config/sites/386pc-freebsd2.1 ${WRKSRC}/config/site +mach=`uname -m` + +case $mach in +i386|sparc|m68k) + exetype=aout + ;; +pmax|alpha) + exetype=elf + ;; +*) + echo "Unrecognised machine type: $mach" + exit 1 + ;; +esac + +ln -sf ${WRKSRC}/config/untested/$exetype-netbsd-cc ${WRKSRC}/config/system +ln -sf ${WRKSRC}/config/sites/$exetype-netbsd ${WRKSRC}/config/site + +exit 0 |