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.
|
|
|
|
#######################################################################
|
|
|
|
./configure --enable-cdrom \
|
2005-03-22 19:44:24 +03:00
|
|
|
--enable-sb16 \
|
2002-11-19 19:35:00 +03:00
|
|
|
--enable-ne2000 \
|
|
|
|
--enable-vbe \
|
|
|
|
--enable-all-optimizations \
|
2005-03-12 19:34:49 +03:00
|
|
|
--enable-cpu-level=6 \
|
|
|
|
--enable-sse=1 \
|
|
|
|
--enable-pci \
|
2005-03-22 19:44:24 +03:00
|
|
|
--enable-clgd54xx \
|
|
|
|
${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
|
|
|
#######################################################################
|
|
|
|
./configure --enable-cdrom \
|
2005-03-22 19:44:24 +03:00
|
|
|
--enable-sb16 \
|
2002-11-19 19:35:00 +03:00
|
|
|
--enable-ne2000 \
|
|
|
|
--enable-vbe \
|
|
|
|
--enable-all-optimizations \
|
2005-03-12 19:34:49 +03:00
|
|
|
--enable-cpu-level=6 \
|
|
|
|
--enable-sse=1 \
|
2002-11-19 19:35:00 +03:00
|
|
|
--enable-pci \
|
2005-03-12 19:34:49 +03:00
|
|
|
--enable-clgd54xx \
|
|
|
|
--enable-plugins \
|
2005-03-22 19:44:24 +03:00
|
|
|
--with-all-libs \
|
|
|
|
${CONFIGURE_ARGS}
|
2002-11-19 19:35:00 +03:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|