5
OSSLIBDIR="/usr/lib/oss"
10
OSS_CONFIG_OPTIONS="$*"
11
export OSS_CONFIG_OPTIONS
14
# Set GRC3 min/max conversion quality setting to 3 to conserve space.
15
# TODO: Add support for configurable quality settings.
18
export GRC_MIN_QUALITY GRC_MAX_QUALITY
20
# MIDI support is enabled by default. Use --config-midi=NO to disable
23
export CONFIGURE CONFIG_MIDI
25
unset CDPATH >/dev/null 2>&1
27
if test -f /usr/include/vorbis/vorbisfile.h || test -f /usr/local/include/vorbisfile.h
35
SRCDIR=`cd $SRCDIR && pwd`
37
if test "$DIR " = " " || test "$DIR " = ". "
47
echo "**** USAGE ERROR ****"
49
echo You need to create an empty build directory and
50
echo then execute sh `pwd`/configure inside it.
52
echo Configure script aborted
56
while test "$# " != "0 "
61
if test "`uname -s` " != "Linux "
63
echo $0: --regparm is only valid under Linux
66
echo Will prepare for REGPARM kernels
71
if test "`uname -s` " != "Linux "
73
echo $0: --no-regparm is only valid under Linux
76
echo Will prepare for non-REGPARM kernels
80
"--target=uclinux-blackfin")
81
CROSSCOMPILE=uclinux-blackfin
83
export CROSSCOMPILE uOSS
86
"--target=vxworks-x86")
87
CROSSCOMPILE=vxworks-x86
89
CONFIGSCRIPT=$SRCDIR/setup/setupdir.sh
91
export CROSSCOMPILE uOSS
99
"--config-vmix=FLOAT")
104
"--config-vmix=FIXEDPOINT")
123
"--include-closed-source")
125
NO_WARNING_CHECKS=YES
126
PORTABLE_BUILD=YES # Produce binaries that work under generic CPU arch
127
export CLOSED_SOURCE NO_WARNING_CHECKS PORTABLE_BUILD
131
PORTABLE_BUILD=YES # Produce binaries that work under generic CPU arch
132
export PORTABLE_BUILD
136
"--enable-libsalsa=NO")
141
# This is option is undocumented and unsupported. It is only
142
# for internal testing by 4Front Technologies and not useful
149
ONLY_DRVS=`echo $1 | sed 's/--only-drv=/,/'`,osscore
159
echo $0: Unrecognized command line option $1
162
echo Permitted command line arguments are:
168
echo " --enable-libsalsa=YES|NO - Enable/Disable libsalsa."
169
echo " --target=uclinux-blackfin - Configure for uClinux/Blackfin target (EXPERIMENTAL)"
170
echo " --regparm - Configure for CONFIG_REGPARM kernels"
171
echo " --no-regparm - Configure for kernels without CONFIG_REGPARM option."
172
echo "NOTE! --regparm/--no-regparm is normally detected"
173
echo " automatically and these switches should NOT be used."
181
echo " --config-vmix=NO|FLOAT|FIXEDPOINT - Configure vmix to use float/int arithmetic or disable it."
182
echo " (Check possible limitations caused by the OS or the CPU/arch)."
183
echo " --config-midi=NO|YES - Enable/disable MIDI support."
184
echo " --only-drv=[list] - Only compile the drivers named in the comma delimited list."
185
echo " --enable-timings - Enable internal timings (for the readtimings utility)."
186
echo " --portable-build - Produce portable binaries for generic CPU architecture."
193
export SRCDIR COPY_OPTIONS OSSLIBDIR TARGETOS
195
# Run the OS dependent setup script
197
if test "$CONFIGSCRIPT " != " "
199
exec sh $CONFIGSCRIPT
207
echo Setting up for Solaris 9
214
echo Setting up for Solaris 8
220
echo Using Solaris10 specific script
223
exec sh $SRCDIR/setup/SunOS/solsetup.sh
228
if test "$NOALSA" != "1"
230
if test -d /usr/include/alsa || test -d /usr/local/include/alsa
232
echo Compiling libsalsa library
237
if grep -q Ubuntu /etc/issue # Ubuntu?
240
for n in build-essential libgtk2.0-dev gawk
242
if ! apt-cache show $n > /dev/null 2>&1
244
MISSING="$MISSING $n"
248
if test "$MISSING " != " "
250
echo Missing one or more required install packages are missing
252
echo You can install them by doing
257
echo apt-get install $n
264
if test "$USE_REGPARM " != "1 " && test "$NO_REGPARM " != "1 "
266
# REGPARM/NOTREGPARM not set so compile a version for both of them
267
echo Using the Linux specific script
268
exec sh $SRCDIR/setup/Linux/linsetup.sh
270
echo Using the default script
271
exec sh $SRCDIR/setup/setupdir.sh
276
echo Using the default script
277
exec sh $SRCDIR/setup/setupdir.sh
281
echo internal error in configure