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

Comparing rxvt-unicode/configure (file contents):
Revision 1.94 by root, Wed Jan 25 22:09:33 2006 UTC vs.
Revision 1.99 by root, Thu Feb 2 14:40:59 2006 UTC

3289 CXX="$save_CXX" 3289 CXX="$save_CXX"
3290fi 3290fi
3291LINKER=$LINKER 3291LINKER=$LINKER
3292 3292
3293 3293
3294ac_ext=cc
3295ac_cpp='$CXXCPP $CPPFLAGS'
3296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3299
3300if test -z "$orig_CXXFLAGS"; then 3294if test -z "$orig_CXXFLAGS"; then
3301 if test x$GCC = xyes && test "x$GXX" = xyes; then 3295 if test x$GCC = xyes && test "x$GXX" = xyes; then
3302 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3296 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3303 cat >conftest.$ac_ext <<_ACEOF 3297 cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h. */ 3298/* confdefs.h. */
3859 LIBS="$LIBS -lsocket" 3853 LIBS="$LIBS -lsocket"
3860fi 3854fi
3861 3855
3862fi 3856fi
3863 3857
3864
3865echo "$as_me:$LINENO: checking for sched_yield" >&5
3866echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
3867if test "${ac_cv_func_sched_yield+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870 cat >conftest.$ac_ext <<_ACEOF
3871/* confdefs.h. */
3872_ACEOF
3873cat confdefs.h >>conftest.$ac_ext
3874cat >>conftest.$ac_ext <<_ACEOF
3875/* end confdefs.h. */
3876/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
3877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3878#define sched_yield innocuous_sched_yield
3879
3880/* System header to define __stub macros and hopefully few prototypes,
3881 which can conflict with char sched_yield (); below.
3882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3883 <limits.h> exists even on freestanding compilers. */
3884
3885#ifdef __STDC__
3886# include <limits.h>
3887#else
3888# include <assert.h>
3889#endif
3890
3891#undef sched_yield
3892
3893/* Override any gcc2 internal prototype to avoid an error. */
3894#ifdef __cplusplus
3895extern "C"
3896{
3897#endif
3898/* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3900char sched_yield ();
3901/* The GNU C library defines this for functions which it implements
3902 to always fail with ENOSYS. Some functions are actually named
3903 something starting with __ and the normal name is an alias. */
3904#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
3905choke me
3906#else
3907char (*f) () = sched_yield;
3908#endif
3909#ifdef __cplusplus
3910}
3911#endif
3912
3913int
3914main ()
3915{
3916return f != sched_yield;
3917 ;
3918 return 0;
3919}
3920_ACEOF
3921rm -f conftest.$ac_objext conftest$ac_exeext
3922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3923 (eval $ac_link) 2>conftest.er1
3924 ac_status=$?
3925 grep -v '^ *+' conftest.er1 >conftest.err
3926 rm -f conftest.er1
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; } &&
3936 { ac_try='test -s conftest$ac_exeext'
3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 (eval $ac_try) 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3942 ac_cv_func_sched_yield=yes
3943else
3944 echo "$as_me: failed program was:" >&5
3945sed 's/^/| /' conftest.$ac_ext >&5
3946
3947ac_cv_func_sched_yield=no
3948fi
3949rm -f conftest.err conftest.$ac_objext \
3950 conftest$ac_exeext conftest.$ac_ext
3951fi
3952echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
3953echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
3954if test $ac_cv_func_sched_yield = yes; then
3955 :
3956else
3957 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
3958echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
3959if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961else
3962 ac_check_lib_save_LIBS=$LIBS
3963LIBS="-lrt $LIBS"
3964cat >conftest.$ac_ext <<_ACEOF
3965/* confdefs.h. */
3966_ACEOF
3967cat confdefs.h >>conftest.$ac_ext
3968cat >>conftest.$ac_ext <<_ACEOF
3969/* end confdefs.h. */
3970
3971/* Override any gcc2 internal prototype to avoid an error. */
3972#ifdef __cplusplus
3973extern "C"
3974#endif
3975/* We use char because int might match the return type of a gcc2
3976 builtin and then its argument prototype would still apply. */
3977char sched_yield ();
3978int
3979main ()
3980{
3981sched_yield ();
3982 ;
3983 return 0;
3984}
3985_ACEOF
3986rm -f conftest.$ac_objext conftest$ac_exeext
3987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3988 (eval $ac_link) 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 (eval $ac_try) 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest$ac_exeext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; }; then
4007 ac_cv_lib_rt_sched_yield=yes
4008else
4009 echo "$as_me: failed program was:" >&5
4010sed 's/^/| /' conftest.$ac_ext >&5
4011
4012ac_cv_lib_rt_sched_yield=no
4013fi
4014rm -f conftest.err conftest.$ac_objext \
4015 conftest$ac_exeext conftest.$ac_ext
4016LIBS=$ac_check_lib_save_LIBS
4017fi
4018echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
4019echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
4020if test $ac_cv_lib_rt_sched_yield = yes; then
4021 LIBS="$LIBS -lrt"
4022fi
4023
4024fi
4025
4026
4027echo "$as_me:$LINENO: checking for sched_yield support" >&5
4028echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4029cat >conftest.$ac_ext <<_ACEOF
4030/* confdefs.h. */
4031_ACEOF
4032cat confdefs.h >>conftest.$ac_ext
4033cat >>conftest.$ac_ext <<_ACEOF
4034/* end confdefs.h. */
4035#include <sched.h>
4036int
4037main ()
4038{
4039sched_yield ()
4040 ;
4041 return 0;
4042}
4043_ACEOF
4044rm -f conftest.$ac_objext conftest$ac_exeext
4045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4046 (eval $ac_link) 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } &&
4053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055 (eval $ac_try) 2>&5
4056 ac_status=$?
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try='test -s conftest$ac_exeext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 echo "$as_me:$LINENO: result: yes" >&5
4066echo "${ECHO_T}yes" >&6
4067
4068cat >>confdefs.h <<\_ACEOF
4069#define HAVE_SCHED_YIELD 1
4070_ACEOF
4071
4072else
4073 echo "$as_me: failed program was:" >&5
4074sed 's/^/| /' conftest.$ac_ext >&5
4075
4076echo "$as_me:$LINENO: result: no" >&5
4077echo "${ECHO_T}no" >&6
4078fi
4079rm -f conftest.err conftest.$ac_objext \
4080 conftest$ac_exeext conftest.$ac_ext
4081 3858
4082 3859
4083support_frills=yes 3860support_frills=yes
4084support_inheritpixmap=yes 3861support_inheritpixmap=yes
4085support_tinting=yes 3862support_tinting=yes
4284 support_scroll_plain=$enableval 4061 support_scroll_plain=$enableval
4285 fi 4062 fi
4286fi; 4063fi;
4287 4064
4288 4065
4289
4290# Check whether --with-codesets or --without-codesets was given. 4066# Check whether --with-codesets or --without-codesets was given.
4291if test "${with_codesets+set}" = set; then 4067if test "${with_codesets+set}" = set; then
4292 withval="$with_codesets" 4068 withval="$with_codesets"
4293 codesets="$withval" 4069 codesets="$withval"
4294fi; 4070fi;
7556 7332
7557fi 7333fi
7558LIBS=$ac_save_LIBS 7334LIBS=$ac_save_LIBS
7559CFLAGS=$ac_save_CFLAGS 7335CFLAGS=$ac_save_CFLAGS
7560 7336
7337echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7338echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7339if test "${rxvt_xlib_illegal_access+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341else
7342 cat >conftest.$ac_ext <<_ACEOF
7343/* confdefs.h. */
7344_ACEOF
7345cat confdefs.h >>conftest.$ac_ext
7346cat >>conftest.$ac_ext <<_ACEOF
7347/* end confdefs.h. */
7348
7349#define XLIB_ILLEGAL_ACCESS
7350#include <X11/Xlib.h>
7351
7352int
7353main ()
7354{
7355
7356 Display *dpy;
7357 dpy->xdefaults = (char *)0;
7358
7359 ;
7360 return 0;
7361}
7362_ACEOF
7363rm -f conftest.$ac_objext
7364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7365 (eval $ac_compile) 2>conftest.er1
7366 ac_status=$?
7367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } &&
7372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; } &&
7378 { ac_try='test -s conftest.$ac_objext'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; }; then
7384 rxvt_xlib_illegal_access=yes
7385else
7386 echo "$as_me: failed program was:" >&5
7387sed 's/^/| /' conftest.$ac_ext >&5
7388
7389rxvt_xlib_illegal_access=no
7390
7391fi
7392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7393fi
7394echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7395echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7396if test x$rxvt_xlib_illegal_access = xyes; then
7397
7398cat >>confdefs.h <<\_ACEOF
7399#define XLIB_ILLEGAL_ACCESS 1
7400_ACEOF
7401
7402fi
7561 7403
7562echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7404echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7563echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 7405echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7564if test "${ac_cv_c_const+set}" = set; then 7406if test "${ac_cv_c_const+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6 7407 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 13272
13431 13273
13432 13274
13433 13275
13434 13276
13277 cat >conftest.$ac_ext <<_ACEOF
13278/* confdefs.h. */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
13282/* end confdefs.h. */
13283
13284#include <EXTERN.h>
13285#include <perl.h>
13286#include <XSUB.h>
13287
13288int
13289main ()
13290{
13291
13292 PerlInterpreter *perl = perl_alloc ();
13293
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298rm -f conftest.$ac_objext conftest$ac_exeext
13299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13300 (eval $ac_link) 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
13307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest$ac_exeext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 rxvt_perl_link=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324rxvt_perl_link=no
13325fi
13326rm -f conftest.err conftest.$ac_objext \
13327 conftest$ac_exeext conftest.$ac_ext
13435if test x$support_perl = xyes; then 13328if test x$support_perl = xyes; then
13436 support_frills=yes 13329 support_frills=yes
13437fi 13330fi
13438 13331
13439
13440CFLAGS=${CFLAGS--O}
13441LDFLAGS=${LDFLAGS--O}
13442
13443CPPFLAGS="$CPPFLAGS"
13444 13332
13445 13333
13446 13334
13447 13335
13448 13336
14772 echo ". functions could not be found. ." 14660 echo ". functions could not be found. ."
14773 echo ". XIM is now being DISABLED! ." 14661 echo ". XIM is now being DISABLED! ."
14774 echo ".----------------------------------------------------------------." 14662 echo ".----------------------------------------------------------------."
14775fi 14663fi
14776 14664
14777echo " *** Optionally check src/feature.h for further options ***" 14665echo "*** Optionally check src/feature.h for further, rarely used options ***"
14778echo 14666echo
14779 14667
14780echo ".----------------------------------------------------------------."
14781echo ". NOTE: some features are disabled by default, try ."
14782echo ". configure --help to get an idea of the optional features, ."
14783echo ". or read ./README.configure ."
14784echo ". ."
14785echo ". The script ./reconf gives a reasonable baseline, try it if ."
14786echo ". you do not want to read documentation and still want some ."
14787echo ". useful features. ."
14788echo ".----------------------------------------------------------------."
14789echo
14790

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines