This fix puts the location (in -L, -l form) of the C++ library associated with the C++ compiler in the list of library options contained in the plplotd.pc file configured and installed by our build system for the case where BUILD_SHARED_LIBS is not true.  For that unique case alone, the plplotd library turns into a static C++ library because of the C++ device driver code that is compiled into that library, and the traditional (i.e., using "make" and pkg-config) build of the installed examples fails without this fix to the configured plplotd.pc file.
This fix puts the location (in -L, -l form) of the C++ library
associated with the C++ compiler in the list of library options
contained in the plplotd.pc file configured and installed by our build
system for the case where BUILD_SHARED_LIBS is not true.  For that
unique case alone, the plplotd library turns into a static C++ library
because of the C++ device driver code that is compiled into that
library, and the traditional (i.e., using "make" and pkg-config) build
of the installed examples fails without this fix to the configured
plplotd.pc file.

There are some caveats for this logic.

* The find_library CMake logic assumes the name of the library is
  "stdc++". That is certainly the correct name on Linux.  Other names
  could be added if some other kinds of systems have a different name
  for that library.

* The find_library logic uses PATHS which are determined by parsing
  the results of c++ --verbose --version.  That parsing should only work
  for the extremely specific --verbose --version output of the GCC C++
  compiler, but that is a pretty important case, and I am glad to get
  the traditional build of the installed examples to work again for
  that compiler for the static PLplot library case.

Others should feel free to generalize this logic to different
names for the C++ library and other C++ compilers.


svn path=/trunk/; revision=12309

FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot,FreeScienceCommunity/PLPlot