source: trunk/gsdl/packages/configure@ 2169

Last change on this file since 2169 was 2169, checked in by jrm21, 23 years ago

Better check for bindir (can't cd to it if it doesn't exist yet...) Don't assume tar is GNU tar (with -z option)

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