#!/bin/sh
# This file is generated by the configure script.
# use debugging code: false
# Zlib (gzipped file) support: yes
# use mallinfo(): no
# use malloc hooks: no
# C compiler used for build: unknown
# --------------------------
cc=cc
# Package Version
#----------------
version="1.0.3"
# Installation directories
#-------------------------
prefix=""
exec_prefix="${prefix}"
includedir="${prefix}/include"
libdir="${exec_prefix}/lib"
cppflags=""
cflags=""
ldflags=""
libs=" -lz"
build_cppflags=""
build_cflags="-fno-common"
build_ldflags=" -O"
build_libs=" -lz"
mpi_cppflags=""
mpi_cflags=""
mpi_ldflags=""
mpi_libs=""
# Output info depending on command-line options
#----------------------------------------------
if test $# -eq 0; then
show_help=yes
else
for opt in $*
do
case $opt in
--prefix)
output="${output} $prefix"
;;
--exec-prefix)
if test "$exec_prefix" != "" ; then
output="${output} $exec_prefix"
else
output="${output} $prefix/bin"
fi
;;
--includedir)
if test "$includedir" != "" ; then
output="${output} $includedir"
else
output="${output} $prefix/include"
fi
;;
--version)
output="${output} $version"
;;
--cppflags)
echo_cppflags=yes
;;
--cflags)
echo_cflags=yes
;;
--ldflags)
echo_ldflags=yes
;;
--libs)
echo_libs=yes
;;
--cc)
output="${output} $cc"
;;
-*)
show_help=yes
;;
*)
scope=$opt
;;
esac
done
fi
if test "$show_help" = "yes"; then
cat <<EOF
Usage: bft-config options scope
Options:
--prefix installation path prefix
--exec-prefix system-dependent path prefix
--includedir C header files path
--version library version
--cppflags C preprocessor flags (e.g. -D<macro>, ...)
--cflags C flags (e.g. -O, -g, ...)
--ldflags linker flags (e.g. -g, -L<path>, ...)
--libs librairies used (e.g. -l<libname>)
--cc C compiler used for build
Scope:
use (default) Options required for user code
build Options used for build
mpi
EOF
exit 1
fi
case "$scope" in
build)
cppflags=$build_cppflags
cflags=$build_cflags
ldflags=$build_ldflags
libs=$build_libs
;;
mpi)
cppflags=$mpi_cppflags
cflags=$mpi_cflags
ldflags=$mpi_ldflags
libs=$mpi_libs
;;
esac
if test "$echo_cppflags" = "yes" ; then
output="${output} $cppflags"
fi
if test "$echo_cflags" = "yes" ; then
output="${output} $cflags"
fi
if test "$echo_ldflags" = "yes" ; then
output="${output} $ldflags"
fi
if test "$echo_libs" = "yes" ; then
output="${output} $libs"
fi
if test "$output" != "" ; then
echo $output
fi
syntax highlighted by Code2HTML, v. 0.9.1