ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
(Generate patch)

Comparing rxvt-unicode/configure (file contents):
Revision 1.69 by root, Mon Jan 16 11:26:39 2006 UTC vs.
Revision 1.80 by root, Fri Jan 20 10:27:08 2006 UTC

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
312ac_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 AWK LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TBL 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' 312ac_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'
313ac_subst_files='MCOMMON' 313ac_subst_files=''
314 314
315# Initialize some variables set by options. 315# Initialize some variables set by options.
316ac_init_help= 316ac_init_help=
317ac_init_version=false 317ac_init_version=false
318# The variables have the same names as the options, with 318# The variables have the same names as the options, with
877 --enable-lastlog enable lastlog support (requires --enable-utmp) 877 --enable-lastlog enable lastlog support (requires --enable-utmp)
878 --enable-xpm-background enable XPM background pixmaps 878 --enable-xpm-background enable XPM background pixmaps
879 --enable-transparency enable transparent backgrounds 879 --enable-transparency enable transparent backgrounds
880 --enable-tinting enable tinting of transparent bg 880 --enable-tinting enable tinting of transparent bg
881 --enable-fading enable colors fading when off focus 881 --enable-fading enable colors fading when off focus
882 --enable-menubar enable menubar
883 --enable-rxvt-scroll enable rxvt style scrollbar 882 --enable-rxvt-scroll enable rxvt style scrollbar
884 --enable-next-scroll enable NeXT style scrollbar 883 --enable-next-scroll enable NeXT style scrollbar
885 --enable-xterm-scroll enable Xterm style scrollbar 884 --enable-xterm-scroll enable Xterm style scrollbar
886 --enable-perl enable embedded perl interpreter 885 --enable-perl enable embedded perl interpreter
887 --enable-plain-scroll enable plain style scrollbar 886 --enable-plain-scroll enable plain style scrollbar
888 --enable-half-shadow use half width/height shadow on rxvt scrollbar
889 --enable-xim XIM (X Input Method) protocol support 887 --enable-xim XIM (X Input Method) protocol support
890 --enable-ttygid enable tty setting to group named "tty" 888 --enable-ttygid enable tty setting to group named "tty"
891 --disable-backspace-key disable handling of the backspace key 889 --disable-backspace-key disable handling of the backspace key
892 --disable-delete-key disable handling of the delete key 890 --disable-delete-key disable handling of the delete key
893 --disable-resources disable all resource checking 891 --disable-resources disable all resource checking
1371 1369
1372 1370
1373 1371
1374 1372
1375 1373
1374
1375 ac_config_headers="$ac_config_headers config.h:config.h.in"
1376
1377
1376ac_aux_dir= 1378ac_aux_dir=
1377for ac_dir in autoconf $srcdir/autoconf; do 1379for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1378 if test -f $ac_dir/install-sh; then 1380 if test -f $ac_dir/install-sh; then
1379 ac_aux_dir=$ac_dir 1381 ac_aux_dir=$ac_dir
1380 ac_install_sh="$ac_aux_dir/install-sh -c" 1382 ac_install_sh="$ac_aux_dir/install-sh -c"
1381 break 1383 break
1382 elif test -f $ac_dir/install.sh; then 1384 elif test -f $ac_dir/install.sh; then
1388 ac_install_sh="$ac_aux_dir/shtool install -c" 1390 ac_install_sh="$ac_aux_dir/shtool install -c"
1389 break 1391 break
1390 fi 1392 fi
1391done 1393done
1392if test -z "$ac_aux_dir"; then 1394if test -z "$ac_aux_dir"; then
1393 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1394echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1396echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1395 { (exit 1); exit 1; }; } 1397 { (exit 1); exit 1; }; }
1396fi 1398fi
1397ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1399ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1398ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1400ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1399ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1401ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1400
1401 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1402
1403 1402
1404# Make sure we can run config.sub. 1403# Make sure we can run config.sub.
1405$ac_config_sub sun4 >/dev/null 2>&1 || 1404$ac_config_sub sun4 >/dev/null 2>&1 ||
1406 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1407echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1406echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1459VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1458VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1460DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1459DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1461echo "" 1460echo ""
1462echo "configuring for rxvt $VERSION" 1461echo "configuring for rxvt $VERSION"
1463echo "" 1462echo ""
1463
1464orig_CXXFLAGS="$CXXFLAGS"
1464 1465
1465 1466
1466ac_ext=c 1467ac_ext=c
1467ac_cpp='$CPP $CPPFLAGS' 1468ac_cpp='$CPP $CPPFLAGS'
1468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 3050
3050test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3051 3052
3052test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3053 3054
3054for ac_prog in gawk mawk nawk awk
3055do
3056 # Extract the first word of "$ac_prog", so it can be a program name with args.
3057set dummy $ac_prog; ac_word=$2
3058echo "$as_me:$LINENO: checking for $ac_word" >&5
3059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3060if test "${ac_cv_prog_AWK+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
3063 if test -n "$AWK"; then
3064 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073 ac_cv_prog_AWK="$ac_prog"
3074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077done
3078done
3079 3055
3080fi
3081fi
3082AWK=$ac_cv_prog_AWK
3083if test -n "$AWK"; then
3084 echo "$as_me:$LINENO: result: $AWK" >&5
3085echo "${ECHO_T}$AWK" >&6
3086else
3087 echo "$as_me:$LINENO: result: no" >&5
3088echo "${ECHO_T}no" >&6
3089fi
3090
3091 test -n "$AWK" && break
3092done
3093
3094
3095ac_ext=c
3096ac_cpp='$CPP $CPPFLAGS'
3097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100
3101
3102if test -z "$orig_CXXFLAGS"; then
3103 CXXFLAGS='-O'
3104 if test x$GCC = xyes && test "x$GXX" = xyes; then
3105 CXXFLAGS="-g -O3"
3106 fi
3107 CFLAGS="$CXXFLAGS"
3108fi
3109
3110LINKER="$CXX"
3111if test x$GCC = xyes && test x$GXX = xyes; then
3112
3113echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3114echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3115if test "${ac_cv_lib_supcpp_main+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117else
3118 ac_check_lib_save_LIBS=$LIBS
3119LIBS="-lsupc++ $LIBS"
3120cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126
3127
3128int
3129main ()
3130{
3131main ();
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext conftest$ac_exeext
3137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>conftest.er1
3139 ac_status=$?
3140 grep -v '^ *+' conftest.er1 >conftest.err
3141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } &&
3145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 (eval $ac_try) 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; } &&
3151 { ac_try='test -s conftest$ac_exeext'
3152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 (eval $ac_try) 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 ac_cv_lib_supcpp_main=yes
3158else
3159 echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162ac_cv_lib_supcpp_main=no
3163fi
3164rm -f conftest.err conftest.$ac_objext \
3165 conftest$ac_exeext conftest.$ac_ext
3166LIBS=$ac_check_lib_save_LIBS
3167fi
3168echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3169echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3170if test $ac_cv_lib_supcpp_main = yes; then
3171
3172 LINKER="$CC"
3173 LIBS="$LIBS -lsupc++"
3174
3175fi
3176
3177fi
3178LINKER=$LINKER
3179
3180
3181
3182cat >>confdefs.h <<\_ACEOF
3183#define _GNU_SOURCE 1
3184_ACEOF
3185
3186
3187case $host in
3188 *-*-solaris* )
3189
3190cat >>confdefs.h <<\_ACEOF
3191#define _XOPEN_SOURCE_EXTENDED 1
3192_ACEOF
3193
3194
3195cat >>confdefs.h <<\_ACEOF
3196#define _XOPEN_SOURCE 2
3197_ACEOF
3198
3199
3200cat >>confdefs.h <<\_ACEOF
3201#define __EXTENSIONS__ 1
3202_ACEOF
3203
3204 ;;
3205esac
3206
3207
3208ac_ext=cc
3209ac_cpp='$CXXCPP $CPPFLAGS'
3210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3213
3214
3215
3216ac_ext=cc
3217ac_cpp='$CXXCPP $CPPFLAGS'
3218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3221echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3222echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3223if test -z "$CXXCPP"; then
3224 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226else
3227 # Double quotes because CXXCPP needs to be expanded
3228 for CXXCPP in "$CXX -E" "/lib/cpp"
3229 do
3230 ac_preproc_ok=false
3231for ac_cxx_preproc_warn_flag in '' yes
3232do
3233 # Use a header file that comes with gcc, so configuring glibc
3234 # with a fresh cross-compiler works.
3235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3236 # <limits.h> exists even on freestanding compilers.
3237 # On the NeXT, cc -E runs the code through the compiler's parser,
3238 # not just through cpp. "Syntax error" is here to catch this case.
3239 cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h. */
3245#ifdef __STDC__
3246# include <limits.h>
3247#else
3248# include <assert.h>
3249#endif
3250 Syntax error
3251_ACEOF
3252if { (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
3266else
3267 ac_cpp_err=yes
3268fi
3269if test -z "$ac_cpp_err"; then
3270 :
3271else
3272 echo "$as_me: failed program was:" >&5
3273sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 # Broken: fails on valid input.
3276continue
3277fi
3278rm -f conftest.err conftest.$ac_ext
3279
3280 # OK, works on sane cases. Now check whether non-existent headers
3281 # can be detected and how.
3282 cat >conftest.$ac_ext <<_ACEOF
3283/* confdefs.h. */
3284_ACEOF
3285cat confdefs.h >>conftest.$ac_ext
3286cat >>conftest.$ac_ext <<_ACEOF
3287/* end confdefs.h. */
3288#include <ac_nonexistent.h>
3289_ACEOF
3290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3292 ac_status=$?
3293 grep -v '^ *+' conftest.er1 >conftest.err
3294 rm -f conftest.er1
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } >/dev/null; then
3298 if test -s conftest.err; then
3299 ac_cpp_err=$ac_cxx_preproc_warn_flag
3300 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3301 else
3302 ac_cpp_err=
3303 fi
3304else
3305 ac_cpp_err=yes
3306fi
3307if test -z "$ac_cpp_err"; then
3308 # Broken: success on invalid input.
3309continue
3310else
3311 echo "$as_me: failed program was:" >&5
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
3314 # Passes both tests.
3315ac_preproc_ok=:
3316break
3317fi
3318rm -f conftest.err conftest.$ac_ext
3319
3320done
3321# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3322rm -f conftest.err conftest.$ac_ext
3323if $ac_preproc_ok; then
3324 break
3325fi
3326
3327 done
3328 ac_cv_prog_CXXCPP=$CXXCPP
3329
3330fi
3331 CXXCPP=$ac_cv_prog_CXXCPP
3332else
3333 ac_cv_prog_CXXCPP=$CXXCPP
3334fi
3335echo "$as_me:$LINENO: result: $CXXCPP" >&5
3336echo "${ECHO_T}$CXXCPP" >&6
3337ac_preproc_ok=false
3338for ac_cxx_preproc_warn_flag in '' yes
3339do
3340 # Use a header file that comes with gcc, so configuring glibc
3341 # with a fresh cross-compiler works.
3342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3343 # <limits.h> exists even on freestanding compilers.
3344 # On the NeXT, cc -E runs the code through the compiler's parser,
3345 # not just through cpp. "Syntax error" is here to catch this case.
3346 cat >conftest.$ac_ext <<_ACEOF
3347/* confdefs.h. */
3348_ACEOF
3349cat confdefs.h >>conftest.$ac_ext
3350cat >>conftest.$ac_ext <<_ACEOF
3351/* end confdefs.h. */
3352#ifdef __STDC__
3353# include <limits.h>
3354#else
3355# include <assert.h>
3356#endif
3357 Syntax error
3358_ACEOF
3359if { (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
3373else
3374 ac_cpp_err=yes
3375fi
3376if test -z "$ac_cpp_err"; then
3377 :
3378else
3379 echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382 # Broken: fails on valid input.
3383continue
3384fi
3385rm -f conftest.err conftest.$ac_ext
3386
3387 # OK, works on sane cases. Now check whether non-existent headers
3388 # can be detected and how.
3389 cat >conftest.$ac_ext <<_ACEOF
3390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h. */
3395#include <ac_nonexistent.h>
3396_ACEOF
3397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } >/dev/null; then
3405 if test -s conftest.err; then
3406 ac_cpp_err=$ac_cxx_preproc_warn_flag
3407 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3408 else
3409 ac_cpp_err=
3410 fi
3411else
3412 ac_cpp_err=yes
3413fi
3414if test -z "$ac_cpp_err"; then
3415 # Broken: success on invalid input.
3416continue
3417else
3418 echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
3421 # Passes both tests.
3422ac_preproc_ok=:
3423break
3424fi
3425rm -f conftest.err conftest.$ac_ext
3426
3427done
3428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3429rm -f conftest.err conftest.$ac_ext
3430if $ac_preproc_ok; then
3431 :
3432else
3433 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3434See \`config.log' for more details." >&5
3435echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3436See \`config.log' for more details." >&2;}
3437 { (exit 1); exit 1; }; }
3438fi
3439
3440ac_ext=cc
3441ac_cpp='$CXXCPP $CPPFLAGS'
3442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3445 3056
3446 3057
3447echo "$as_me:$LINENO: checking for egrep" >&5 3058echo "$as_me:$LINENO: checking for egrep" >&5
3448echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3059echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3449if test "${ac_cv_prog_egrep+set}" = set; then 3060if test "${ac_cv_prog_egrep+set}" = set; then
3524 grep -v '^ *+' conftest.er1 >conftest.err 3135 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1 3136 rm -f conftest.er1
3526 cat conftest.err >&5 3137 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } && 3139 (exit $ac_status); } &&
3529 { 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'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3531 (eval $ac_try) 2>&5 3142 (eval $ac_try) 2>&5
3532 ac_status=$? 3143 ac_status=$?
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; } && 3145 (exit $ac_status); }; } &&
3578 grep -v '^ *+' conftest.er1 >conftest.err 3189 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1 3190 rm -f conftest.er1
3580 cat conftest.err >&5 3191 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && 3193 (exit $ac_status); } &&
3583 { 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'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5 3196 (eval $ac_try) 2>&5
3586 ac_status=$? 3197 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; } && 3199 (exit $ac_status); }; } &&
3609echo "${ECHO_T}$ac_cv_search_strerror" >&6 3220echo "${ECHO_T}$ac_cv_search_strerror" >&6
3610if test "$ac_cv_search_strerror" != no; then 3221if test "$ac_cv_search_strerror" != no; then
3611 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"
3612 3223
3613fi 3224fi
3225
3226
3227ac_ext=c
3228ac_cpp='$CPP $CPPFLAGS'
3229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232
3233
3234LINKER="$CXX"
3235if test x$GCC = xyes && test x$GXX = xyes; then
3236 echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3237echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3238if test "${ac_cv_lib_supcpp_main+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241 ac_check_lib_save_LIBS=$LIBS
3242LIBS="-lsupc++ $LIBS"
3243cat >conftest.$ac_ext <<_ACEOF
3244/* confdefs.h. */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
3248/* end confdefs.h. */
3249
3250
3251int
3252main ()
3253{
3254main ();
3255 ;
3256 return 0;
3257}
3258_ACEOF
3259rm -f conftest.$ac_objext conftest$ac_exeext
3260if { (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
3281else
3282 echo "$as_me: failed program was:" >&5
3283sed 's/^/| /' conftest.$ac_ext >&5
3284
3285ac_cv_lib_supcpp_main=no
3286fi
3287rm -f conftest.err conftest.$ac_objext \
3288 conftest$ac_exeext conftest.$ac_ext
3289LIBS=$ac_check_lib_save_LIBS
3290fi
3291echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3292echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3293if test $ac_cv_lib_supcpp_main = yes; then
3294
3295 LINKER="$CC"
3296 LIBS="$LIBS -lsupc++"
3297
3298fi
3299
3300fi
3301LINKER=$LINKER
3302
3303
3304ac_ext=cc
3305ac_cpp='$CXXCPP $CPPFLAGS'
3306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3309
3310if test -z "$orig_CXXFLAGS"; then
3311 if test x$GCC = xyes && test "x$GXX" = xyes; then
3312 CXXFLAGS="-g -O3 -Os -fno-threadsafe-statics -fno-enforce-eh-specs"
3313
3314cat >conftest.$ac_ext <<_ACEOF
3315int i;
3316_ACEOF
3317rm -f conftest.$ac_objext
3318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
3326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328 (eval $ac_try) 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; } &&
3332 { ac_try='test -s conftest.$ac_objext'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 (eval $ac_try) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3338 echo didididid
3339else
3340 echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
3343CXXFLAGS="-g -O3"
3344fi
3345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3346 else
3347 CXXFLAGS="-O"
3348 fi
3349 CFLAGS="$CXXFLAGS"
3350fi
3351
3352
3353cat >>confdefs.h <<\_ACEOF
3354#define _GNU_SOURCE 1
3355_ACEOF
3356
3357
3358case $host in
3359 *-*-solaris* )
3360
3361cat >>confdefs.h <<\_ACEOF
3362#define _XOPEN_SOURCE_EXTENDED 1
3363_ACEOF
3364
3365
3366cat >>confdefs.h <<\_ACEOF
3367#define _XOPEN_SOURCE 2
3368_ACEOF
3369
3370
3371cat >>confdefs.h <<\_ACEOF
3372#define __EXTENSIONS__ 1
3373_ACEOF
3374
3375 ;;
3376esac
3614 3377
3615 3378
3616echo "$as_me:$LINENO: checking for setlocale" >&5 3379echo "$as_me:$LINENO: checking for setlocale" >&5
3617echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 3380echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3618if test "${ac_cv_func_setlocale+set}" = set; then 3381if test "${ac_cv_func_setlocale+set}" = set; then
4322support_inheritpixmap=yes 4085support_inheritpixmap=yes
4323support_tinting=yes 4086support_tinting=yes
4324support_fading=yes 4087support_fading=yes
4325support_keepscrolling=yes 4088support_keepscrolling=yes
4326support_selectionscrolling=yes 4089support_selectionscrolling=yes
4327support_menubar=no
4328support_mousewheel=yes 4090support_mousewheel=yes
4329support_mouseslipwheel=yes 4091support_mouseslipwheel=yes
4330support_utmp=yes 4092support_utmp=yes
4331support_wtmp=yes 4093support_wtmp=yes
4332support_lastlog=yes 4094support_lastlog=yes
4369 support_tinting=no 4131 support_tinting=no
4370 support_fading=no 4132 support_fading=no
4371 support_keepscrolling=no 4133 support_keepscrolling=no
4372 support_selectionscrolling=no 4134 support_selectionscrolling=no
4373 support_lastlog=no 4135 support_lastlog=no
4374 support_menubar=no
4375 support_mousewheel=no 4136 support_mousewheel=no
4376 support_mouseslipwheel=no 4137 support_mouseslipwheel=no
4377 support_text_blink=no 4138 support_text_blink=no
4378 support_pointer_blank=no 4139 support_pointer_blank=no
4379 support_scroll_rxvt=no 4140 support_scroll_rxvt=no
4400 support_tinting=yes 4161 support_tinting=yes
4401 support_fading=yes 4162 support_fading=yes
4402 support_keepscrolling=yes 4163 support_keepscrolling=yes
4403 support_selectionscrolling=yes 4164 support_selectionscrolling=yes
4404 support_lastlog=yes 4165 support_lastlog=yes
4405 support_menubar=yes
4406 support_mousewheel=yes 4166 support_mousewheel=yes
4407 support_mouseslipwheel=yes 4167 support_mouseslipwheel=yes
4408 support_text_blink=yes 4168 support_text_blink=yes
4409 support_pointer_blank=yes 4169 support_pointer_blank=yes
4410 support_scroll_rxvt=yes 4170 support_scroll_rxvt=yes
4513 if test x$enableval = xyes -o x$enableval = xno; then 4273 if test x$enableval = xyes -o x$enableval = xno; then
4514 support_fading=$enableval 4274 support_fading=$enableval
4515 fi 4275 fi
4516fi; 4276fi;
4517 4277
4518# Check whether --enable-menubar or --disable-menubar was given.
4519if test "${enable_menubar+set}" = set; then
4520 enableval="$enable_menubar"
4521 if test x$enableval = xyes -o x$enableval = xno; then
4522 support_menubar=$enableval
4523 fi
4524fi;
4525
4526# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4278# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4527if test "${enable_rxvt_scroll+set}" = set; then 4279if test "${enable_rxvt_scroll+set}" = set; then
4528 enableval="$enable_rxvt_scroll" 4280 enableval="$enable_rxvt_scroll"
4529 if test x$enableval = xyes -o x$enableval = xno; then 4281 if test x$enableval = xyes -o x$enableval = xno; then
4530 support_scroll_rxvt=$enableval 4282 support_scroll_rxvt=$enableval
4561 if test x$enableval = xyes -o x$enableval = xno; then 4313 if test x$enableval = xyes -o x$enableval = xno; then
4562 support_scroll_plain=$enableval 4314 support_scroll_plain=$enableval
4563 fi 4315 fi
4564fi; 4316fi;
4565 4317
4566# Check whether --enable-half-shadow or --disable-half-shadow was given.
4567if test "${enable_half_shadow+set}" = set; then
4568 enableval="$enable_half_shadow"
4569 if test x$enableval = xyes; then
4570
4571cat >>confdefs.h <<\_ACEOF
4572#define HALFSHADOW 1
4573_ACEOF
4574
4575 fi
4576fi;
4577 4318
4578 4319
4579# Check whether --with-codesets or --without-codesets was given. 4320# Check whether --with-codesets or --without-codesets was given.
4580if test "${with_codesets+set}" = set; then 4321if test "${with_codesets+set}" = set; then
4581 withval="$with_codesets" 4322 withval="$with_codesets"
4848#define RXVT_TERMINFO "$withval" 4589#define RXVT_TERMINFO "$withval"
4849_ACEOF 4590_ACEOF
4850 terminfo="$withval" 4591 terminfo="$withval"
4851 fi 4592 fi
4852fi; 4593fi;
4853
4854
4855
4856cat >>confdefs.h <<\_ACEOF
4857#define PROTOTYPES 1
4858_ACEOF
4859 4594
4860 4595
4861# Extract the first word of "mv", so it can be a program name with args. 4596# Extract the first word of "mv", so it can be a program name with args.
4862set dummy mv; ac_word=$2 4597set dummy mv; ac_word=$2
4863echo "$as_me:$LINENO: checking for $ac_word" >&5 4598echo "$as_me:$LINENO: checking for $ac_word" >&5
5136else 4871else
5137 echo "$as_me:$LINENO: result: no" >&5 4872 echo "$as_me:$LINENO: result: no" >&5
5138echo "${ECHO_T}no" >&6 4873echo "${ECHO_T}no" >&6
5139fi 4874fi
5140 4875
5141# Extract the first word of "tbl", so it can be a program name with args.
5142set dummy tbl; ac_word=$2
5143echo "$as_me:$LINENO: checking for $ac_word" >&5
5144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145if test "${ac_cv_path_TBL+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147else
5148 case $TBL in
5149 [\\/]* | ?:[\\/]*)
5150 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5151 ;;
5152 *)
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164done
5165done
5166
5167 ;;
5168esac
5169fi
5170TBL=$ac_cv_path_TBL
5171
5172if test -n "$TBL"; then
5173 echo "$as_me:$LINENO: result: $TBL" >&5
5174echo "${ECHO_T}$TBL" >&6
5175else
5176 echo "$as_me:$LINENO: result: no" >&5
5177echo "${ECHO_T}no" >&6
5178fi
5179
5180# Extract the first word of "tic", so it can be a program name with args. 4876# Extract the first word of "tic", so it can be a program name with args.
5181set dummy tic; ac_word=$2 4877set dummy tic; ac_word=$2
5182echo "$as_me:$LINENO: checking for $ac_word" >&5 4878echo "$as_me:$LINENO: checking for $ac_word" >&5
5183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5184if test "${ac_cv_path_TIC+set}" = set; then 4880if test "${ac_cv_path_TIC+set}" = set; then
5215 echo "$as_me:$LINENO: result: no" >&5 4911 echo "$as_me:$LINENO: result: no" >&5
5216echo "${ECHO_T}no" >&6 4912echo "${ECHO_T}no" >&6
5217fi 4913fi
5218 4914
5219 4915
4916
4917
4918ac_ext=cc
4919ac_cpp='$CXXCPP $CPPFLAGS'
4920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4923echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4924echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4925if test -z "$CXXCPP"; then
4926 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929 # Double quotes because CXXCPP needs to be expanded
4930 for CXXCPP in "$CXX -E" "/lib/cpp"
4931 do
4932 ac_preproc_ok=false
4933for ac_cxx_preproc_warn_flag in '' yes
4934do
4935 # Use a header file that comes with gcc, so configuring glibc
4936 # with a fresh cross-compiler works.
4937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4938 # <limits.h> exists even on freestanding compilers.
4939 # On the NeXT, cc -E runs the code through the compiler's parser,
4940 # not just through cpp. "Syntax error" is here to catch this case.
4941 cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
4947#ifdef __STDC__
4948# include <limits.h>
4949#else
4950# include <assert.h>
4951#endif
4952 Syntax error
4953_ACEOF
4954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } >/dev/null; then
4962 if test -s conftest.err; then
4963 ac_cpp_err=$ac_cxx_preproc_warn_flag
4964 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4965 else
4966 ac_cpp_err=
4967 fi
4968else
4969 ac_cpp_err=yes
4970fi
4971if test -z "$ac_cpp_err"; then
4972 :
4973else
4974 echo "$as_me: failed program was:" >&5
4975sed 's/^/| /' conftest.$ac_ext >&5
4976
4977 # Broken: fails on valid input.
4978continue
4979fi
4980rm -f conftest.err conftest.$ac_ext
4981
4982 # OK, works on sane cases. Now check whether non-existent headers
4983 # can be detected and how.
4984 cat >conftest.$ac_ext <<_ACEOF
4985/* confdefs.h. */
4986_ACEOF
4987cat confdefs.h >>conftest.$ac_ext
4988cat >>conftest.$ac_ext <<_ACEOF
4989/* end confdefs.h. */
4990#include <ac_nonexistent.h>
4991_ACEOF
4992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } >/dev/null; then
5000 if test -s conftest.err; then
5001 ac_cpp_err=$ac_cxx_preproc_warn_flag
5002 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5003 else
5004 ac_cpp_err=
5005 fi
5006else
5007 ac_cpp_err=yes
5008fi
5009if test -z "$ac_cpp_err"; then
5010 # Broken: success on invalid input.
5011continue
5012else
5013 echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016 # Passes both tests.
5017ac_preproc_ok=:
5018break
5019fi
5020rm -f conftest.err conftest.$ac_ext
5021
5022done
5023# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024rm -f conftest.err conftest.$ac_ext
5025if $ac_preproc_ok; then
5026 break
5027fi
5028
5029 done
5030 ac_cv_prog_CXXCPP=$CXXCPP
5031
5032fi
5033 CXXCPP=$ac_cv_prog_CXXCPP
5034else
5035 ac_cv_prog_CXXCPP=$CXXCPP
5036fi
5037echo "$as_me:$LINENO: result: $CXXCPP" >&5
5038echo "${ECHO_T}$CXXCPP" >&6
5039ac_preproc_ok=false
5040for ac_cxx_preproc_warn_flag in '' yes
5041do
5042 # Use a header file that comes with gcc, so configuring glibc
5043 # with a fresh cross-compiler works.
5044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045 # <limits.h> exists even on freestanding compilers.
5046 # On the NeXT, cc -E runs the code through the compiler's parser,
5047 # not just through cpp. "Syntax error" is here to catch this case.
5048 cat >conftest.$ac_ext <<_ACEOF
5049/* confdefs.h. */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h. */
5054#ifdef __STDC__
5055# include <limits.h>
5056#else
5057# include <assert.h>
5058#endif
5059 Syntax error
5060_ACEOF
5061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } >/dev/null; then
5069 if test -s conftest.err; then
5070 ac_cpp_err=$ac_cxx_preproc_warn_flag
5071 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5072 else
5073 ac_cpp_err=
5074 fi
5075else
5076 ac_cpp_err=yes
5077fi
5078if test -z "$ac_cpp_err"; then
5079 :
5080else
5081 echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
5084 # Broken: fails on valid input.
5085continue
5086fi
5087rm -f conftest.err conftest.$ac_ext
5088
5089 # OK, works on sane cases. Now check whether non-existent headers
5090 # can be detected and how.
5091 cat >conftest.$ac_ext <<_ACEOF
5092/* confdefs.h. */
5093_ACEOF
5094cat confdefs.h >>conftest.$ac_ext
5095cat >>conftest.$ac_ext <<_ACEOF
5096/* end confdefs.h. */
5097#include <ac_nonexistent.h>
5098_ACEOF
5099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } >/dev/null; then
5107 if test -s conftest.err; then
5108 ac_cpp_err=$ac_cxx_preproc_warn_flag
5109 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5110 else
5111 ac_cpp_err=
5112 fi
5113else
5114 ac_cpp_err=yes
5115fi
5116if test -z "$ac_cpp_err"; then
5117 # Broken: success on invalid input.
5118continue
5119else
5120 echo "$as_me: failed program was:" >&5
5121sed 's/^/| /' conftest.$ac_ext >&5
5122
5123 # Passes both tests.
5124ac_preproc_ok=:
5125break
5126fi
5127rm -f conftest.err conftest.$ac_ext
5128
5129done
5130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5131rm -f conftest.err conftest.$ac_ext
5132if $ac_preproc_ok; then
5133 :
5134else
5135 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5136See \`config.log' for more details." >&5
5137echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5138See \`config.log' for more details." >&2;}
5139 { (exit 1); exit 1; }; }
5140fi
5141
5142ac_ext=cc
5143ac_cpp='$CXXCPP $CPPFLAGS'
5144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5220 5147
5221 5148
5222 5149
5223if test "x$ac_path_x_has_been_run" != xyes; then 5150if test "x$ac_path_x_has_been_run" != xyes; then
5224 echo "$as_me:$LINENO: checking for X" >&5 5151 echo "$as_me:$LINENO: checking for X" >&5
10150#define RETSIGTYPE $ac_cv_type_signal 10077#define RETSIGTYPE $ac_cv_type_signal
10151_ACEOF 10078_ACEOF
10152 10079
10153 10080
10154 10081
10155case "$host_alias" in
10156 *ultrix) ac_cv_func_setsid='no' ;;
10157 *) break;;
10158esac
10159
10160
10161
10162 10082
10163 10083
10164 10084
10165 10085
10166 10086
10175 10095
10176 10096
10177 10097
10178 10098
10179for ac_func in \ 10099for ac_func in \
10180 atexit \
10181 revoke \ 10100 revoke \
10182 unsetenv \ 10101 unsetenv \
10183 setutent \ 10102 setutent \
10184 seteuid \ 10103 seteuid \
10104 setresuid \
10185 setreuid \ 10105 setreuid \
10186 setsid \
10187 setpgrp \
10188 setpgid \
10189 _getpty \ 10106 _getpty \
10107 getpt \
10190 posix_openpt \ 10108 posix_openpt \
10191 grantpt \ 10109 grantpt \
10192 unlockpt \ 10110 unlockpt \
10193 isastream \ 10111 isastream \
10194 on_exit \ 10112 on_exit \
10445_ACEOF 10363_ACEOF
10446cat confdefs.h >>conftest.$ac_ext 10364cat confdefs.h >>conftest.$ac_ext
10447cat >>conftest.$ac_ext <<_ACEOF 10365cat >>conftest.$ac_ext <<_ACEOF
10448/* end confdefs.h. */ 10366/* end confdefs.h. */
10449#include <sys/types.h> 10367#include <sys/types.h>
10450#include <stdint.h>
10451#include <utmp.h> 10368#include <utmp.h>
10452int 10369int
10453main () 10370main ()
10454{ 10371{
10455struct utmp ut; 10372struct utmp ut;
11916 11833
11917cat >>confdefs.h <<\_ACEOF 11834cat >>confdefs.h <<\_ACEOF
11918#define HAVE_UNIX_FDPASS 1 11835#define HAVE_UNIX_FDPASS 1
11919_ACEOF 11836_ACEOF
11920 11837
11838else
11839 { { echo "$as_me:$LINENO: error: urxvt requires unix-compliant filehandle passing ability" >&5
11840echo "$as_me: error: urxvt requires unix-compliant filehandle passing ability" >&2;}
11841 { (exit 1); exit 1; }; }
11921fi 11842fi
11922 11843
11923echo "$as_me:$LINENO: checking for broken XIM callback" >&5 11844echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11924echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 11845echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11925if test "${rxvt_broken_ximcb+set}" = set; then 11846if test "${rxvt_broken_ximcb+set}" = set; then
11976#define XIMCB_PROTO_BROKEN 1 11897#define XIMCB_PROTO_BROKEN 1
11977_ACEOF 11898_ACEOF
11978 11899
11979fi 11900fi
11980 11901
11981if test x$rxvt_cv_func_posix_openpt = xno; then 11902if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then
11982 echo "$as_me:$LINENO: checking for openpty" >&5 11903 echo "$as_me:$LINENO: checking for openpty" >&5
11983echo $ECHO_N "checking for openpty... $ECHO_C" >&6 11904echo $ECHO_N "checking for openpty... $ECHO_C" >&6
11984if test "${ac_cv_func_openpty+set}" = set; then 11905if test "${ac_cv_func_openpty+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6 11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11986else 11907else
12147if test "${rxvt_cv_ptys+set}" = set; then 12068if test "${rxvt_cv_ptys+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6 12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12149else 12070else
12150 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then 12071 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12151 rxvt_cv_ptys=OPENPTY 12072 rxvt_cv_ptys=OPENPTY
12073 else if test x$ac_cv_func_getpt = xyes; then
12074 rxvt_cv_ptys=GLIBC
12152 else if test x$ac_cv_func_posix_openpt = xyes; then 12075 else if test x$ac_cv_func_posix_openpt = xyes; then
12153 rxvt_cv_ptys=POSIX 12076 rxvt_cv_ptys=POSIX
12154 else if test x$ac_cv_func__getpty = xyes; then 12077 else if test x$ac_cv_func__getpty = xyes; then
12155 rxvt_cv_ptys=SGI4 12078 rxvt_cv_ptys=SGI4
12156 else if test -c /dev/ttyp20; then 12079 else if test -c /dev/ttyp20; then
12174fi 12097fi
12175fi 12098fi
12176fi 12099fi
12177fi 12100fi
12178fi 12101fi
12102fi
12179 12103
12180fi 12104fi
12181echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 12105echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12182echo "${ECHO_T}$rxvt_cv_ptys" >&6 12106echo "${ECHO_T}$rxvt_cv_ptys" >&6
12183 12107
12108if test x$rxvt_cv_ptys = xGLIBC; then
12109
12110cat >>confdefs.h <<\_ACEOF
12111#define PTYS_ARE_GETPT 1
12112_ACEOF
12113
12114fi
12184if test x$rxvt_cv_ptys = xPOSIX; then 12115if test x$rxvt_cv_ptys = xPOSIX; then
12185 12116
12186cat >>confdefs.h <<\_ACEOF 12117cat >>confdefs.h <<\_ACEOF
12187#define PTYS_ARE_POSIX 1 12118#define PTYS_ARE_POSIX 1
12188_ACEOF 12119_ACEOF
12552cat >>confdefs.h <<\_ACEOF 12483cat >>confdefs.h <<\_ACEOF
12553#define SELECTION_SCROLLING 1 12484#define SELECTION_SCROLLING 1
12554_ACEOF 12485_ACEOF
12555 12486
12556fi 12487fi
12557if test x$support_menubar = xyes; then
12558
12559cat >>confdefs.h <<\_ACEOF
12560#define MENUBAR 1
12561_ACEOF
12562
12563fi
12564if test x$support_frills = xyes; then 12488if test x$support_frills = xyes; then
12565 12489
12566cat >>confdefs.h <<\_ACEOF 12490cat >>confdefs.h <<\_ACEOF
12567#define ENABLE_FRILLS 1 12491#define ENABLE_FRILLS 1
12568_ACEOF 12492_ACEOF
12884 PERL_O=rxvtperl.o 12808 PERL_O=rxvtperl.o
12885 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 12809 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12886 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 12810 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12887 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 12811 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12888 else 12812 else
12889 support_perl=no
12890 echo "$as_me:$LINENO: result: no, unable to link" >&5 12813 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
12891echo "${ECHO_T}no, unable to link" >&6 12814echo "$as_me: error: no, unable to link" >&2;}
12815 { (exit 1); exit 1; }; }
12892 fi 12816 fi
12893 else 12817 else
12894 { { echo "$as_me:$LINENO: error: no working perl found" >&5 12818 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
12895echo "$as_me: error: no working perl found" >&2;} 12819echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
12896 { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; } 12820 { (exit 1); exit 1; }; }
12897 support_perl=no
12898 fi 12821 fi
12899fi 12822fi
12900 12823
12901 12824
12902 12825
12928 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` 12851 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12929fi 12852fi
12930 12853
12931 12854
12932 12855
12933
12934
12935MCOMMON=./autoconf/Make.common
12936 12856
12937 12857
12938test "$program_prefix" != NONE && 12858test "$program_prefix" != NONE &&
12939 program_transform_name="s,^,$program_prefix,;$program_transform_name" 12859 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12940# Use a double $ so make ignores it. 12860# Use a double $ so make ignores it.
13016 include_time_h="#include <time.h>" 12936 include_time_h="#include <time.h>"
13017else 12937else
13018 include_time_h="/* #include <time.h> */" 12938 include_time_h="/* #include <time.h> */"
13019fi 12939fi
13020 12940
13021 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h" 12941 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13022 12942
13023cat >confcache <<\_ACEOF 12943cat >confcache <<\_ACEOF
13024# This file is a shell script that caches the results of configure 12944# This file is a shell script that caches the results of configure
13025# tests run on this system so they can be shared between configure 12945# tests run on this system so they can be shared between configure
13026# scripts and configure runs, see configure's option --config-cache. 12946# scripts and configure runs, see configure's option --config-cache.
13543cat >>$CONFIG_STATUS <<\_ACEOF 13463cat >>$CONFIG_STATUS <<\_ACEOF
13544for ac_config_target in $ac_config_targets 13464for ac_config_target in $ac_config_targets
13545do 13465do
13546 case "$ac_config_target" in 13466 case "$ac_config_target" in
13547 # Handling of arguments. 13467 # Handling of arguments.
13548 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
13549 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13468 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13550 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13469 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13551 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13470 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13552 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13471 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13553 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13472 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13554 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13473 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13555echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13474echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13556 { (exit 1); exit 1; }; };; 13475 { (exit 1); exit 1; }; };;
13557 esac 13476 esac
13558done 13477done
13659s,@ac_ct_CXX@,$ac_ct_CXX,;t t 13578s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13660s,@CPP@,$CPP,;t t 13579s,@CPP@,$CPP,;t t
13661s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13580s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13662s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13581s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13663s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13582s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13664s,@AWK@,$AWK,;t t 13583s,@EGREP@,$EGREP,;t t
13665s,@LINKER@,$LINKER,;t t 13584s,@LINKER@,$LINKER,;t t
13666s,@CXXCPP@,$CXXCPP,;t t
13667s,@EGREP@,$EGREP,;t t
13668s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 13585s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13669s,@RXVTNAME@,$RXVTNAME,;t t 13586s,@RXVTNAME@,$RXVTNAME,;t t
13670s,@MV@,$MV,;t t 13587s,@MV@,$MV,;t t
13671s,@RM@,$RM,;t t 13588s,@RM@,$RM,;t t
13672s,@CP@,$CP,;t t 13589s,@CP@,$CP,;t t
13673s,@LN@,$LN,;t t 13590s,@LN@,$LN,;t t
13674s,@SED@,$SED,;t t 13591s,@SED@,$SED,;t t
13675s,@ECHO@,$ECHO,;t t 13592s,@ECHO@,$ECHO,;t t
13676s,@CMP@,$CMP,;t t 13593s,@CMP@,$CMP,;t t
13677s,@TBL@,$TBL,;t t
13678s,@TIC@,$TIC,;t t 13594s,@TIC@,$TIC,;t t
13595s,@CXXCPP@,$CXXCPP,;t t
13679s,@X_CFLAGS@,$X_CFLAGS,;t t 13596s,@X_CFLAGS@,$X_CFLAGS,;t t
13680s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 13597s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13681s,@X_LIBS@,$X_LIBS,;t t 13598s,@X_LIBS@,$X_LIBS,;t t
13682s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 13599s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13683s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 13600s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13711s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 13628s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13712s,@include_sys_time_h@,$include_sys_time_h,;t t 13629s,@include_sys_time_h@,$include_sys_time_h,;t t
13713s,@include_time_h@,$include_time_h,;t t 13630s,@include_time_h@,$include_time_h,;t t
13714s,@LIBOBJS@,$LIBOBJS,;t t 13631s,@LIBOBJS@,$LIBOBJS,;t t
13715s,@LTLIBOBJS@,$LTLIBOBJS,;t t 13632s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13716/@MCOMMON@/r $MCOMMON
13717s,@MCOMMON@,,;t t
13718CEOF 13633CEOF
13719 13634
13720_ACEOF 13635_ACEOF
13721 13636
13722 cat >>$CONFIG_STATUS <<\_ACEOF 13637 cat >>$CONFIG_STATUS <<\_ACEOF

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines