annotate setup.sh @ 533:ca59ef4ce54d

driver info now depends on detected DGA version
author arpi_esp
date Thu, 19 Apr 2001 21:39:10 +0000
parents 4e5d445520d9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
1 #!/bin/bash
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
2
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
3 echo "==========================================="
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
4 echo " Welcome to the MPlayer configuration tool "
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
5 echo "==========================================="
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
6 echo " We'll ask you some questions on how you "
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
7 echo " want your mplayer to be compiled. "
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
8 echo "==========================================="
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
9 echo ""
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
10 echo ""
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
11
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
12 echo "Where should the X11 libraries be found?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
13 echo "[enter=auto]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
14 read X11L
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
15
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
16 echo "Where should the win32 Codecs be fould?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
17 echo "[enter=auto]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
18 read W32
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
19
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
20 echo "Which default screen width would you like?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
21 echo "[enter=default]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
22 read X
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
23
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
24 echo "Which default screen height would you like?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
25 echo "[enter=default]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
26 read Y
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
27
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
28 echo "Would you like MMX support enabled?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
29 echo "[Y/A(auto)]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
30 read MMX
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
31
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
32 echo "Would you like 3dnow support enabled?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
33 echo "[Y/A(auto)]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
34 read DNOW
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
35
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
36 echo "Would you like SSE support enabled?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
37 echo "[Y/A(auto)]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
38 read SSE
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
39
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
40 echo "Would you like OpenGL support enabled?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
41 echo "[Y/A(auto)]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
42 read GL
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
43
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
44 echo "Would you like SDL support enabled?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
45 echo "[Y/A(auto)]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
46 read SDL
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
47
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
48 echo "Would you like MGA support enabled?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
49 echo "[Y/A(auto)]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
50 read MGA
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
51
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
52 echo "Would you like XMGA support enabled?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
53 echo "[Y/A(auto)]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
54 read XMGA
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
55
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
56 echo "Would you like XV support enabled?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
57 echo "[Y/A(auto)]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
58 read XV
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
59
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
60 echo "Would you like X11 support enabled?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
61 echo "[Y/A(auto)]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
62 read X11
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
63
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
64 echo "Would you like MLIB support enabled? (ONLY Solaris)"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
65 echo "[Y/A(auto)]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
66 read MLIB
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
67
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
68 echo "Would you like to use the termcap database for key codes?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
69 echo "[Y/N]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
70 read TERMCAP
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
71
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
72 echo "Would you like to use the XMMP audio drivers?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
73 echo "[Y/N]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
74 read XMMP
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
75
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
76 echo "Would you like to enable LIRC support?"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
77 echo "[Y/N]"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
78 read LIRC
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
79
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
80 CMD=" "
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
81
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
82 if [ "$MMX" = "Y" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
83 CMD="$CMD --enable-mmx"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
84 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
85
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
86 if [ "$DNOW" = "Y" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
87 CMD="$CMD --enable-3dnow"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
88 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
89
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
90 if [ "$SSE" = "Y" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
91 CMD="$CMD --enable-sse"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
92 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
93
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
94 if [ "$GL" = "Y" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
95 CMD="$CMD --enable-gl"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
96 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
97
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
98 if [ "$SDL" = "Y" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
99 CMD="$CMD --enable-sdl"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
100 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
101
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
102 if [ "$MGA" = "Y" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
103 CMD="$CMD --enable-mga"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
104 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
105
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
106 if [ "$XMGA" = "Y" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
107 CMD="$CMD --enable-xmga"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
108 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
109
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
110 if [ "$XV" = "Y" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
111 CMD="$CMD --enable-xv"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
112 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
113
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
114 if [ "$X11" = "Y" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
115 CMD="$CMD --enable-x11"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
116 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
117
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
118 if [ "$TERMCAP" = "Y" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
119 CMD="$CMD --enable-termcap"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
120 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
121
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
122 if [ "$XMMP" = "Y" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
123 CMD="$CMD --enable-xmmp"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
124 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
125
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
126 if [ "$LIRC" = "Y" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
127 CMD="$CMD --enable-lirc"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
128 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
129
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
130 if [ "$X11L" != "" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
131 CMD="$CMD --with-x11libdir=$X11L"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
132 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
133
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
134 if [ "$W32" != "" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
135 CMD="$CMD --with-win32libdir=$W32"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
136 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
137
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
138 if [ "$X" != "" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
139 CMD="$CMD --size-x=$X"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
140 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
141
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
142 if [ "$Y" != "" ]; then
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
143 CMD="$CMD --size-x=$Y"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
144 fi
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
145
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
146 echo $CMD > setup.s
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
147
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
148 echo "Configuration ended, now please run"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
149 echo " ./configure \`cat setup.s\`"
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
150
4e5d445520d9 debianize...
arpi_esp
parents:
diff changeset
151 exit 0