#! /usr/bin/env bash ## -*- sh -*- ## @configure_input@ ## These variables need to exist ## Note no use of $DESTDIR... we ignore it so that destdir can be used ## for temp installs later copied to / prefix=@prefix@ exec_prefix=@exec_prefix@ datarootdir=@datarootdir@ if [[ $# -eq 0 || -n $( echo $* | egrep -- "--help|-h" ) ]]; then echo "lhapdf-config: configuration tool for the LHAPDF" echo " parton density function evolution library" echo " http://projects.hepforge.org/lhapdf/" echo echo "Usage: lhapdf-config [options]" echo "Options:" echo " --help | -h : show this help message" echo " --prefix : show the installation prefix (cf. autoconf)" echo " --incdir : show the path to the LHAPDF C++ header directory" echo " --libdir : show the path to the LHAPDF library directory" echo " --datadir : show the path to the LHAPDF data directory" echo echo " --cxx : get compiler (including -std=c++11 flag or equiv)" echo " --cflags : get compiler flags (aka --cppflags|--cxxflags)" echo " --libs : get linker flags (aka --ldflags)" echo echo " --version : return LHAPDF release version number" fi OUT="" tmp=$( echo "$*" | egrep -- '--\') test -n "$tmp" && OUT="$OUT @prefix@" tmp=$( echo "$*" | egrep -- '--\') test -n "$tmp" && OUT="$OUT @includedir@" tmp=$( echo "$*" | egrep -- '--\') test -n "$tmp" && OUT="$OUT @LHAPDF_CXX@" tmp=$( echo "$*" | egrep -- '--\') test -n "$tmp" && OUT="$OUT @LHAPDF_CXXFLAGS@ -I@includedir@" tmp=$( echo "$*" | egrep -- '--\') test -n "$tmp" && OUT="$OUT @libdir@" tmp=$( echo "$*" | egrep -- '--\') test -n "$tmp" && OUT="$OUT -L@libdir@ -lLHAPDF" tmp=$( echo "$*" | egrep -- '--\|--\') test -n "$tmp" && OUT="$OUT @datadir@/@PACKAGE_TARNAME@" tmp=$( echo "$*" | egrep -- '--\') test -n "$tmp" && OUT="$OUT @PACKAGE_VERSION@" echo $OUT