1#!/bin/sh 2############################################################################## 3# configure.gnu 4# 5# Wrapper to configure 6# 7# from Persistence of Vision(tm) Ray Tracer version 3.6. 8# Copyright 1991-2003 Persistence of Vision Team 9# Copyright 2003-2004 Persistence of Vision Raytracer Pty. Ltd. 10#--------------------------------------------------------------------------- 11# NOTICE: This source code file is provided so that users may experiment 12# with enhancements to POV-Ray and to port the software to platforms other 13# than those supported by the POV-Ray developers. There are strict rules 14# regarding how you are permitted to use this file. These rules are contained 15# in the distribution and derivative versions licenses which should have been 16# provided with this file. 17# 18# These licences may be found online, linked from the end-user license 19# agreement that is located at http://www.povray.org/povlegal.html 20#--------------------------------------------------------------------------- 21# This program is based on the popular DKB raytracer version 2.12. 22# DKBTrace was originally written by David K. Buck. 23# DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins. 24#--------------------------------------------------------------------------- 25# 26#=========================================================================== 27# This file is part of MegaPOV, a modified and unofficial version of POV-Ray 28# For more information on MegaPOV visit our website: 29# http://megapov.inetart.net/ 30#=========================================================================== 31# 32############################################################################## 33 34# configure.gnu for the source distribution of POV-Ray 3.6 for UNIX 35# Written by Nicolas Calimet <pov4grasp@free.fr> 36 37# get srcdir 38srcdir=`echo $* | grep srcdir | sed 's,.*srcdir=\([^[:space:]]*\).*,\1,g'` 39if test -z "$srcdir"; then 40 srcdir="." 41fi 42 43# get cache-file 44cachefile=`echo $* | grep cache-file | sed 's,.*cache-file=\([^[:space:]]*\).*,\1,g'` 45 46# Setting MISSING can prevent configure error with cygwin and 47# directories containing special caracters (such as spaces or quotes). 48MISSING="\${SHELL} $srcdir/missing" 49export MISSING 50 51# Process arguments (remove VAR=VALUE args, which are exported). 52# cache-file and srcdir were the last arguments, so remove all what follows 53# the first VAR argument. 54args= 55for arg in $*; do 56 arg=`echo $arg | sed s,^[^-].*,,` 57 if test -z "$arg"; then break; fi 58 args="$args $arg" 59done 60if test -z "`echo $args | grep cache-file`"; then 61 args="--cache-file=$cachefile $args" 62fi 63if test -z "`echo $args | grep srcdir`"; then 64 args="--srcdir=$srcdir $args" 65fi 66 67# run configure 68case "$args" in 69 *help*) 70 echo "" 71 echo "" 72 ;; 73 74 *) 75 echo "configure.gnu: configuring zlib 1.2.3" 76 echo "configure.gnu: running $srcdir/configure $args" 77 ;; 78esac 79echo "@@@@@@ start of zlib configuration @@@@@@" >> ../../config.log 80$srcdir/configure $args || exit 1 81cat config.log >> ../../config.log 82echo "@@@@@@ end of zlib configuration @@@@@@" >> ../../config.log 83echo "" 84