diff options
-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 |