2008-10-06 03:48:37 +00:00
|
|
|
AC_INIT(executor, 2.1pr16, ctm@ardi.com)
|
2009-06-02 00:03:42 +00:00
|
|
|
AC_CANONICAL_SYSTEM
|
2008-10-06 03:48:37 +00:00
|
|
|
AM_INIT_AUTOMAKE([-Wall])
|
|
|
|
|
|
|
|
AM_PROG_AS
|
|
|
|
|
|
|
|
AC_CONFIG_SRCDIR([executor.c])
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
2009-06-19 21:28:56 +00:00
|
|
|
# Checks for programs.
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
AM_PROG_AS
|
|
|
|
|
|
|
|
AC_CHECK_PROG([PERL], [perl], [perl])
|
|
|
|
AC_ARG_VAR([PERL], [perl for generating blitters])
|
|
|
|
|
2008-10-06 03:48:37 +00:00
|
|
|
AC_GNU_SOURCE
|
|
|
|
|
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
|
2009-06-19 21:28:56 +00:00
|
|
|
AC_CHECK_LIB(syn68k, initialize_68k_emulator)
|
|
|
|
|
|
|
|
# TODO: may not want to look for SDL if people have chosen an alternate
|
|
|
|
# front-end.
|
|
|
|
|
|
|
|
AC_CHECK_LIB(sdl, SDL_Init)
|
|
|
|
|
2008-10-06 03:48:37 +00:00
|
|
|
AC_CONFIG_FILES([Makefile])
|
2009-06-02 00:03:42 +00:00
|
|
|
|
2009-06-19 21:28:56 +00:00
|
|
|
case ${build_os} in
|
|
|
|
darwin*)
|
|
|
|
build_os=macosx
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case ${host_os} in
|
|
|
|
darwin*)
|
|
|
|
host_os=macosx
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# This is a temporary cheat that forces us to use SDL.
|
|
|
|
|
|
|
|
front_end=sdl
|
|
|
|
sound_config=sdl
|
|
|
|
|
|
|
|
# end of cheat
|
|
|
|
|
|
|
|
AC_SUBST(host_cpu)
|
|
|
|
AC_SUBST(host_os)
|
|
|
|
AC_SUBST(front_end)
|
|
|
|
AC_SUBST(sound_config)
|
|
|
|
|
|
|
|
AC_CONFIG_LINKS([build-arch-config.h:config/arch/$build_cpu/$build_cpu.h
|
|
|
|
build-os-config.h:config/os/$build_os/$build_os.h
|
|
|
|
host-arch-config.h:config/arch/$host_cpu/$host_cpu.h
|
|
|
|
host-os-config.h:config/os/$host_os/$host_os.h
|
|
|
|
front-end-config.h:config/front-ends/$front_end/$front_end.h
|
|
|
|
sound-config.h:config/sound/$sound_config/$sound_config-sound.h])
|
2009-06-02 00:03:42 +00:00
|
|
|
|
2008-10-06 03:48:37 +00:00
|
|
|
AC_OUTPUT
|