EXESUF=""
gdbstub="yes"
slirp="yes"
+adlib="no"
+oss="no"
# OS specific
targetos=`uname -s`
;;
FreeBSD)
bsd="yes"
+oss="yes"
;;
NetBSD)
bsd="yes"
+oss="yes"
;;
OpenBSD)
bsd="yes"
+oss="yes"
;;
Darwin)
bsd="yes"
darwin="yes"
;;
-*) ;;
+*)
+oss="yes"
+;;
esac
if [ "$bsd" = "yes" ] ; then
;;
--disable-slirp) slirp="no"
;;
+ --enable-adlib) adlib="yes"
+ ;;
esac
done
echo "SDL support $sdl"
echo "SDL static link $sdl_static"
echo "mingw32 support $mingw32"
+echo "Adlib support $adlib"
if test $sdl_too_old = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have FFplay/SDL support"
echo "CONFIG_SLIRP=yes" >> $config_mak
echo "#define CONFIG_SLIRP 1" >> $config_h
fi
+if test "$adlib" = "yes" ; then
+ echo "CONFIG_ADLIB=yes" >> $config_mak
+ echo "#define CONFIG_ADLIB 1" >> $config_h
+fi
+if test "$oss" = "yes" ; then
+ echo "CONFIG_OSS=yes" >> $config_mak
+ echo "#define CONFIG_OSS 1" >> $config_h
+fi
echo -n "VERSION=" >>$config_mak
head $source_path/VERSION >>$config_mak
echo "" >>$config_mak
if test "$target_user_only" = "no"; then
if test "$target_softmmu" = "no" -o "$static" = "yes"; then
- if test "$sdl_static" = "yes" ; then
- echo "#define CONFIG_SDL 1" >> $config_h
- echo "CONFIG_SDL=yes" >> $config_mak
- echo "SDL_LIBS=$sdl_static_libs" >> $config_mak
- fi
+ sdl1=$sdl_static
else
- if test "$sdl" = "yes" ; then
- echo "#define CONFIG_SDL 1" >> $config_h
- echo "CONFIG_SDL=yes" >> $config_mak
+ sdl1=$sdl
+ fi
+ if test "$sdl1" = "yes" ; then
+ echo "#define CONFIG_SDL 1" >> $config_h
+ echo "CONFIG_SDL=yes" >> $config_mak
+ if test "$target_softmmu" = "no" -o "$static" = "yes"; then
+ echo "SDL_LIBS=$sdl_static_libs" >> $config_mak
+ else
echo "SDL_LIBS=`$sdl_config --libs`" >> $config_mak
fi
+ echo -n "SDL_CFLAGS=`$sdl_config --cflags`" >> $config_mak
+ if [ "${aa}" = "yes" ] ; then
+ echo -n " `aalib-config --cflags`" >> $config_mak ;
+ fi
+ echo "" >> $config_mak
fi
- echo -n "SDL_CFLAGS=`$sdl_config --cflags`" >> $config_mak
- if [ "${aa}" = "yes" ] ; then
- echo -n " `aalib-config --cflags`" >> $config_mak ;
- fi
- echo "" >> $config_mak
fi
done # for target in $targets