2001-09-14 15:51:38 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# rdesktop: A Remote Desktop Protocol client
|
|
|
|
# configure script
|
|
|
|
# Copyright (C) Matthew Chapman 1999-2001
|
|
|
|
#
|
|
|
|
|
|
|
|
echo "# Generated by $0 $*" >Makeconf
|
|
|
|
|
|
|
|
for arg in $*; do
|
|
|
|
optarg=`echo $arg | sed 's/[-a-z]*=//'`
|
|
|
|
case $arg in
|
|
|
|
--prefix=*)
|
2001-09-15 11:37:17 +02:00
|
|
|
echo "PREFIX = $optarg" >>Makeconf
|
2001-09-14 15:51:38 +02:00
|
|
|
;;
|
|
|
|
--exec-prefix=*)
|
2001-09-15 11:37:17 +02:00
|
|
|
echo "EPREFIX = $optarg" >>Makeconf
|
2001-09-14 15:51:38 +02:00
|
|
|
;;
|
|
|
|
--bindir=*)
|
2001-09-15 11:37:17 +02:00
|
|
|
echo "BINDIR = $optarg" >>Makeconf
|
2001-09-14 15:51:38 +02:00
|
|
|
;;
|
|
|
|
--mandir=*)
|
2001-09-15 11:37:17 +02:00
|
|
|
echo "MANDIR = $optarg" >>Makeconf
|
|
|
|
;;
|
|
|
|
--with-openssl*)
|
|
|
|
echo "CFLAGS += -DWITH_OPENSSL" >>Makeconf
|
|
|
|
echo "LDLIBS += -lcrypto" >>Makeconf
|
|
|
|
echo "CRYPTOBJ =" >>Makeconf
|
|
|
|
;;
|
|
|
|
--without-openssl*)
|
2001-09-14 15:51:38 +02:00
|
|
|
;;
|
2002-07-18 16:44:32 +02:00
|
|
|
--with-debug)
|
2001-09-15 11:37:17 +02:00
|
|
|
echo "CFLAGS += -g -DWITH_DEBUG" >>Makeconf
|
2001-09-14 15:51:38 +02:00
|
|
|
;;
|
2002-07-18 16:44:32 +02:00
|
|
|
--with-debug-kbd)
|
|
|
|
echo "CFLAGS += -g -DWITH_DEBUG_KBD" >>Makeconf
|
|
|
|
;;
|
2001-09-14 15:51:38 +02:00
|
|
|
--without-debug*)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "rdesktop build configuration script"
|
|
|
|
echo
|
|
|
|
echo "Target directories:"
|
|
|
|
echo " --prefix=PREFIX location for architecture-independent files"
|
|
|
|
echo " --exec-prefix=EPREFIX location for architecture-dependent files"
|
|
|
|
echo " --bindir=BINDIR location for program binaries [EPREFIX/bin]"
|
|
|
|
echo " --mandir=MANDIR location for man pages [PREFIX/man]"
|
|
|
|
echo
|
|
|
|
echo "Build configuration:"
|
2001-09-15 11:37:17 +02:00
|
|
|
echo " --with-openssl use system OpenSSL libraries for crypto"
|
2001-09-14 15:51:38 +02:00
|
|
|
echo " --with-debug enable debugging output"
|
|
|
|
echo
|
|
|
|
rm -f Makeconf
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "configure complete - now run make"
|