2 |
# |
# |
3 |
# rdesktop: A Remote Desktop Protocol client |
# rdesktop: A Remote Desktop Protocol client |
4 |
# configure script |
# configure script |
5 |
# Copyright (C) Matthew Chapman 1999-2001 |
# Copyright (C) Matthew Chapman 1999-2002 |
6 |
# |
# |
7 |
|
|
8 |
|
echo "rdesktop build configuration script" |
9 |
|
echo |
10 |
|
|
11 |
echo "# Generated by $0 $*" >Makeconf |
echo "# Generated by $0 $*" >Makeconf |
12 |
|
|
13 |
|
|
47 |
--without-debug*) |
--without-debug*) |
48 |
;; |
;; |
49 |
*) |
*) |
|
echo "rdesktop build configuration script" |
|
|
echo |
|
50 |
echo "Target directories:" |
echo "Target directories:" |
51 |
echo " --prefix=PREFIX location for architecture-independent files" |
echo " --prefix=PREFIX location for architecture-independent files" |
52 |
echo " --exec-prefix=EPREFIX location for architecture-dependent files" |
echo " --exec-prefix=EPREFIX location for architecture-dependent files" |
79 |
|
|
80 |
# Find X installation |
# Find X installation |
81 |
|
|
82 |
xdirs="/usr /usr/X11R6 /usr/X11 /usr/openwin /usr/local /usr/local/X11R6 /usr/local/X11" |
xdirs="/usr/X11R6 /usr/X11 /usr/openwin /usr /usr/local/X11R6 /usr/local/X11 /usr/local" |
83 |
|
|
84 |
for dir in $xdirs; do |
for dir in $xdirs; do |
85 |
if [ -f $dir/include/X11/Xlib.h ]; then |
if [ -f $dir/include/X11/Xlib.h ]; then |
101 |
exit 1 |
exit 1 |
102 |
fi |
fi |
103 |
|
|
104 |
|
echo "X Window System:" |
105 |
|
echo " includes $xdir/include" |
106 |
|
echo " libraries $xdir/lib" |
107 |
|
echo |
108 |
|
|
109 |
if [ $xdir != "/usr" ]; then |
if [ $xdir != "/usr" ]; then |
110 |
cflags="$cflags -I$xdir/include" |
cflags="$cflags -I$xdir/include" |
111 |
ldflags="$ldflags -L$xdir/lib" |
ldflags="$ldflags -L$xdir/lib" |
119 |
|
|
120 |
# Find OpenSSL installation if available |
# Find OpenSSL installation if available |
121 |
|
|
122 |
ssldirs="/usr /usr/openssl /usr/ssl /usr/local /usr/local/openssl /usr/local/ssl" |
ssldirs="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local" |
123 |
|
|
124 |
for dir in $ssldirs; do |
for dir in $ssldirs; do |
125 |
if [ -f $dir/include/openssl/rc4.h ]; then |
if [ -f $dir/include/openssl/rc4.h ]; then |
134 |
echo "Using in-tree crypto; installing OpenSSL is recommended." |
echo "Using in-tree crypto; installing OpenSSL is recommended." |
135 |
echo |
echo |
136 |
else |
else |
137 |
|
echo "OpenSSL:" |
138 |
|
echo " includes $ssldir/include" |
139 |
|
echo " libraries $ssldir/lib" |
140 |
|
echo |
141 |
|
|
142 |
echo "CRYPTOBJ =" >>Makeconf |
echo "CRYPTOBJ =" >>Makeconf |
143 |
|
|
144 |
if [ $ssldir != "/usr" ]; then |
if [ $ssldir != "/usr" ]; then |