VirtualBox

Changeset 5366 in vbox for trunk/configure


Ignore:
Timestamp:
Oct 18, 2007 9:18:20 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
25434
Message:

Add configure check for static libstc++ on linux. Needed by the
additions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure

    r5359 r5366  
    322322      fi
    323323      if [ "$BUILD_MACHINE" = "x86" -a "$TARGET_MACHINE" = "amd64" ]; then
    324         [ -z "$CC64"  ] && CC64="$CC -m64"
    325         [ -z "$CXX64" ] && CXX64="$CXX -m64"
     324        [ -z "$CC64"  ] && CC64="$CC -m64"
     325        [ -z "$CXX64" ] && CXX64="$CXX -m64"
    326326      fi
    327327      if [ "$CC" != "gcc" ]; then
     
    10161016      log_success "found version $moc_ver"
    10171017    fi
     1018  fi
     1019}
     1020
     1021#
     1022# Check whether static libstdc++ is installed
     1023#
     1024check_staticlibstdcxx()
     1025{
     1026  test_header "static stc++ library"
     1027  libstdcxx=`$CXX -print-file-name=libstdc++.a`
     1028  cat > .tmp_src.cc << EOF
     1029#include <string>
     1030
     1031extern "C" int main(void)
     1032{
     1033  std::string s = "test";
     1034  return 0;
     1035}
     1036EOF
     1037  if test_compile "$libstdcxx" libstdc++ libstdc++; then
     1038    log_success "found"
    10181039  fi
    10191040}
     
    14511472# Linux-specific
    14521473if [ "$OS" = "linux" ]; then
     1474  check_staticlibstdcxx
    14531475  check_linux
    14541476  check_alsa
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette