2001-05-23 07:16:34 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-03-21 05:50:06 +03:00
|
|
|
# .conf.linux
|
|
|
|
#
|
2023-12-02 16:49:21 +03:00
|
|
|
if test $# = 0; then
|
|
|
|
which_config=plugins
|
|
|
|
else
|
|
|
|
which_config=$1
|
2024-03-25 21:50:06 +03:00
|
|
|
if test $# = 2; then
|
|
|
|
if test $2 = debugger; then
|
|
|
|
CONFIGURE_ARGS=--enable-debugger
|
|
|
|
fi
|
|
|
|
fi
|
2023-12-02 16:49:21 +03:00
|
|
|
fi
|
2001-05-23 07:16:34 +04:00
|
|
|
|
2001-10-08 01:23:00 +04:00
|
|
|
CC="gcc"
|
2001-05-23 07:16:34 +04:00
|
|
|
CXX="c++"
|
2004-01-15 06:17:37 +03:00
|
|
|
CFLAGS="-Wall -O3 -fomit-frame-pointer -pipe" # for speed
|
2002-11-19 19:35:00 +03:00
|
|
|
#CFLAGS="-Wall -g -pipe" # for development
|
2001-05-23 07:16:34 +04:00
|
|
|
CXXFLAGS="$CFLAGS"
|
|
|
|
|
|
|
|
export CC
|
|
|
|
export CXX
|
|
|
|
export CFLAGS
|
|
|
|
export CXXFLAGS
|
|
|
|
|
2002-11-19 19:35:00 +03:00
|
|
|
|
|
|
|
case $which_config in
|
|
|
|
|
|
|
|
normal)
|
|
|
|
|
|
|
|
#######################################################################
|
|
|
|
# configuration 1 for release binary RPMs
|
|
|
|
# Include a few standard options, speed optimizations, X11 only.
|
|
|
|
#######################################################################
|
2006-11-20 21:55:16 +03:00
|
|
|
./configure --enable-sb16 \
|
2002-11-19 19:35:00 +03:00
|
|
|
--enable-ne2000 \
|
|
|
|
--enable-all-optimizations \
|
2005-03-12 19:34:49 +03:00
|
|
|
--enable-cpu-level=6 \
|
2007-09-10 19:21:05 +04:00
|
|
|
--enable-x86-64 \
|
2013-04-08 22:31:25 +04:00
|
|
|
--enable-vmx=2 \
|
2023-10-16 16:31:14 +03:00
|
|
|
--enable-svm \
|
2022-08-27 09:01:18 +03:00
|
|
|
--enable-avx \
|
2023-10-16 16:31:14 +03:00
|
|
|
--enable-evex \
|
|
|
|
--enable-cet \
|
2005-03-12 19:34:49 +03:00
|
|
|
--enable-pci \
|
2005-03-22 19:44:24 +03:00
|
|
|
--enable-clgd54xx \
|
2013-03-11 00:42:46 +04:00
|
|
|
--enable-voodoo \
|
2005-12-26 19:47:51 +03:00
|
|
|
--enable-usb \
|
2009-04-29 22:44:11 +04:00
|
|
|
--enable-usb-ohci \
|
2016-12-31 15:17:37 +03:00
|
|
|
--enable-usb-ehci \
|
|
|
|
--enable-usb-xhci \
|
2017-03-24 21:23:07 +03:00
|
|
|
--enable-busmouse \
|
2012-05-01 22:03:43 +04:00
|
|
|
--enable-es1370 \
|
|
|
|
--enable-e1000 \
|
2007-10-09 23:49:23 +04:00
|
|
|
--enable-show-ips \
|
2005-03-22 19:44:24 +03:00
|
|
|
${CONFIGURE_ARGS}
|
2002-11-19 19:35:00 +03:00
|
|
|
;;
|
|
|
|
|
|
|
|
plugins)
|
|
|
|
#######################################################################
|
|
|
|
# configuration 2 for release binary RPMs
|
2005-03-12 19:34:49 +03:00
|
|
|
# Include plugins, every possible gui.
|
2002-11-19 19:35:00 +03:00
|
|
|
#######################################################################
|
2006-11-20 21:55:16 +03:00
|
|
|
./configure --enable-sb16 \
|
2002-11-19 19:35:00 +03:00
|
|
|
--enable-ne2000 \
|
|
|
|
--enable-all-optimizations \
|
2005-03-12 19:34:49 +03:00
|
|
|
--enable-cpu-level=6 \
|
2007-09-10 19:21:05 +04:00
|
|
|
--enable-x86-64 \
|
2013-04-08 22:31:25 +04:00
|
|
|
--enable-vmx=2 \
|
2023-10-16 16:31:14 +03:00
|
|
|
--enable-svm \
|
2022-08-27 09:01:18 +03:00
|
|
|
--enable-avx \
|
2023-10-16 16:31:14 +03:00
|
|
|
--enable-evex \
|
|
|
|
--enable-cet \
|
2002-11-19 19:35:00 +03:00
|
|
|
--enable-pci \
|
2005-03-12 19:34:49 +03:00
|
|
|
--enable-clgd54xx \
|
2013-03-11 00:42:46 +04:00
|
|
|
--enable-voodoo \
|
2005-12-26 19:47:51 +03:00
|
|
|
--enable-usb \
|
2009-04-29 22:44:11 +04:00
|
|
|
--enable-usb-ohci \
|
2016-12-31 15:17:37 +03:00
|
|
|
--enable-usb-ehci \
|
2013-04-07 19:13:45 +04:00
|
|
|
--enable-usb-xhci \
|
2017-03-24 21:23:07 +03:00
|
|
|
--enable-busmouse \
|
2012-05-01 22:03:43 +04:00
|
|
|
--enable-es1370 \
|
|
|
|
--enable-e1000 \
|
2005-03-12 19:34:49 +03:00
|
|
|
--enable-plugins \
|
2007-10-09 23:49:23 +04:00
|
|
|
--enable-show-ips \
|
2005-03-22 19:44:24 +03:00
|
|
|
--with-all-libs \
|
|
|
|
${CONFIGURE_ARGS}
|
2002-11-19 19:35:00 +03:00
|
|
|
;;
|
2023-12-02 16:49:21 +03:00
|
|
|
*) echo "Unknown config \"$1\" selected!" ;;
|
2002-11-19 19:35:00 +03:00
|
|
|
|
|
|
|
esac
|