source: trunk/gsdl/packages/configure@ 2349

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

minor change for pdftohtml package renaming.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.4 KB
RevLine 
[1668]1#! /bin/sh
2
3PACKAGES=`pwd`
[1704]4cd ..
5GSDLHOME=`pwd`
6cd $PACKAGES
7GSDLOS=`uname | tr A-Z a-z`
[2169]8# bindir can be overridden on command line.
[2019]9bindir=$GSDLHOME/bin/$GSDLOS
[1668]10
[2019]11
[1715]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 ;;
[1940]29 --enable-z3950)
30 USE_Z3950=true
31 ;;
[2113]32 --enable-corba)
33 USE_CORBA=true
34 ;;
[2173]35 --with-micodir=*)
36 if test $1 = ""; then
37 $1 = "default"
38 fi
39 MICO_DIR=$1
40 ;;
[2019]41 --bindir=*)
[2169]42 bindir=`echo $1 | sed s/--bindir=//`
43 if test -d $bindir ; then
44 bindir=`cd $bindir ; pwd `
45 cd "$PACKAGES"
46 elif test -z `echo $bindir | sed '/^\// p;D'` ; then
47 # turn relative path into an absolute path
48 rel_bindir=`echo $bindir | sed s@/.*@@`
49 cd $rel_bindir
50 bindir=`pwd`/`echo $bindir | sed s@^[^/]*/@@`
51 cd "$PACKAGES"
52 else
53 # bindir doesn't exist, and isn't relative
54 true
55 fi
[2019]56 ;;
[1715]57 *)
58 # ignore all other options for now
59 ;;
60 esac
61 shift
62done
63
[2169]64# we assume that gzip and tar are on the search path.
65# non-GNU versions of tar don't take the -z option.
66
67
[2204]68echo USE_CORBA = $USE_CORBA
69echo MICO_DIR = $MICO_DIR
[2173]70if test -n "$USE_CORBA"; then
71 if test $MICO_DIR = default; then
72 # configure the MICO CORBA ORB
73 echo ""
74 echo "Configuring MICO CORBA"
75 echo ""
[1715]76
[2173]77 cd "$PACKAGES/mico"
78 gzip -dc mico-2.3.5.tar.gz | tar -xf -
79 cd mico
80 ./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
81 sed 's/tools//' $PACKAGES/mico/mico/Makefile | sed 's/ldconfig//' >$PACKAGES/mico/mico/Makefile.out
82 mv $PACKAGES/mico/mico/Makefile.out $PACKAGES/mico/mico/Makefile
83 else
84 #MICO is on the system path
85 echo ""
86 echo "Taking MICO from system paths"
87 echo ""
88 fi
[2169]89else
90 echo "corba support disabled - mico compiler not required."
91 echo " add '--enable-corba' to the configure command to include corba support."
92 echo ""
[2113]93fi
[1715]94
[2129]95
96
97
[2169]98
[1668]99# configure the wvWare Word document converter
100echo ""
101echo "Configuring wvWare"
[1978]102echo ""
[1668]103
[1996]104cd "$PACKAGES/wv"
[2169]105gzip -dc wv-0.6.3-gs.tar.gz | tar -xf -
[1978]106cd wv-gs
[2169]107./configure $CACHE_FILE --prefix=$PACKAGES/wv --bindir="$bindir"
[1668]108
[1961]109# configure the pdftohtml converter
110echo ""
111echo "Configuring pdftohtml"
112echo ""
[1668]113
[1996]114cd "$PACKAGES/pdftohtml"
[2349]115gzip -dc pdftohtml_gs.tar.gz | tar -xf -
[1961]116
[2349]117
[1715]118# YAZ Z39.50 toolkit
[2052]119echo ""
120echo "Configuring YAZ"
[2169]121if test x$USE_Z3950 = xtrue ;
[1940]122then
123 echo ""
124 cd "$PACKAGES/yaz"
125 ./configure $CACHE_FILE
126else
[2052]127 echo "Z39.50 support disabled - YAZ library not required."
128 echo " add '--enable-z3950' to the configure command to include z39.50 support."
[1940]129 echo ""
130fi
[1715]131
[1704]132# configure wget
133echo ""
134echo "Configuring wget"
135echo ""
136cd $PACKAGES/wget
[2349]137gzip -dc wget.tar.gz | tar -xf -
[1704]138cd $PACKAGES/wget/wget-1.5.3
[2169]139./configure $CACHE_FILE --prefix=$PACKAGES/wget --bindir="$bindir"
140
141
142
Note: See TracBrowser for help on using the repository browser.