#!/bin/sh

case $1 in
  --version)
    echo 3.0.3;;
  --prefix)
    echo /usr;;
  --libs)
    echo -L${SHERPA_LIBRARY_PATH:-/usr/lib64/SHERPA-MC} -lSherpaMain -L/usr/lib64 -lHepMC3 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -lHepMC3 -lHepMC3search -lRivet -lYODA -lfastjet -lfastjetcontribfragile -lfastjetplugins -lfastjettools -lsiscone -lsiscone_spherical -L/usr/lib64/root6 -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lROOTDataFrame -pthread -lm -ldl -rdynamic -L/lib64 -lLHAPDF;;
  --python-libs)
    echo /usr/lib/python3.13/site-packages/;;
  --load-mpi4py)
    echo ;;
  --incdir)
    echo ${SHERPA_INCLUDE_PATH:-/usr/include/SHERPA-MC};;
  --libdir)
    echo ${SHERPA_LIBRARY_PATH:-/usr/lib64/SHERPA-MC};;
  --datadir)
    echo ${SHERPA_SHARE_PATH:-/usr/share/SHERPA-MC};;
  --ldflags)
    echo -L${SHERPA_LIBRARY_PATH:-/usr/lib64/SHERPA-MC} -lSherpaMain -L/usr/lib64 -lHepMC3 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -lHepMC3 -lHepMC3search -lRivet -lYODA -lfastjet -lfastjetcontribfragile -lfastjetplugins -lfastjettools -lsiscone -lsiscone_spherical -L/usr/lib64/root6 -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -lROOTDataFrame -pthread -lm -ldl -rdynamic -L/lib64 -lLHAPDF;;
  --cppflags)
    echo -I${SHERPA_INCLUDE_PATH:-/usr/include/SHERPA-MC} -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -pthread -std=c++17 -m64 -fsized-deallocation -O3 -I/usr/include/root -fcf-protection -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -I/usr/include;;
  --cxx)
    echo c++;;
  --fc)
    echo gfortran;;
  *)
    echo "Sherpa-config: configuration tool for the Monte Carlo";
    echo "               event generator Sherpa: http://sherpa.hepforge.org";
    echo "Options:";
    echo "  Sherpa-config --version     : returns Sherpa version";
    echo "  Sherpa-config --prefix      : returns the installation path";
    echo "  Sherpa-config --incdir      : returns the path of Sherpa headers";
    echo "  Sherpa-config --libs        : returns the linker line to link with Sherpa";
    echo "  Sherpa-config --datadir     : returns the path of Sherpa data (like Decaydata, PDFs)";
    echo "  Sherpa-config --ldflags     : returns the LDFLAGS used for Sherpa";
    echo "  Sherpa-config --cppflags    : returns the preprocessor FLAGS needed for Sherpa headers";
    echo "  Sherpa-config --cxx         : returns the C++ compiler used";
    echo "  Sherpa-config --fc          : returns the FORTRAN compiler used";
    echo "  Sherpa-config --python-libs : returns the installation path of python libraries";;
esac
