#!/usr/bin/sh

case $1 in
  --version)
    echo 3.0.4;;
  --prefix)
    echo /usr;;
  --libs)
    echo -L${SHERPA_LIBRARY_PATH:-/usr/lib64/SHERPA-MC} -lSherpaMain -L/usr/lib64 -lHepMC3 -L/usr/lib64/root -lHepMC3rootIO -L/usr/lib64 -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -lHepMC3 -lHepMC3search -lRivet -lYODA -ldl -lfastjet -lfastjetcontribfragile -lfastjetplugins -lfastjettools -lhdf5 -lhdf5_hl -lm -lsiscone -lsiscone_spherical -lsz -lz -L/usr/lib64/root -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lROOTNTuple -lROOTNTupleUtil -lMultiProc -lROOTDataFrame -Wl,-rpath,/usr/lib64/root -pthread -lm -ldl -rdynamic -L/usr/bin/../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/root -lHepMC3rootIO -L/usr/lib64 -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -lHepMC3 -lHepMC3search -lRivet -lYODA -ldl -lfastjet -lfastjetcontribfragile -lfastjetplugins -lfastjettools -lhdf5 -lhdf5_hl -lm -lsiscone -lsiscone_spherical -lsz -lz -L/usr/lib64/root -lCore -lImt -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lROOTVecOps -lTree -lTreePlayer -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lROOTNTuple -lROOTNTupleUtil -lMultiProc -lROOTDataFrame -Wl,-rpath,/usr/lib64/root -pthread -lm -ldl -rdynamic -L/usr/bin/../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/builddir/build/BUILD/hdf5-1.14.6-build/hdf5-hdf5_1.14.6/src/H5FDsubfiling -I/usr/include -I/usr/include -I/usr/include -pthread -std=c++17 -m64 -fsized-deallocation -I/usr/include/root -I/usr/include;;
  --cxx)
    echo g++;;
  --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
