configure.ac (1fb03631) configure.ac (d5aa83e5)
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

--- 2902 unchanged lines hidden (view full) ---

2911else
2912 AC_MSG_ERROR([invalid option to --enable-ccache-skip. Valid values are "auto", "yes" and "no"])
2913fi
2914
2915dnl ===================================================================
2916dnl system stl sanity tests
2917dnl ===================================================================
2918if test "$USE_SYSTEM_STL" = "YES"; then
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

--- 2902 unchanged lines hidden (view full) ---

2911else
2912 AC_MSG_ERROR([invalid option to --enable-ccache-skip. Valid values are "auto", "yes" and "no"])
2913fi
2914
2915dnl ===================================================================
2916dnl system stl sanity tests
2917dnl ===================================================================
2918if test "$USE_SYSTEM_STL" = "YES"; then
2919 AC_MSG_CHECKING([if hash_map will be in __gnu_cxx namespace])
2919 AC_MSG_CHECKING([system stl sanity])
2920 AC_LANG_PUSH([C++])
2921
2920 AC_LANG_PUSH([C++])
2921
2922 AC_TRY_COMPILE([#include <ext/hash_map>
2923using namespace __gnu_cxx;
2924],[hash_map<int, int> t; return 0;],
2925 ac_cv_cxx_have_ext_hash_map=yes, ac_cv_cxx_have_ext_hash_map=no)
2926
2927 if test "$ac_cv_cxx_have_ext_hash_map" = "no"; then
2928 AC_MSG_ERROR([Can't find hash_map. Try with --with-stlport])
2929 else
2930 AC_MSG_RESULT([$ac_cv_cxx_have_ext_hash_map])
2931 fi
2932
2933 if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
2934 AC_MSG_CHECKING([if STL headers are visibility safe])
2935 AC_EGREP_HEADER(visibility push, string, stlvisok=yes, stlvisok=no)
2936 AC_MSG_RESULT([$stlvisok])
2937 if test "$stlvisok" = "no"; then
2938 AC_MSG_WARN([Your gcc STL headers are not visibility safe. Disabling visibility])
2939 echo "Your gcc STL headers are not visibility safe. Disabling visibility" >> warn
2940 unset HAVE_GCC_VISIBILITY_FEATURE

--- 4768 unchanged lines hidden ---
2922 if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
2923 AC_MSG_CHECKING([if STL headers are visibility safe])
2924 AC_EGREP_HEADER(visibility push, string, stlvisok=yes, stlvisok=no)
2925 AC_MSG_RESULT([$stlvisok])
2926 if test "$stlvisok" = "no"; then
2927 AC_MSG_WARN([Your gcc STL headers are not visibility safe. Disabling visibility])
2928 echo "Your gcc STL headers are not visibility safe. Disabling visibility" >> warn
2929 unset HAVE_GCC_VISIBILITY_FEATURE

--- 4768 unchanged lines hidden ---