Trouble compiling Vice commodore emulator on Haiku

Vice is a great commodore machine emulator, and it’s usually very easy to compile. I’ve had no problems compiling on linux and BeOS. When trying to compile on Haiku, it seems “configure” can’t figure out what type of machine/ or OS I’m using. I realize there are prebuilt VICE binaries for BeOS/Haiku, but I’d much rather compile it myself. Any suggestions? Thanks for any help. I’ve included the terminal output below:

~/Desktop> cd vice-2.1
~/Desktop/vice-2.1> ./configure
checking for a BSD-compatible install… /bin/install -c
checking whether build environment is sane… yes
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking build system type… ./config.guess: unable to guess system type

This script, last modified 2005-07-08, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

http://savannah.gnu.org/cgi-bin/viewcvs/checkout/config/config/config.guess
and
http://savannah.gnu.org/cgi-bin/viewcvs/checkout/config/config/config.sub

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to config-patches@gnu.org in order to provide the needed
information to handle your system.

config.guess timestamp = 2005-07-08

uname -m = BePC
uname -r = 1
uname -s = Haiku
uname -v = r33109 Sep 12 2009 17:45:45

/usr/bin/uname -p =
/bin/uname -X =

hostinfo =
/bin/universe =
/usr/bin/arch -k =
/bin/arch =
/usr/bin/oslevel =
/usr/convex/getsysinfo =

UNAME_MACHINE = BePC
UNAME_RELEASE = 1
UNAME_SYSTEM = Haiku
UNAME_VERSION = r33109 Sep 12 2009 17:45:45
configure: error: cannot guess build type; you must specify one

Haiku was only added to the config.* files 3 years ago, your version of vice uses config.* files from 4 and a half years ago.

Try this just before compiling:

 cp /boot/common/share/libtool/config/config.* .

If that did not work, download a new config.guess and config.sub via the links in the output you gave; replace the config.* files that came with vice.

Also if this is the latest version of vice, you should let them know that their config.* files need updating.


If you need any more help try reading this:
http://ports.haiku-files.org/wiki/PortingTips
and this:
http://ports.haiku-files.org/wiki/CommonProblems

There is also a mailing list for compiling ports on haiku that can be very helpful; it can be found here: http://lists.ports.haiku-files.org/listinfo.cgi/haikuports-devs-ports.haiku-files.org

Thanks for all of the resources. I’ve tried the things you’ve mentioned, copying the config.* files to the directory of the source (just copied your line), and also downloaded and replaced the config files with current versions from their respective websites, but to no avail. The terminal output is still giving me the same deal. I’m not giving up though, I just have to do some more research.

try

libtoolize --force --copy -install
./configure --prefix=/boot/common