2001-05-23 07:16:34 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-03-21 05:50:06 +03:00
|
|
|
# .conf.linux
|
|
|
|
#
|
2002-11-19 19:35:00 +03:00
|
|
|
|
2002-12-15 20:40:14 +03:00
|
|
|
#which_config=normal
|
|
|
|
which_config=plugins
|
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 \
|
2005-03-12 19:34:49 +03:00
|
|
|
--enable-pci \
|
2005-03-22 19:44:24 +03:00
|
|
|
--enable-clgd54xx \
|
2005-12-26 19:47:51 +03:00
|
|
|
--enable-usb \
|
2009-04-29 22:44:11 +04:00
|
|
|
--enable-usb-ohci \
|
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 \
|
2002-11-19 19:35:00 +03:00
|
|
|
--enable-pci \
|
2005-03-12 19:34:49 +03:00
|
|
|
--enable-clgd54xx \
|
2005-12-26 19:47:51 +03:00
|
|
|
--enable-usb \
|
2009-04-29 22:44:11 +04:00
|
|
|
--enable-usb-ohci \
|
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
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|