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# Minimal compiler flag. 47CFLAGS=${CFLAGS:--O} 48export CFLAGS 49 50# Process arguments (remove VAR=VALUE args, which are exported). 51# cache-file and srcdir were the last arguments, so remove all what follows 52# the first VAR argument. 53args= 54for arg in $*; do 55 arg=`echo $arg | sed 's,^[^-].*,,; s,-*help=[^[:space:]]*,--help,g'` 56 if test -z "$arg"; then break; fi 57 args="$args $arg" 58done 59if test -z "`echo $args | grep cache-file`"; then 60 args="--cache-file=$cachefile $args" 61fi 62if test -z "`echo $args | grep srcdir`"; then 63 args="--srcdir=$srcdir $args" 64fi 65 66# run configure 67case "$args" in 68 *help*) 69 echo "Configuration of libjpeg 6b:" 70 echo "" 71 ;; 72 73 *) 74 echo "configure.gnu: configuring libjpeg 6b" 75 echo "configure.gnu: running $srcdir/configure $args" 76 ;; 77esac 78echo "@@@@@@ start of libjpeg configuration @@@@@@" >> ../../config.log 79$srcdir/configure $args || exit 1 80cat config.log >> ../../config.log 81echo "@@@@@@ end of libjpeg configuration @@@@@@" >> ../../config.log 82 83if test -f Makefile; then 84 echo "configure.gnu: editing Makefile" 85 sed 's,\(libjpeg.$(A)\).*,libjpeg.a,g' Makefile > Makefile.tmp 86 mv Makefile.tmp Makefile 87fi 88echo "" 89