--- configure.orig 2004-03-02 18:54:31.000000000 +0100 +++ configure 2004-03-02 18:40:50.000000000 +0100 @@ -68,8 +68,12 @@ # OS specific targetos=`uname -s` +targetversion= case $targetos in -*) ;; + Linux) + targetver=`uname -r | sed 's/\(.\)\.\(.\)\../\1\2/'` + ;; + *) ;; esac ########################################## @@ -225,7 +229,7 @@ echo "static build $static" echo "SDL support $sdl" if test $sdl_too_old = "yes"; then -echo "-> Your SDL version is too old - please upgrade to have FFplay/SDL support" +echo "-> Your SDL version is too old - please upgrade to have SDL support" fi config_mak="config-host.mak" @@ -297,6 +301,9 @@ echo "CONFIG_STATIC=yes" >> $config_mak echo "#define CONFIG_STATIC 1" >> $config_h fi +if test "$targetos" = "Linux" ; then + echo "#define QEMU_LINUX_KERNEL_VERSION $targetver" >> $config_h +fi if test "$sdl" = "yes" ; then echo "CONFIG_SDL=yes" >> $config_mak echo "#define CONFIG_SDL 1" >> $config_h