/[rdesktop]/sourceforge.net/tags/RDESKTOP-1-3-1/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

Diff of /sourceforge.net/tags/RDESKTOP-1-3-1/rdesktop/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 98 by astrand, Wed Aug 14 14:43:25 2002 UTC revision 156 by matthewc, Sun Sep 15 11:36:23 2002 UTC
# Line 7  Line 7 
7    
8  echo "# Generated by $0 $*" >Makeconf  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  for arg in $*; do
50  optarg=`echo $arg | sed 's/[-a-z]*=//'`      optarg=`echo $arg | sed 's/[-a-z]*=//'`    
51  case $arg in  case $arg in
52    --prefix=*)    --prefix=*)
53      echo "PREFIX   = $optarg" >>Makeconf      echo "prefix      = $optarg" >>Makeconf
54      ;;      ;;
55    --exec-prefix=*)    --exec-prefix=*)
56      echo "EPREFIX  = $optarg" >>Makeconf      echo "exec_prefix = $optarg" >>Makeconf
57      ;;      ;;
58    --bindir=*)    --bindir=*)
59      echo "BINDIR   = $optarg" >>Makeconf      echo "bindir      = $optarg" >>Makeconf
60      ;;      ;;
61    --mandir=*)    --mandir=*)
62      echo "MANDIR   = $optarg" >>Makeconf      echo "mandir      = $optarg" >>Makeconf
63      ;;      ;;
64    --sharedir=*)    --sharedir=*)
65      echo "SHAREDIR   = $optarg" >>Makeconf      echo "datadir     = $optarg" >>Makeconf
66      ;;      ;;
67    --with-openssl*)    --with-openssl*)
68      echo "CFLAGS  += -DWITH_OPENSSL" >>Makeconf      echo "CFLAGS     += -DWITH_OPENSSL" >>Makeconf
69      echo "LDLIBS  += -lcrypto" >>Makeconf      echo "LDFLAGS    += -lcrypto" >>Makeconf
70      echo "CRYPTOBJ =" >>Makeconf      echo "CRYPTOBJ    =" >>Makeconf
71      ;;      ;;
72    --without-openssl*)    --without-openssl*)
73      ;;      ;;
74    --with-debug)    --with-debug)
75      echo "CFLAGS  += -g -DWITH_DEBUG" >>Makeconf      echo "CFLAGS     += -g -DWITH_DEBUG" >>Makeconf
76      ;;      ;;
77    --with-debug-kbd)    --with-debug-kbd)
78      echo "CFLAGS  += -g -DWITH_DEBUG_KBD" >>Makeconf      echo "CFLAGS     += -g -DWITH_DEBUG_KBD" >>Makeconf
79      ;;      ;;
80    --without-debug*)    --without-debug*)
81      ;;      ;;
# Line 52  case $arg in Line 91  case $arg in
91      echo      echo
92      echo "Build configuration:"      echo "Build configuration:"
93      echo " --with-openssl         use system OpenSSL libraries for crypto"      echo " --with-openssl         use system OpenSSL libraries for crypto"
94      echo " --with-debug           enable debugging output"      echo " --with-debug           enable protocol debugging output"
95      echo " --with-debug-kbd       enable debugging of keyboard handling"      echo " --with-debug-kbd       enable debugging of keyboard handling"
96      echo      echo
97      rm -f Makeconf      rm -f Makeconf

Legend:
Removed from v.98  
changed lines
  Added in v.156

  ViewVC Help
Powered by ViewVC 1.1.26