/[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 156 - (show annotations)
Sun Sep 15 11:36:23 2002 UTC (21 years, 8 months ago) by matthewc
File size: 2472 byte(s)
Move platform-specific stuff to configure (avoid relying on GNU make)
Autodetect gcc in configure
Autodetect X11DIR in configure
Rename PREFIX etc in line with GNU conventions

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 "# Generated by $0 $*" >Makeconf
9
10
11 # Choose gcc if available
12
13 if `which gcc >/dev/null`; then
14 echo "CC = gcc" >>Makeconf
15 fi
16
17
18 # Find X installation
19
20 xdirs="/usr/X11 /usr/X11R6 /usr/openwin /usr /usr/local/X11 /usr/local/X11R6 /usr/local"
21
22 for dir in $xdirs; do
23 if [ -e $dir/include/X11/Xlib.h ]; then
24 xdir=$dir
25 break
26 fi
27 done
28
29 if [ -z $xdir ]; then
30 echo "ERROR: could not find X installation"
31 echo "(searched for include/X11/Xlib.h in $xdirs)"
32 exit 1
33 fi
34
35 echo "X11DIR = $xdir" >> Makeconf
36
37
38 # Add platform-specific options
39
40 case `uname -s` in
41 SunOS)
42 echo "LDFLAGS += -R$(X11DIR)/lib -lsocket -lnsl" >>Makeconf
43 ;;
44 esac
45
46
47 # Process command line options
48
49 for arg in $*; do
50 optarg=`echo $arg | sed 's/[-a-z]*=//'`
51 case $arg in
52 --prefix=*)
53 echo "prefix = $optarg" >>Makeconf
54 ;;
55 --exec-prefix=*)
56 echo "exec_prefix = $optarg" >>Makeconf
57 ;;
58 --bindir=*)
59 echo "bindir = $optarg" >>Makeconf
60 ;;
61 --mandir=*)
62 echo "mandir = $optarg" >>Makeconf
63 ;;
64 --sharedir=*)
65 echo "datadir = $optarg" >>Makeconf
66 ;;
67 --with-openssl*)
68 echo "CFLAGS += -DWITH_OPENSSL" >>Makeconf
69 echo "LDFLAGS += -lcrypto" >>Makeconf
70 echo "CRYPTOBJ =" >>Makeconf
71 ;;
72 --without-openssl*)
73 ;;
74 --with-debug)
75 echo "CFLAGS += -g -DWITH_DEBUG" >>Makeconf
76 ;;
77 --with-debug-kbd)
78 echo "CFLAGS += -g -DWITH_DEBUG_KBD" >>Makeconf
79 ;;
80 --without-debug*)
81 ;;
82 *)
83 echo "rdesktop build configuration script"
84 echo
85 echo "Target directories:"
86 echo " --prefix=PREFIX location for architecture-independent files"
87 echo " --exec-prefix=EPREFIX location for architecture-dependent files"
88 echo " --bindir=BINDIR location for program binaries [EPREFIX/bin]"
89 echo " --mandir=MANDIR location for man pages [PREFIX/man]"
90 echo " --sharedir=SHAREDIR location for architecture-independent shared files [PREFIX/share/rdesktop]"
91 echo
92 echo "Build configuration:"
93 echo " --with-openssl use system OpenSSL libraries for crypto"
94 echo " --with-debug enable protocol debugging output"
95 echo " --with-debug-kbd enable debugging of keyboard handling"
96 echo
97 rm -f Makeconf
98 exit 1
99 ;;
100 esac
101 done
102
103 echo "configure complete - now run make"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26