1 dnl Process this file with autoconf to produce a configure script.
4 AC_CONFIG_HEADER(config.h:config.in)
6 sinclude(../common/aclocal.m4)
8 # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
9 # it by inlining the macro's contents.
10 sinclude(../common/common.m4)
12 SIM_AC_OPTION_ENDIAN(LITTLE_ENDIAN)
13 SIM_AC_OPTION_ALIGNMENT(STRICT_ALIGNMENT,STRICT_ALIGNMENT)
14 SIM_AC_OPTION_HOSTENDIAN
15 SIM_AC_OPTION_DEFAULT_MODEL(bf537)
16 SIM_AC_OPTION_ENVIRONMENT
18 SIM_AC_OPTION_WARNINGS
19 SIM_AC_OPTION_HARDWARE(yes,,\
50 AC_CHECK_FUNCS([getuid getgid geteuid getegid setuid setgid mmap munmap])
51 AC_CHECK_HEADERS([sys/ioctl.h sys/mman.h net/if.h linux/if_tun.h linux/mii.h])
55 dnl make sure the dv-sockser code can be supported (i.e. windows)
59 AC_DEFINE_UNQUOTED([HAVE_DV_SOCKSER], 1, [Define if dv-sockser is usable.])
60 BFIN_SIM_EXTRA_OBJS="${BFIN_SIM_EXTRA_OBJS} dv-sockser.o"
64 AC_SUBST([BFIN_SIM_EXTRA_OBJS], ${BFIN_SIM_EXTRA_OBJS})
67 PKG_CHECK_MODULES(SDL, sdl, [
68 AC_CHECK_LIB(dl, dlopen, [
69 SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL"
71 ], [SDL_CFLAGS= SDL_LIBS=])