configure: check for libstdc++.{so,dylib,a}
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Jun 02 19:49:36 2011 +0200 (2011-06-02)
changeset 249956b7eab1391a
parent 2498 6b479665a053
child 2500 ba1e71fa72a9
configure: check for libstdc++.{so,dylib,a}

It's probably a good thing to check for at least one instance of
libstdc++.{so,dylib,a} at configure time. At least one is needed
by the companion libraries and gcc.

Original patch by Bryan Hundven <bryanhundven@gmail.com>

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
configure
     1.1 --- a/configure	Thu Jun 02 21:43:36 2011 +0200
     1.2 +++ b/configure	Thu Jun 02 19:49:36 2011 +0200
     1.3 @@ -430,6 +430,13 @@
     1.4  has_or_abort lib="${ncurses_libs}"                  \
     1.5               err="'ncurses' library was not found"
     1.6  
     1.7 +stdcxx_libs="$( for x in so dylib a; do \
     1.8 +                   printf "libstdc++.$x "; \
     1.9 +               done \
    1.10 +             )"
    1.11 +has_or_abort lib="${stdcxx_libs}" \
    1.12 +             err="'libstdc++' shared library was not found"
    1.13 +
    1.14  #---------------------------------------------------------------------
    1.15  # Compute the version string
    1.16