depends  g++  &&

if [[ "$CIMG_EXAMPLES" == "y" ]]
then
  optional_depends  X11-LIBS                                \
                    ""                                      \
                    ""                                      \
                    "to enable the use of the X11 library"  &&

  source  $GRIMOIRE/FUNCTIONS  &&

  if  check_if_xorg_modular_libs
  then
    optional_depends  libxext                                                 \
                      ""                                                      \
                      ""                                                      \
                      "to enable fast image display, using the XSHM library"  &&

    optional_depends  libxrandr                                                    \
                      ""                                                           \
                      ""                                                           \
                      "to enable screen mode switching, using the XRandr library"
  fi  &&

  optional_depends  fftw                                                                                \
                    ""                                                                                  \
                    ""                                                                                  \
                    "to enable faster Discrete Fourier Transform computation, using the FFTW3 library"  &&

  optional_depends  imagemagick                                                                                  \
                    ""                                                                                           \
                    ""                                                                                           \
                    "to enable native support of most classical image file formats, using the Magick++ library"  &&

  optional_depends  jpeg                \
                    ""                  \
                    ""                  \
                    "for JPEG support"  &&

  optional_depends  libpng             \
                    ""                 \
                    ""                 \
                    "for PNG support"  &&

  optional_depends  tiff                \
                    ""                  \
                    ""                  \
                    "for TIFF support"
fi
