11 |
optarg=`echo $arg | sed 's/[-a-z]*=//'` |
optarg=`echo $arg | sed 's/[-a-z]*=//'` |
12 |
case $arg in |
case $arg in |
13 |
--prefix=*) |
--prefix=*) |
14 |
echo "PREFIX = $optarg" >>Makeconf |
echo "PREFIX = $optarg" >>Makeconf |
15 |
;; |
;; |
16 |
--exec-prefix=*) |
--exec-prefix=*) |
17 |
echo "EPREFIX = $optarg" >>Makeconf |
echo "EPREFIX = $optarg" >>Makeconf |
18 |
;; |
;; |
19 |
--bindir=*) |
--bindir=*) |
20 |
echo "BINDIR = $optarg" >>Makeconf |
echo "BINDIR = $optarg" >>Makeconf |
21 |
;; |
;; |
22 |
--mandir=*) |
--mandir=*) |
23 |
echo "MANDIR = $optarg" >>Makeconf |
echo "MANDIR = $optarg" >>Makeconf |
24 |
;; |
;; |
25 |
--with-debug*) |
--sharedir=*) |
26 |
echo "CFLAGS += -g -DWITH_DEBUG" >>Makeconf |
echo "SHAREDIR = $optarg" >>Makeconf |
27 |
|
;; |
28 |
|
--with-openssl*) |
29 |
|
echo "CFLAGS += -DWITH_OPENSSL" >>Makeconf |
30 |
|
echo "LDLIBS += -lcrypto" >>Makeconf |
31 |
|
echo "CRYPTOBJ =" >>Makeconf |
32 |
|
;; |
33 |
|
--without-openssl*) |
34 |
|
;; |
35 |
|
--with-debug) |
36 |
|
echo "CFLAGS += -g -DWITH_DEBUG" >>Makeconf |
37 |
|
;; |
38 |
|
--with-debug-kbd) |
39 |
|
echo "CFLAGS += -g -DWITH_DEBUG_KBD" >>Makeconf |
40 |
;; |
;; |
41 |
--without-debug*) |
--without-debug*) |
42 |
;; |
;; |
48 |
echo " --exec-prefix=EPREFIX location for architecture-dependent files" |
echo " --exec-prefix=EPREFIX location for architecture-dependent files" |
49 |
echo " --bindir=BINDIR location for program binaries [EPREFIX/bin]" |
echo " --bindir=BINDIR location for program binaries [EPREFIX/bin]" |
50 |
echo " --mandir=MANDIR location for man pages [PREFIX/man]" |
echo " --mandir=MANDIR location for man pages [PREFIX/man]" |
51 |
|
echo " --sharedir=SHAREDIR location for architecture-independent shared files [PREFIX/share/rdesktop]" |
52 |
echo |
echo |
53 |
echo "Build configuration:" |
echo "Build configuration:" |
54 |
|
echo " --with-openssl use system OpenSSL libraries for crypto" |
55 |
echo " --with-debug enable debugging output" |
echo " --with-debug enable debugging output" |
56 |
|
echo " --with-debug-kbd enable debugging of keyboard handling" |
57 |
echo |
echo |
58 |
rm -f Makeconf |
rm -f Makeconf |
59 |
exit 1 |
exit 1 |