# This file is for customizing the configuation process performed by
# `./configure'.  This file consists of sh(1) variable-definition lines.
# The value given to those variables by this file will override their default
# values.
#
# Be sure to test whether the variable doesn't exists before setting it.
#
# You can also customize the configuration process via the environment
# variables seen by ./configure.  For example:
#
#     In csh(1):
#	  % setenv CC acc
#	  & setenv CFLAGS -g
#	  % ./configure
#
#     In sh(1) or ksh(1):
#	  $ CC=acc CFLAGS=-g ./configure
#
# Variables in this file override the environmental ones.
#
#############################################################################

# C compiler
if [ -z "$CC" ]; then
  CC=gcc
fi

# C compiler flags
if [ -z "$CFLAGS" ]; then
  CFLAGS="-g -O2 -Wall -pedantic -D_GNU_SOURCE -std=c99"
fi

CFLAGS_TRIANGLE="-O2 -w -ffloat-store"
CFLAGS_VULNERABLE="-ffloat-store"

# Installation prefix (default is /usr/local)
if [ "${prefix}" = "NONE" ]; then
   prefix=/usr/local
fi

if [ "${libdir}" = "\${exec_prefix}/lib" ]; then
   libdir="${prefix}/lib${LIBEXT}"
fi

echo "Using prefix ${prefix}"
echo "Using libdir ${libdir}"
