File: configure

package info (click to toggle)
pdfsandwich 0.1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 188 kB
  • sloc: ml: 946; sh: 318; makefile: 142; perl: 110
file content (52 lines) | stat: -rwxr-xr-x 1,089 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#! /bin/sh

# currently only used to automatically set a new prefix p by
# ./configure --prefix=p
# the compiled files will be installed to p/bin, p/lib, etc.
# default: p=/usr/local

prefix=/usr/local

for option
do
  optarg=`expr "x$option" : 'x[^=]*=\(.*\)'`
  case $option in
    -help | --help | --hel | --he | -h)
    { echo "USAGE: configure [--prefix=dir]
where dir is the installation prefix directory (default: /usr/local)" >&2
   { (exit 1); exit 1; }; }
   ;;
    --prefix=*)
      prefix=$optarg ;;
    -*) { echo "warning: unrecognized option: $option
Try \`$0 --help' for more information." >&2 
   }
   ;;
  esac
done


OCAMLCLOC=`ocamlc -where || echo +`
OCAMLOPTLOC=`ocamlopt -where || echo +`
echo
if test -d $OCAMLCLOC
then
  echo ocamlc found in $OCAMLCLOC
else
  echo ocmalc not found, configuration failed.
  exit 0
fi
if test -x $OCAMLOPTLOC
then
  echo ocamlopt found in $OCAMLOPTLOC
else
  echo ocamlopt not found, configuration failed.
  exit 0
fi

echo
echo PREFIX=$prefix
echo PREFIX=$prefix > makefile.installprefix
echo makefile.installprefix written.
echo