source: trunk/gsdl/packages/configure@ 2380

Last change on this file since 2380 was 2380, checked in by jrm21, 20 years ago

mico was being configured even if not needed. Fixed.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
Line 
1#! /bin/sh
2
3PACKAGES=`pwd`
4cd ..
5GSDLHOME=`pwd`
6cd $PACKAGES
7GSDLOS=`uname | tr A-Z a-z`
8# bindir can be overridden on command line.
9bindir=$GSDLHOME/bin/$GSDLOS
10
11USE_CORBA=false
12
13# parse any arguments given from toplevel configure
14while test $# -ne 0; do
15 case "$1" in
16 --cache-file=*)
17 cache_filename=`echo $1 | sed s/--cache-file=//`
18 # turn relative path into an absolute path
19 cache_dir=`echo $cache_filename | sed 's@/[^/]*$@@'`
20 cache_dir=`cd $cache_dir 2>/dev/null && pwd`
21
22 cache_basefile=`echo $cache_filename | sed 's@.*/@@'`
23 cache_file="$cache_dir/$cache_basefile"
24 if test ! -f "$cache_file"; then
25 CACHE_FILE=""
26 else
27 CACHE_FILE="--cache-file=$cache_file"
28 fi
29 ;;
30 --enable-z3950)
31 USE_Z3950=true
32 ;;
33 --enable-corba)
34 USE_CORBA=true
35 ;;
36 --with-micodir=*)
37 if test $1 = ""; then
38 $1 = "default"
39 fi
40 MICO_DIR=$1
41 ;;
42 --bindir=*)
43 bindir=`echo $1 | sed s/--bindir=//`
44 if test -d $bindir ; then
45 bindir=`cd $bindir ; pwd `
46 cd "$PACKAGES"
47 elif test -z `echo $bindir | sed '/^\// p;D'` ; then
48 # turn relative path into an absolute path
49 rel_bindir=`echo $bindir | sed s@/.*@@`
50 cd $rel_bindir
51 bindir=`pwd`/`echo $bindir | sed s@^[^/]*/@@`
52 cd "$PACKAGES"
53 else
54 # bindir doesn't exist, and isn't relative
55 true
56 fi
57 ;;
58 *)
59 # ignore all other options for now
60 ;;
61 esac
62 shift
63done
64
65# we assume that gzip and tar are on the search path.
66# non-GNU versions of tar don't take the -z option.
67
68
69echo USE_CORBA = $USE_CORBA
70echo MICO_DIR = $MICO_DIR
71if test $USE_CORBA = true ; then
72 if test $MICO_DIR = default; then
73 # configure the MICO CORBA ORB
74 echo ""
75 echo "Configuring MICO CORBA"
76 echo ""
77
78 cd "$PACKAGES/mico"
79 gzip -dc mico-2.3.5.tar.gz | tar -xf -
80 cd mico
81 ./configure $CACHE_FILE --prefix=$PACKAGES/mico/ --disable-coss --disable-naming --disable-relship --disable-events --disable-streams --disable-property --disable-trader --disable-time --disable-debug --enable-optimize --enable-final --enable-speed-tune
82 sed 's/tools//' $PACKAGES/mico/mico/Makefile | sed 's/ldconfig//' >$PACKAGES/mico/mico/Makefile.out
83 mv $PACKAGES/mico/mico/Makefile.out $PACKAGES/mico/mico/Makefile
84 else
85 #MICO is on the system path
86 echo ""
87 echo "Taking MICO from system paths"
88 echo ""
89 fi
90else
91 echo "corba support disabled - mico compiler not required."
92 echo " add '--enable-corba' to the configure command to include corba support."
93 echo ""
94fi
95
96
97
98
99
100# configure the wvWare Word document converter
101echo ""
102echo "Configuring wvWare"
103echo ""
104
105cd "$PACKAGES/wv"
106gzip -dc wv-0.6.3-gs.tar.gz | tar -xf -
107cd wv-gs
108./configure $CACHE_FILE --prefix=$PACKAGES/wv --bindir="$bindir"
109
110# configure the pdftohtml converter
111echo ""
112echo "Configuring pdftohtml"
113echo ""
114
115cd "$PACKAGES/pdftohtml"
116gzip -dc pdftohtml_gs.tar.gz | tar -xf -
117
118
119# YAZ Z39.50 toolkit
120echo ""
121echo "Configuring YAZ"
122if test x$USE_Z3950 = xtrue ;
123then
124 echo ""
125 cd "$PACKAGES/yaz"
126 ./configure $CACHE_FILE
127else
128 echo "Z39.50 support disabled - YAZ library not required."
129 echo " add '--enable-z3950' to the configure command to include z39.50 support."
130 echo ""
131fi
132
133# configure wget
134echo ""
135echo "Configuring wget"
136echo ""
137cd $PACKAGES/wget
138gzip -dc wget.tar.gz | tar -xf -
139cd $PACKAGES/wget/wget-1.5.3
140./configure $CACHE_FILE --prefix=$PACKAGES/wget --bindir="$bindir"
141
142
143
Note: See TracBrowser for help on using the repository browser.