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

Comparing rxvt-unicode/configure (file contents):
Revision 1.142 by sf-exg, Tue Jan 4 10:03:18 2011 UTC vs.
Revision 1.143 by root, Sun Feb 20 06:05:51 2011 UTC

5293 5293
5294fi 5294fi
5295done 5295done
5296 5296
5297 5297
5298for ac_func in clock_gettime
5299do :
5298ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 5300 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5299if test "x$ac_cv_func_clock_gettime" = x""yes; then : 5301if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5302 cat >>confdefs.h <<_ACEOF
5303#define HAVE_CLOCK_GETTIME 1
5304_ACEOF
5300 5305
5301else 5306else
5302 5307
5303 if test $(uname) = Linux; then 5308 if test $(uname) = Linux; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5389done 5394done
5390 5395
5391 fi 5396 fi
5392 5397
5393fi 5398fi
5399done
5394 5400
5395 5401
5402for ac_func in nanosleep
5403do :
5396ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 5404 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5397if test "x$ac_cv_func_nanosleep" = x""yes; then : 5405if test "x$ac_cv_func_nanosleep" = x""yes; then :
5406 cat >>confdefs.h <<_ACEOF
5407#define HAVE_NANOSLEEP 1
5408_ACEOF
5398 5409
5399else 5410else
5400 5411
5401 if test -z "$LIBEV_M4_AVOID_LIBRT"; then 5412 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5457done 5468done
5458 5469
5459 fi 5470 fi
5460 5471
5461fi 5472fi
5473done
5462 5474
5463 5475
5476if test -z "$LIBEV_M4_AVOID_LIBM"; then
5477 LIBM=m
5478fi
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5465$as_echo_n "checking for ceil in -lm... " >&6; } 5480$as_echo_n "checking for library containing floor... " >&6; }
5466if test "${ac_cv_lib_m_ceil+set}" = set; then : 5481if test "${ac_cv_search_floor+set}" = set; then :
5467 $as_echo_n "(cached) " >&6 5482 $as_echo_n "(cached) " >&6
5468else 5483else
5469 ac_check_lib_save_LIBS=$LIBS 5484 ac_func_search_save_LIBS=$LIBS
5470LIBS="-lm $LIBS"
5471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472/* end confdefs.h. */ 5486/* end confdefs.h. */
5473 5487
5474/* Override any GCC internal prototype to avoid an error. 5488/* Override any GCC internal prototype to avoid an error.
5475 Use char because int might match the return type of a GCC 5489 Use char because int might match the return type of a GCC
5476 builtin and then its argument prototype would still apply. */ 5490 builtin and then its argument prototype would still apply. */
5477#ifdef __cplusplus 5491#ifdef __cplusplus
5478extern "C" 5492extern "C"
5479#endif 5493#endif
5480char ceil (); 5494char floor ();
5481int 5495int
5482main () 5496main ()
5483{ 5497{
5484return ceil (); 5498return floor ();
5485 ; 5499 ;
5486 return 0; 5500 return 0;
5487} 5501}
5488_ACEOF 5502_ACEOF
5503for ac_lib in '' $LIBM; do
5504 if test -z "$ac_lib"; then
5505 ac_res="none required"
5506 else
5507 ac_res=-l$ac_lib
5508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5509 fi
5489if ac_fn_cxx_try_link "$LINENO"; then : 5510 if ac_fn_cxx_try_link "$LINENO"; then :
5490 ac_cv_lib_m_ceil=yes 5511 ac_cv_search_floor=$ac_res
5491else
5492 ac_cv_lib_m_ceil=no
5493fi 5512fi
5494rm -f core conftest.err conftest.$ac_objext \ 5513rm -f core conftest.err conftest.$ac_objext \
5495 conftest$ac_exeext conftest.$ac_ext 5514 conftest$ac_exeext
5496LIBS=$ac_check_lib_save_LIBS 5515 if test "${ac_cv_search_floor+set}" = set; then :
5516 break
5497fi 5517fi
5518done
5519if test "${ac_cv_search_floor+set}" = set; then :
5520
5521else
5522 ac_cv_search_floor=no
5523fi
5524rm conftest.$ac_ext
5525LIBS=$ac_func_search_save_LIBS
5526fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5499$as_echo "$ac_cv_lib_m_ceil" >&6; } 5528$as_echo "$ac_cv_search_floor" >&6; }
5500if test "x$ac_cv_lib_m_ceil" = x""yes; then : 5529ac_res=$ac_cv_search_floor
5501 cat >>confdefs.h <<_ACEOF 5530if test "$ac_res" != no; then :
5502#define HAVE_LIBM 1 5531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5503_ACEOF
5504 5532
5505 LIBS="-lm $LIBS" 5533$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
5506 5534
5507fi 5535fi
5508 5536
5509 5537
5510 5538
6420fi 6448fi
6421 6449
6422done 6450done
6423 6451
6424 6452
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPointer" >&5
6426$as_echo_n "checking for XPointer... " >&6; }
6427if test "${rxvt_cv_xpointer+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429else
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431/* end confdefs.h. */
6432#include <X11/Xlib.h>
6433int
6434main ()
6435{
6436XPointer dummy;
6437 ;
6438 return 0;
6439}
6440_ACEOF
6441if ac_fn_cxx_try_compile "$LINENO"; then :
6442 rxvt_cv_xpointer=yes
6443else
6444 rxvt_cv_xpointer=no
6445fi
6446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447fi
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xpointer" >&5
6449$as_echo "$rxvt_cv_xpointer" >&6; }
6450if test x$rxvt_cv_xpointer = xyes; then
6451
6452$as_echo "#define HAVE_XPOINTER 1" >>confdefs.h
6453
6454fi
6455
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6457$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } 6454$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6458if test "${rxvt_cv_xlib_illegal_access+set}" = set; then : 6455if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
6459 $as_echo_n "(cached) " >&6 6456 $as_echo_n "(cached) " >&6
6460else 6457else
7287$as_echo_n "checking for working Xlocale... " >&6; } 7284$as_echo_n "checking for working Xlocale... " >&6; }
7288if test "${rxvt_cv_func_xlocale+set}" = set; then : 7285if test "${rxvt_cv_func_xlocale+set}" = set; then :
7289 $as_echo_n "(cached) " >&6 7286 $as_echo_n "(cached) " >&6
7290else 7287else
7291 if test "$cross_compiling" = yes; then : 7288 if test "$cross_compiling" = yes; then :
7292 : 7289 :
7293else 7290else
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295/* end confdefs.h. */ 7292/* end confdefs.h. */
7293
7296#include <X11/Xlib.h> 7294 #include <X11/Xlib.h>
7297 #include <stdlib.h> 7295 #include <stdlib.h>
7298 main() { 7296 int main() {
7299 char *p; 7297 char *p;
7300 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 7298 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
7301 exit (XSupportsLocale() ? 0 : 1); 7299 exit (XSupportsLocale() ? 0 : 1);
7302 else 7300 else
7303 exit (1);} 7301 exit (1);
7302 }
7303
7304_ACEOF 7304_ACEOF
7305if ac_fn_cxx_try_run "$LINENO"; then : 7305if ac_fn_cxx_try_run "$LINENO"; then :
7306 rxvt_cv_func_xlocale=yes 7306 rxvt_cv_func_xlocale=yes
7307else 7307else
7308 rxvt_cv_func_xlocale=no 7308 rxvt_cv_func_xlocale=no
7309fi 7309fi
7310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7311 conftest.$ac_objext conftest.beam conftest.$ac_ext 7311 conftest.$ac_objext conftest.beam conftest.$ac_ext

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines