/[rdesktop]/sourceforge.net/trunk/rdesktop/configure
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /sourceforge.net/trunk/rdesktop/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 202 - (show annotations)
Thu Sep 26 14:01:42 2002 UTC (21 years, 8 months ago) by matthewc
File size: 3626 byte(s)
Provide some more feedback to the user.

1 #!/bin/sh
2 #
3 # rdesktop: A Remote Desktop Protocol client
4 # configure script
5 # Copyright (C) Matthew Chapman 1999-2001
6 #
7
8 echo "rdesktop build configuration script"
9 echo
10
11 echo "# Generated by $0 $*" >Makeconf
12
13
14 # Process command line options
15
16 cflags=
17 ldflags=
18
19 for arg in $*; do
20 optarg=`echo $arg | sed 's/[-a-z]*=//'`
21 case $arg in
22 --prefix=*)
23 echo "prefix = $optarg" >>Makeconf
24 ;;
25 --exec-prefix=*)
26 echo "exec_prefix = $optarg" >>Makeconf
27 ;;
28 --bindir=*)
29 echo "bindir = $optarg" >>Makeconf
30 ;;
31 --mandir=*)
32 echo "mandir = $optarg" >>Makeconf
33 ;;
34 --sharedir=*)
35 echo "datadir = $optarg" >>Makeconf
36 ;;
37 --with-openssl*)
38 ;;
39 --without-openssl*)
40 ;;
41 --with-debug)
42 cflags="$cflags -g -DWITH_DEBUG"
43 ;;
44 --with-debug-kbd)
45 cflags="$cflags -g -DWITH_DEBUG_KBD"
46 ;;
47 --without-debug*)
48 ;;
49 *)
50 echo "Target directories:"
51 echo " --prefix=PREFIX location for architecture-independent files"
52 echo " --exec-prefix=EPREFIX location for architecture-dependent files"
53 echo " --bindir=BINDIR location for program binaries [EPREFIX/bin]"
54 echo " --mandir=MANDIR location for man pages [PREFIX/man]"
55 echo " --sharedir=SHAREDIR location for architecture-independent shared files [PREFIX/share/rdesktop]"
56 echo
57 echo "Build configuration:"
58 echo " --with-debug enable protocol debugging output"
59 echo " --with-debug-kbd enable debugging of keyboard handling"
60 echo
61 rm -f Makeconf
62 exit 1
63 ;;
64 esac
65 done
66
67
68 # Platform-specific options
69
70 need_runpath=no
71
72 case `uname -s` in
73 SunOS)
74 ldflags="$ldflags -lsocket -lnsl"
75 need_runpath=yes
76 ;;
77 esac
78
79
80 # Find X installation
81
82 xdirs="/usr/X11R6 /usr/X11 /usr/openwin /usr /usr/local/X11R6 /usr/local/X11 /usr/local"
83
84 for dir in $xdirs; do
85 if [ -f $dir/include/X11/Xlib.h ]; then
86 xdir=$dir
87 break
88 fi
89 done
90
91 if [ -z "$xdir" ]; then
92 echo "ERROR: could not find X Window System headers"
93 echo "(searched for include/X11/Xlib.h in $xdirs)"
94
95 # additional helpful information for Linux users
96 if [ -f /etc/redhat_release ]; then
97 echo You probably need to install the XFree86-devel package
98 elif [ -f /etc/debian_version ]; then
99 echo You probably need to install the xlibs-dev package
100 fi
101 exit 1
102 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
110 cflags="$cflags -I$xdir/include"
111 ldflags="$ldflags -L$xdir/lib"
112 if [ $need_runpath = "yes" ]; then
113 ldflags="$ldflags -R$xdir/lib"
114 fi
115 fi
116
117 ldflags="$ldflags -lX11"
118
119
120 # Find OpenSSL installation if available
121
122 ssldirs="/usr/openssl /usr/ssl /usr /usr/local/openssl /usr/local/ssl /usr/local"
123
124 for dir in $ssldirs; do
125 if [ -f $dir/include/openssl/rc4.h ]; then
126 ssldir=$dir
127 break
128 fi
129 done
130
131 if [ -z "$ssldir" ]; then
132 echo "WARNING: could not find OpenSSL headers"
133 echo "(searched for include/openssl/rc4.h in $ssldirs)"
134 echo "Using in-tree crypto; installing OpenSSL is recommended."
135 echo
136 else
137 echo "OpenSSL:"
138 echo " includes $ssldir/include"
139 echo " libraries $ssldir/lib"
140 echo
141
142 echo "CRYPTOBJ =" >>Makeconf
143
144 if [ $ssldir != "/usr" ]; then
145 cflags="$cflags -I$ssldir/include"
146 ldflags="$ldflags -L$ssldir/lib"
147 if [ $need_runpath = "yes" ]; then
148 ldflags="$ldflags -R$ssldir/lib"
149 fi
150 fi
151
152 cflags="$cflags -DWITH_OPENSSL"
153 ldflags="$ldflags -lcrypto"
154 fi
155
156
157 echo "CFLAGS += $cflags" >>Makeconf
158 echo "LDFLAGS += $ldflags" >>Makeconf
159
160 echo "configure complete - now run make"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26