$NetBSD: patch-aa,v 1.1.1.1 2000/06/12 22:37:00 wulf Exp $

--- configure.orig	Sat Jun 10 11:30:15 2000
+++ configure	Sat Jun 10 11:47:23 2000
@@ -1,9 +1,5 @@
 #!/bin/sh
 
-BINDIR=/usr/local/bin
-LIBDIR=/usr/local/lib/camlp4
-MANDIR=/usr/local/man/man1
-
 if test -f config/Makefile.cnf; then . config/Makefile.cnf; fi
 
 abort ()
@@ -63,23 +59,33 @@
 OLIBDIR=`echo $OLIBDIR | sed -e s=\\\\\\\\=/=g`
 echo "Ocaml library directory is $OLIBDIR"
 
-echo
-echo "The compilation process creates executable files."
-echo "Please tell me where to install them."
-askfor "Directory for executables" $BINDIR
-BINDIR=$r
+if test ${PREFIX}; then
+	BINDIR=${PREFIX}/bin
+	LIBDIR=${PREFIX}/lib/camlp4
+	MANDIR=${PREFIX}/man/man1
+else
+	BINDIR=/usr/local/bin
+	LIBDIR=/usr/local/lib/camlp4
+	MANDIR=/usr/local/man/man1
 
-echo
-echo "The compilation process creates some library files."
-echo "Please tell me where to install them."
-askfor "Directory for library" $LIBDIR
-LIBDIR=$r
+	echo
+	echo "The compilation process creates executable files."
+	echo "Please tell me where to install them."
+	askfor "Directory for executables" $BINDIR
+	BINDIR=$r
 
-echo
-echo "The system has some manual pages."
-echo "Please tell me where to install them."
-askfor "Directory for manual pages" $MANDIR
-MANDIR=$r
+	echo
+	echo "The compilation process creates some library files."
+	echo "Please tell me where to install them."
+	askfor "Directory for library" $LIBDIR
+	LIBDIR=$r
+
+	echo
+	echo "The system has some manual pages."
+	echo "Please tell me where to install them."
+	askfor "Directory for manual pages" $MANDIR
+	MANDIR=$r
+fi
 
 (
 echo OLIBDIR=$OLIBDIR
