… | |
… | |
307 | #endif |
307 | #endif |
308 | #if HAVE_UNISTD_H |
308 | #if HAVE_UNISTD_H |
309 | # include <unistd.h> |
309 | # include <unistd.h> |
310 | #endif" |
310 | #endif" |
311 | |
311 | |
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TIC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
313 | ac_subst_files='' |
313 | ac_subst_files='' |
314 | |
314 | |
315 | # Initialize some variables set by options. |
315 | # Initialize some variables set by options. |
316 | ac_init_help= |
316 | ac_init_help= |
317 | ac_init_version=false |
317 | ac_init_version=false |
… | |
… | |
3051 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3051 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3052 | |
3052 | |
3053 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3053 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3054 | |
3054 | |
3055 | |
3055 | |
3056 | ac_ext=c |
|
|
3057 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3058 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3059 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3060 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3061 | |
|
|
3062 | |
|
|
3063 | if test -z "$orig_CXXFLAGS"; then |
|
|
3064 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3065 | CXXFLAGS="-g -O3" |
|
|
3066 | else |
|
|
3067 | CXXFLAGS="-O" |
|
|
3068 | fi |
|
|
3069 | CFLAGS="$CXXFLAGS" |
|
|
3070 | fi |
|
|
3071 | |
|
|
3072 | LINKER="$CXX" |
|
|
3073 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3074 | |
|
|
3075 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3076 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3077 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3079 | else |
|
|
3080 | ac_check_lib_save_LIBS=$LIBS |
|
|
3081 | LIBS="-lsupc++ $LIBS" |
|
|
3082 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3083 | /* confdefs.h. */ |
|
|
3084 | _ACEOF |
|
|
3085 | cat confdefs.h >>conftest.$ac_ext |
|
|
3086 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3087 | /* end confdefs.h. */ |
|
|
3088 | |
|
|
3089 | |
|
|
3090 | int |
|
|
3091 | main () |
|
|
3092 | { |
|
|
3093 | main (); |
|
|
3094 | ; |
|
|
3095 | return 0; |
|
|
3096 | } |
|
|
3097 | _ACEOF |
|
|
3098 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3100 | (eval $ac_link) 2>conftest.er1 |
|
|
3101 | ac_status=$? |
|
|
3102 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3103 | rm -f conftest.er1 |
|
|
3104 | cat conftest.err >&5 |
|
|
3105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3106 | (exit $ac_status); } && |
|
|
3107 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3109 | (eval $ac_try) 2>&5 |
|
|
3110 | ac_status=$? |
|
|
3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3112 | (exit $ac_status); }; } && |
|
|
3113 | { ac_try='test -s conftest$ac_exeext' |
|
|
3114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3115 | (eval $ac_try) 2>&5 |
|
|
3116 | ac_status=$? |
|
|
3117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3118 | (exit $ac_status); }; }; then |
|
|
3119 | ac_cv_lib_supcpp_main=yes |
|
|
3120 | else |
|
|
3121 | echo "$as_me: failed program was:" >&5 |
|
|
3122 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3123 | |
|
|
3124 | ac_cv_lib_supcpp_main=no |
|
|
3125 | fi |
|
|
3126 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3127 | conftest$ac_exeext conftest.$ac_ext |
|
|
3128 | LIBS=$ac_check_lib_save_LIBS |
|
|
3129 | fi |
|
|
3130 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3131 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3132 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3133 | |
|
|
3134 | LINKER="$CC" |
|
|
3135 | LIBS="$LIBS -lsupc++" |
|
|
3136 | |
|
|
3137 | fi |
|
|
3138 | |
|
|
3139 | fi |
|
|
3140 | LINKER=$LINKER |
|
|
3141 | |
|
|
3142 | |
|
|
3143 | |
|
|
3144 | cat >>confdefs.h <<\_ACEOF |
|
|
3145 | #define _GNU_SOURCE 1 |
|
|
3146 | _ACEOF |
|
|
3147 | |
|
|
3148 | |
|
|
3149 | case $host in |
|
|
3150 | *-*-solaris* ) |
|
|
3151 | |
|
|
3152 | cat >>confdefs.h <<\_ACEOF |
|
|
3153 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3154 | _ACEOF |
|
|
3155 | |
|
|
3156 | |
|
|
3157 | cat >>confdefs.h <<\_ACEOF |
|
|
3158 | #define _XOPEN_SOURCE 2 |
|
|
3159 | _ACEOF |
|
|
3160 | |
|
|
3161 | |
|
|
3162 | cat >>confdefs.h <<\_ACEOF |
|
|
3163 | #define __EXTENSIONS__ 1 |
|
|
3164 | _ACEOF |
|
|
3165 | |
|
|
3166 | ;; |
|
|
3167 | esac |
|
|
3168 | |
|
|
3169 | |
|
|
3170 | ac_ext=cc |
|
|
3171 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3172 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3173 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3174 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3175 | |
|
|
3176 | |
|
|
3177 | |
|
|
3178 | ac_ext=cc |
|
|
3179 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3180 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3181 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3182 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3183 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
3184 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
3185 | if test -z "$CXXCPP"; then |
|
|
3186 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
3187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3188 | else |
|
|
3189 | # Double quotes because CXXCPP needs to be expanded |
|
|
3190 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
3191 | do |
|
|
3192 | ac_preproc_ok=false |
|
|
3193 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3194 | do |
|
|
3195 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3196 | # with a fresh cross-compiler works. |
|
|
3197 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3198 | # <limits.h> exists even on freestanding compilers. |
|
|
3199 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3200 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3201 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3202 | /* confdefs.h. */ |
|
|
3203 | _ACEOF |
|
|
3204 | cat confdefs.h >>conftest.$ac_ext |
|
|
3205 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3206 | /* end confdefs.h. */ |
|
|
3207 | #ifdef __STDC__ |
|
|
3208 | # include <limits.h> |
|
|
3209 | #else |
|
|
3210 | # include <assert.h> |
|
|
3211 | #endif |
|
|
3212 | Syntax error |
|
|
3213 | _ACEOF |
|
|
3214 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3215 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3216 | ac_status=$? |
|
|
3217 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3218 | rm -f conftest.er1 |
|
|
3219 | cat conftest.err >&5 |
|
|
3220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3221 | (exit $ac_status); } >/dev/null; then |
|
|
3222 | if test -s conftest.err; then |
|
|
3223 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3224 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3225 | else |
|
|
3226 | ac_cpp_err= |
|
|
3227 | fi |
|
|
3228 | else |
|
|
3229 | ac_cpp_err=yes |
|
|
3230 | fi |
|
|
3231 | if test -z "$ac_cpp_err"; then |
|
|
3232 | : |
|
|
3233 | else |
|
|
3234 | echo "$as_me: failed program was:" >&5 |
|
|
3235 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3236 | |
|
|
3237 | # Broken: fails on valid input. |
|
|
3238 | continue |
|
|
3239 | fi |
|
|
3240 | rm -f conftest.err conftest.$ac_ext |
|
|
3241 | |
|
|
3242 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3243 | # can be detected and how. |
|
|
3244 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3245 | /* confdefs.h. */ |
|
|
3246 | _ACEOF |
|
|
3247 | cat confdefs.h >>conftest.$ac_ext |
|
|
3248 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3249 | /* end confdefs.h. */ |
|
|
3250 | #include <ac_nonexistent.h> |
|
|
3251 | _ACEOF |
|
|
3252 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3253 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3254 | ac_status=$? |
|
|
3255 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3256 | rm -f conftest.er1 |
|
|
3257 | cat conftest.err >&5 |
|
|
3258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3259 | (exit $ac_status); } >/dev/null; then |
|
|
3260 | if test -s conftest.err; then |
|
|
3261 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3262 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3263 | else |
|
|
3264 | ac_cpp_err= |
|
|
3265 | fi |
|
|
3266 | else |
|
|
3267 | ac_cpp_err=yes |
|
|
3268 | fi |
|
|
3269 | if test -z "$ac_cpp_err"; then |
|
|
3270 | # Broken: success on invalid input. |
|
|
3271 | continue |
|
|
3272 | else |
|
|
3273 | echo "$as_me: failed program was:" >&5 |
|
|
3274 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3275 | |
|
|
3276 | # Passes both tests. |
|
|
3277 | ac_preproc_ok=: |
|
|
3278 | break |
|
|
3279 | fi |
|
|
3280 | rm -f conftest.err conftest.$ac_ext |
|
|
3281 | |
|
|
3282 | done |
|
|
3283 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3284 | rm -f conftest.err conftest.$ac_ext |
|
|
3285 | if $ac_preproc_ok; then |
|
|
3286 | break |
|
|
3287 | fi |
|
|
3288 | |
|
|
3289 | done |
|
|
3290 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3291 | |
|
|
3292 | fi |
|
|
3293 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
3294 | else |
|
|
3295 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3296 | fi |
|
|
3297 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
3298 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
3299 | ac_preproc_ok=false |
|
|
3300 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3301 | do |
|
|
3302 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3303 | # with a fresh cross-compiler works. |
|
|
3304 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3305 | # <limits.h> exists even on freestanding compilers. |
|
|
3306 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3307 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3308 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3309 | /* confdefs.h. */ |
|
|
3310 | _ACEOF |
|
|
3311 | cat confdefs.h >>conftest.$ac_ext |
|
|
3312 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3313 | /* end confdefs.h. */ |
|
|
3314 | #ifdef __STDC__ |
|
|
3315 | # include <limits.h> |
|
|
3316 | #else |
|
|
3317 | # include <assert.h> |
|
|
3318 | #endif |
|
|
3319 | Syntax error |
|
|
3320 | _ACEOF |
|
|
3321 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3322 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3323 | ac_status=$? |
|
|
3324 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3325 | rm -f conftest.er1 |
|
|
3326 | cat conftest.err >&5 |
|
|
3327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3328 | (exit $ac_status); } >/dev/null; then |
|
|
3329 | if test -s conftest.err; then |
|
|
3330 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3331 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3332 | else |
|
|
3333 | ac_cpp_err= |
|
|
3334 | fi |
|
|
3335 | else |
|
|
3336 | ac_cpp_err=yes |
|
|
3337 | fi |
|
|
3338 | if test -z "$ac_cpp_err"; then |
|
|
3339 | : |
|
|
3340 | else |
|
|
3341 | echo "$as_me: failed program was:" >&5 |
|
|
3342 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3343 | |
|
|
3344 | # Broken: fails on valid input. |
|
|
3345 | continue |
|
|
3346 | fi |
|
|
3347 | rm -f conftest.err conftest.$ac_ext |
|
|
3348 | |
|
|
3349 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3350 | # can be detected and how. |
|
|
3351 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3352 | /* confdefs.h. */ |
|
|
3353 | _ACEOF |
|
|
3354 | cat confdefs.h >>conftest.$ac_ext |
|
|
3355 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3356 | /* end confdefs.h. */ |
|
|
3357 | #include <ac_nonexistent.h> |
|
|
3358 | _ACEOF |
|
|
3359 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3360 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3361 | ac_status=$? |
|
|
3362 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3363 | rm -f conftest.er1 |
|
|
3364 | cat conftest.err >&5 |
|
|
3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3366 | (exit $ac_status); } >/dev/null; then |
|
|
3367 | if test -s conftest.err; then |
|
|
3368 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3369 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3370 | else |
|
|
3371 | ac_cpp_err= |
|
|
3372 | fi |
|
|
3373 | else |
|
|
3374 | ac_cpp_err=yes |
|
|
3375 | fi |
|
|
3376 | if test -z "$ac_cpp_err"; then |
|
|
3377 | # Broken: success on invalid input. |
|
|
3378 | continue |
|
|
3379 | else |
|
|
3380 | echo "$as_me: failed program was:" >&5 |
|
|
3381 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3382 | |
|
|
3383 | # Passes both tests. |
|
|
3384 | ac_preproc_ok=: |
|
|
3385 | break |
|
|
3386 | fi |
|
|
3387 | rm -f conftest.err conftest.$ac_ext |
|
|
3388 | |
|
|
3389 | done |
|
|
3390 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3391 | rm -f conftest.err conftest.$ac_ext |
|
|
3392 | if $ac_preproc_ok; then |
|
|
3393 | : |
|
|
3394 | else |
|
|
3395 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3396 | See \`config.log' for more details." >&5 |
|
|
3397 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3398 | See \`config.log' for more details." >&2;} |
|
|
3399 | { (exit 1); exit 1; }; } |
|
|
3400 | fi |
|
|
3401 | |
|
|
3402 | ac_ext=cc |
|
|
3403 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3404 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3405 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3406 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3407 | |
3056 | |
3408 | |
3057 | |
3409 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3058 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3410 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3059 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3411 | if test "${ac_cv_prog_egrep+set}" = set; then |
3060 | if test "${ac_cv_prog_egrep+set}" = set; then |
… | |
… | |
3486 | grep -v '^ *+' conftest.er1 >conftest.err |
3135 | grep -v '^ *+' conftest.er1 >conftest.err |
3487 | rm -f conftest.er1 |
3136 | rm -f conftest.er1 |
3488 | cat conftest.err >&5 |
3137 | cat conftest.err >&5 |
3489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3490 | (exit $ac_status); } && |
3139 | (exit $ac_status); } && |
3491 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3493 | (eval $ac_try) 2>&5 |
3142 | (eval $ac_try) 2>&5 |
3494 | ac_status=$? |
3143 | ac_status=$? |
3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3496 | (exit $ac_status); }; } && |
3145 | (exit $ac_status); }; } && |
… | |
… | |
3540 | grep -v '^ *+' conftest.er1 >conftest.err |
3189 | grep -v '^ *+' conftest.er1 >conftest.err |
3541 | rm -f conftest.er1 |
3190 | rm -f conftest.er1 |
3542 | cat conftest.err >&5 |
3191 | cat conftest.err >&5 |
3543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3544 | (exit $ac_status); } && |
3193 | (exit $ac_status); } && |
3545 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3547 | (eval $ac_try) 2>&5 |
3196 | (eval $ac_try) 2>&5 |
3548 | ac_status=$? |
3197 | ac_status=$? |
3549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3550 | (exit $ac_status); }; } && |
3199 | (exit $ac_status); }; } && |
… | |
… | |
3571 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
3220 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
3572 | if test "$ac_cv_search_strerror" != no; then |
3221 | if test "$ac_cv_search_strerror" != no; then |
3573 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3222 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3574 | |
3223 | |
3575 | fi |
3224 | fi |
|
|
3225 | |
|
|
3226 | |
|
|
3227 | ac_ext=c |
|
|
3228 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3232 | |
|
|
3233 | |
|
|
3234 | LINKER="$CXX" |
|
|
3235 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3236 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3237 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3238 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3240 | else |
|
|
3241 | ac_check_lib_save_LIBS=$LIBS |
|
|
3242 | LIBS="-lsupc++ $LIBS" |
|
|
3243 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3244 | /* confdefs.h. */ |
|
|
3245 | _ACEOF |
|
|
3246 | cat confdefs.h >>conftest.$ac_ext |
|
|
3247 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3248 | /* end confdefs.h. */ |
|
|
3249 | |
|
|
3250 | |
|
|
3251 | int |
|
|
3252 | main () |
|
|
3253 | { |
|
|
3254 | main (); |
|
|
3255 | ; |
|
|
3256 | return 0; |
|
|
3257 | } |
|
|
3258 | _ACEOF |
|
|
3259 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3261 | (eval $ac_link) 2>conftest.er1 |
|
|
3262 | ac_status=$? |
|
|
3263 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3264 | rm -f conftest.er1 |
|
|
3265 | cat conftest.err >&5 |
|
|
3266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3267 | (exit $ac_status); } && |
|
|
3268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3270 | (eval $ac_try) 2>&5 |
|
|
3271 | ac_status=$? |
|
|
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3273 | (exit $ac_status); }; } && |
|
|
3274 | { ac_try='test -s conftest$ac_exeext' |
|
|
3275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3276 | (eval $ac_try) 2>&5 |
|
|
3277 | ac_status=$? |
|
|
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3279 | (exit $ac_status); }; }; then |
|
|
3280 | ac_cv_lib_supcpp_main=yes |
|
|
3281 | else |
|
|
3282 | echo "$as_me: failed program was:" >&5 |
|
|
3283 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3284 | |
|
|
3285 | ac_cv_lib_supcpp_main=no |
|
|
3286 | fi |
|
|
3287 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3288 | conftest$ac_exeext conftest.$ac_ext |
|
|
3289 | LIBS=$ac_check_lib_save_LIBS |
|
|
3290 | fi |
|
|
3291 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3292 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3293 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3294 | |
|
|
3295 | LINKER="$CC" |
|
|
3296 | LIBS="$LIBS -lsupc++" |
|
|
3297 | |
|
|
3298 | fi |
|
|
3299 | |
|
|
3300 | fi |
|
|
3301 | LINKER=$LINKER |
|
|
3302 | |
|
|
3303 | |
|
|
3304 | ac_ext=cc |
|
|
3305 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3306 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3307 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3308 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3309 | |
|
|
3310 | if test -z "$orig_CXXFLAGS"; then |
|
|
3311 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3312 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
|
|
3313 | |
|
|
3314 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3315 | /* confdefs.h. */ |
|
|
3316 | _ACEOF |
|
|
3317 | cat confdefs.h >>conftest.$ac_ext |
|
|
3318 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3319 | /* end confdefs.h. */ |
|
|
3320 | |
|
|
3321 | int |
|
|
3322 | main () |
|
|
3323 | { |
|
|
3324 | |
|
|
3325 | ; |
|
|
3326 | return 0; |
|
|
3327 | } |
|
|
3328 | _ACEOF |
|
|
3329 | rm -f conftest.$ac_objext |
|
|
3330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3331 | (eval $ac_compile) 2>conftest.er1 |
|
|
3332 | ac_status=$? |
|
|
3333 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3334 | rm -f conftest.er1 |
|
|
3335 | cat conftest.err >&5 |
|
|
3336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3337 | (exit $ac_status); } && |
|
|
3338 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3340 | (eval $ac_try) 2>&5 |
|
|
3341 | ac_status=$? |
|
|
3342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3343 | (exit $ac_status); }; } && |
|
|
3344 | { ac_try='test -s conftest.$ac_objext' |
|
|
3345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3346 | (eval $ac_try) 2>&5 |
|
|
3347 | ac_status=$? |
|
|
3348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3349 | (exit $ac_status); }; }; then |
|
|
3350 | : |
|
|
3351 | else |
|
|
3352 | echo "$as_me: failed program was:" >&5 |
|
|
3353 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3354 | |
|
|
3355 | CXXFLAGS="-g -O3" |
|
|
3356 | fi |
|
|
3357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3358 | else |
|
|
3359 | CXXFLAGS="-O" |
|
|
3360 | fi |
|
|
3361 | CFLAGS="$CXXFLAGS" |
|
|
3362 | fi |
|
|
3363 | |
|
|
3364 | |
|
|
3365 | cat >>confdefs.h <<\_ACEOF |
|
|
3366 | #define _GNU_SOURCE 1 |
|
|
3367 | _ACEOF |
|
|
3368 | |
|
|
3369 | |
|
|
3370 | case $host in |
|
|
3371 | *-*-solaris* ) |
|
|
3372 | |
|
|
3373 | cat >>confdefs.h <<\_ACEOF |
|
|
3374 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3375 | _ACEOF |
|
|
3376 | |
|
|
3377 | |
|
|
3378 | cat >>confdefs.h <<\_ACEOF |
|
|
3379 | #define _XOPEN_SOURCE 2 |
|
|
3380 | _ACEOF |
|
|
3381 | |
|
|
3382 | |
|
|
3383 | cat >>confdefs.h <<\_ACEOF |
|
|
3384 | #define __EXTENSIONS__ 1 |
|
|
3385 | _ACEOF |
|
|
3386 | |
|
|
3387 | ;; |
|
|
3388 | esac |
3576 | |
3389 | |
3577 | |
3390 | |
3578 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
3391 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
3579 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
3392 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
3580 | if test "${ac_cv_func_setlocale+set}" = set; then |
3393 | if test "${ac_cv_func_setlocale+set}" = set; then |
… | |
… | |
5112 | fi |
4925 | fi |
5113 | |
4926 | |
5114 | |
4927 | |
5115 | |
4928 | |
5116 | |
4929 | |
|
|
4930 | ac_ext=cc |
|
|
4931 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4932 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4933 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4934 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4935 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4936 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
4937 | if test -z "$CXXCPP"; then |
|
|
4938 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4940 | else |
|
|
4941 | # Double quotes because CXXCPP needs to be expanded |
|
|
4942 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4943 | do |
|
|
4944 | ac_preproc_ok=false |
|
|
4945 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4946 | do |
|
|
4947 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4948 | # with a fresh cross-compiler works. |
|
|
4949 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4950 | # <limits.h> exists even on freestanding compilers. |
|
|
4951 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4952 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4953 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4954 | /* confdefs.h. */ |
|
|
4955 | _ACEOF |
|
|
4956 | cat confdefs.h >>conftest.$ac_ext |
|
|
4957 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4958 | /* end confdefs.h. */ |
|
|
4959 | #ifdef __STDC__ |
|
|
4960 | # include <limits.h> |
|
|
4961 | #else |
|
|
4962 | # include <assert.h> |
|
|
4963 | #endif |
|
|
4964 | Syntax error |
|
|
4965 | _ACEOF |
|
|
4966 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4967 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4968 | ac_status=$? |
|
|
4969 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4970 | rm -f conftest.er1 |
|
|
4971 | cat conftest.err >&5 |
|
|
4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4973 | (exit $ac_status); } >/dev/null; then |
|
|
4974 | if test -s conftest.err; then |
|
|
4975 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4976 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4977 | else |
|
|
4978 | ac_cpp_err= |
|
|
4979 | fi |
|
|
4980 | else |
|
|
4981 | ac_cpp_err=yes |
|
|
4982 | fi |
|
|
4983 | if test -z "$ac_cpp_err"; then |
|
|
4984 | : |
|
|
4985 | else |
|
|
4986 | echo "$as_me: failed program was:" >&5 |
|
|
4987 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4988 | |
|
|
4989 | # Broken: fails on valid input. |
|
|
4990 | continue |
|
|
4991 | fi |
|
|
4992 | rm -f conftest.err conftest.$ac_ext |
|
|
4993 | |
|
|
4994 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
4995 | # can be detected and how. |
|
|
4996 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4997 | /* confdefs.h. */ |
|
|
4998 | _ACEOF |
|
|
4999 | cat confdefs.h >>conftest.$ac_ext |
|
|
5000 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5001 | /* end confdefs.h. */ |
|
|
5002 | #include <ac_nonexistent.h> |
|
|
5003 | _ACEOF |
|
|
5004 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5005 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5006 | ac_status=$? |
|
|
5007 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5008 | rm -f conftest.er1 |
|
|
5009 | cat conftest.err >&5 |
|
|
5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5011 | (exit $ac_status); } >/dev/null; then |
|
|
5012 | if test -s conftest.err; then |
|
|
5013 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5014 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5015 | else |
|
|
5016 | ac_cpp_err= |
|
|
5017 | fi |
|
|
5018 | else |
|
|
5019 | ac_cpp_err=yes |
|
|
5020 | fi |
|
|
5021 | if test -z "$ac_cpp_err"; then |
|
|
5022 | # Broken: success on invalid input. |
|
|
5023 | continue |
|
|
5024 | else |
|
|
5025 | echo "$as_me: failed program was:" >&5 |
|
|
5026 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5027 | |
|
|
5028 | # Passes both tests. |
|
|
5029 | ac_preproc_ok=: |
|
|
5030 | break |
|
|
5031 | fi |
|
|
5032 | rm -f conftest.err conftest.$ac_ext |
|
|
5033 | |
|
|
5034 | done |
|
|
5035 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5036 | rm -f conftest.err conftest.$ac_ext |
|
|
5037 | if $ac_preproc_ok; then |
|
|
5038 | break |
|
|
5039 | fi |
|
|
5040 | |
|
|
5041 | done |
|
|
5042 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5043 | |
|
|
5044 | fi |
|
|
5045 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5046 | else |
|
|
5047 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5048 | fi |
|
|
5049 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5050 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
5051 | ac_preproc_ok=false |
|
|
5052 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5053 | do |
|
|
5054 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5055 | # with a fresh cross-compiler works. |
|
|
5056 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5057 | # <limits.h> exists even on freestanding compilers. |
|
|
5058 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5059 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5060 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5061 | /* confdefs.h. */ |
|
|
5062 | _ACEOF |
|
|
5063 | cat confdefs.h >>conftest.$ac_ext |
|
|
5064 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5065 | /* end confdefs.h. */ |
|
|
5066 | #ifdef __STDC__ |
|
|
5067 | # include <limits.h> |
|
|
5068 | #else |
|
|
5069 | # include <assert.h> |
|
|
5070 | #endif |
|
|
5071 | Syntax error |
|
|
5072 | _ACEOF |
|
|
5073 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5075 | ac_status=$? |
|
|
5076 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5077 | rm -f conftest.er1 |
|
|
5078 | cat conftest.err >&5 |
|
|
5079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5080 | (exit $ac_status); } >/dev/null; then |
|
|
5081 | if test -s conftest.err; then |
|
|
5082 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5083 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5084 | else |
|
|
5085 | ac_cpp_err= |
|
|
5086 | fi |
|
|
5087 | else |
|
|
5088 | ac_cpp_err=yes |
|
|
5089 | fi |
|
|
5090 | if test -z "$ac_cpp_err"; then |
|
|
5091 | : |
|
|
5092 | else |
|
|
5093 | echo "$as_me: failed program was:" >&5 |
|
|
5094 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5095 | |
|
|
5096 | # Broken: fails on valid input. |
|
|
5097 | continue |
|
|
5098 | fi |
|
|
5099 | rm -f conftest.err conftest.$ac_ext |
|
|
5100 | |
|
|
5101 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
5102 | # can be detected and how. |
|
|
5103 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5104 | /* confdefs.h. */ |
|
|
5105 | _ACEOF |
|
|
5106 | cat confdefs.h >>conftest.$ac_ext |
|
|
5107 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5108 | /* end confdefs.h. */ |
|
|
5109 | #include <ac_nonexistent.h> |
|
|
5110 | _ACEOF |
|
|
5111 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5112 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5113 | ac_status=$? |
|
|
5114 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5115 | rm -f conftest.er1 |
|
|
5116 | cat conftest.err >&5 |
|
|
5117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5118 | (exit $ac_status); } >/dev/null; then |
|
|
5119 | if test -s conftest.err; then |
|
|
5120 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5121 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5122 | else |
|
|
5123 | ac_cpp_err= |
|
|
5124 | fi |
|
|
5125 | else |
|
|
5126 | ac_cpp_err=yes |
|
|
5127 | fi |
|
|
5128 | if test -z "$ac_cpp_err"; then |
|
|
5129 | # Broken: success on invalid input. |
|
|
5130 | continue |
|
|
5131 | else |
|
|
5132 | echo "$as_me: failed program was:" >&5 |
|
|
5133 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5134 | |
|
|
5135 | # Passes both tests. |
|
|
5136 | ac_preproc_ok=: |
|
|
5137 | break |
|
|
5138 | fi |
|
|
5139 | rm -f conftest.err conftest.$ac_ext |
|
|
5140 | |
|
|
5141 | done |
|
|
5142 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5143 | rm -f conftest.err conftest.$ac_ext |
|
|
5144 | if $ac_preproc_ok; then |
|
|
5145 | : |
|
|
5146 | else |
|
|
5147 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5148 | See \`config.log' for more details." >&5 |
|
|
5149 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5150 | See \`config.log' for more details." >&2;} |
|
|
5151 | { (exit 1); exit 1; }; } |
|
|
5152 | fi |
|
|
5153 | |
|
|
5154 | ac_ext=cc |
|
|
5155 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5156 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5157 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5158 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5159 | |
|
|
5160 | |
5117 | |
5161 | |
5118 | if test "x$ac_path_x_has_been_run" != xyes; then |
5162 | if test "x$ac_path_x_has_been_run" != xyes; then |
5119 | echo "$as_me:$LINENO: checking for X" >&5 |
5163 | echo "$as_me:$LINENO: checking for X" >&5 |
5120 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
5164 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
5121 | |
5165 | |
… | |
… | |
7173 | |
7217 | |
7174 | |
7218 | |
7175 | |
7219 | |
7176 | |
7220 | |
7177 | |
7221 | |
7178 | |
|
|
7179 | |
|
|
7180 | |
|
|
7181 | |
|
|
7182 | |
|
|
7183 | |
|
|
7184 | |
|
|
7185 | |
|
|
7186 | |
|
|
7187 | for ac_header in \ |
7222 | for ac_header in \ |
7188 | assert.h \ |
7223 | assert.h \ |
7189 | fcntl.h \ |
7224 | fcntl.h \ |
7190 | grp.h \ |
|
|
7191 | libc.h \ |
|
|
7192 | lastlog.h \ |
|
|
7193 | stdarg.h \ |
7225 | stdarg.h \ |
7194 | stdlib.h \ |
7226 | stdlib.h \ |
7195 | string.h \ |
7227 | string.h \ |
7196 | termios.h \ |
7228 | termios.h \ |
7197 | unistd.h \ |
7229 | unistd.h \ |
7198 | sys/byteorder.h \ |
7230 | sys/byteorder.h \ |
7199 | sys/ioctl.h \ |
7231 | sys/ioctl.h \ |
7200 | sys/select.h \ |
7232 | sys/select.h \ |
7201 | sys/sockio.h \ |
7233 | sys/sockio.h \ |
7202 | sys/strredir.h \ |
7234 | sys/strredir.h \ |
7203 | sys/stropts.h \ |
|
|
7204 | sys/time.h \ |
7235 | sys/time.h \ |
7205 | utmp.h \ |
7236 | stdint.h \ |
7206 | utmpx.h \ |
7237 | wchar.h \ |
7207 | stdint.h \ |
7238 | cwchar \ |
7208 | pty.h \ |
7239 | clocale \ |
7209 | util.h \ |
|
|
7210 | libutil.h \ |
|
|
7211 | wchar.h \ |
|
|
7212 | cwchar \ |
|
|
7213 | clocale \ |
|
|
7214 | |
7240 | |
7215 | do |
7241 | do |
7216 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7242 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7217 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7218 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7244 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
10052 | |
10078 | |
10053 | |
10079 | |
10054 | |
10080 | |
10055 | |
10081 | |
10056 | |
10082 | |
10057 | |
|
|
10058 | |
|
|
10059 | |
|
|
10060 | |
|
|
10061 | |
|
|
10062 | |
|
|
10063 | |
|
|
10064 | |
|
|
10065 | |
|
|
10066 | |
|
|
10067 | for ac_func in \ |
10083 | for ac_func in \ |
10068 | revoke \ |
|
|
10069 | unsetenv \ |
10084 | unsetenv \ |
10070 | setutent \ |
10085 | setutent \ |
10071 | seteuid \ |
10086 | seteuid \ |
10072 | setresuid \ |
10087 | setresuid \ |
10073 | setreuid \ |
10088 | setreuid \ |
10074 | _getpty \ |
|
|
10075 | getpt \ |
|
|
10076 | posix_openpt \ |
|
|
10077 | grantpt \ |
|
|
10078 | unlockpt \ |
|
|
10079 | isastream \ |
|
|
10080 | on_exit \ |
10089 | on_exit \ |
10081 | nanosleep \ |
10090 | nanosleep \ |
10082 | updwtmp \ |
|
|
10083 | updwtmpx \ |
|
|
10084 | ttyslot \ |
|
|
10085 | |
10091 | |
10086 | do |
10092 | do |
10087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10093 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10088 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10094 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10095 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
… | |
… | |
10178 | cat >>confdefs.h <<_ACEOF |
10184 | cat >>confdefs.h <<_ACEOF |
10179 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10180 | _ACEOF |
10186 | _ACEOF |
10181 | |
10187 | |
10182 | fi |
10188 | fi |
|
|
10189 | done |
|
|
10190 | |
|
|
10191 | |
|
|
10192 | |
|
|
10193 | |
|
|
10194 | |
|
|
10195 | |
|
|
10196 | for ac_func in \ |
|
|
10197 | ttyslot \ |
|
|
10198 | updwtmp \ |
|
|
10199 | updwtmpx \ |
|
|
10200 | |
|
|
10201 | do |
|
|
10202 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10203 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10204 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
10205 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
10206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10207 | else |
|
|
10208 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10209 | /* confdefs.h. */ |
|
|
10210 | _ACEOF |
|
|
10211 | cat confdefs.h >>conftest.$ac_ext |
|
|
10212 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10213 | /* end confdefs.h. */ |
|
|
10214 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10215 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10216 | #define $ac_func innocuous_$ac_func |
|
|
10217 | |
|
|
10218 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10219 | which can conflict with char $ac_func (); below. |
|
|
10220 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10221 | <limits.h> exists even on freestanding compilers. */ |
|
|
10222 | |
|
|
10223 | #ifdef __STDC__ |
|
|
10224 | # include <limits.h> |
|
|
10225 | #else |
|
|
10226 | # include <assert.h> |
|
|
10227 | #endif |
|
|
10228 | |
|
|
10229 | #undef $ac_func |
|
|
10230 | |
|
|
10231 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
10232 | #ifdef __cplusplus |
|
|
10233 | extern "C" |
|
|
10234 | { |
|
|
10235 | #endif |
|
|
10236 | /* We use char because int might match the return type of a gcc2 |
|
|
10237 | builtin and then its argument prototype would still apply. */ |
|
|
10238 | char $ac_func (); |
|
|
10239 | /* The GNU C library defines this for functions which it implements |
|
|
10240 | to always fail with ENOSYS. Some functions are actually named |
|
|
10241 | something starting with __ and the normal name is an alias. */ |
|
|
10242 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
10243 | choke me |
|
|
10244 | #else |
|
|
10245 | char (*f) () = $ac_func; |
|
|
10246 | #endif |
|
|
10247 | #ifdef __cplusplus |
|
|
10248 | } |
|
|
10249 | #endif |
|
|
10250 | |
|
|
10251 | int |
|
|
10252 | main () |
|
|
10253 | { |
|
|
10254 | return f != $ac_func; |
|
|
10255 | ; |
|
|
10256 | return 0; |
|
|
10257 | } |
|
|
10258 | _ACEOF |
|
|
10259 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
10261 | (eval $ac_link) 2>conftest.er1 |
|
|
10262 | ac_status=$? |
|
|
10263 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10264 | rm -f conftest.er1 |
|
|
10265 | cat conftest.err >&5 |
|
|
10266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10267 | (exit $ac_status); } && |
|
|
10268 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10270 | (eval $ac_try) 2>&5 |
|
|
10271 | ac_status=$? |
|
|
10272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10273 | (exit $ac_status); }; } && |
|
|
10274 | { ac_try='test -s conftest$ac_exeext' |
|
|
10275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10276 | (eval $ac_try) 2>&5 |
|
|
10277 | ac_status=$? |
|
|
10278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10279 | (exit $ac_status); }; }; then |
|
|
10280 | eval "$as_ac_var=yes" |
|
|
10281 | else |
|
|
10282 | echo "$as_me: failed program was:" >&5 |
|
|
10283 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10284 | |
|
|
10285 | eval "$as_ac_var=no" |
|
|
10286 | fi |
|
|
10287 | rm -f conftest.err conftest.$ac_objext \ |
|
|
10288 | conftest$ac_exeext conftest.$ac_ext |
|
|
10289 | fi |
|
|
10290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
10291 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
10292 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10293 | cat >>confdefs.h <<_ACEOF |
|
|
10294 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10295 | _ACEOF |
|
|
10296 | |
|
|
10297 | fi |
|
|
10298 | done |
|
|
10299 | |
|
|
10300 | |
|
|
10301 | |
|
|
10302 | |
|
|
10303 | |
|
|
10304 | for ac_header in \ |
|
|
10305 | utmp.h \ |
|
|
10306 | utmpx.h \ |
|
|
10307 | lastlog.h \ |
|
|
10308 | |
|
|
10309 | do |
|
|
10310 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10312 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10314 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10316 | fi |
|
|
10317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10318 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10319 | else |
|
|
10320 | # Is the header compilable? |
|
|
10321 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
10322 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
10323 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10324 | /* confdefs.h. */ |
|
|
10325 | _ACEOF |
|
|
10326 | cat confdefs.h >>conftest.$ac_ext |
|
|
10327 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10328 | /* end confdefs.h. */ |
|
|
10329 | $ac_includes_default |
|
|
10330 | #include <$ac_header> |
|
|
10331 | _ACEOF |
|
|
10332 | rm -f conftest.$ac_objext |
|
|
10333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10334 | (eval $ac_compile) 2>conftest.er1 |
|
|
10335 | ac_status=$? |
|
|
10336 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10337 | rm -f conftest.er1 |
|
|
10338 | cat conftest.err >&5 |
|
|
10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10340 | (exit $ac_status); } && |
|
|
10341 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10343 | (eval $ac_try) 2>&5 |
|
|
10344 | ac_status=$? |
|
|
10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10346 | (exit $ac_status); }; } && |
|
|
10347 | { ac_try='test -s conftest.$ac_objext' |
|
|
10348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10349 | (eval $ac_try) 2>&5 |
|
|
10350 | ac_status=$? |
|
|
10351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10352 | (exit $ac_status); }; }; then |
|
|
10353 | ac_header_compiler=yes |
|
|
10354 | else |
|
|
10355 | echo "$as_me: failed program was:" >&5 |
|
|
10356 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10357 | |
|
|
10358 | ac_header_compiler=no |
|
|
10359 | fi |
|
|
10360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10361 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10362 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10363 | |
|
|
10364 | # Is the header present? |
|
|
10365 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
10366 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
10367 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10368 | /* confdefs.h. */ |
|
|
10369 | _ACEOF |
|
|
10370 | cat confdefs.h >>conftest.$ac_ext |
|
|
10371 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10372 | /* end confdefs.h. */ |
|
|
10373 | #include <$ac_header> |
|
|
10374 | _ACEOF |
|
|
10375 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10376 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10377 | ac_status=$? |
|
|
10378 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10379 | rm -f conftest.er1 |
|
|
10380 | cat conftest.err >&5 |
|
|
10381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10382 | (exit $ac_status); } >/dev/null; then |
|
|
10383 | if test -s conftest.err; then |
|
|
10384 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10385 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10386 | else |
|
|
10387 | ac_cpp_err= |
|
|
10388 | fi |
|
|
10389 | else |
|
|
10390 | ac_cpp_err=yes |
|
|
10391 | fi |
|
|
10392 | if test -z "$ac_cpp_err"; then |
|
|
10393 | ac_header_preproc=yes |
|
|
10394 | else |
|
|
10395 | echo "$as_me: failed program was:" >&5 |
|
|
10396 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10397 | |
|
|
10398 | ac_header_preproc=no |
|
|
10399 | fi |
|
|
10400 | rm -f conftest.err conftest.$ac_ext |
|
|
10401 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10402 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10403 | |
|
|
10404 | # So? What about this header? |
|
|
10405 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10406 | yes:no: ) |
|
|
10407 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10408 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10409 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
10410 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
10411 | ac_header_preproc=yes |
|
|
10412 | ;; |
|
|
10413 | no:yes:* ) |
|
|
10414 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
10415 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
10416 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
10417 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
10418 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
10419 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
10420 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10421 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10422 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
10423 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
10424 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
10425 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
10426 | ( |
|
|
10427 | cat <<\_ASBOX |
|
|
10428 | ## ------------------------------------------ ## |
|
|
10429 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10430 | ## ------------------------------------------ ## |
|
|
10431 | _ASBOX |
|
|
10432 | ) | |
|
|
10433 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10434 | ;; |
|
|
10435 | esac |
|
|
10436 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10437 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10438 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10440 | else |
|
|
10441 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
10442 | fi |
|
|
10443 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10444 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10445 | |
|
|
10446 | fi |
|
|
10447 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10448 | cat >>confdefs.h <<_ACEOF |
|
|
10449 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10450 | _ACEOF |
|
|
10451 | |
|
|
10452 | fi |
|
|
10453 | |
10183 | done |
10454 | done |
10184 | |
10455 | |
10185 | |
10456 | |
10186 | |
10457 | |
10187 | if test "${ac_cv_header_utmp_h+set}" = set; then |
10458 | if test "${ac_cv_header_utmp_h+set}" = set; then |
… | |
… | |
10331 | _ACEOF |
10602 | _ACEOF |
10332 | cat confdefs.h >>conftest.$ac_ext |
10603 | cat confdefs.h >>conftest.$ac_ext |
10333 | cat >>conftest.$ac_ext <<_ACEOF |
10604 | cat >>conftest.$ac_ext <<_ACEOF |
10334 | /* end confdefs.h. */ |
10605 | /* end confdefs.h. */ |
10335 | #include <sys/types.h> |
10606 | #include <sys/types.h> |
10336 | #include <stdint.h> |
|
|
10337 | #include <utmp.h> |
10607 | #include <utmp.h> |
10338 | int |
10608 | int |
10339 | main () |
10609 | main () |
10340 | { |
10610 | { |
10341 | struct utmp ut; |
10611 | struct utmp ut; |
… | |
… | |
11442 | _ACEOF |
11712 | _ACEOF |
11443 | |
11713 | |
11444 | fi |
11714 | fi |
11445 | |
11715 | |
11446 | |
11716 | |
|
|
11717 | |
11447 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11718 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11448 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11719 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11449 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
11720 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
11450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11451 | else |
11722 | else |
… | |
… | |
11866 | #define XIMCB_PROTO_BROKEN 1 |
12137 | #define XIMCB_PROTO_BROKEN 1 |
11867 | _ACEOF |
12138 | _ACEOF |
11868 | |
12139 | |
11869 | fi |
12140 | fi |
11870 | |
12141 | |
11871 | if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then |
12142 | |
|
|
12143 | |
|
|
12144 | |
|
|
12145 | |
|
|
12146 | |
|
|
12147 | |
|
|
12148 | for ac_header in \ |
|
|
12149 | pty.h \ |
|
|
12150 | util.h \ |
|
|
12151 | libutil.h \ |
|
|
12152 | sys/ioctl.h \ |
|
|
12153 | sys/stropts.h \ |
|
|
12154 | |
|
|
12155 | do |
|
|
12156 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12157 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11872 | echo "$as_me:$LINENO: checking for openpty" >&5 |
12158 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11873 | echo $ECHO_N "checking for openpty... $ECHO_C" >&6 |
12159 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11874 | if test "${ac_cv_func_openpty+set}" = set; then |
12160 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12162 | fi |
|
|
12163 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12164 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11876 | else |
12165 | else |
|
|
12166 | # Is the header compilable? |
|
|
12167 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12168 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
11877 | cat >conftest.$ac_ext <<_ACEOF |
12169 | cat >conftest.$ac_ext <<_ACEOF |
11878 | /* confdefs.h. */ |
12170 | /* confdefs.h. */ |
11879 | _ACEOF |
12171 | _ACEOF |
11880 | cat confdefs.h >>conftest.$ac_ext |
12172 | cat confdefs.h >>conftest.$ac_ext |
11881 | cat >>conftest.$ac_ext <<_ACEOF |
12173 | cat >>conftest.$ac_ext <<_ACEOF |
11882 | /* end confdefs.h. */ |
12174 | /* end confdefs.h. */ |
|
|
12175 | $ac_includes_default |
|
|
12176 | #include <$ac_header> |
|
|
12177 | _ACEOF |
|
|
12178 | rm -f conftest.$ac_objext |
|
|
12179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12180 | (eval $ac_compile) 2>conftest.er1 |
|
|
12181 | ac_status=$? |
|
|
12182 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12183 | rm -f conftest.er1 |
|
|
12184 | cat conftest.err >&5 |
|
|
12185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12186 | (exit $ac_status); } && |
|
|
12187 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12189 | (eval $ac_try) 2>&5 |
|
|
12190 | ac_status=$? |
|
|
12191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12192 | (exit $ac_status); }; } && |
|
|
12193 | { ac_try='test -s conftest.$ac_objext' |
|
|
12194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12195 | (eval $ac_try) 2>&5 |
|
|
12196 | ac_status=$? |
|
|
12197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12198 | (exit $ac_status); }; }; then |
|
|
12199 | ac_header_compiler=yes |
|
|
12200 | else |
|
|
12201 | echo "$as_me: failed program was:" >&5 |
|
|
12202 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12203 | |
|
|
12204 | ac_header_compiler=no |
|
|
12205 | fi |
|
|
12206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12207 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12208 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12209 | |
|
|
12210 | # Is the header present? |
|
|
12211 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12212 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12213 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12214 | /* confdefs.h. */ |
|
|
12215 | _ACEOF |
|
|
12216 | cat confdefs.h >>conftest.$ac_ext |
|
|
12217 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12218 | /* end confdefs.h. */ |
|
|
12219 | #include <$ac_header> |
|
|
12220 | _ACEOF |
|
|
12221 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12222 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12223 | ac_status=$? |
|
|
12224 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12225 | rm -f conftest.er1 |
|
|
12226 | cat conftest.err >&5 |
|
|
12227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12228 | (exit $ac_status); } >/dev/null; then |
|
|
12229 | if test -s conftest.err; then |
|
|
12230 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12231 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12232 | else |
|
|
12233 | ac_cpp_err= |
|
|
12234 | fi |
|
|
12235 | else |
|
|
12236 | ac_cpp_err=yes |
|
|
12237 | fi |
|
|
12238 | if test -z "$ac_cpp_err"; then |
|
|
12239 | ac_header_preproc=yes |
|
|
12240 | else |
|
|
12241 | echo "$as_me: failed program was:" >&5 |
|
|
12242 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12243 | |
|
|
12244 | ac_header_preproc=no |
|
|
12245 | fi |
|
|
12246 | rm -f conftest.err conftest.$ac_ext |
|
|
12247 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12248 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
12249 | |
|
|
12250 | # So? What about this header? |
|
|
12251 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12252 | yes:no: ) |
|
|
12253 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12254 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12256 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12257 | ac_header_preproc=yes |
|
|
12258 | ;; |
|
|
12259 | no:yes:* ) |
|
|
12260 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12261 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12262 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12263 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12264 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12265 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12266 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12267 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12268 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12269 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12270 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12271 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12272 | ( |
|
|
12273 | cat <<\_ASBOX |
|
|
12274 | ## ------------------------------------------ ## |
|
|
12275 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12276 | ## ------------------------------------------ ## |
|
|
12277 | _ASBOX |
|
|
12278 | ) | |
|
|
12279 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12280 | ;; |
|
|
12281 | esac |
|
|
12282 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12283 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12284 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12286 | else |
|
|
12287 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12288 | fi |
|
|
12289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12290 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12291 | |
|
|
12292 | fi |
|
|
12293 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12294 | cat >>confdefs.h <<_ACEOF |
|
|
12295 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12296 | _ACEOF |
|
|
12297 | |
|
|
12298 | fi |
|
|
12299 | |
|
|
12300 | done |
|
|
12301 | |
|
|
12302 | |
|
|
12303 | |
|
|
12304 | |
|
|
12305 | |
|
|
12306 | |
|
|
12307 | |
|
|
12308 | for ac_func in \ |
|
|
12309 | revoke \ |
|
|
12310 | _getpty \ |
|
|
12311 | getpt \ |
|
|
12312 | posix_openpt \ |
|
|
12313 | isastream \ |
|
|
12314 | |
|
|
12315 | do |
|
|
12316 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12317 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12318 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12319 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12321 | else |
|
|
12322 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12323 | /* confdefs.h. */ |
|
|
12324 | _ACEOF |
|
|
12325 | cat confdefs.h >>conftest.$ac_ext |
|
|
12326 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12327 | /* end confdefs.h. */ |
11883 | /* Define openpty to an innocuous variant, in case <limits.h> declares openpty. |
12328 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
12329 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11885 | #define openpty innocuous_openpty |
12330 | #define $ac_func innocuous_$ac_func |
11886 | |
12331 | |
11887 | /* System header to define __stub macros and hopefully few prototypes, |
12332 | /* System header to define __stub macros and hopefully few prototypes, |
11888 | which can conflict with char openpty (); below. |
12333 | which can conflict with char $ac_func (); below. |
11889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
12334 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11890 | <limits.h> exists even on freestanding compilers. */ |
12335 | <limits.h> exists even on freestanding compilers. */ |
11891 | |
12336 | |
11892 | #ifdef __STDC__ |
12337 | #ifdef __STDC__ |
11893 | # include <limits.h> |
12338 | # include <limits.h> |
11894 | #else |
12339 | #else |
11895 | # include <assert.h> |
12340 | # include <assert.h> |
11896 | #endif |
12341 | #endif |
11897 | |
12342 | |
11898 | #undef openpty |
12343 | #undef $ac_func |
11899 | |
12344 | |
11900 | /* Override any gcc2 internal prototype to avoid an error. */ |
12345 | /* Override any gcc2 internal prototype to avoid an error. */ |
11901 | #ifdef __cplusplus |
12346 | #ifdef __cplusplus |
11902 | extern "C" |
12347 | extern "C" |
11903 | { |
12348 | { |
11904 | #endif |
12349 | #endif |
11905 | /* We use char because int might match the return type of a gcc2 |
12350 | /* We use char because int might match the return type of a gcc2 |
11906 | builtin and then its argument prototype would still apply. */ |
12351 | builtin and then its argument prototype would still apply. */ |
11907 | char openpty (); |
12352 | char $ac_func (); |
11908 | /* The GNU C library defines this for functions which it implements |
12353 | /* The GNU C library defines this for functions which it implements |
11909 | to always fail with ENOSYS. Some functions are actually named |
12354 | to always fail with ENOSYS. Some functions are actually named |
11910 | something starting with __ and the normal name is an alias. */ |
12355 | something starting with __ and the normal name is an alias. */ |
11911 | #if defined (__stub_openpty) || defined (__stub___openpty) |
12356 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11912 | choke me |
12357 | choke me |
11913 | #else |
12358 | #else |
11914 | char (*f) () = openpty; |
12359 | char (*f) () = $ac_func; |
11915 | #endif |
12360 | #endif |
11916 | #ifdef __cplusplus |
12361 | #ifdef __cplusplus |
11917 | } |
12362 | } |
11918 | #endif |
12363 | #endif |
11919 | |
12364 | |
11920 | int |
12365 | int |
11921 | main () |
12366 | main () |
11922 | { |
12367 | { |
11923 | return f != openpty; |
12368 | return f != $ac_func; |
11924 | ; |
12369 | ; |
11925 | return 0; |
12370 | return 0; |
11926 | } |
12371 | } |
11927 | _ACEOF |
12372 | _ACEOF |
11928 | rm -f conftest.$ac_objext conftest$ac_exeext |
12373 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
11944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11945 | (eval $ac_try) 2>&5 |
12390 | (eval $ac_try) 2>&5 |
11946 | ac_status=$? |
12391 | ac_status=$? |
11947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11948 | (exit $ac_status); }; }; then |
12393 | (exit $ac_status); }; }; then |
11949 | ac_cv_func_openpty=yes |
12394 | eval "$as_ac_var=yes" |
11950 | else |
12395 | else |
11951 | echo "$as_me: failed program was:" >&5 |
12396 | echo "$as_me: failed program was:" >&5 |
11952 | sed 's/^/| /' conftest.$ac_ext >&5 |
12397 | sed 's/^/| /' conftest.$ac_ext >&5 |
11953 | |
12398 | |
11954 | ac_cv_func_openpty=no |
12399 | eval "$as_ac_var=no" |
11955 | fi |
12400 | fi |
11956 | rm -f conftest.err conftest.$ac_objext \ |
12401 | rm -f conftest.err conftest.$ac_objext \ |
11957 | conftest$ac_exeext conftest.$ac_ext |
12402 | conftest$ac_exeext conftest.$ac_ext |
11958 | fi |
12403 | fi |
|
|
12404 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12405 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12406 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12407 | cat >>confdefs.h <<_ACEOF |
|
|
12408 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12409 | _ACEOF |
|
|
12410 | |
|
|
12411 | fi |
|
|
12412 | done |
|
|
12413 | |
|
|
12414 | |
|
|
12415 | have_clone=no |
|
|
12416 | |
|
|
12417 | echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12418 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
|
|
12419 | if test -e /dev/ptym/clone; then |
|
|
12420 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12421 | echo "${ECHO_T}yes" >&6 |
|
|
12422 | |
|
|
12423 | cat >>confdefs.h <<\_ACEOF |
|
|
12424 | #define HAVE_DEV_CLONE 1 |
|
|
12425 | _ACEOF |
|
|
12426 | |
|
|
12427 | |
|
|
12428 | cat >>confdefs.h <<\_ACEOF |
|
|
12429 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12430 | _ACEOF |
|
|
12431 | |
|
|
12432 | have_clone=yes |
|
|
12433 | else |
|
|
12434 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12435 | echo "${ECHO_T}no" >&6 |
|
|
12436 | fi |
|
|
12437 | |
|
|
12438 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
12439 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
|
|
12440 | if test -e /dev/ptc; then |
|
|
12441 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12442 | echo "${ECHO_T}yes" >&6 |
|
|
12443 | |
|
|
12444 | cat >>confdefs.h <<\_ACEOF |
|
|
12445 | #define HAVE_DEV_PTC 1 |
|
|
12446 | _ACEOF |
|
|
12447 | |
|
|
12448 | |
|
|
12449 | cat >>confdefs.h <<\_ACEOF |
|
|
12450 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12451 | _ACEOF |
|
|
12452 | |
|
|
12453 | have_clone=yes |
|
|
12454 | else |
|
|
12455 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12456 | echo "${ECHO_T}no" >&6 |
|
|
12457 | fi |
|
|
12458 | |
|
|
12459 | case $host in |
|
|
12460 | *-*-cygwin*) |
|
|
12461 | have_clone=yes |
|
|
12462 | |
|
|
12463 | cat >>confdefs.h <<\_ACEOF |
|
|
12464 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12465 | _ACEOF |
|
|
12466 | |
|
|
12467 | ;; |
|
|
12468 | *) |
|
|
12469 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12470 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
|
|
12471 | if test -e /dev/ptmx; then |
|
|
12472 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12473 | echo "${ECHO_T}yes" >&6 |
|
|
12474 | |
|
|
12475 | cat >>confdefs.h <<\_ACEOF |
|
|
12476 | #define HAVE_DEV_PTMX 1 |
|
|
12477 | _ACEOF |
|
|
12478 | |
|
|
12479 | |
|
|
12480 | cat >>confdefs.h <<\_ACEOF |
|
|
12481 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12482 | _ACEOF |
|
|
12483 | |
|
|
12484 | have_clone=yes |
|
|
12485 | else |
|
|
12486 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12487 | echo "${ECHO_T}no" >&6 |
|
|
12488 | fi |
|
|
12489 | ;; |
|
|
12490 | esac |
|
|
12491 | |
|
|
12492 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12493 | echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12494 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
|
|
12495 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12496 | /* confdefs.h. */ |
|
|
12497 | _ACEOF |
|
|
12498 | cat confdefs.h >>conftest.$ac_ext |
|
|
12499 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12500 | /* end confdefs.h. */ |
|
|
12501 | #include <stdlib.h> |
|
|
12502 | int |
|
|
12503 | main () |
|
|
12504 | { |
|
|
12505 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12506 | ; |
|
|
12507 | return 0; |
|
|
12508 | } |
|
|
12509 | _ACEOF |
|
|
12510 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12512 | (eval $ac_link) 2>conftest.er1 |
|
|
12513 | ac_status=$? |
|
|
12514 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12515 | rm -f conftest.er1 |
|
|
12516 | cat conftest.err >&5 |
|
|
12517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12518 | (exit $ac_status); } && |
|
|
12519 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12521 | (eval $ac_try) 2>&5 |
|
|
12522 | ac_status=$? |
|
|
12523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12524 | (exit $ac_status); }; } && |
|
|
12525 | { ac_try='test -s conftest$ac_exeext' |
|
|
12526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12527 | (eval $ac_try) 2>&5 |
|
|
12528 | ac_status=$? |
|
|
12529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12530 | (exit $ac_status); }; }; then |
|
|
12531 | unix98_pty=yes |
|
|
12532 | |
|
|
12533 | cat >>confdefs.h <<\_ACEOF |
|
|
12534 | #define UNIX98_PTY 1 |
|
|
12535 | _ACEOF |
|
|
12536 | |
|
|
12537 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12538 | echo "${ECHO_T}yes" >&6 |
|
|
12539 | else |
|
|
12540 | echo "$as_me: failed program was:" >&5 |
|
|
12541 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12542 | |
11959 | echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 |
12543 | echo "$as_me:$LINENO: result: no" >&5 |
11960 | echo "${ECHO_T}$ac_cv_func_openpty" >&6 |
12544 | echo "${ECHO_T}no" >&6 |
11961 | if test $ac_cv_func_openpty = yes; then |
12545 | fi |
11962 | : |
12546 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12547 | conftest$ac_exeext conftest.$ac_ext |
|
|
12548 | fi |
|
|
12549 | |
|
|
12550 | if test -z "$unix98_pty"; then |
|
|
12551 | |
|
|
12552 | for ac_func in openpty |
|
|
12553 | do |
|
|
12554 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12555 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12556 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12557 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12559 | else |
|
|
12560 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12561 | /* confdefs.h. */ |
|
|
12562 | _ACEOF |
|
|
12563 | cat confdefs.h >>conftest.$ac_ext |
|
|
12564 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12565 | /* end confdefs.h. */ |
|
|
12566 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12567 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12568 | #define $ac_func innocuous_$ac_func |
|
|
12569 | |
|
|
12570 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12571 | which can conflict with char $ac_func (); below. |
|
|
12572 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12573 | <limits.h> exists even on freestanding compilers. */ |
|
|
12574 | |
|
|
12575 | #ifdef __STDC__ |
|
|
12576 | # include <limits.h> |
|
|
12577 | #else |
|
|
12578 | # include <assert.h> |
|
|
12579 | #endif |
|
|
12580 | |
|
|
12581 | #undef $ac_func |
|
|
12582 | |
|
|
12583 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12584 | #ifdef __cplusplus |
|
|
12585 | extern "C" |
|
|
12586 | { |
|
|
12587 | #endif |
|
|
12588 | /* We use char because int might match the return type of a gcc2 |
|
|
12589 | builtin and then its argument prototype would still apply. */ |
|
|
12590 | char $ac_func (); |
|
|
12591 | /* The GNU C library defines this for functions which it implements |
|
|
12592 | to always fail with ENOSYS. Some functions are actually named |
|
|
12593 | something starting with __ and the normal name is an alias. */ |
|
|
12594 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12595 | choke me |
|
|
12596 | #else |
|
|
12597 | char (*f) () = $ac_func; |
|
|
12598 | #endif |
|
|
12599 | #ifdef __cplusplus |
|
|
12600 | } |
|
|
12601 | #endif |
|
|
12602 | |
|
|
12603 | int |
|
|
12604 | main () |
|
|
12605 | { |
|
|
12606 | return f != $ac_func; |
|
|
12607 | ; |
|
|
12608 | return 0; |
|
|
12609 | } |
|
|
12610 | _ACEOF |
|
|
12611 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12613 | (eval $ac_link) 2>conftest.er1 |
|
|
12614 | ac_status=$? |
|
|
12615 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12616 | rm -f conftest.er1 |
|
|
12617 | cat conftest.err >&5 |
|
|
12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12619 | (exit $ac_status); } && |
|
|
12620 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12622 | (eval $ac_try) 2>&5 |
|
|
12623 | ac_status=$? |
|
|
12624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12625 | (exit $ac_status); }; } && |
|
|
12626 | { ac_try='test -s conftest$ac_exeext' |
|
|
12627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12628 | (eval $ac_try) 2>&5 |
|
|
12629 | ac_status=$? |
|
|
12630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12631 | (exit $ac_status); }; }; then |
|
|
12632 | eval "$as_ac_var=yes" |
|
|
12633 | else |
|
|
12634 | echo "$as_me: failed program was:" >&5 |
|
|
12635 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12636 | |
|
|
12637 | eval "$as_ac_var=no" |
|
|
12638 | fi |
|
|
12639 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12640 | conftest$ac_exeext conftest.$ac_ext |
|
|
12641 | fi |
|
|
12642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12643 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12644 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12645 | cat >>confdefs.h <<_ACEOF |
|
|
12646 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12647 | _ACEOF |
|
|
12648 | |
11963 | else |
12649 | else |
11964 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
12650 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
11965 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
12651 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
11966 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
12652 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
11967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12023 | LIBS=$ac_check_lib_save_LIBS |
12709 | LIBS=$ac_check_lib_save_LIBS |
12024 | fi |
12710 | fi |
12025 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
12711 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
12026 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
12712 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
12027 | if test $ac_cv_lib_util_openpty = yes; then |
12713 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12714 | cat >>confdefs.h <<\_ACEOF |
|
|
12715 | #define HAVE_OPENPTY 1 |
|
|
12716 | _ACEOF |
12028 | LIBS="$LIBS -lutil" |
12717 | LIBS="$LIBS -lutil" |
12029 | fi |
12718 | fi |
12030 | |
12719 | |
12031 | fi |
12720 | fi |
|
|
12721 | done |
12032 | |
12722 | |
12033 | fi |
12723 | fi |
12034 | |
12724 | |
12035 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
|
|
12036 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
|
|
12037 | if test "${rxvt_cv_ptys+set}" = set; then |
|
|
12038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12039 | else |
|
|
12040 | if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then |
|
|
12041 | rxvt_cv_ptys=OPENPTY |
|
|
12042 | else if test x$ac_cv_func_getpt = xyes; then |
|
|
12043 | rxvt_cv_ptys=GLIBC |
|
|
12044 | else if test x$ac_cv_func_posix_openpt = xyes; then |
|
|
12045 | rxvt_cv_ptys=POSIX |
|
|
12046 | else if test x$ac_cv_func__getpty = xyes; then |
|
|
12047 | rxvt_cv_ptys=SGI4 |
|
|
12048 | else if test -c /dev/ttyp20; then |
|
|
12049 | rxvt_cv_ptys=SCO |
|
|
12050 | else if test -c /dev/ptym/clone; then |
|
|
12051 | rxvt_cv_ptys=HPUX |
|
|
12052 | else if test -c /dev/ptc -a -c /dev/pts; then |
|
|
12053 | rxvt_cv_ptys=PTC |
|
|
12054 | else if test -c /dev/ptc -a -d /dev/pts; then |
|
|
12055 | rxvt_cv_ptys=PTC |
|
|
12056 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
|
|
12057 | rxvt_cv_ptys=STREAMS |
|
|
12058 | else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then |
|
|
12059 | rxvt_cv_ptys=STREAMS |
|
|
12060 | else |
|
|
12061 | rxvt_cv_ptys=BSD |
|
|
12062 | fi |
|
|
12063 | fi |
|
|
12064 | fi |
|
|
12065 | fi |
|
|
12066 | fi |
|
|
12067 | fi |
|
|
12068 | fi |
|
|
12069 | fi |
|
|
12070 | fi |
|
|
12071 | fi |
|
|
12072 | |
|
|
12073 | fi |
|
|
12074 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
|
|
12075 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
|
|
12076 | |
|
|
12077 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
12078 | |
|
|
12079 | cat >>confdefs.h <<\_ACEOF |
|
|
12080 | #define PTYS_ARE_GETPT 1 |
|
|
12081 | _ACEOF |
|
|
12082 | |
|
|
12083 | fi |
|
|
12084 | if test x$rxvt_cv_ptys = xPOSIX; then |
|
|
12085 | |
|
|
12086 | cat >>confdefs.h <<\_ACEOF |
|
|
12087 | #define PTYS_ARE_POSIX 1 |
|
|
12088 | _ACEOF |
|
|
12089 | |
|
|
12090 | fi |
|
|
12091 | if test x$rxvt_cv_ptys = xOPENPTY; then |
|
|
12092 | |
|
|
12093 | cat >>confdefs.h <<\_ACEOF |
|
|
12094 | #define PTYS_ARE_OPENPTY 1 |
|
|
12095 | _ACEOF |
|
|
12096 | |
|
|
12097 | fi |
|
|
12098 | if test x$rxvt_cv_ptys = xSCO; then |
|
|
12099 | |
|
|
12100 | cat >>confdefs.h <<\_ACEOF |
|
|
12101 | #define PTYS_ARE_NUMERIC 1 |
|
|
12102 | _ACEOF |
|
|
12103 | |
|
|
12104 | fi |
|
|
12105 | if test x$rxvt_cv_ptys = xSTREAMS; then |
|
|
12106 | |
|
|
12107 | cat >>confdefs.h <<\_ACEOF |
|
|
12108 | #define PTYS_ARE_PTMX 1 |
|
|
12109 | _ACEOF |
|
|
12110 | |
|
|
12111 | fi |
|
|
12112 | if test x$rxvt_cv_ptys = xPTC; then |
|
|
12113 | |
|
|
12114 | cat >>confdefs.h <<\_ACEOF |
|
|
12115 | #define PTYS_ARE_PTC 1 |
|
|
12116 | _ACEOF |
|
|
12117 | |
|
|
12118 | fi |
|
|
12119 | if test x$rxvt_cv_ptys = xSGI4; then |
|
|
12120 | |
|
|
12121 | cat >>confdefs.h <<\_ACEOF |
|
|
12122 | #define PTYS_ARE__GETPTY 1 |
|
|
12123 | _ACEOF |
|
|
12124 | |
|
|
12125 | fi |
|
|
12126 | if test x$rxvt_cv_ptys = xHPUX; then |
|
|
12127 | |
|
|
12128 | cat >>confdefs.h <<\_ACEOF |
|
|
12129 | #define PTYS_ARE_CLONE 1 |
|
|
12130 | _ACEOF |
|
|
12131 | |
|
|
12132 | fi |
|
|
12133 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then |
|
|
12134 | |
|
|
12135 | cat >>confdefs.h <<\_ACEOF |
|
|
12136 | #define PTYS_ARE_SEARCHED 1 |
|
|
12137 | _ACEOF |
|
|
12138 | |
|
|
12139 | fi |
|
|
12140 | |
|
|
12141 | |
|
|
12142 | { echo "$as_me:$LINENO: checking for pty ranges..." >&5 |
|
|
12143 | echo "$as_me: checking for pty ranges..." >&6;} |
|
|
12144 | ptys=`echo /dev/pty??` |
|
|
12145 | pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
|
|
12146 | pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
|
|
12147 | if test x$pch1 != x; then |
|
|
12148 | |
|
|
12149 | cat >>confdefs.h <<_ACEOF |
|
|
12150 | #define PTYCHAR1 "$pch1" |
|
|
12151 | _ACEOF |
|
|
12152 | |
|
|
12153 | fi |
|
|
12154 | if test x$pch2 != x; then |
|
|
12155 | |
|
|
12156 | cat >>confdefs.h <<_ACEOF |
|
|
12157 | #define PTYCHAR2 "$pch2" |
|
|
12158 | _ACEOF |
|
|
12159 | |
|
|
12160 | fi |
|
|
12161 | |
12725 | |
12162 | if test x$support_xft = xyes; then |
12726 | if test x$support_xft = xyes; then |
12163 | LIBS="$LIBS `pkg-config xft --libs`" |
12727 | LIBS="$LIBS `pkg-config xft --libs`" |
12164 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
12728 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
12165 | |
12729 | |
… | |
… | |
13547 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
14111 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
13548 | s,@CPP@,$CPP,;t t |
14112 | s,@CPP@,$CPP,;t t |
13549 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
14113 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
13550 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
14114 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
13551 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
14115 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
|
|
14116 | s,@EGREP@,$EGREP,;t t |
13552 | s,@LINKER@,$LINKER,;t t |
14117 | s,@LINKER@,$LINKER,;t t |
13553 | s,@CXXCPP@,$CXXCPP,;t t |
|
|
13554 | s,@EGREP@,$EGREP,;t t |
|
|
13555 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
14118 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
13556 | s,@RXVTNAME@,$RXVTNAME,;t t |
14119 | s,@RXVTNAME@,$RXVTNAME,;t t |
13557 | s,@MV@,$MV,;t t |
14120 | s,@MV@,$MV,;t t |
13558 | s,@RM@,$RM,;t t |
14121 | s,@RM@,$RM,;t t |
13559 | s,@CP@,$CP,;t t |
14122 | s,@CP@,$CP,;t t |
13560 | s,@LN@,$LN,;t t |
14123 | s,@LN@,$LN,;t t |
13561 | s,@SED@,$SED,;t t |
14124 | s,@SED@,$SED,;t t |
13562 | s,@ECHO@,$ECHO,;t t |
14125 | s,@ECHO@,$ECHO,;t t |
13563 | s,@CMP@,$CMP,;t t |
14126 | s,@CMP@,$CMP,;t t |
13564 | s,@TIC@,$TIC,;t t |
14127 | s,@TIC@,$TIC,;t t |
|
|
14128 | s,@CXXCPP@,$CXXCPP,;t t |
13565 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
14129 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
13566 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
14130 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
13567 | s,@X_LIBS@,$X_LIBS,;t t |
14131 | s,@X_LIBS@,$X_LIBS,;t t |
13568 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
14132 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
13569 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
14133 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
… | |
… | |
14116 | fi |
14680 | fi |
14117 | |
14681 | |
14118 | echo " |
14682 | echo " |
14119 | The following are set in config.h |
14683 | The following are set in config.h |
14120 | " |
14684 | " |
14121 | echo " pty/tty type: "$rxvt_cv_ptys |
|
|
14122 | if test x$support_utmp != xyes; then |
14685 | if test x$support_utmp != xyes; then |
14123 | echo " utmp support: disabled" |
14686 | echo " utmp support: disabled" |
14124 | echo |
14687 | echo |
14125 | else |
14688 | else |
14126 | echo " utmp support: enabled |
14689 | echo " utmp support: enabled |
… | |
… | |
14143 | echo " resource class: $RESCLASS" |
14706 | echo " resource class: $RESCLASS" |
14144 | if test x$RESFALLBACK != x; then |
14707 | if test x$RESFALLBACK != x; then |
14145 | echo " resource class fallback: $RESFALLBACK" |
14708 | echo " resource class fallback: $RESFALLBACK" |
14146 | fi |
14709 | fi |
14147 | echo |
14710 | echo |
14148 | if test x$rxvt_cv_ptys = xUNKNOWN; then |
|
|
14149 | echo ".----------------------------------------------------------------." |
|
|
14150 | echo ". WARNING: could not determine pty/tty type. Do not build until ." |
|
|
14151 | echo ". the appropriate PTYS_ARE_* is defined in config.h ." |
|
|
14152 | echo ".----------------------------------------------------------------." |
|
|
14153 | fi |
|
|
14154 | if test x$support_xpm = xneedsmanualspecification; then |
14711 | if test x$support_xpm = xneedsmanualspecification; then |
14155 | echo ".----------------------------------------------------------------." |
14712 | echo ".----------------------------------------------------------------." |
14156 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14713 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14157 | echo ". XPM includes files and libraries could not be found. ." |
14714 | echo ". XPM includes files and libraries could not be found. ." |
14158 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
14715 | echo ". XPM backgrounds are now being DISABLED! If you want ." |