16 |
cflags='-DKEYMAP_PATH=\"$(KEYMAP_PATH)\"' |
cflags='-DKEYMAP_PATH=\"$(KEYMAP_PATH)\"' |
17 |
ldflags='' |
ldflags='' |
18 |
rpath= |
rpath= |
19 |
|
withsound='yes' |
20 |
|
|
21 |
for arg in $*; do |
for arg in $*; do |
22 |
optarg=`echo $arg | sed 's/[-a-z]*=//'` |
optarg=`echo $arg | sed 's/[-a-z]*=//'` |
68 |
;; |
;; |
69 |
--without-debug*) |
--without-debug*) |
70 |
;; |
;; |
71 |
|
--with-ipv6) |
72 |
|
cflags="$cflags -DIPv6" |
73 |
|
;; |
74 |
|
--without-sound*) |
75 |
|
withsound=no |
76 |
|
;; |
77 |
|
--with-sound) |
78 |
|
withsound=yes |
79 |
|
;; |
80 |
|
--with-sound=oss) |
81 |
|
withsound=$optarg |
82 |
|
;; |
83 |
|
--with-sound=sun) |
84 |
|
withsound=$optarg |
85 |
|
;; |
86 |
*) |
*) |
87 |
echo "Target directories:" |
echo "Target directories:" |
88 |
echo " --prefix=PREFIX location for architecture-independent files" |
echo " --prefix=PREFIX location for architecture-independent files" |
94 |
echo "Build configuration:" |
echo "Build configuration:" |
95 |
echo " --with-x=DIR look for X Window System at DIR/include, DIR/lib" |
echo " --with-x=DIR look for X Window System at DIR/include, DIR/lib" |
96 |
echo " --with-openssl=DIR look for OpenSSL at DIR/include, DIR/lib" |
echo " --with-openssl=DIR look for OpenSSL at DIR/include, DIR/lib" |
97 |
echo " --without-openssl use in-tree crypto, even if OpenSSL is available" |
#echo " --without-openssl use in-tree crypto, even if OpenSSL is available" |
98 |
echo " --with-egd-socket=PATH look for Entropy Gathering Daemon socket at PATH" |
echo " --with-egd-socket=PATH look for Entropy Gathering Daemon socket at PATH" |
99 |
echo " --with-libvncserver make rdp2vnc" |
echo " --with-libvncserver make rdp2vnc" |
100 |
echo " --with-libvncserver-config=CMD" |
echo " --with-libvncserver-config=CMD" |
103 |
echo " --with-debug-kbd enable debugging of keyboard handling" |
echo " --with-debug-kbd enable debugging of keyboard handling" |
104 |
echo " --with-debug-rdp5 enable debugging of RDP5 code" |
echo " --with-debug-rdp5 enable debugging of RDP5 code" |
105 |
echo " --with-debug-clipboard enable debugging of clipboard code" |
echo " --with-debug-clipboard enable debugging of clipboard code" |
106 |
|
echo " --with-ipv6 enable support for IPv6" |
107 |
|
echo " --without-sound disable support for sound redirection" |
108 |
|
echo " --with-sound=ARG only detect sound-support for \"oss\" or \"sun\" (and BSD)" |
109 |
echo |
echo |
110 |
rm -f Makeconf |
rm -f Makeconf |
111 |
exit 1 |
exit 1 |
140 |
fi |
fi |
141 |
|
|
142 |
|
|
143 |
|
# Find install program |
144 |
|
|
145 |
|
if [ -z "$INSTALL" ]; then |
146 |
|
# Want BSD install |
147 |
|
if [ -x /usr/ucb/installbsd ]; then |
148 |
|
INSTALL=/usr/ucb/installbsd |
149 |
|
elif [ -x /usr/ucb/install ]; then |
150 |
|
INSTALL=/usr/ucb/install |
151 |
|
else |
152 |
|
INSTALL=install |
153 |
|
fi |
154 |
|
fi |
155 |
|
|
156 |
|
echo "INSTALL = $INSTALL" >>Makeconf |
157 |
|
|
158 |
|
|
159 |
# Find X installation |
# Find X installation |
160 |
|
|
161 |
xdirs="$extraxdir /usr/X11R6 /usr/X11 /usr/openwin /usr /usr/local/X11R6 /usr/local/X11 /usr/local" |
xdirs="$extraxdir /usr/X11R6 /usr/X11 /usr/openwin /usr /usr/local/X11R6 /usr/local/X11 /usr/local" |
194 |
ldflags="$ldflags" |
ldflags="$ldflags" |
195 |
targets="$targets rdesktop" |
targets="$targets rdesktop" |
196 |
|
|
197 |
if [ -z "$withoutopenssl" ]; then |
#withoutopenssl not currently supported |
198 |
|
#if [ -z "$withoutopenssl" ]; then |
199 |
# Find OpenSSL installation if available |
# Find OpenSSL installation if available |
200 |
ssldirs="$extrassldir /usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local" |
ssldirs="$extrassldir /usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local" |
201 |
|
|
207 |
done |
done |
208 |
|
|
209 |
if [ -z "$ssldir" ]; then |
if [ -z "$ssldir" ]; then |
210 |
echo "WARNING: could not find OpenSSL headers" |
echo "ERROR: could not find OpenSSL headers" |
211 |
echo "(searched for include/openssl/rc4.h in: $ssldirs)" |
echo "(searched for include/openssl/rc4.h in: $ssldirs)" |
212 |
echo "Using in-tree crypto; installing OpenSSL is recommended." |
# additional helpful information for Linux users |
213 |
echo |
if [ -f /etc/redhat-release ]; then |
214 |
|
echo You probably need to install the openssl-devel package |
215 |
|
elif [ -f /etc/debian_version ]; then |
216 |
|
echo You probably need to install the libssl-dev package |
217 |
|
fi |
218 |
|
exit 1 |
219 |
else |
else |
220 |
echo "OpenSSL:" |
echo "OpenSSL:" |
221 |
echo " includes $ssldir/include" |
echo " includes $ssldir/include" |
233 |
cflags="$cflags -DWITH_OPENSSL" |
cflags="$cflags -DWITH_OPENSSL" |
234 |
ldflags="$ldflags -lcrypto" |
ldflags="$ldflags -lcrypto" |
235 |
fi |
fi |
236 |
fi |
#fi |
237 |
|
|
238 |
if [ ! -z "$withvncserver" ]; then |
if [ ! -z "$withvncserver" ]; then |
239 |
if [ -z "$vncserverconfig" ]; then |
if [ -z "$vncserverconfig" ]; then |
278 |
|
|
279 |
# Check for OSS sound support |
# Check for OSS sound support |
280 |
|
|
281 |
if [ -f /usr/include/sys/soundcard.h ]; then |
if [ -f /usr/include/sys/soundcard.h -a \( "$withsound" = "yes" -o "$withsound" = "oss" \) ]; then |
282 |
echo Sound support enabled: Open Sound System |
echo Sound support enabled: Open Sound System |
283 |
echo |
echo |
284 |
echo "SOUNDOBJ = rdpsnd.o rdpsnd_oss.o" >>Makeconf |
echo "SOUNDOBJ = rdpsnd.o rdpsnd_oss.o" >>Makeconf |
285 |
cflags="$cflags -DWITH_RDPSND" |
cflags="$cflags -DWITH_RDPSND" |
286 |
elif [ -f /usr/include/sys/audioio.h ]; then |
elif [ -f /usr/include/sys/audioio.h -a \( "$withsound" = "yes" -o "$withsound" = "sun" \) ]; then |
287 |
echo Sound support enabled: Sun |
echo Sound support enabled: Sun/BSD |
288 |
echo |
echo |
289 |
echo "SOUNDOBJ = rdpsnd.o rdpsnd_sun.o" >>Makeconf |
echo "SOUNDOBJ = rdpsnd.o rdpsnd_sun.o" >>Makeconf |
290 |
cflags="$cflags -DWITH_RDPSND" |
cflags="$cflags -DWITH_RDPSND" |
291 |
else |
else |
292 |
echo "WARNING: sound support disabled (no /usr/include/sys/soundcard.h or /usr/include/sys/audio.h)" |
echo "WARNING: sound support disabled (no /usr/include/sys/soundcard.h or /usr/include/sys/audioio.h)" |
293 |
echo "Currently supported systems are Open Sound System and Sun" |
echo "Currently supported systems are Open Sound System (oss) and Sun/BSD (sun)" |
294 |
echo |
echo |
295 |
fi |
fi |
296 |
|
|
307 |
OSF1) |
OSF1) |
308 |
ldflags="$ldflags -Wl,-rpath,$rpath" |
ldflags="$ldflags -Wl,-rpath,$rpath" |
309 |
;; |
;; |
310 |
|
HP-UX) |
311 |
|
cflags="$cflags -D_XOPEN_SOURCE_EXTENDED" |
312 |
|
;; |
313 |
esac |
esac |
314 |
|
|
315 |
|
|