2011-03-06 08:20:21 +08:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
2011-10-18 08:17:24 +08:00
|
|
|
AC_PREREQ(2.64)dnl
|
2011-03-06 08:20:21 +08:00
|
|
|
AC_INIT(Makefile.in)
|
2011-10-18 08:31:00 +08:00
|
|
|
sinclude(../common/acinclude.m4)
|
2011-03-06 08:20:21 +08:00
|
|
|
|
2011-10-18 08:17:24 +08:00
|
|
|
SIM_AC_COMMON
|
2011-03-06 08:20:21 +08:00
|
|
|
|
2016-01-03 06:46:16 +08:00
|
|
|
SIM_AC_OPTION_ENDIAN(LITTLE)
|
2011-03-06 08:20:21 +08:00
|
|
|
SIM_AC_OPTION_ALIGNMENT(STRICT_ALIGNMENT,STRICT_ALIGNMENT)
|
|
|
|
SIM_AC_OPTION_DEFAULT_MODEL(bf537)
|
|
|
|
SIM_AC_OPTION_WARNINGS
|
|
|
|
SIM_AC_OPTION_HARDWARE(yes,,\
|
|
|
|
bfin_cec \
|
|
|
|
bfin_ctimer \
|
|
|
|
bfin_dma \
|
|
|
|
bfin_dmac \
|
|
|
|
bfin_ebiu_amc \
|
|
|
|
bfin_ebiu_ddrc \
|
|
|
|
bfin_ebiu_sdc \
|
|
|
|
bfin_emac \
|
|
|
|
bfin_eppi \
|
|
|
|
bfin_evt \
|
2011-03-16 05:01:45 +08:00
|
|
|
bfin_gpio \
|
2012-04-09 14:11:41 +08:00
|
|
|
bfin_gpio2 \
|
2011-03-06 08:20:21 +08:00
|
|
|
bfin_gptimer \
|
|
|
|
bfin_jtag \
|
|
|
|
bfin_mmu \
|
|
|
|
bfin_nfc \
|
|
|
|
bfin_otp \
|
2011-05-25 20:41:29 +08:00
|
|
|
bfin_pfmon \
|
2012-04-09 14:13:06 +08:00
|
|
|
bfin_pint \
|
2011-03-06 08:20:21 +08:00
|
|
|
bfin_pll \
|
|
|
|
bfin_ppi \
|
|
|
|
bfin_rtc \
|
|
|
|
bfin_sic \
|
|
|
|
bfin_spi \
|
|
|
|
bfin_trace \
|
|
|
|
bfin_twi \
|
|
|
|
bfin_uart \
|
|
|
|
bfin_uart2 \
|
|
|
|
bfin_wdog \
|
|
|
|
bfin_wp \
|
|
|
|
eth_phy \
|
|
|
|
)
|
|
|
|
|
2011-03-18 03:03:30 +08:00
|
|
|
AC_CHECK_FUNCS([getuid getgid geteuid getegid setuid setgid mmap munmap kill pread])
|
2012-03-05 03:56:57 +08:00
|
|
|
AC_CHECK_HEADERS([ \
|
|
|
|
linux/if_tun.h \
|
|
|
|
linux/mii.h \
|
|
|
|
linux/types.h \
|
|
|
|
net/if.h \
|
|
|
|
sys/ioctl.h \
|
|
|
|
sys/mman.h \
|
|
|
|
])
|
2011-03-06 08:20:21 +08:00
|
|
|
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
PKG_CHECK_MODULES(SDL, sdl, [
|
|
|
|
AC_CHECK_LIB(dl, dlopen, [
|
|
|
|
SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL"
|
|
|
|
SDL_LIBS="-ldl"
|
|
|
|
], [SDL_CFLAGS= SDL_LIBS=])
|
|
|
|
], [:])
|
|
|
|
AC_SUBST(SDL_CFLAGS)
|
|
|
|
AC_SUBST(SDL_LIBS)
|
|
|
|
|
|
|
|
SIM_AC_OUTPUT
|