| 81 |
fmod_lib="" |
fmod_lib="" |
| 82 |
fmod_inc="" |
fmod_inc="" |
| 83 |
linux="no" |
linux="no" |
| 84 |
|
kqemu="no" |
| 85 |
|
kernel_path="" |
| 86 |
|
|
| 87 |
# OS specific |
# OS specific |
| 88 |
targetos=`uname -s` |
targetos=`uname -s` |
| 109 |
*) |
*) |
| 110 |
oss="yes" |
oss="yes" |
| 111 |
linux="yes" |
linux="yes" |
| 112 |
|
if [ "$cpu" = "i386" ] ; then |
| 113 |
|
kqemu="yes" |
| 114 |
|
fi |
| 115 |
;; |
;; |
| 116 |
esac |
esac |
| 117 |
|
|
| 174 |
;; |
;; |
| 175 |
--enable-adlib) adlib="yes" |
--enable-adlib) adlib="yes" |
| 176 |
;; |
;; |
| 177 |
|
--disable-kqemu) kqemu="no" |
| 178 |
|
;; |
| 179 |
|
--kernel-path=*) kernel_path=${opt#--kernel-path=} |
| 180 |
|
;; |
| 181 |
esac |
esac |
| 182 |
done |
done |
| 183 |
|
|
| 202 |
target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu sparc64-softmmu" |
target_list="i386-softmmu ppc-softmmu sparc-softmmu x86_64-softmmu sparc64-softmmu" |
| 203 |
# the following are Linux specific |
# the following are Linux specific |
| 204 |
if [ "$linux" = "yes" ] ; then |
if [ "$linux" = "yes" ] ; then |
| 205 |
target_list="i386-user i386 arm-user armeb-user sparc-user ppc-user sparc64-user $target_list" |
target_list="i386-user arm-user armeb-user sparc-user ppc-user sparc64-user $target_list" |
| 206 |
fi |
fi |
| 207 |
fi |
fi |
| 208 |
|
|
| 309 |
echo " use %M for cpu name [$interp_prefix]" |
echo " use %M for cpu name [$interp_prefix]" |
| 310 |
echo " --target-list=LIST set target list [$target_list]" |
echo " --target-list=LIST set target list [$target_list]" |
| 311 |
echo "" |
echo "" |
| 312 |
|
echo "kqemu kernel acceleration support:" |
| 313 |
|
echo " --disable-kqemu disable kqemu build" |
| 314 |
|
echo " --kernel-path=PATH set the kernel path (configure probes it)" |
| 315 |
|
echo "" |
| 316 |
echo "Advanced options (experts only):" |
echo "Advanced options (experts only):" |
| 317 |
echo " --source-path=PATH path of source code [$source_path]" |
echo " --source-path=PATH path of source code [$source_path]" |
| 318 |
echo " --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]" |
echo " --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]" |
| 346 |
bindir="$prefix/bin" |
bindir="$prefix/bin" |
| 347 |
fi |
fi |
| 348 |
|
|
| 349 |
|
# kernel module support |
| 350 |
|
if test $kqemu = "yes" ; then |
| 351 |
|
# find the kernel path |
| 352 |
|
if test -z "$kernel_path" ; then |
| 353 |
|
kernel_version=`uname -r` |
| 354 |
|
kernel_path="/lib/modules/$kernel_version/build" |
| 355 |
|
if test '!' -d "$kernel_path/include" ; then |
| 356 |
|
kernel_path="/usr/src/linux" |
| 357 |
|
if test '!' -d "$kernel_path/include" ; then |
| 358 |
|
echo "Could not find kernel includes in /lib/modules or /usr/src/linux - cannot build the kqemu module" |
| 359 |
|
kqemu="no" |
| 360 |
|
fi |
| 361 |
|
fi |
| 362 |
|
fi |
| 363 |
|
|
| 364 |
|
if test $kqemu = "yes" ; then |
| 365 |
|
|
| 366 |
|
# test that the kernel config is present |
| 367 |
|
if test '!' -f "$kernel_path/Makefile" ; then |
| 368 |
|
echo "No .config file present in $kernel_path - kqemu cannot be built" |
| 369 |
|
kqemu="no" |
| 370 |
|
fi |
| 371 |
|
|
| 372 |
|
# find build system (2.6 or legacy) |
| 373 |
|
kbuild26="yes" |
| 374 |
|
if grep -q "PATCHLEVEL = 4" $kernel_path/Makefile ; then |
| 375 |
|
kbuild26="no" |
| 376 |
|
fi |
| 377 |
|
|
| 378 |
|
fi # kqemu |
| 379 |
|
|
| 380 |
|
fi # kqemu |
| 381 |
|
|
| 382 |
|
|
| 383 |
echo "Install prefix $prefix" |
echo "Install prefix $prefix" |
| 384 |
echo "BIOS directory $datadir" |
echo "BIOS directory $datadir" |
| 385 |
echo "binary directory $bindir" |
echo "binary directory $bindir" |
| 404 |
echo -n " (lib='$fmod_lib' include='$fmod_inc')" |
echo -n " (lib='$fmod_lib' include='$fmod_inc')" |
| 405 |
fi |
fi |
| 406 |
echo "" |
echo "" |
| 407 |
|
if test $kqemu = "yes" ; then |
| 408 |
|
echo "" |
| 409 |
|
echo "KQEMU module configuration:" |
| 410 |
|
echo "kernel sources $kernel_path" |
| 411 |
|
echo -n "kbuild type " |
| 412 |
|
if test $kbuild26 = "yes"; then |
| 413 |
|
echo "2.6" |
| 414 |
|
else |
| 415 |
|
echo "2.4" |
| 416 |
|
fi |
| 417 |
|
fi |
| 418 |
|
|
| 419 |
if test $sdl_too_old = "yes"; then |
if test $sdl_too_old = "yes"; then |
| 420 |
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 FFplay/SDL support" |
| 539 |
head $source_path/VERSION >> $config_h |
head $source_path/VERSION >> $config_h |
| 540 |
echo "\"" >> $config_h |
echo "\"" >> $config_h |
| 541 |
|
|
| 542 |
|
if test $kqemu = "yes" ; then |
| 543 |
|
echo "CONFIG_KQEMU=yes" >> $config_mak |
| 544 |
|
echo "KERNEL_PATH=$kernel_path" >> $config_mak |
| 545 |
|
if test $kbuild26 = "yes" ; then |
| 546 |
|
echo "CONFIG_KBUILD26=yes" >> $config_mak |
| 547 |
|
fi |
| 548 |
|
fi |
| 549 |
echo "SRC_PATH=$source_path" >> $config_mak |
echo "SRC_PATH=$source_path" >> $config_mak |
| 550 |
echo "TARGET_DIRS=$target_list" >> $config_mak |
echo "TARGET_DIRS=$target_list" >> $config_mak |
| 551 |
|
|