view3d

annotate configure @ 4:0aee5df08cfc

fixed some shit
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 19 Jan 2012 07:03:47 +0200
parents
children
rev   line source
nuclear@0 1 #!/bin/sh
nuclear@0 2
nuclear@0 3 prefix='/usr/local'
nuclear@0 4 opt=false
nuclear@0 5 dbg=true
nuclear@0 6
nuclear@0 7 while [ $# -gt 0 ]; do
nuclear@0 8 case $1 in
nuclear@0 9 --prefix=*)
nuclear@0 10 prefix=`echo $1 | sed 's/^--prefix=//'`
nuclear@0 11 ;;
nuclear@0 12
nuclear@0 13 --enable-opt)
nuclear@0 14 opt=true
nuclear@0 15 ;;
nuclear@0 16 --disable-opt)
nuclear@0 17 opt=false
nuclear@0 18 ;;
nuclear@0 19 --enable-debug)
nuclear@0 20 dbg=true
nuclear@0 21 ;;
nuclear@0 22 --disable-debug)
nuclear@0 23 dbg=false
nuclear@0 24 ;;
nuclear@0 25 esac
nuclear@0 26 shift
nuclear@0 27 done
nuclear@0 28
nuclear@0 29 echo '# this file is generated by the configure script' >Makefile
nuclear@0 30 echo "PREFIX = $prefix" >>Makefile
nuclear@0 31 $opt && echo 'opt = -O3 -ffast-math' >>Makefile
nuclear@0 32 $dbg && echo 'dbg = -g' >>Makefile
nuclear@0 33 cat Makefile.in >>Makefile