#!/bin/bash
# src/thepeg-config.  Generated from thepeg-config.in by configure.

prefix=/usr
exec_prefix=/usr
datarootdir=${prefix}/share

tmp=$(echo $* | egrep -- '--\<help\>|-\<h\>')
if test $# -eq 0 || test -n "$tmp"; then
    echo "thepeg-config: configuration tool for the ThePEG event generator framework"
    echo "               http://projects.hepforge.org/thepeg/"
    echo
    echo "Usage: `basename $0` [Option]"
    echo "Options:"
    echo "  --help | -h       : show this help message"
    echo "  --prefix          : show the installation prefix (cf. autoconf)"
    echo "  --datadir         : show the path to the directory containing shared data"
    echo "  --libdir          : show the path to the directory containing the libraries"
    echo "  --includedir      : show the path to the directory containing the headers"
    echo "  --cppflags        : show the required CPPFLAGS for building against ThePEG"
    echo "  --ldflags         : show the required LDFLAGS for linking against ThePEG"
    echo "  --ldlibs          : show the required libraries for linking against ThePEG"
    echo "  --rivet-include   : show the path to the directory containing the Rivet headers"
    echo "  --fastjet-include : show the path to the directory containing the FastJet headers"
    echo "  --rivet-libs      : show the required libraries for linking against Rivet"
    echo "  --fastjet-libs    : show the required libraries for linking against FastJet"

    echo
fi

tmp=$(echo "$*" | egrep -- '--\<prefix\>')
test -n "$tmp" && echo $prefix

tmp=$(echo "$*" | egrep -- '--\<datadir\>')
test -n "$tmp" && echo /usr/share/ThePEG

tmp=$(echo "$*" | egrep -- '--\<libdir\>')
test -n "$tmp" && echo /usr/lib64/ThePEG

tmp=$(echo "$*" | egrep -- '--\<includedir\>')
test -n "$tmp" && echo /usr/include

tmp=$(echo "$*" | egrep -- '--\<cppflags\>')
test -n "$tmp" && echo -I/usr/include  -I/usr/include 

tmp=$(echo "$*" | egrep -- '--\<ldflags\>')
test -n "$tmp" && echo  -flto=auto

tmp=$(echo "$*" | egrep -- '--\<ldlibs\>')
test -n "$tmp" && echo -lz 

tmp=$(echo "$*" | egrep -- '--\<rivet-include\>')
test -n "$tmp" && echo 

tmp=$(echo "$*" | egrep -- '--\<fastjet-include\>')
test -n "$tmp" && echo -I/usr/include

tmp=$(echo "$*" | egrep -- '--\<rivet-libs\>')
test -n "$tmp" && echo  -L/usr/lib64 -R/usr/lib64 -lHepMC3

tmp=$(echo "$*" | egrep -- '--\<fastjet-libs\>')
test -n "$tmp" && echo -L/usr/lib64 -lfastjettools -lfastjet -lgmp -lm -lfastjetplugins -lsiscone_spherical -lsiscone
