#!/bin/sh
#
# MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz
# pontscho@makacs.poliod.hu
#
# Changes in reversed order:
#
# 2001/06/05 by Pontscho
# - added alsa and esd detection
#
# 2001/06/05 by Nick Kurshev
# - added checking of kernel version
#
# 2001/06/04 by Nick Kurshev
# - added hard checking of gcc and soft of assembler
#
# 2001/05/40 by LGB
# - added --prefix support
#
# 2001/05/22 by Nick Kurshev
# - added definition of CPU clone
#
# 2001/04/16 by LGB
# - added libcss stuffs
#
# 2001/04/15 by Pontscho
# - added --disable-select option
# - added X11DIR variable in config.mak and fix syncfb Makefile -L/usr/X11/lib bug
#
# 2001/03/24 by Mike Graffam:
# - added autodetect code for XF86VidMode, along with explicit --enable-vm
#
# 2001/03/22 by Bivanbi:
# - new option: --cc (to specify C compiler path+name)
#
# 2001/03/08 by LGB:
# - DGA detect-o-matic :)
# - '--disable-dga' option to force disabling DGA vo driver compiling into mplayer
# - line about '--enable-dga' is added to the help message
#
# 2001/02/26 by A'rpi:
# - added DGA option: --enable-dga
# - no notify if --with-win32libdir used [Tibcu]
#
# 2001/02/25 by LGB:
# - TMPDIR or TEMPDIR variable is honored during tests for temporary files
# - ChangeLog inside configure was reversed ;-)
#
# some changes by A'rpi/ESP-team:
# - added 'athlon' target for the new athlongcc [Ian Kumlien]
# - applied _win32libdir=-L patch by Magnus Pfeffer
#
# some changes by LGB:
# - Ehhh, AMD K6-2 returns with cpuid 5 ;-) Changing back Arpi's last change :)
# More info: AMD K6-2 reports with family 5, duron with 6, so I attached
# much finer CPU type detection based on Linux kernel's one :)
# (k5: 5, model<6, k6: 5, model>=6, k7: 6, model=any)
# - On some exit point (error) temporary files were not deleted. Fixed.
# - $TMP and $TMP2 are renamed to $TMPC and $TMPO ;-)
# - Some useless { ... } are removed
#
# some changes by A'rpi/ESP-team:
# - the --with-win32libdir patch by Aaron Hope applied
# - some english bugfix again :)
# - cpu type selection changed:
# ( k7->k6->k5-> ) || (i686->pentiumpro-> ) pentium-> i486 -> i386 -> error!
# - cpu type for AMD/family=5 changed k6->k5
#
# some changes by LGB (Gábor Lénárt):
# - SOME gcc may support 'k7', so I added tests for ALL CPU type optimization
# switches with the ability to find out the best optimization for your CPU.
# - Help moved to the begining to avoid tests if user only wants help.
# - A one lined help to indicate detailed help for users
# - Fixed /tmp race (PIDs can be predicted, I added random numbers as well)
#
# some changes by A'rpi/ESP-team:
# - some english bugfix :)
# - removed _??exists flags, _?? is enough...
# - creating only config.mak files instead of whole Makefiles
#
# --
# Check how echo works in this /bin/sh
case `echo -n` in
-n) _echo_n= _echo_c='\c';;
*) _echo_n=-n _echo_c=;;
esac
# LGB: Help moved here.
if [ "$1" = "--help" -o "$1" = "-help" -o "$1" = "-h" ]; then
cat << EOF
usage: $0 [options]
params:
--cc use this C compiler to build MPlayer [gcc]
--prefix=DIR use this prefix for installing mplayer [/usr/local]
--enable-debug[=1-3] compile debugging information into mplayer [disable]
--enable-profile compile profiling information into mplayer [disable]
--enable-mmx build with mmx support [autodetect]
--enable-mmx2 build with mmx2 support (PIII, Athlon) [autodetect]
--enable-3dnow build with 3dnow! support [autodetect]
--enable-3dnowex build with 3dnow-dsp! support (K7) [autodetect]
--enable-sse build with sse support [autodetect]
--enable-gl build with OpenGL render support [autodetect]
--enable-dga build with DGA support [autodetect]
--enable-svga build with SVGAlib support [autodetect]
--enable-sdl build with SDL render support [autodetect]
--enable-mga build with mga_vid support [autodetect, if /dev/mga_vid
is available]
--enable-xmga build with mga_vid X Window support [autodetect,
if both /dev/mga_vid and x11 are available]
--enable-xv build with Xv render support for X 4.x [autodetect]
--enable-vm build with XF86VidMode support for x11 driver
--enable-x11 build with X11 render support [autodetect]
--enable-fbdev build with FBDev render support [_not_ autodetected]
--enable-mlib build with MLIB support ( only Solaris )
--enable-termcap use termcap database for key codes
--enable-xmmp use XMMP audio drivers
--enable-lirc enable LIRC (remote control) support
--disable-oss disable OSS
|