📄 configure
字号:
typedef Arg1 first_argument_type;
typedef Arg2 second_argument_type;
typedef Result result_type;
};
template <class T>
struct plus : public binary_function<T, T, T> {
T operator()(const T& x, const T& y) const;
};
template <class T>
T plus<T>::operator()(const T& x, const T& y) const { return x + y; }
plus<int> p;
int main() {
; return 0; }
EOF
if { (eval echo configure:925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
ac_cv_compat="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
{ echo "configure: error: Your compiler won't be able to compile this implementation. Sorry." 1>&2; exit 1; }
ac_cv_compat="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_compat" 1>&6
echo $ac_n "checking for partial specialization syntax""... $ac_c" 1>&6
echo "configure:940: checking for partial specialization syntax" >&5
cat > conftest.$ac_ext <<EOF
#line 942 "configure"
#include "confdefs.h"
template <class T> class fs_foo {};
template <> class fs_foo<int> {};
int main() {
fs_foo<int> i;
; return 0; }
EOF
if { (eval echo configure:951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
_FULL_SPEC="template <>" ac_cv_spec_syntax="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_NO_PARTIAL_SPECIALIZATION_SYNTAX 1
EOF
ac_cv_spec_syntax="no" _FULL_SPEC=""
fi
rm -f conftest*
echo "$ac_t""$ac_cv_spec_syntax" 1>&6
echo $ac_n "checking for bool keyword""... $ac_c" 1>&6
echo "configure:967: checking for bool keyword" >&5
cat > conftest.$ac_ext <<EOF
#line 969 "configure"
#include "confdefs.h"
bool b_foo() { return true; }
int main() {
(void)b_foo();
; return 0; }
EOF
if { (eval echo configure:976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_bool="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_NO_BOOL 1
EOF
ac_cv_bool="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_bool" 1>&6
if test "$ac_cv_bool" = "no"; then
echo $ac_n "checking for yvals.h header""... $ac_c" 1>&6
echo "configure:992: checking for yvals.h header" >&5
cat > conftest.$ac_ext <<EOF
#line 994 "configure"
#include "confdefs.h"
#include <yvals.h>
extern bool aaa=true;
int main() {
; return 0; }
EOF
if { (eval echo configure:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_YVALS_H 1
EOF
echo "$ac_t""yes" 1>&6
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
echo "$ac_t""no" 1>&6
echo $ac_n "checking whether bool is reserved word""... $ac_c" 1>&6
echo "configure:1016: checking whether bool is reserved word" >&5
cat > conftest.$ac_ext <<EOF
#line 1018 "configure"
#include "confdefs.h"
typedef int bool;
int main() {
; return 0; }
EOF
if { (eval echo configure:1025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_bool_reserved="no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_DONT_USE_BOOL_TYPEDEF 1
EOF
ac_cv_bool_reserved="yes"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_bool_reserved" 1>&6
fi
rm -f conftest*
fi
echo $ac_n "checking for wchar_t type""... $ac_c" 1>&6
echo "configure:1045: checking for wchar_t type" >&5
cat > conftest.$ac_ext <<EOF
#line 1047 "configure"
#include "confdefs.h"
#include <wchar.h>
wchar_t wc_foo() { return 'a'; }
int main() {
(void)wc_foo();
; return 0; }
EOF
if { (eval echo configure:1055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_wchar="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_NO_WCHAR_T 1
EOF
ac_cv_wchar="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_wchar" 1>&6
echo $ac_n "checking if wchar_t is unsigned short""... $ac_c" 1>&6
echo "configure:1071: checking if wchar_t is unsigned short" >&5
cat > conftest.$ac_ext <<EOF
#line 1073 "configure"
#include "confdefs.h"
# include <wchar.h>
template <class T> struct foo {};
$_FULL_SPEC struct foo <wchar_t> {};
typedef unsigned short u__short;
$_FULL_SPEC struct foo <u__short> {};
foo<wchar_t> f1;
foo<u__short> f2;
int main() {
; return 0; }
EOF
if { (eval echo configure:1088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_wchar_short="no"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_WCHAR_T_IS_USHORT 1
EOF
ac_cv_wchar_short="yes"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_wchar_short" 1>&6
echo $ac_n "checking for long long type""... $ac_c" 1>&6
echo "configure:1104: checking for long long type" >&5
cat > conftest.$ac_ext <<EOF
#line 1106 "configure"
#include "confdefs.h"
long long ll_foo() { return 0; }
int main() {
(void)ll_foo();
; return 0; }
EOF
if { (eval echo configure:1113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_LONG_LONG 1
EOF
ac_cv_long_long="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
ac_cv_long_long="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_long_long" 1>&6
echo $ac_n "checking for long double type""... $ac_c" 1>&6
echo "configure:1129: checking for long double type" >&5
cat > conftest.$ac_ext <<EOF
#line 1131 "configure"
#include "confdefs.h"
long double ld_foo() { return 0; }
int main() {
(void)ld_foo();
; return 0; }
EOF
if { (eval echo configure:1138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_long_double="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_NO_LONG_DOUBLE 1
EOF
ac_cv_long_double="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_long_double" 1>&6
echo $ac_n "checking for typename keyword""... $ac_c" 1>&6
echo "configure:1154: checking for typename keyword" >&5
cat > conftest.$ac_ext <<EOF
#line 1156 "configure"
#include "confdefs.h"
template <class T1, class T2>
struct pair {
typedef T1 first_type;
typedef T2 second_type;
};
template <class Arg, class Result>
struct unary_function {
typedef Arg argument_type;
typedef Result result_type;
};
template <class Pair>
struct select2nd : public unary_function<Pair, typename Pair::second_type> {
typedef typename Pair::first_type ignored_type;
const typename Pair::second_type& operator()(const typename Pair::second_type& x,
const ignored_type& ) const
{
return x;
}
};
int main() {
typedef pair<int,int> tn_p;
select2nd< tn_p > tn_s;
(void)tn_s(1,5);
; return 0; }
EOF
if { (eval echo configure:1190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
rm -rf conftest*
__TYPENAME="typename"
ac_cv_typename="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
__TYPENAME=""
cat >> confdefs.h <<\EOF
#define _STLP_NEED_TYPENAME 1
EOF
ac_cv_typename="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_typename" 1>&6
echo $ac_n "checking for explicit keyword""... $ac_c" 1>&6
echo "configure:1209: checking for explicit keyword" >&5
cat > conftest.$ac_ext <<EOF
#line 1211 "configure"
#include "confdefs.h"
struct expl_Class { int a; explicit expl_Class(int t): a(t) {} };
expl_Class c(1);
int main() {
; return 0; }
EOF
if { (eval echo configure:1220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_explicit="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_NO_EXPLICIT 1
EOF
ac_cv_explicit="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_explicit" 1>&6
echo $ac_n "checking for mutable keyword""... $ac_c" 1>&6
echo "configure:1236: checking for mutable keyword" >&5
cat > conftest.$ac_ext <<EOF
#line 1238 "configure"
#include "confdefs.h"
struct mut_Class { mutable int a; void update() const { a=0; } };
mut_Class c;
int main() {
c.update()
; return 0; }
EOF
if { (eval echo configure:1247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_mutable="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_NEED_MUTABLE 1
EOF
ac_cv_mutable="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_mutable" 1>&6
echo $ac_n "checking for new style casts""... $ac_c" 1>&6
echo "configure:1263: checking for new style casts" >&5
cat > conftest.$ac_ext <<EOF
#line 1265 "configure"
#include "confdefs.h"
struct ncast_Class {
int a; void update(int* i) { *i=a; } };
ncast_Class c;
int main() {
const int a(5);
c.update(const_cast<int*>(&a))
; return 0; }
EOF
if { (eval echo configure:1278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_new_cast="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_NO_NEW_STYLE_CASTS 1
EOF
ac_cv_new_cast="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_new_cast" 1>&6
echo $ac_n "checking for new-style C library headers""... $ac_c" 1>&6
echo "configure:1294: checking for new-style C library headers" >&5
cat > conftest.$ac_ext <<EOF
#line 1296 "configure"
#include "confdefs.h"
#include <cctype>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <climits>
#ifndef _STLP_NO_WCHAR_T
#include <cwchar>
#endif
int main() {
; return 0; }
EOF
if { (eval echo configure:1314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_newheaders="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_HAS_NO_NEW_C_HEADERS 1
EOF
ac_cv_newheaders="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_newheaders" 1>&6
echo $ac_n "checking for new-style <new> header""... $ac_c" 1>&6
echo "configure:1330: checking for new-style <new> header" >&5
cat > conftest.$ac_ext <<EOF
#line 1332 "configure"
#include "confdefs.h"
#include <new>
int main() {
; return 0; }
EOF
if { (eval echo configure:1341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_new_new="yes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
cat >> confdefs.h <<\EOF
#define _STLP_NO_NEW_NEW_HEADER 1
EOF
ac_cv_new_new="no"
fi
rm -f conftest*
echo "$ac_t""$ac_cv_new_new" 1>&6
echo $ac_n "checking for member template methods""... $ac_c" 1>&6
echo "configure:1358: checking for member template methods" >&5
cat > conftest.$ac_ext <<EOF
#line 1360 "configure"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -