summaryrefslogtreecommitdiff
path: root/math/ocaml-zarith/files/patch-configure
blob: 6ce8fe8ee40b50a321b929f5fdd5f90d92e3137d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- configure.orig	2021-03-03 09:00:00 UTC
+++ configure
@@ -268,7 +268,7 @@ searchbin ocamlfind
 if test $? -eq 1 -a $ocamlfind != "no"; then 
     instmeth='findlib'
     if test "$installdir" = "auto"
-    then installdir=`ocamlfind printconf destdir`; fi
+    then installdir=`ocamlfind printconf destdir | sed 's/:.*//'`; fi
 else
     searchbin install
     if test $? -eq 1; then instmeth='install'
@@ -365,7 +365,7 @@ OCAMLOPTFLAGS=$mloptflags
 OCAMLINC=$mlinc
 CFLAGS=$ccinc $ccdef $ccopt
 LIBS=$cclib
-INSTALLDIR=$installdir
+INSTALLDIR=${DESTDIR}$installdir
 INSTALL=install
 OCAMLFIND=ocamlfind
 INSTMETH=$instmeth