📄 configure
字号:
if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define __STL_RAND48 1
EOF
ac_cv_func_lrand48="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_func_lrand48="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_func_lrand48" 1>&6
echo $ac_n "checking for default template parameters""... $ac_c" 1>&6
echo "configure:1827: checking for default template parameters" >&5
cat > conftest.$ac_ext <<EOF
#line 1829 "configure"
#include "confdefs.h"
template <class T> struct less {};
template <class T, class T1=less<T> > struct Class { T1 t1; };
Class<int> cl;
Class<int,less<short> > cl2;
int main() {
; return 0; }
EOF
if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_default_template_param="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define __STL_LIMITED_DEFAULT_TEMPLATES 1
EOF
ac_cv_default_template_param="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_default_template_param" 1>&6
if test "$ac_cv_default_template_param" = "no"; then
echo $ac_n "checking for default type parameters""... $ac_c" 1>&6
echo "configure:1856: checking for default type parameters" >&5
cat > conftest.$ac_ext <<EOF
#line 1858 "configure"
#include "confdefs.h"
template <class T> struct less {
typedef int int_t;
};
template <class T, class T1=less<int> >
struct Class {
private:
int a;
public:
typedef Class<T,T1> self;
typedef $__TYPENAME T1::int_t int_t;
self foo (const Class<T,T1>& t) {
if ( t.a==a ) return *this;
else return t;
}
};
Class<int> cl;
Class<int,less<short> > cl2;
int main() {
; return 0; }
EOF
if { (eval echo configure:1885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define __STL_DEFAULT_TYPE_PARAM 1
EOF
ac_cv_default_type_param="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_default_type_param="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_default_type_param" 1>&6
fi
echo $ac_n "checking for default non-type parameters""... $ac_c" 1>&6
echo "configure:1904: checking for default non-type parameters" >&5
cat > conftest.$ac_ext <<EOF
#line 1906 "configure"
#include "confdefs.h"
template <class T, int N=0 >
struct Class {
private:
T* t;
enum { t1=N };
public:
int get_n() { return N; }
};
Class<int> cl;
Class<int, 2> cl2;
int main() {
; return 0; }
EOF
if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_default_nontype_param="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define __STL_NO_DEFAULT_NON_TYPE_PARAM 1
EOF
ac_cv_default_nontype_param="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_default_nontype_param" 1>&6
echo $ac_n "checking for non-type parameter bug""... $ac_c" 1>&6
echo "configure:1942: checking for non-type parameter bug" >&5
cat > conftest.$ac_ext <<EOF
#line 1944 "configure"
#include "confdefs.h"
template <class T, int N>
struct Class {
private:
T* t;
enum { t1=N };
public:
int get_n() { return N; }
};
template <class T, int N>
int operator==(const Class<T,N>& , const Class<T,N>& ) { return 0; }
Class<int, 1> cl;
Class<int, 1> cl2;
int i(cl==cl2);
int main() {
; return 0; }
EOF
if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_nontype_param_bug="no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define __STL_NON_TYPE_TMPL_PARAM_BUG 1
EOF
ac_cv_nontype_param_bug="yes"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_nontype_param_bug" 1>&6
echo $ac_n "checking for static data member templates""... $ac_c" 1>&6
echo "configure:1984: checking for static data member templates" >&5
cat > conftest.$ac_ext <<EOF
#line 1986 "configure"
#include "confdefs.h"
template <class T> struct Class { static int a; };
template <class T> int Class<T>::a;
int main() {
; return 0; }
EOF
if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_static_templates="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define __STL_NO_STATIC_TEMPLATE_DATA 1
EOF
ac_cv_static_templates="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_static_templates" 1>&6
if test "$ac_cv_static_templates" = no; then
echo $ac_n "checking for weak attribute""... $ac_c" 1>&6
echo "configure:2011: checking for weak attribute" >&5
cat > conftest.$ac_ext <<EOF
#line 2013 "configure"
#include "confdefs.h"
int a_w __attribute__((weak));
int main() {
; return 0; }
EOF
if { (eval echo configure:2020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define __STL_WEAK_ATTRIBUTE 1
EOF
ac_cv_weak_attribute="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_weak_attribute="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_weak_attribute" 1>&6
fi
if test "$ac_cv_static_templates" = yes; then
echo $ac_n "checking for static array member size bug""... $ac_c" 1>&6
echo "configure:2038: checking for static array member size bug" >&5
cat > conftest.$ac_ext <<EOF
#line 2040 "configure"
#include "confdefs.h"
template <class T> struct Class { enum { sz=5 }; static int a[sz]; };
template <class T> int Class<T>::a[Class<T>::sz];
int main() {
; return 0; }
EOF
if { (eval echo configure:2048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_static_array_bug="no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define __STL_STATIC_ARRAY_BUG 1
EOF
ac_cv_static_array_bug="yes"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_static_array_bug" 1>&6
fi
echo $ac_n "checking for static data member const initializer bug""... $ac_c" 1>&6
echo "configure:2065: checking for static data member const initializer bug" >&5
cat > conftest.$ac_ext <<EOF
#line 2067 "configure"
#include "confdefs.h"
template <class T> struct Class { static const int a = 1; };
template <class T> const int Class<T>::a;
int main() {
; return 0; }
EOF
if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ac_cv_static_init_bug="no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define __STL_STATIC_CONST_INIT_BUG 1
EOF
ac_cv_static_init_bug="yes"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_static_init_bug" 1>&6
echo $ac_n "checking for namespaces support""... $ac_c" 1>&6
echo "configure:2091: checking for namespaces support" >&5
cat > conftest.$ac_ext <<EOF
#line 2093 "configure"
#include "confdefs.h"
class test_class {};
namespace std {
using ::test_class;
template <class T> struct Class { typedef T my_type; };
typedef Class<int>::my_type int_type;
};
inline int ns_foo (std::int_type t) {
using namespace std;
int_type i =2;
return i+t;
}
int main() {
(void)ns_foo(1);
; return 0; }
EOF
if { (eval echo configure:2111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
_TEST_STD="std" _TEST_STD_BEGIN="namespace $_TEST_STD" _TEST_STD_END="namespace $_TEST_STD" ac_cv_namespaces="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define __STL_HAS_NO_NAMESPACES 1
EOF
_TEST_STD="" _TEST_STD_BEGIN="" _TEST_STD_END="" ac_cv_namespaces="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_namespaces" 1>&6
echo $ac_n "checking for broken "using" directive""... $ac_c" 1>&6
echo "configure:2127: checking for broken "using" directive" >&5
cat > conftest.$ac_ext <<EOF
#line 2129 "configure"
#include "confdefs.h"
namespace std {
template <class T> struct Class { typedef T my_type; };
typedef Class<int>::my_type int_type;
template <class T> void foo(T,int) {}
template <class T> void foo(T,int,int) {}
};
using std::Class;
using std::foo;
int main() {
(void)foo(1,1);
; return 0; }
EOF
if { (eval echo configure:2144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_broken_using="no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_broken_using="yes"
fi
rm -f conftest*
if test "$ac_cv_broken_using" = no; then
# check if no warnings have been issued
if `check_warning` ; then
ac_cv_broken_using=no
else
cat >> confdefs.h <<\EOF
#define __STL_BROKEN_USING_DIRECTIVE 1
EOF
fi
else
cat >> confdefs.h <<\EOF
#define __STL_BROKEN_USING_DIRECTIVE 1
EOF
fi
echo "$ac_t""$ac_cv_broken_using" 1>&6
if test "$ac_cv_namespaces" = yes; then
# Check whether --enable-namespaces or --disable-namespaces was given.
if test "${enable_namespaces+set}" = set; then
enableval="$enable_namespaces"
case "$enableval" in
no) cat >> confdefs.h <<\EOF
#define __STL_NO_NAMESPACES 1
EOF
_TEST_STD=""
_TEST_STD_BEGIN=""
_TEST_STD_END=""
echo "$ac_t""Config arg --disable-namespaces : code not put into namespace by user request" 1>&6;;
*) echo "$ac_t""Config default: code put into namespace" 1>&6
esac
else
echo "$ac_t""Config default: code put into namespace" 1>&6
fi
else
echo "$ac_t""Compiler restriction : no namespaces support used" 1>&6
fi
echo $ac_n "checking for exceptions support""... $ac_c" 1>&6
echo "configure:2201: checking for exceptions support" >&5
cat > conftest.$ac_ext <<EOF
#line 2203 "configure"
#include "confdefs.h"
int ex_foo() {
try {
try { throw(1); }
catch (int a) { throw; }
} catch (...) {;}
return 0;
}
int main() {
(void)ex_foo();
; return 0; }
EOF
if { (eval echo configure:2216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_exceptions="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define __STL_HAS_NO_EXCEPTIONS 1
EOF
ac_cv_exceptions="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_exceptions" 1>&6
if test "$ac_cv_exceptions" = yes; then
echo $ac_n "checking if exceptions specification works""... $ac_c" 1>&6
echo "configure:2234: checking if exceptions specification works" >&5
cat > conftest.$ac_ext <<EOF
#line 2236 "configure"
#include "confdefs.h"
template <class T> inline int ex_spec_foo(const T&) throw () { return 0;}
int main() {
(void)ex_spec_foo(5);
; return 0; }
EOF
if { (eval echo configure:2243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_exception_spec="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define __STL_NO_EXCEPTION_SPEC 1
EOF
ac_cv_exception_spec="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_exception_spec" 1>&6
echo $ac_n "checking if return is required after throw""... $ac_c" 1>&6
echo "configure:2259: checking if return is required after throw" >&5
cat > con
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -