diff options
author | agc <agc> | 1998-03-31 11:56:32 +0000 |
---|---|---|
committer | agc <agc> | 1998-03-31 11:56:32 +0000 |
commit | aaf479faecb9740be062d87397da9c8c971a9b05 (patch) | |
tree | 79a9a18da57fbf587a1dabce7d00d26c946a1af4 /lang/elk | |
parent | 0061b1f76e88df5262cdacd3a255f8ca6db3ed51 (diff) | |
download | pkgsrc-aaf479faecb9740be062d87397da9c8c971a9b05.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 |