#!/bin/sh
#######################################################################
#                                                                     #
#                        Caml examples                                #
#                                                                     #
#            Pierre Weis                                              #
#                                                                     #
#                        INRIA Rocquencourt                           #
#                                                                     #
#  Copyright (c) 1994-2011, INRIA                                     #
#  All rights reserved.                                               #
#                                                                     #
#  Distributed under the BSD license.                                 #
#                                                                     #
#######################################################################

# $Id: configure,v 1.1 2011-08-08 19:09:58 weis Exp $

# The script to configure Config.mk to set up the value of SRCROOTDIR.

case $# in
 2) PREFIX=$1; SRCROOTDIR=$2;
    ;;
 1) PREFIX=$1; SRCROOTDIR="`pwd`";
    ;;
 *) PREFIX="/usr/local"; SRCROOTDIR="`pwd`";
    ;;
esac


(cd config && ./configure ${PREFIX} ${SRCROOTDIR})
