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

Comparing rxvt-unicode/configure (file contents):
Revision 1.149 by sf-exg, Sun Nov 27 15:18:44 2011 UTC vs.
Revision 1.156 by root, Tue Jun 19 18:17:56 2012 UTC

1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68. 3# Generated by GNU Autoconf 2.67.
4# 4#
5# 5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc. 8# Foundation, Inc.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.) 88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl" 89IFS=" "" $as_nl"
90 90
91# Find who we are. Look in the path if we contain no directory separator. 91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #(( 92case $0 in #((
94 *[\\/]* ) as_myself=$0 ;; 93 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH 95for as_dir in $PATH
97do 96do
213 212
214 if test "x$CONFIG_SHELL" != x; then : 213 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a 214 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also 215 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables. 216 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null 217 BASH_ENV=/dev/null
220 ENV=/dev/null 218 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL 220 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230fi 222fi
231 223
232 if test x$as_have_required = xno; then : 224 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all" 225 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system." 226 $as_echo "$0: the shells that I found on your system."
605IF_PERL 597IF_PERL
606PERLPRIVLIBEXP 598PERLPRIVLIBEXP
607PERLFLAGS 599PERLFLAGS
608PERLLIB 600PERLLIB
609PERL 601PERL
602PIXBUF_LIBS
603PIXBUF_CFLAGS
610XFT_CONFIG 604XFT_CONFIG
611AFTERIMAGE_LIBS
612AFTERIMAGE_CFLAGS
613afterimage_config
614STARTUP_NOTIFICATION_LIBS 605STARTUP_NOTIFICATION_LIBS
615STARTUP_NOTIFICATION_CFLAGS 606STARTUP_NOTIFICATION_CFLAGS
616PIXBUF_LIBS
617PIXBUF_CFLAGS
618PKG_CONFIG 607PKG_CONFIG
619X_EXTRA_LIBS 608X_EXTRA_LIBS
620X_LIBS 609X_LIBS
621X_PRE_LIBS 610X_PRE_LIBS
622X_CFLAGS 611X_CFLAGS
625CXXCPP 614CXXCPP
626RXVTNAME 615RXVTNAME
627LINKER 616LINKER
628EGREP 617EGREP
629GREP 618GREP
619CPP
630INSTALL_DATA 620INSTALL_DATA
631INSTALL_SCRIPT 621INSTALL_SCRIPT
632INSTALL_PROGRAM 622INSTALL_PROGRAM
633CPP
634ac_ct_CXX 623ac_ct_CXX
635CXXFLAGS 624CXXFLAGS
636CXX 625CXX
637OBJEXT 626OBJEXT
638EXEEXT 627EXEEXT
698enable_256_color 687enable_256_color
699enable_unicode3 688enable_unicode3
700enable_combining 689enable_combining
701enable_xft 690enable_xft
702enable_font_styles 691enable_font_styles
703enable_afterimage
704with_afterimage_config
705enable_pixbuf 692enable_pixbuf
706enable_startup_notification 693enable_startup_notification
707enable_transparency 694enable_transparency
708enable_fading 695enable_fading
709enable_rxvt_scroll 696enable_rxvt_scroll
730enable_smart_resize 717enable_smart_resize
731enable_text_blink 718enable_text_blink
732enable_pointer_blank 719enable_pointer_blank
733with_term 720with_term
734with_terminfo 721with_terminfo
722enable_xdbe
735with_x 723with_x
736enable_utmp 724enable_utmp
737enable_wtmp 725enable_wtmp
738enable_lastlog 726enable_lastlog
739' 727'
1153 *) 1141 *)
1154 # FIXME: should be removed in autoconf 3.0. 1142 # FIXME: should be removed in autoconf 3.0.
1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1143 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1145 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1146 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1159 ;; 1147 ;;
1160 1148
1161 esac 1149 esac
1162done 1150done
1163 1151
1375 --enable-256-color enable 256-color support 1363 --enable-256-color enable 256-color support
1376 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1364 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1377 --enable-combining enable composition of base and combining characters 1365 --enable-combining enable composition of base and combining characters
1378 --enable-xft enable xft support on systems that have it 1366 --enable-xft enable xft support on systems that have it
1379 --enable-font-styles enable bold and italic support 1367 --enable-font-styles enable bold and italic support
1380 --enable-afterimage enable integration with libAfterImage for background images
1381 --enable-pixbuf enable integration with gdk-pixbuf for background images 1368 --enable-pixbuf enable integration with gdk-pixbuf for background images
1382 --enable-startup-notification enable freedesktop startup notification support 1369 --enable-startup-notification enable freedesktop startup notification support
1383 --enable-transparency enable transparent backgrounds 1370 --enable-transparency enable transparent backgrounds
1384 --enable-fading enable colors fading when off focus 1371 --enable-fading enable colors fading when off focus
1385 --enable-rxvt-scroll enable rxvt style scrollbar 1372 --enable-rxvt-scroll enable rxvt style scrollbar
1400 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1387 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1401 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) 1388 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1402 --enable-smart-resize enable smart growth/shrink behaviour 1389 --enable-smart-resize enable smart growth/shrink behaviour
1403 --enable-text-blink enable blinking text 1390 --enable-text-blink enable blinking text
1404 --enable-pointer-blank enable pointer blanking when typing or inactive 1391 --enable-pointer-blank enable pointer blanking when typing or inactive
1392 --enable-xdbe enable support for double buffering
1405 --enable-utmp enable utmp (utmpx) support 1393 --enable-utmp enable utmp (utmpx) support
1406 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1394 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1407 --enable-lastlog enable lastlog support (requires --enable-utmp) 1395 --enable-lastlog enable lastlog support (requires --enable-utmp)
1408 1396
1409Optional Packages: 1397Optional Packages:
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-afterimage-config=DIR use libAfterImage config script in DIR
1413 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1400 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1414 --with-res-name=NAME use this as default resource name (default: urxvt) 1401 --with-res-name=NAME use this as default resource name (default: urxvt)
1415 --with-res-class=CLASS use this as the resource class (default: URxvt) 1402 --with-res-class=CLASS use this as the resource class (default: URxvt)
1416 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1403 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1417 --with-term=NAME set the terminal to NAME (default: rxvt) 1404 --with-term=NAME set the terminal to NAME (default: rxvt)
1497 1484
1498test -n "$ac_init_help" && exit $ac_status 1485test -n "$ac_init_help" && exit $ac_status
1499if $ac_init_version; then 1486if $ac_init_version; then
1500 cat <<\_ACEOF 1487 cat <<\_ACEOF
1501configure 1488configure
1502generated by GNU Autoconf 2.68 1489generated by GNU Autoconf 2.67
1503 1490
1504Copyright (C) 2010 Free Software Foundation, Inc. 1491Copyright (C) 2010 Free Software Foundation, Inc.
1505This configure script is free software; the Free Software Foundation 1492This configure script is free software; the Free Software Foundation
1506gives unlimited permission to copy, distribute and modify it. 1493gives unlimited permission to copy, distribute and modify it.
1507_ACEOF 1494_ACEOF
1543 $as_echo "$as_me: failed program was:" >&5 1530 $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5 1531sed 's/^/| /' conftest.$ac_ext >&5
1545 1532
1546 ac_retval=1 1533 ac_retval=1
1547fi 1534fi
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549 as_fn_set_status $ac_retval 1536 as_fn_set_status $ac_retval
1550 1537
1551} # ac_fn_c_try_compile 1538} # ac_fn_c_try_compile
1552 1539
1553# ac_fn_cxx_try_compile LINENO 1540# ac_fn_cxx_try_compile LINENO
1581 $as_echo "$as_me: failed program was:" >&5 1568 $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5 1569sed 's/^/| /' conftest.$ac_ext >&5
1583 1570
1584 ac_retval=1 1571 ac_retval=1
1585fi 1572fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1587 as_fn_set_status $ac_retval 1574 as_fn_set_status $ac_retval
1588 1575
1589} # ac_fn_cxx_try_compile 1576} # ac_fn_cxx_try_compile
1590 1577
1591# ac_fn_c_try_cpp LINENO 1578# ac_fn_c_try_cpp LINENO
1618 $as_echo "$as_me: failed program was:" >&5 1605 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5 1606sed 's/^/| /' conftest.$ac_ext >&5
1620 1607
1621 ac_retval=1 1608 ac_retval=1
1622fi 1609fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 as_fn_set_status $ac_retval 1611 as_fn_set_status $ac_retval
1625 1612
1626} # ac_fn_c_try_cpp 1613} # ac_fn_c_try_cpp
1627 1614
1628# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1615# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1631# the include files in INCLUDES and setting the cache variable VAR 1618# the include files in INCLUDES and setting the cache variable VAR
1632# accordingly. 1619# accordingly.
1633ac_fn_c_check_header_mongrel () 1620ac_fn_c_check_header_mongrel ()
1634{ 1621{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if eval \${$3+:} false; then : 1623 if eval "test \"\${$3+set}\"" = set; then :
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638$as_echo_n "checking for $2... " >&6; } 1625$as_echo_n "checking for $2... " >&6; }
1639if eval \${$3+:} false; then : 1626if eval "test \"\${$3+set}\"" = set; then :
1640 $as_echo_n "(cached) " >&6 1627 $as_echo_n "(cached) " >&6
1641fi 1628fi
1642eval ac_res=\$$3 1629eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; } 1631$as_echo "$ac_res" >&6; }
1697$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1684$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698 ;; 1685 ;;
1699esac 1686esac
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; } 1688$as_echo_n "checking for $2... " >&6; }
1702if eval \${$3+:} false; then : 1689if eval "test \"\${$3+set}\"" = set; then :
1703 $as_echo_n "(cached) " >&6 1690 $as_echo_n "(cached) " >&6
1704else 1691else
1705 eval "$3=\$ac_header_compiler" 1692 eval "$3=\$ac_header_compiler"
1706fi 1693fi
1707eval ac_res=\$$3 1694eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; } 1696$as_echo "$ac_res" >&6; }
1710fi 1697fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712 1699
1713} # ac_fn_c_check_header_mongrel 1700} # ac_fn_c_check_header_mongrel
1714 1701
1715# ac_fn_c_try_run LINENO 1702# ac_fn_c_try_run LINENO
1716# ---------------------- 1703# ----------------------
1747sed 's/^/| /' conftest.$ac_ext >&5 1734sed 's/^/| /' conftest.$ac_ext >&5
1748 1735
1749 ac_retval=$ac_status 1736 ac_retval=$ac_status
1750fi 1737fi
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1753 as_fn_set_status $ac_retval 1740 as_fn_set_status $ac_retval
1754 1741
1755} # ac_fn_c_try_run 1742} # ac_fn_c_try_run
1756 1743
1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1744# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761ac_fn_c_check_header_compile () 1748ac_fn_c_check_header_compile ()
1762{ 1749{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765$as_echo_n "checking for $2... " >&6; } 1752$as_echo_n "checking for $2... " >&6; }
1766if eval \${$3+:} false; then : 1753if eval "test \"\${$3+set}\"" = set; then :
1767 $as_echo_n "(cached) " >&6 1754 $as_echo_n "(cached) " >&6
1768else 1755else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h. */ 1757/* end confdefs.h. */
1771$4 1758$4
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780fi 1767fi
1781eval ac_res=\$$3 1768eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; } 1770$as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 1772
1786} # ac_fn_c_check_header_compile 1773} # ac_fn_c_check_header_compile
1787 1774
1788# ac_fn_c_try_link LINENO 1775# ac_fn_c_try_link LINENO
1789# ----------------------- 1776# -----------------------
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is 1813 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions. 1814 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 as_fn_set_status $ac_retval 1817 as_fn_set_status $ac_retval
1831 1818
1832} # ac_fn_c_try_link 1819} # ac_fn_c_try_link
1833 1820
1834# ac_fn_cxx_try_link LINENO 1821# ac_fn_cxx_try_link LINENO
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1857 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1858 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is 1859 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions. 1860 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 as_fn_set_status $ac_retval 1863 as_fn_set_status $ac_retval
1877 1864
1878} # ac_fn_cxx_try_link 1865} # ac_fn_cxx_try_link
1879 1866
1880# ac_fn_cxx_try_cpp LINENO 1867# ac_fn_cxx_try_cpp LINENO
1907 $as_echo "$as_me: failed program was:" >&5 1894 $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5 1895sed 's/^/| /' conftest.$ac_ext >&5
1909 1896
1910 ac_retval=1 1897 ac_retval=1
1911fi 1898fi
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 as_fn_set_status $ac_retval 1900 as_fn_set_status $ac_retval
1914 1901
1915} # ac_fn_cxx_try_cpp 1902} # ac_fn_cxx_try_cpp
1916 1903
1917# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1904# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1920# the include files in INCLUDES and setting the cache variable VAR 1907# the include files in INCLUDES and setting the cache variable VAR
1921# accordingly. 1908# accordingly.
1922ac_fn_cxx_check_header_mongrel () 1909ac_fn_cxx_check_header_mongrel ()
1923{ 1910{
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if eval \${$3+:} false; then : 1912 if eval "test \"\${$3+set}\"" = set; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; } 1914$as_echo_n "checking for $2... " >&6; }
1928if eval \${$3+:} false; then : 1915if eval "test \"\${$3+set}\"" = set; then :
1929 $as_echo_n "(cached) " >&6 1916 $as_echo_n "(cached) " >&6
1930fi 1917fi
1931eval ac_res=\$$3 1918eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; } 1920$as_echo "$ac_res" >&6; }
1986$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1973$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 ;; 1974 ;;
1988esac 1975esac
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; } 1977$as_echo_n "checking for $2... " >&6; }
1991if eval \${$3+:} false; then : 1978if eval "test \"\${$3+set}\"" = set; then :
1992 $as_echo_n "(cached) " >&6 1979 $as_echo_n "(cached) " >&6
1993else 1980else
1994 eval "$3=\$ac_header_compiler" 1981 eval "$3=\$ac_header_compiler"
1995fi 1982fi
1996eval ac_res=\$$3 1983eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998$as_echo "$ac_res" >&6; } 1985$as_echo "$ac_res" >&6; }
1999fi 1986fi
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001 1988
2002} # ac_fn_cxx_check_header_mongrel 1989} # ac_fn_cxx_check_header_mongrel
2003 1990
2004# ac_fn_cxx_check_func LINENO FUNC VAR 1991# ac_fn_cxx_check_func LINENO FUNC VAR
2005# ------------------------------------ 1992# ------------------------------------
2007ac_fn_cxx_check_func () 1994ac_fn_cxx_check_func ()
2008{ 1995{
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011$as_echo_n "checking for $2... " >&6; } 1998$as_echo_n "checking for $2... " >&6; }
2012if eval \${$3+:} false; then : 1999if eval "test \"\${$3+set}\"" = set; then :
2013 $as_echo_n "(cached) " >&6 2000 $as_echo_n "(cached) " >&6
2014else 2001else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */ 2003/* end confdefs.h. */
2017/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2004/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2062 conftest$ac_exeext conftest.$ac_ext 2049 conftest$ac_exeext conftest.$ac_ext
2063fi 2050fi
2064eval ac_res=\$$3 2051eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066$as_echo "$ac_res" >&6; } 2053$as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068 2055
2069} # ac_fn_cxx_check_func 2056} # ac_fn_cxx_check_func
2070 2057
2071# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2058# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2072# --------------------------------------------- 2059# ---------------------------------------------
2075ac_fn_cxx_check_type () 2062ac_fn_cxx_check_type ()
2076{ 2063{
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079$as_echo_n "checking for $2... " >&6; } 2066$as_echo_n "checking for $2... " >&6; }
2080if eval \${$3+:} false; then : 2067if eval "test \"\${$3+set}\"" = set; then :
2081 $as_echo_n "(cached) " >&6 2068 $as_echo_n "(cached) " >&6
2082else 2069else
2083 eval "$3=no" 2070 eval "$3=no"
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */ 2072/* end confdefs.h. */
2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117fi 2104fi
2118eval ac_res=\$$3 2105eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120$as_echo "$ac_res" >&6; } 2107$as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2122 2109
2123} # ac_fn_cxx_check_type 2110} # ac_fn_cxx_check_type
2124 2111
2125# ac_fn_c_find_intX_t LINENO BITS VAR 2112# ac_fn_c_find_intX_t LINENO BITS VAR
2126# ----------------------------------- 2113# -----------------------------------
2129ac_fn_c_find_intX_t () 2116ac_fn_c_find_intX_t ()
2130{ 2117{
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2133$as_echo_n "checking for int$2_t... " >&6; } 2120$as_echo_n "checking for int$2_t... " >&6; }
2134if eval \${$3+:} false; then : 2121if eval "test \"\${$3+set}\"" = set; then :
2135 $as_echo_n "(cached) " >&6 2122 $as_echo_n "(cached) " >&6
2136else 2123else
2137 eval "$3=no" 2124 eval "$3=no"
2138 # Order is important - never check a type that is potentially smaller 2125 # Order is important - never check a type that is potentially smaller
2139 # than half of the expected target width. 2126 # than half of the expected target width.
2190 done 2177 done
2191fi 2178fi
2192eval ac_res=\$$3 2179eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194$as_echo "$ac_res" >&6; } 2181$as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 2183
2197} # ac_fn_c_find_intX_t 2184} # ac_fn_c_find_intX_t
2198 2185
2199# ac_fn_c_find_uintX_t LINENO BITS VAR 2186# ac_fn_c_find_uintX_t LINENO BITS VAR
2200# ------------------------------------ 2187# ------------------------------------
2203ac_fn_c_find_uintX_t () 2190ac_fn_c_find_uintX_t ()
2204{ 2191{
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2207$as_echo_n "checking for uint$2_t... " >&6; } 2194$as_echo_n "checking for uint$2_t... " >&6; }
2208if eval \${$3+:} false; then : 2195if eval "test \"\${$3+set}\"" = set; then :
2209 $as_echo_n "(cached) " >&6 2196 $as_echo_n "(cached) " >&6
2210else 2197else
2211 eval "$3=no" 2198 eval "$3=no"
2212 # Order is important - never check a type that is potentially smaller 2199 # Order is important - never check a type that is potentially smaller
2213 # than half of the expected target width. 2200 # than half of the expected target width.
2243 done 2230 done
2244fi 2231fi
2245eval ac_res=\$$3 2232eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247$as_echo "$ac_res" >&6; } 2234$as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2235 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 2236
2250} # ac_fn_c_find_uintX_t 2237} # ac_fn_c_find_uintX_t
2251 2238
2252# ac_fn_cxx_try_run LINENO 2239# ac_fn_cxx_try_run LINENO
2253# ------------------------ 2240# ------------------------
2284sed 's/^/| /' conftest.$ac_ext >&5 2271sed 's/^/| /' conftest.$ac_ext >&5
2285 2272
2286 ac_retval=$ac_status 2273 ac_retval=$ac_status
2287fi 2274fi
2288 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2275 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2276 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2290 as_fn_set_status $ac_retval 2277 as_fn_set_status $ac_retval
2291 2278
2292} # ac_fn_cxx_try_run 2279} # ac_fn_cxx_try_run
2293cat >config.log <<_ACEOF 2280cat >config.log <<_ACEOF
2294This file contains any messages produced by compilers while 2281This file contains any messages produced by compilers while
2295running configure, to aid debugging if configure makes a mistake. 2282running configure, to aid debugging if configure makes a mistake.
2296 2283
2297It was created by $as_me, which was 2284It was created by $as_me, which was
2298generated by GNU Autoconf 2.68. Invocation command line was 2285generated by GNU Autoconf 2.67. Invocation command line was
2299 2286
2300 $ $0 $@ 2287 $ $0 $@
2301 2288
2302_ACEOF 2289_ACEOF
2303exec 5>>config.log 2290exec 5>>config.log
2551 sed 's/^/| /' "$ac_site_file" >&5 2538 sed 's/^/| /' "$ac_site_file" >&5
2552 . "$ac_site_file" \ 2539 . "$ac_site_file" \
2553 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2540 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555as_fn_error $? "failed to load site script $ac_site_file 2542as_fn_error $? "failed to load site script $ac_site_file
2556See \`config.log' for more details" "$LINENO" 5; } 2543See \`config.log' for more details" "$LINENO" 5 ; }
2557 fi 2544 fi
2558done 2545done
2559 2546
2560if test -r "$cache_file"; then 2547if test -r "$cache_file"; then
2561 # Some versions of bash will fail to source /dev/null (special files 2548 # Some versions of bash will fail to source /dev/null (special files
2680$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2667$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2681 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2668 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2682 2669
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2684$as_echo_n "checking build system type... " >&6; } 2671$as_echo_n "checking build system type... " >&6; }
2685if ${ac_cv_build+:} false; then : 2672if test "${ac_cv_build+set}" = set; then :
2686 $as_echo_n "(cached) " >&6 2673 $as_echo_n "(cached) " >&6
2687else 2674else
2688 ac_build_alias=$build_alias 2675 ac_build_alias=$build_alias
2689test "x$ac_build_alias" = x && 2676test "x$ac_build_alias" = x &&
2690 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2677 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2696fi 2683fi
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2698$as_echo "$ac_cv_build" >&6; } 2685$as_echo "$ac_cv_build" >&6; }
2699case $ac_cv_build in 2686case $ac_cv_build in
2700*-*-*) ;; 2687*-*-*) ;;
2701*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2688*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2702esac 2689esac
2703build=$ac_cv_build 2690build=$ac_cv_build
2704ac_save_IFS=$IFS; IFS='-' 2691ac_save_IFS=$IFS; IFS='-'
2705set x $ac_cv_build 2692set x $ac_cv_build
2706shift 2693shift
2714case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2701case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2715 2702
2716 2703
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2718$as_echo_n "checking host system type... " >&6; } 2705$as_echo_n "checking host system type... " >&6; }
2719if ${ac_cv_host+:} false; then : 2706if test "${ac_cv_host+set}" = set; then :
2720 $as_echo_n "(cached) " >&6 2707 $as_echo_n "(cached) " >&6
2721else 2708else
2722 if test "x$host_alias" = x; then 2709 if test "x$host_alias" = x; then
2723 ac_cv_host=$ac_cv_build 2710 ac_cv_host=$ac_cv_build
2724else 2711else
2729fi 2716fi
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2731$as_echo "$ac_cv_host" >&6; } 2718$as_echo "$ac_cv_host" >&6; }
2732case $ac_cv_host in 2719case $ac_cv_host in
2733*-*-*) ;; 2720*-*-*) ;;
2734*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2721*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2735esac 2722esac
2736host=$ac_cv_host 2723host=$ac_cv_host
2737ac_save_IFS=$IFS; IFS='-' 2724ac_save_IFS=$IFS; IFS='-'
2738set x $ac_cv_host 2725set x $ac_cv_host
2739shift 2726shift
2746IFS=$ac_save_IFS 2733IFS=$ac_save_IFS
2747case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2734case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2748 2735
2749 2736
2750 2737
2751VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2738VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2752DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2739DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2753 2740
2754echo "" 2741echo ""
2755echo "configuring for rxvt $VERSION" 2742echo "configuring for rxvt $VERSION"
2756echo "" 2743echo ""
2757 2744
2765if test -n "$ac_tool_prefix"; then 2752if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2767set dummy ${ac_tool_prefix}gcc; ac_word=$2 2754set dummy ${ac_tool_prefix}gcc; ac_word=$2
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769$as_echo_n "checking for $ac_word... " >&6; } 2756$as_echo_n "checking for $ac_word... " >&6; }
2770if ${ac_cv_prog_CC+:} false; then : 2757if test "${ac_cv_prog_CC+set}" = set; then :
2771 $as_echo_n "(cached) " >&6 2758 $as_echo_n "(cached) " >&6
2772else 2759else
2773 if test -n "$CC"; then 2760 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test. 2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2775else 2762else
2805 ac_ct_CC=$CC 2792 ac_ct_CC=$CC
2806 # Extract the first word of "gcc", so it can be a program name with args. 2793 # Extract the first word of "gcc", so it can be a program name with args.
2807set dummy gcc; ac_word=$2 2794set dummy gcc; ac_word=$2
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; } 2796$as_echo_n "checking for $ac_word... " >&6; }
2810if ${ac_cv_prog_ac_ct_CC+:} false; then : 2797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2811 $as_echo_n "(cached) " >&6 2798 $as_echo_n "(cached) " >&6
2812else 2799else
2813 if test -n "$ac_ct_CC"; then 2800 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815else 2802else
2858 if test -n "$ac_tool_prefix"; then 2845 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2860set dummy ${ac_tool_prefix}cc; ac_word=$2 2847set dummy ${ac_tool_prefix}cc; ac_word=$2
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862$as_echo_n "checking for $ac_word... " >&6; } 2849$as_echo_n "checking for $ac_word... " >&6; }
2863if ${ac_cv_prog_CC+:} false; then : 2850if test "${ac_cv_prog_CC+set}" = set; then :
2864 $as_echo_n "(cached) " >&6 2851 $as_echo_n "(cached) " >&6
2865else 2852else
2866 if test -n "$CC"; then 2853 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test. 2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2868else 2855else
2898if test -z "$CC"; then 2885if test -z "$CC"; then
2899 # Extract the first word of "cc", so it can be a program name with args. 2886 # Extract the first word of "cc", so it can be a program name with args.
2900set dummy cc; ac_word=$2 2887set dummy cc; ac_word=$2
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902$as_echo_n "checking for $ac_word... " >&6; } 2889$as_echo_n "checking for $ac_word... " >&6; }
2903if ${ac_cv_prog_CC+:} false; then : 2890if test "${ac_cv_prog_CC+set}" = set; then :
2904 $as_echo_n "(cached) " >&6 2891 $as_echo_n "(cached) " >&6
2905else 2892else
2906 if test -n "$CC"; then 2893 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test. 2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2908else 2895else
2957 do 2944 do
2958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2959set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; } 2948$as_echo_n "checking for $ac_word... " >&6; }
2962if ${ac_cv_prog_CC+:} false; then : 2949if test "${ac_cv_prog_CC+set}" = set; then :
2963 $as_echo_n "(cached) " >&6 2950 $as_echo_n "(cached) " >&6
2964else 2951else
2965 if test -n "$CC"; then 2952 if test -n "$CC"; then
2966 ac_cv_prog_CC="$CC" # Let the user override the test. 2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2967else 2954else
3001do 2988do
3002 # Extract the first word of "$ac_prog", so it can be a program name with args. 2989 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003set dummy $ac_prog; ac_word=$2 2990set dummy $ac_prog; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; } 2992$as_echo_n "checking for $ac_word... " >&6; }
3006if ${ac_cv_prog_ac_ct_CC+:} false; then : 2993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3007 $as_echo_n "(cached) " >&6 2994 $as_echo_n "(cached) " >&6
3008else 2995else
3009 if test -n "$ac_ct_CC"; then 2996 if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011else 2998else
3056 3043
3057 3044
3058test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3045test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060as_fn_error $? "no acceptable C compiler found in \$PATH 3047as_fn_error $? "no acceptable C compiler found in \$PATH
3061See \`config.log' for more details" "$LINENO" 5; } 3048See \`config.log' for more details" "$LINENO" 5 ; }
3062 3049
3063# Provide some information about the compiler. 3050# Provide some information about the compiler.
3064$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3051$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3065set X $ac_compile 3052set X $ac_compile
3066ac_compiler=$2 3053ac_compiler=$2
3171sed 's/^/| /' conftest.$ac_ext >&5 3158sed 's/^/| /' conftest.$ac_ext >&5
3172 3159
3173{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3160{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3175as_fn_error 77 "C compiler cannot create executables 3162as_fn_error 77 "C compiler cannot create executables
3176See \`config.log' for more details" "$LINENO" 5; } 3163See \`config.log' for more details" "$LINENO" 5 ; }
3177else 3164else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179$as_echo "yes" >&6; } 3166$as_echo "yes" >&6; }
3180fi 3167fi
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3214done 3201done
3215else 3202else
3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3218as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3205as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3219See \`config.log' for more details" "$LINENO" 5; } 3206See \`config.log' for more details" "$LINENO" 5 ; }
3220fi 3207fi
3221rm -f conftest conftest$ac_cv_exeext 3208rm -f conftest conftest$ac_cv_exeext
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3223$as_echo "$ac_cv_exeext" >&6; } 3210$as_echo "$ac_cv_exeext" >&6; }
3224 3211
3273 else 3260 else
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276as_fn_error $? "cannot run C compiled programs. 3263as_fn_error $? "cannot run C compiled programs.
3277If you meant to cross compile, use \`--host'. 3264If you meant to cross compile, use \`--host'.
3278See \`config.log' for more details" "$LINENO" 5; } 3265See \`config.log' for more details" "$LINENO" 5 ; }
3279 fi 3266 fi
3280 fi 3267 fi
3281fi 3268fi
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283$as_echo "$cross_compiling" >&6; } 3270$as_echo "$cross_compiling" >&6; }
3284 3271
3285rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3272rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286ac_clean_files=$ac_clean_files_save 3273ac_clean_files=$ac_clean_files_save
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288$as_echo_n "checking for suffix of object files... " >&6; } 3275$as_echo_n "checking for suffix of object files... " >&6; }
3289if ${ac_cv_objext+:} false; then : 3276if test "${ac_cv_objext+set}" = set; then :
3290 $as_echo_n "(cached) " >&6 3277 $as_echo_n "(cached) " >&6
3291else 3278else
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */ 3280/* end confdefs.h. */
3294 3281
3325sed 's/^/| /' conftest.$ac_ext >&5 3312sed 's/^/| /' conftest.$ac_ext >&5
3326 3313
3327{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3314{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329as_fn_error $? "cannot compute suffix of object files: cannot compile 3316as_fn_error $? "cannot compute suffix of object files: cannot compile
3330See \`config.log' for more details" "$LINENO" 5; } 3317See \`config.log' for more details" "$LINENO" 5 ; }
3331fi 3318fi
3332rm -f conftest.$ac_cv_objext conftest.$ac_ext 3319rm -f conftest.$ac_cv_objext conftest.$ac_ext
3333fi 3320fi
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3335$as_echo "$ac_cv_objext" >&6; } 3322$as_echo "$ac_cv_objext" >&6; }
3336OBJEXT=$ac_cv_objext 3323OBJEXT=$ac_cv_objext
3337ac_objext=$OBJEXT 3324ac_objext=$OBJEXT
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3339$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3326$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3340if ${ac_cv_c_compiler_gnu+:} false; then : 3327if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3341 $as_echo_n "(cached) " >&6 3328 $as_echo_n "(cached) " >&6
3342else 3329else
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344/* end confdefs.h. */ 3331/* end confdefs.h. */
3345 3332
3372fi 3359fi
3373ac_test_CFLAGS=${CFLAGS+set} 3360ac_test_CFLAGS=${CFLAGS+set}
3374ac_save_CFLAGS=$CFLAGS 3361ac_save_CFLAGS=$CFLAGS
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3376$as_echo_n "checking whether $CC accepts -g... " >&6; } 3363$as_echo_n "checking whether $CC accepts -g... " >&6; }
3377if ${ac_cv_prog_cc_g+:} false; then : 3364if test "${ac_cv_prog_cc_g+set}" = set; then :
3378 $as_echo_n "(cached) " >&6 3365 $as_echo_n "(cached) " >&6
3379else 3366else
3380 ac_save_c_werror_flag=$ac_c_werror_flag 3367 ac_save_c_werror_flag=$ac_c_werror_flag
3381 ac_c_werror_flag=yes 3368 ac_c_werror_flag=yes
3382 ac_cv_prog_cc_g=no 3369 ac_cv_prog_cc_g=no
3450 CFLAGS= 3437 CFLAGS=
3451 fi 3438 fi
3452fi 3439fi
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3454$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3441$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3455if ${ac_cv_prog_cc_c89+:} false; then : 3442if test "${ac_cv_prog_cc_c89+set}" = set; then :
3456 $as_echo_n "(cached) " >&6 3443 $as_echo_n "(cached) " >&6
3457else 3444else
3458 ac_cv_prog_cc_c89=no 3445 ac_cv_prog_cc_c89=no
3459ac_save_CC=$CC 3446ac_save_CC=$CC
3460cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 do 3548 do
3562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3563set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3550set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565$as_echo_n "checking for $ac_word... " >&6; } 3552$as_echo_n "checking for $ac_word... " >&6; }
3566if ${ac_cv_prog_CXX+:} false; then : 3553if test "${ac_cv_prog_CXX+set}" = set; then :
3567 $as_echo_n "(cached) " >&6 3554 $as_echo_n "(cached) " >&6
3568else 3555else
3569 if test -n "$CXX"; then 3556 if test -n "$CXX"; then
3570 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3571else 3558else
3605do 3592do
3606 # Extract the first word of "$ac_prog", so it can be a program name with args. 3593 # Extract the first word of "$ac_prog", so it can be a program name with args.
3607set dummy $ac_prog; ac_word=$2 3594set dummy $ac_prog; ac_word=$2
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609$as_echo_n "checking for $ac_word... " >&6; } 3596$as_echo_n "checking for $ac_word... " >&6; }
3610if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3597if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3611 $as_echo_n "(cached) " >&6 3598 $as_echo_n "(cached) " >&6
3612else 3599else
3613 if test -n "$ac_ct_CXX"; then 3600 if test -n "$ac_ct_CXX"; then
3614 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3615else 3602else
3683 test $ac_status = 0; } 3670 test $ac_status = 0; }
3684done 3671done
3685 3672
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3687$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3674$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3688if ${ac_cv_cxx_compiler_gnu+:} false; then : 3675if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3689 $as_echo_n "(cached) " >&6 3676 $as_echo_n "(cached) " >&6
3690else 3677else
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h. */ 3679/* end confdefs.h. */
3693 3680
3720fi 3707fi
3721ac_test_CXXFLAGS=${CXXFLAGS+set} 3708ac_test_CXXFLAGS=${CXXFLAGS+set}
3722ac_save_CXXFLAGS=$CXXFLAGS 3709ac_save_CXXFLAGS=$CXXFLAGS
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3724$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3711$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3725if ${ac_cv_prog_cxx_g+:} false; then : 3712if test "${ac_cv_prog_cxx_g+set}" = set; then :
3726 $as_echo_n "(cached) " >&6 3713 $as_echo_n "(cached) " >&6
3727else 3714else
3728 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3715 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3729 ac_cxx_werror_flag=yes 3716 ac_cxx_werror_flag=yes
3730 ac_cv_prog_cxx_g=no 3717 ac_cv_prog_cxx_g=no
3796 CXXFLAGS="-O2" 3783 CXXFLAGS="-O2"
3797 else 3784 else
3798 CXXFLAGS= 3785 CXXFLAGS=
3799 fi 3786 fi
3800fi 3787fi
3801ac_ext=c
3802ac_cpp='$CPP $CPPFLAGS'
3803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
3807ac_ext=c
3808ac_cpp='$CPP $CPPFLAGS'
3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3813$as_echo_n "checking how to run the C preprocessor... " >&6; }
3814# On Suns, sometimes $CPP names a directory.
3815if test -n "$CPP" && test -d "$CPP"; then
3816 CPP=
3817fi
3818if test -z "$CPP"; then
3819 if ${ac_cv_prog_CPP+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821else
3822 # Double quotes because CPP needs to be expanded
3823 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3824 do
3825 ac_preproc_ok=false
3826for ac_c_preproc_warn_flag in '' yes
3827do
3828 # Use a header file that comes with gcc, so configuring glibc
3829 # with a fresh cross-compiler works.
3830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3831 # <limits.h> exists even on freestanding compilers.
3832 # On the NeXT, cc -E runs the code through the compiler's parser,
3833 # not just through cpp. "Syntax error" is here to catch this case.
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h. */
3836#ifdef __STDC__
3837# include <limits.h>
3838#else
3839# include <assert.h>
3840#endif
3841 Syntax error
3842_ACEOF
3843if ac_fn_c_try_cpp "$LINENO"; then :
3844
3845else
3846 # Broken: fails on valid input.
3847continue
3848fi
3849rm -f conftest.err conftest.i conftest.$ac_ext
3850
3851 # OK, works on sane cases. Now check whether nonexistent headers
3852 # can be detected and how.
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854/* end confdefs.h. */
3855#include <ac_nonexistent.h>
3856_ACEOF
3857if ac_fn_c_try_cpp "$LINENO"; then :
3858 # Broken: success on invalid input.
3859continue
3860else
3861 # Passes both tests.
3862ac_preproc_ok=:
3863break
3864fi
3865rm -f conftest.err conftest.i conftest.$ac_ext
3866
3867done
3868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3869rm -f conftest.i conftest.err conftest.$ac_ext
3870if $ac_preproc_ok; then :
3871 break
3872fi
3873
3874 done
3875 ac_cv_prog_CPP=$CPP
3876
3877fi
3878 CPP=$ac_cv_prog_CPP
3879else
3880 ac_cv_prog_CPP=$CPP
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3883$as_echo "$CPP" >&6; }
3884ac_preproc_ok=false
3885for ac_c_preproc_warn_flag in '' yes
3886do
3887 # Use a header file that comes with gcc, so configuring glibc
3888 # with a fresh cross-compiler works.
3889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3890 # <limits.h> exists even on freestanding compilers.
3891 # On the NeXT, cc -E runs the code through the compiler's parser,
3892 # not just through cpp. "Syntax error" is here to catch this case.
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h. */
3895#ifdef __STDC__
3896# include <limits.h>
3897#else
3898# include <assert.h>
3899#endif
3900 Syntax error
3901_ACEOF
3902if ac_fn_c_try_cpp "$LINENO"; then :
3903
3904else
3905 # Broken: fails on valid input.
3906continue
3907fi
3908rm -f conftest.err conftest.i conftest.$ac_ext
3909
3910 # OK, works on sane cases. Now check whether nonexistent headers
3911 # can be detected and how.
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h. */
3914#include <ac_nonexistent.h>
3915_ACEOF
3916if ac_fn_c_try_cpp "$LINENO"; then :
3917 # Broken: success on invalid input.
3918continue
3919else
3920 # Passes both tests.
3921ac_preproc_ok=:
3922break
3923fi
3924rm -f conftest.err conftest.i conftest.$ac_ext
3925
3926done
3927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3928rm -f conftest.i conftest.err conftest.$ac_ext
3929if $ac_preproc_ok; then :
3930
3931else
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3935See \`config.log' for more details" "$LINENO" 5; }
3936fi
3937
3938ac_ext=c 3788ac_ext=c
3939ac_cpp='$CPP $CPPFLAGS' 3789ac_cpp='$CPP $CPPFLAGS'
3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942ac_compiler_gnu=$ac_cv_c_compiler_gnu 3792ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956# ./install, which can be erroneously created by make from ./install.sh. 3806# ./install, which can be erroneously created by make from ./install.sh.
3957# Reject install programs that cannot install multiple files. 3807# Reject install programs that cannot install multiple files.
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3959$as_echo_n "checking for a BSD-compatible install... " >&6; } 3809$as_echo_n "checking for a BSD-compatible install... " >&6; }
3960if test -z "$INSTALL"; then 3810if test -z "$INSTALL"; then
3961if ${ac_cv_path_install+:} false; then : 3811if test "${ac_cv_path_install+set}" = set; then :
3962 $as_echo_n "(cached) " >&6 3812 $as_echo_n "(cached) " >&6
3963else 3813else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH 3815for as_dir in $PATH
3966do 3816do
4034 3884
4035test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3885test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4036 3886
4037 3887
4038 3888
3889ac_ext=c
3890ac_cpp='$CPP $CPPFLAGS'
3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3895$as_echo_n "checking how to run the C preprocessor... " >&6; }
3896# On Suns, sometimes $CPP names a directory.
3897if test -n "$CPP" && test -d "$CPP"; then
3898 CPP=
3899fi
3900if test -z "$CPP"; then
3901 if test "${ac_cv_prog_CPP+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903else
3904 # Double quotes because CPP needs to be expanded
3905 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3906 do
3907 ac_preproc_ok=false
3908for ac_c_preproc_warn_flag in '' yes
3909do
3910 # Use a header file that comes with gcc, so configuring glibc
3911 # with a fresh cross-compiler works.
3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 # <limits.h> exists even on freestanding compilers.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error" is here to catch this case.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917/* end confdefs.h. */
3918#ifdef __STDC__
3919# include <limits.h>
3920#else
3921# include <assert.h>
3922#endif
3923 Syntax error
3924_ACEOF
3925if ac_fn_c_try_cpp "$LINENO"; then :
3926
3927else
3928 # Broken: fails on valid input.
3929continue
3930fi
3931rm -f conftest.err conftest.i conftest.$ac_ext
3932
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936/* end confdefs.h. */
3937#include <ac_nonexistent.h>
3938_ACEOF
3939if ac_fn_c_try_cpp "$LINENO"; then :
3940 # Broken: success on invalid input.
3941continue
3942else
3943 # Passes both tests.
3944ac_preproc_ok=:
3945break
3946fi
3947rm -f conftest.err conftest.i conftest.$ac_ext
3948
3949done
3950# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951rm -f conftest.i conftest.err conftest.$ac_ext
3952if $ac_preproc_ok; then :
3953 break
3954fi
3955
3956 done
3957 ac_cv_prog_CPP=$CPP
3958
3959fi
3960 CPP=$ac_cv_prog_CPP
3961else
3962 ac_cv_prog_CPP=$CPP
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3965$as_echo "$CPP" >&6; }
3966ac_preproc_ok=false
3967for ac_c_preproc_warn_flag in '' yes
3968do
3969 # Use a header file that comes with gcc, so configuring glibc
3970 # with a fresh cross-compiler works.
3971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3972 # <limits.h> exists even on freestanding compilers.
3973 # On the NeXT, cc -E runs the code through the compiler's parser,
3974 # not just through cpp. "Syntax error" is here to catch this case.
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976/* end confdefs.h. */
3977#ifdef __STDC__
3978# include <limits.h>
3979#else
3980# include <assert.h>
3981#endif
3982 Syntax error
3983_ACEOF
3984if ac_fn_c_try_cpp "$LINENO"; then :
3985
3986else
3987 # Broken: fails on valid input.
3988continue
3989fi
3990rm -f conftest.err conftest.i conftest.$ac_ext
3991
3992 # OK, works on sane cases. Now check whether nonexistent headers
3993 # can be detected and how.
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995/* end confdefs.h. */
3996#include <ac_nonexistent.h>
3997_ACEOF
3998if ac_fn_c_try_cpp "$LINENO"; then :
3999 # Broken: success on invalid input.
4000continue
4001else
4002 # Passes both tests.
4003ac_preproc_ok=:
4004break
4005fi
4006rm -f conftest.err conftest.i conftest.$ac_ext
4007
4008done
4009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4010rm -f conftest.i conftest.err conftest.$ac_ext
4011if $ac_preproc_ok; then :
4012
4013else
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4017See \`config.log' for more details" "$LINENO" 5 ; }
4018fi
4019
4020ac_ext=c
4021ac_cpp='$CPP $CPPFLAGS'
4022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025
4039 4026
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4041$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4028$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4042if ${ac_cv_path_GREP+:} false; then : 4029if test "${ac_cv_path_GREP+set}" = set; then :
4043 $as_echo_n "(cached) " >&6 4030 $as_echo_n "(cached) " >&6
4044else 4031else
4045 if test -z "$GREP"; then 4032 if test -z "$GREP"; then
4046 ac_path_GREP_found=false 4033 ac_path_GREP_found=false
4047 # Loop through the user's path and test for each of PROGNAME-LIST 4034 # Loop through the user's path and test for each of PROGNAME-LIST
4100 GREP="$ac_cv_path_GREP" 4087 GREP="$ac_cv_path_GREP"
4101 4088
4102 4089
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4104$as_echo_n "checking for egrep... " >&6; } 4091$as_echo_n "checking for egrep... " >&6; }
4105if ${ac_cv_path_EGREP+:} false; then : 4092if test "${ac_cv_path_EGREP+set}" = set; then :
4106 $as_echo_n "(cached) " >&6 4093 $as_echo_n "(cached) " >&6
4107else 4094else
4108 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4095 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4109 then ac_cv_path_EGREP="$GREP -E" 4096 then ac_cv_path_EGREP="$GREP -E"
4110 else 4097 else
4167 EGREP="$ac_cv_path_EGREP" 4154 EGREP="$ac_cv_path_EGREP"
4168 4155
4169 4156
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4171$as_echo_n "checking for ANSI C header files... " >&6; } 4158$as_echo_n "checking for ANSI C header files... " >&6; }
4172if ${ac_cv_header_stdc+:} false; then : 4159if test "${ac_cv_header_stdc+set}" = set; then :
4173 $as_echo_n "(cached) " >&6 4160 $as_echo_n "(cached) " >&6
4174else 4161else
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h. */ 4163/* end confdefs.h. */
4177#include <stdlib.h> 4164#include <stdlib.h>
4296done 4283done
4297 4284
4298 4285
4299 4286
4300 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4287 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4301if test "x$ac_cv_header_minix_config_h" = xyes; then : 4288if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4302 MINIX=yes 4289 MINIX=yes
4303else 4290else
4304 MINIX= 4291 MINIX=
4305fi 4292fi
4306 4293
4318 fi 4305 fi
4319 4306
4320 4307
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4322$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4309$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4323if ${ac_cv_safe_to_define___extensions__+:} false; then : 4310if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4324 $as_echo_n "(cached) " >&6 4311 $as_echo_n "(cached) " >&6
4325else 4312else
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327/* end confdefs.h. */ 4314/* end confdefs.h. */
4328 4315
4359 4346
4360 4347
4361 4348
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4363$as_echo_n "checking for library containing strerror... " >&6; } 4350$as_echo_n "checking for library containing strerror... " >&6; }
4364if ${ac_cv_search_strerror+:} false; then : 4351if test "${ac_cv_search_strerror+set}" = set; then :
4365 $as_echo_n "(cached) " >&6 4352 $as_echo_n "(cached) " >&6
4366else 4353else
4367 ac_func_search_save_LIBS=$LIBS 4354 ac_func_search_save_LIBS=$LIBS
4368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369/* end confdefs.h. */ 4356/* end confdefs.h. */
4393 if ac_fn_c_try_link "$LINENO"; then : 4380 if ac_fn_c_try_link "$LINENO"; then :
4394 ac_cv_search_strerror=$ac_res 4381 ac_cv_search_strerror=$ac_res
4395fi 4382fi
4396rm -f core conftest.err conftest.$ac_objext \ 4383rm -f core conftest.err conftest.$ac_objext \
4397 conftest$ac_exeext 4384 conftest$ac_exeext
4398 if ${ac_cv_search_strerror+:} false; then : 4385 if test "${ac_cv_search_strerror+set}" = set; then :
4399 break 4386 break
4400fi 4387fi
4401done 4388done
4402if ${ac_cv_search_strerror+:} false; then : 4389if test "${ac_cv_search_strerror+set}" = set; then :
4403 4390
4404else 4391else
4405 ac_cv_search_strerror=no 4392 ac_cv_search_strerror=no
4406fi 4393fi
4407rm conftest.$ac_ext 4394rm conftest.$ac_ext
4420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4423 4410
4424 4411
4412LINKER="$CXX"
4425if test x$GCC = xyes && test x$GXX = xyes; then 4413if test x$GCC = xyes && test x$GXX = xyes; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4427$as_echo_n "checking for working libsupc++... " >&6; } 4415$as_echo_n "checking for working libsupc++... " >&6; }
4428 save_CXX="$CXX" 4416 save_CXX="$CXX"
4429 save_LIBS="$LIBS" 4417 save_LIBS="$LIBS"
4430 CXX="$CC" 4418 CXX="$CC"
4431 LIBS="$LIBS -lsupc++" 4419 LIBS="$LIBS -lsupc++"
4432 LINKER="$CC"
4433 4420
4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h. */ 4422/* end confdefs.h. */
4436struct test { }; void f() try { throw new test; } catch (...) { throw; } 4423struct test { }; void f() try { throw new test; } catch (...) { throw; }
4437int 4424int
4443} 4430}
4444_ACEOF 4431_ACEOF
4445if ac_fn_cxx_try_link "$LINENO"; then : 4432if ac_fn_cxx_try_link "$LINENO"; then :
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4447$as_echo "ok" >&6; } 4434$as_echo "ok" >&6; }
4435 LINKER="$CC"
4448else 4436else
4449 4437
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4451$as_echo "no, making everything bigger and slower" >&6; } 4439$as_echo "no, making everything bigger and slower" >&6; }
4452 LIBS="$save_LIBS" 4440 LIBS="$save_LIBS"
4453 LINKER="$save_CXX"
4454 4441
4455 4442
4456fi 4443fi
4457rm -f core conftest.err conftest.$ac_objext \ 4444rm -f core conftest.err conftest.$ac_objext \
4458 conftest$ac_exeext conftest.$ac_ext 4445 conftest$ac_exeext conftest.$ac_ext
4485 CXXFLAGS="-O" 4472 CXXFLAGS="-O"
4486 fi 4473 fi
4487 CFLAGS="$CXXFLAGS" 4474 CFLAGS="$CXXFLAGS"
4488fi 4475fi
4489 4476
4490case $host in
4491 *-*-solaris* )
4492
4493$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4494
4495 ;;
4496esac
4497
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4499$as_echo_n "checking for library containing setlocale... " >&6; } 4478$as_echo_n "checking for library containing setlocale... " >&6; }
4500if ${ac_cv_search_setlocale+:} false; then : 4479if test "${ac_cv_search_setlocale+set}" = set; then :
4501 $as_echo_n "(cached) " >&6 4480 $as_echo_n "(cached) " >&6
4502else 4481else
4503 ac_func_search_save_LIBS=$LIBS 4482 ac_func_search_save_LIBS=$LIBS
4504cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h. */ 4484/* end confdefs.h. */
4529 if ac_fn_cxx_try_link "$LINENO"; then : 4508 if ac_fn_cxx_try_link "$LINENO"; then :
4530 ac_cv_search_setlocale=$ac_res 4509 ac_cv_search_setlocale=$ac_res
4531fi 4510fi
4532rm -f core conftest.err conftest.$ac_objext \ 4511rm -f core conftest.err conftest.$ac_objext \
4533 conftest$ac_exeext 4512 conftest$ac_exeext
4534 if ${ac_cv_search_setlocale+:} false; then : 4513 if test "${ac_cv_search_setlocale+set}" = set; then :
4535 break 4514 break
4536fi 4515fi
4537done 4516done
4538if ${ac_cv_search_setlocale+:} false; then : 4517if test "${ac_cv_search_setlocale+set}" = set; then :
4539 4518
4540else 4519else
4541 ac_cv_search_setlocale=no 4520 ac_cv_search_setlocale=no
4542fi 4521fi
4543rm conftest.$ac_ext 4522rm conftest.$ac_ext
4552fi 4531fi
4553 4532
4554 4533
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4556$as_echo_n "checking for library containing gethostbyname... " >&6; } 4535$as_echo_n "checking for library containing gethostbyname... " >&6; }
4557if ${ac_cv_search_gethostbyname+:} false; then : 4536if test "${ac_cv_search_gethostbyname+set}" = set; then :
4558 $as_echo_n "(cached) " >&6 4537 $as_echo_n "(cached) " >&6
4559else 4538else
4560 ac_func_search_save_LIBS=$LIBS 4539 ac_func_search_save_LIBS=$LIBS
4561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562/* end confdefs.h. */ 4541/* end confdefs.h. */
4586 if ac_fn_cxx_try_link "$LINENO"; then : 4565 if ac_fn_cxx_try_link "$LINENO"; then :
4587 ac_cv_search_gethostbyname=$ac_res 4566 ac_cv_search_gethostbyname=$ac_res
4588fi 4567fi
4589rm -f core conftest.err conftest.$ac_objext \ 4568rm -f core conftest.err conftest.$ac_objext \
4590 conftest$ac_exeext 4569 conftest$ac_exeext
4591 if ${ac_cv_search_gethostbyname+:} false; then : 4570 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4592 break 4571 break
4593fi 4572fi
4594done 4573done
4595if ${ac_cv_search_gethostbyname+:} false; then : 4574if test "${ac_cv_search_gethostbyname+set}" = set; then :
4596 4575
4597else 4576else
4598 ac_cv_search_gethostbyname=no 4577 ac_cv_search_gethostbyname=no
4599fi 4578fi
4600rm conftest.$ac_ext 4579rm conftest.$ac_ext
4608 4587
4609fi 4588fi
4610 4589
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4612$as_echo_n "checking for library containing socket... " >&6; } 4591$as_echo_n "checking for library containing socket... " >&6; }
4613if ${ac_cv_search_socket+:} false; then : 4592if test "${ac_cv_search_socket+set}" = set; then :
4614 $as_echo_n "(cached) " >&6 4593 $as_echo_n "(cached) " >&6
4615else 4594else
4616 ac_func_search_save_LIBS=$LIBS 4595 ac_func_search_save_LIBS=$LIBS
4617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618/* end confdefs.h. */ 4597/* end confdefs.h. */
4642 if ac_fn_cxx_try_link "$LINENO"; then : 4621 if ac_fn_cxx_try_link "$LINENO"; then :
4643 ac_cv_search_socket=$ac_res 4622 ac_cv_search_socket=$ac_res
4644fi 4623fi
4645rm -f core conftest.err conftest.$ac_objext \ 4624rm -f core conftest.err conftest.$ac_objext \
4646 conftest$ac_exeext 4625 conftest$ac_exeext
4647 if ${ac_cv_search_socket+:} false; then : 4626 if test "${ac_cv_search_socket+set}" = set; then :
4648 break 4627 break
4649fi 4628fi
4650done 4629done
4651if ${ac_cv_search_socket+:} false; then : 4630if test "${ac_cv_search_socket+set}" = set; then :
4652 4631
4653else 4632else
4654 ac_cv_search_socket=no 4633 ac_cv_search_socket=no
4655fi 4634fi
4656rm conftest.$ac_ext 4635rm conftest.$ac_ext
4678support_scroll_next=yes 4657support_scroll_next=yes
4679support_scroll_xterm=yes 4658support_scroll_xterm=yes
4680support_xim=yes 4659support_xim=yes
4681support_pixbuf=yes 4660support_pixbuf=yes
4682support_startup_notification=yes 4661support_startup_notification=yes
4683support_afterimage=yes
4684support_xft=yes 4662support_xft=yes
4685support_unicode3=no 4663support_unicode3=no
4686support_combining=yes 4664support_combining=yes
4687support_8bitctrls=no 4665support_8bitctrls=no
4688support_iso14755=yes 4666support_iso14755=yes
4689support_styles=yes 4667support_styles=yes
4690support_perl=yes 4668support_perl=yes
4669support_xdbe=yes
4691codesets=all 4670codesets=all
4692 4671
4693 4672
4694# Check whether --enable-everything was given. 4673# Check whether --enable-everything was given.
4695if test "${enable_everything+set}" = set; then : 4674if test "${enable_everything+set}" = set; then :
4696 enableval=$enable_everything; 4675 enableval=$enable_everything;
4697 if test x$enableval = xno; then 4676 if test x$enableval = xno; then
4698 support_frills=no 4677 support_frills=no
4678 support_xdbe=no
4699 support_inheritpixmap=no 4679 support_inheritpixmap=no
4700 support_fading=no 4680 support_fading=no
4701 support_keepscrolling=no 4681 support_keepscrolling=no
4702 support_selectionscrolling=no 4682 support_selectionscrolling=no
4703 support_lastlog=no 4683 support_lastlog=no
4711 support_utmp=no 4691 support_utmp=no
4712 support_wtmp=no 4692 support_wtmp=no
4713 support_xim=no 4693 support_xim=no
4714 support_pixbuf=no 4694 support_pixbuf=no
4715 support_startup_notification=no 4695 support_startup_notification=no
4716 support_afterimage=no
4717 support_xft=no 4696 support_xft=no
4718 support_unicode3=no 4697 support_unicode3=no
4719 support_combining=no 4698 support_combining=no
4720 support_8bitctrls=no 4699 support_8bitctrls=no
4721 support_iso14755=no 4700 support_iso14755=no
4722 support_styles=no 4701 support_styles=no
4723 support_perl=no 4702 support_perl=no
4703 support_xdbe=no
4724 codesets= 4704 codesets=
4725 fi 4705 fi
4726 if test x$enableval = xyes; then 4706 if test x$enableval = xyes; then
4727 support_frills=yes 4707 support_frills=yes
4728 support_inheritpixmap=yes 4708 support_inheritpixmap=yes
4740 support_utmp=yes 4720 support_utmp=yes
4741 support_wtmp=yes 4721 support_wtmp=yes
4742 support_xim=yes 4722 support_xim=yes
4743 support_pixbuf=yes 4723 support_pixbuf=yes
4744 support_startup_notification=yes 4724 support_startup_notification=yes
4745 support_afterimage=yes
4746 support_xft=yes 4725 support_xft=yes
4747 support_unicode3=yes 4726 support_unicode3=yes
4748 support_combining=yes 4727 support_combining=yes
4749 #support_8bitctrls=yes 4728 #support_8bitctrls=yes
4750 support_iso14755=yes 4729 support_iso14755=yes
4751 support_styles=yes 4730 support_styles=yes
4752 support_perl=yes 4731 support_perl=yes
4732 support_xdbe=yes
4753 codesets=all 4733 codesets=all
4754 fi 4734 fi
4755 4735
4756fi 4736fi
4757 4737
4758 4738
4759ASSERTIONS=no 4739support_assertions=no
4760# Check whether --enable-assert was given. 4740# Check whether --enable-assert was given.
4761if test "${enable_assert+set}" = set; then : 4741if test "${enable_assert+set}" = set; then :
4762 enableval=$enable_assert; if test x$enableval = xyes; then 4742 enableval=$enable_assert; if test x$enableval = xyes; then
4763 ASSERTIONS=yes 4743 support_assertions=yes
4764 fi 4744 fi
4765fi 4745fi
4766 4746
4767if test x$ASSERTIONS = xno; then 4747if test x$support_assertions = xno; then
4768 4748
4769$as_echo "#define NDEBUG 1" >>confdefs.h 4749$as_echo "#define NDEBUG 1" >>confdefs.h
4770 4750
4771fi 4751fi
4772 4752
4773WARNINGS=no 4753support_warnings=no
4774# Check whether --enable-warnings was given. 4754# Check whether --enable-warnings was given.
4775if test "${enable_warnings+set}" = set; then : 4755if test "${enable_warnings+set}" = set; then :
4776 enableval=$enable_warnings; if test x$enableval = xyes; then 4756 enableval=$enable_warnings; if test x$enableval = xyes; then
4777 WARNINGS=yes 4757 support_warnings=yes
4778 fi 4758 fi
4779fi 4759fi
4780 4760
4781if test x$GXX = xyes; then 4761if test x$GXX = xyes; then
4782 if test $WARNINGS = yes; then 4762 if test $support_warnings = yes; then
4783 save_CXXFLAGS="$CXXFLAGS" 4763 save_CXXFLAGS="$CXXFLAGS"
4784 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" 4764 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */ 4766/* end confdefs.h. */
4787 4767
4788int 4768int
4789main () 4769main ()
4844 4824
4845# Check whether --enable-font-styles was given. 4825# Check whether --enable-font-styles was given.
4846if test "${enable_font_styles+set}" = set; then : 4826if test "${enable_font_styles+set}" = set; then :
4847 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then 4827 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4848 support_styles=$enableval 4828 support_styles=$enableval
4849 fi
4850fi
4851
4852
4853# Check whether --enable-afterimage was given.
4854if test "${enable_afterimage+set}" = set; then :
4855 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4856 support_afterimage=$enableval
4857 fi
4858fi
4859
4860
4861
4862# Check whether --with-afterimage_config was given.
4863if test "${with_afterimage_config+set}" = set; then :
4864 withval=$with_afterimage_config; if test "x$withval" != x; then
4865 afterimage_config=$withval/afterimage-config
4866 fi 4829 fi
4867fi 4830fi
4868 4831
4869 4832
4870# Check whether --enable-pixbuf was given. 4833# Check whether --enable-pixbuf was given.
5148 5111
5149cat >>confdefs.h <<_ACEOF 5112cat >>confdefs.h <<_ACEOF
5150#define RXVT_TERMINFO "$withval" 5113#define RXVT_TERMINFO "$withval"
5151_ACEOF 5114_ACEOF
5152 terminfo="$withval" 5115 terminfo="$withval"
5116 fi
5117fi
5118
5119
5120# Check whether --enable-xdbe was given.
5121if test "${enable_xdbe+set}" = set; then :
5122 enableval=$enable_xdbe; if test x$enableval = xyes -o x$enableval = xno; then
5123 support_xdbe=$enableval
5153 fi 5124 fi
5154fi 5125fi
5155 5126
5156 5127
5157 5128
5163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5166$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5137$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5167if test -z "$CXXCPP"; then 5138if test -z "$CXXCPP"; then
5168 if ${ac_cv_prog_CXXCPP+:} false; then : 5139 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5169 $as_echo_n "(cached) " >&6 5140 $as_echo_n "(cached) " >&6
5170else 5141else
5171 # Double quotes because CXXCPP needs to be expanded 5142 # Double quotes because CXXCPP needs to be expanded
5172 for CXXCPP in "$CXX -E" "/lib/cpp" 5143 for CXXCPP in "$CXX -E" "/lib/cpp"
5173 do 5144 do
5279 5250
5280else 5251else
5281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5283as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 5254as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5284See \`config.log' for more details" "$LINENO" 5; } 5255See \`config.log' for more details" "$LINENO" 5 ; }
5285fi 5256fi
5286 5257
5287ac_ext=cpp 5258ac_ext=cpp
5288ac_cpp='$CXXCPP $CPPFLAGS' 5259ac_cpp='$CXXCPP $CPPFLAGS'
5289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5319 5290
5320 5291
5321for ac_func in clock_gettime 5292for ac_func in clock_gettime
5322do : 5293do :
5323 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 5294 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5324if test "x$ac_cv_func_clock_gettime" = xyes; then : 5295if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5325 cat >>confdefs.h <<_ACEOF 5296 cat >>confdefs.h <<_ACEOF
5326#define HAVE_CLOCK_GETTIME 1 5297#define HAVE_CLOCK_GETTIME 1
5327_ACEOF 5298_ACEOF
5328 5299
5329else 5300else
5359 conftest$ac_exeext conftest.$ac_ext 5330 conftest$ac_exeext conftest.$ac_ext
5360 fi 5331 fi
5361 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then 5332 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5363$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 5334$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5364if ${ac_cv_lib_rt_clock_gettime+:} false; then : 5335if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
5365 $as_echo_n "(cached) " >&6 5336 $as_echo_n "(cached) " >&6
5366else 5337else
5367 ac_check_lib_save_LIBS=$LIBS 5338 ac_check_lib_save_LIBS=$LIBS
5368LIBS="-lrt $LIBS" 5339LIBS="-lrt $LIBS"
5369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 conftest$ac_exeext conftest.$ac_ext 5364 conftest$ac_exeext conftest.$ac_ext
5394LIBS=$ac_check_lib_save_LIBS 5365LIBS=$ac_check_lib_save_LIBS
5395fi 5366fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5397$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 5368$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5398if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 5369if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
5399 cat >>confdefs.h <<_ACEOF 5370 cat >>confdefs.h <<_ACEOF
5400#define HAVE_LIBRT 1 5371#define HAVE_LIBRT 1
5401_ACEOF 5372_ACEOF
5402 5373
5403 LIBS="-lrt $LIBS" 5374 LIBS="-lrt $LIBS"
5406 5377
5407 unset ac_cv_func_clock_gettime 5378 unset ac_cv_func_clock_gettime
5408 for ac_func in clock_gettime 5379 for ac_func in clock_gettime
5409do : 5380do :
5410 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 5381 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5411if test "x$ac_cv_func_clock_gettime" = xyes; then : 5382if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5412 cat >>confdefs.h <<_ACEOF 5383 cat >>confdefs.h <<_ACEOF
5413#define HAVE_CLOCK_GETTIME 1 5384#define HAVE_CLOCK_GETTIME 1
5414_ACEOF 5385_ACEOF
5415 5386
5416fi 5387fi
5423 5394
5424 5395
5425for ac_func in nanosleep 5396for ac_func in nanosleep
5426do : 5397do :
5427 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 5398 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5428if test "x$ac_cv_func_nanosleep" = xyes; then : 5399if test "x$ac_cv_func_nanosleep" = x""yes; then :
5429 cat >>confdefs.h <<_ACEOF 5400 cat >>confdefs.h <<_ACEOF
5430#define HAVE_NANOSLEEP 1 5401#define HAVE_NANOSLEEP 1
5431_ACEOF 5402_ACEOF
5432 5403
5433else 5404else
5434 5405
5435 if test -z "$LIBEV_M4_AVOID_LIBRT"; then 5406 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5437$as_echo_n "checking for nanosleep in -lrt... " >&6; } 5408$as_echo_n "checking for nanosleep in -lrt... " >&6; }
5438if ${ac_cv_lib_rt_nanosleep+:} false; then : 5409if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
5439 $as_echo_n "(cached) " >&6 5410 $as_echo_n "(cached) " >&6
5440else 5411else
5441 ac_check_lib_save_LIBS=$LIBS 5412 ac_check_lib_save_LIBS=$LIBS
5442LIBS="-lrt $LIBS" 5413LIBS="-lrt $LIBS"
5443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 conftest$ac_exeext conftest.$ac_ext 5438 conftest$ac_exeext conftest.$ac_ext
5468LIBS=$ac_check_lib_save_LIBS 5439LIBS=$ac_check_lib_save_LIBS
5469fi 5440fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5471$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 5442$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5472if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 5443if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
5473 cat >>confdefs.h <<_ACEOF 5444 cat >>confdefs.h <<_ACEOF
5474#define HAVE_LIBRT 1 5445#define HAVE_LIBRT 1
5475_ACEOF 5446_ACEOF
5476 5447
5477 LIBS="-lrt $LIBS" 5448 LIBS="-lrt $LIBS"
5480 5451
5481 unset ac_cv_func_nanosleep 5452 unset ac_cv_func_nanosleep
5482 for ac_func in nanosleep 5453 for ac_func in nanosleep
5483do : 5454do :
5484 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 5455 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5485if test "x$ac_cv_func_nanosleep" = xyes; then : 5456if test "x$ac_cv_func_nanosleep" = x""yes; then :
5486 cat >>confdefs.h <<_ACEOF 5457 cat >>confdefs.h <<_ACEOF
5487#define HAVE_NANOSLEEP 1 5458#define HAVE_NANOSLEEP 1
5488_ACEOF 5459_ACEOF
5489 5460
5490fi 5461fi
5499if test -z "$LIBEV_M4_AVOID_LIBM"; then 5470if test -z "$LIBEV_M4_AVOID_LIBM"; then
5500 LIBM=m 5471 LIBM=m
5501fi 5472fi
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5503$as_echo_n "checking for library containing floor... " >&6; } 5474$as_echo_n "checking for library containing floor... " >&6; }
5504if ${ac_cv_search_floor+:} false; then : 5475if test "${ac_cv_search_floor+set}" = set; then :
5505 $as_echo_n "(cached) " >&6 5476 $as_echo_n "(cached) " >&6
5506else 5477else
5507 ac_func_search_save_LIBS=$LIBS 5478 ac_func_search_save_LIBS=$LIBS
5508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h. */ 5480/* end confdefs.h. */
5533 if ac_fn_cxx_try_link "$LINENO"; then : 5504 if ac_fn_cxx_try_link "$LINENO"; then :
5534 ac_cv_search_floor=$ac_res 5505 ac_cv_search_floor=$ac_res
5535fi 5506fi
5536rm -f core conftest.err conftest.$ac_objext \ 5507rm -f core conftest.err conftest.$ac_objext \
5537 conftest$ac_exeext 5508 conftest$ac_exeext
5538 if ${ac_cv_search_floor+:} false; then : 5509 if test "${ac_cv_search_floor+set}" = set; then :
5539 break 5510 break
5540fi 5511fi
5541done 5512done
5542if ${ac_cv_search_floor+:} false; then : 5513if test "${ac_cv_search_floor+set}" = set; then :
5543 5514
5544else 5515else
5545 ac_cv_search_floor=no 5516 ac_cv_search_floor=no
5546fi 5517fi
5547rm conftest.$ac_ext 5518rm conftest.$ac_ext
5563 5534
5564# Extract the first word of "tic", so it can be a program name with args. 5535# Extract the first word of "tic", so it can be a program name with args.
5565set dummy tic; ac_word=$2 5536set dummy tic; ac_word=$2
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567$as_echo_n "checking for $ac_word... " >&6; } 5538$as_echo_n "checking for $ac_word... " >&6; }
5568if ${ac_cv_path_TIC+:} false; then : 5539if test "${ac_cv_path_TIC+set}" = set; then :
5569 $as_echo_n "(cached) " >&6 5540 $as_echo_n "(cached) " >&6
5570else 5541else
5571 case $TIC in 5542 case $TIC in
5572 [\\/]* | ?:[\\/]*) 5543 [\\/]* | ?:[\\/]*)
5573 ac_cv_path_TIC="$TIC" # Let the user override the test with a path. 5544 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5616if test "x$with_x" = xno; then 5587if test "x$with_x" = xno; then
5617 # The user explicitly disabled X. 5588 # The user explicitly disabled X.
5618 have_x=disabled 5589 have_x=disabled
5619else 5590else
5620 case $x_includes,$x_libraries in #( 5591 case $x_includes,$x_libraries in #(
5621 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 5592 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
5622 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 5593 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5623 $as_echo_n "(cached) " >&6 5594 $as_echo_n "(cached) " >&6
5624else 5595else
5625 # One or both of the vars are not set, and there is no cached value. 5596 # One or both of the vars are not set, and there is no cached value.
5626ac_x_includes=no ac_x_libraries=no 5597ac_x_includes=no ac_x_libraries=no
5627rm -f -r conftest.dir 5598rm -f -r conftest.dir
5894if ac_fn_cxx_try_link "$LINENO"; then : 5865if ac_fn_cxx_try_link "$LINENO"; then :
5895 5866
5896else 5867else
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5898$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 5869$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5899if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 5870if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5900 $as_echo_n "(cached) " >&6 5871 $as_echo_n "(cached) " >&6
5901else 5872else
5902 ac_check_lib_save_LIBS=$LIBS 5873 ac_check_lib_save_LIBS=$LIBS
5903LIBS="-ldnet $LIBS" 5874LIBS="-ldnet $LIBS"
5904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 conftest$ac_exeext conftest.$ac_ext 5899 conftest$ac_exeext conftest.$ac_ext
5929LIBS=$ac_check_lib_save_LIBS 5900LIBS=$ac_check_lib_save_LIBS
5930fi 5901fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5932$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 5903$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5933if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 5904if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5934 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5905 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5935fi 5906fi
5936 5907
5937 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5908 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5939$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 5910$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5940if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 5911if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5941 $as_echo_n "(cached) " >&6 5912 $as_echo_n "(cached) " >&6
5942else 5913else
5943 ac_check_lib_save_LIBS=$LIBS 5914 ac_check_lib_save_LIBS=$LIBS
5944LIBS="-ldnet_stub $LIBS" 5915LIBS="-ldnet_stub $LIBS"
5945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 conftest$ac_exeext conftest.$ac_ext 5940 conftest$ac_exeext conftest.$ac_ext
5970LIBS=$ac_check_lib_save_LIBS 5941LIBS=$ac_check_lib_save_LIBS
5971fi 5942fi
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5973$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 5944$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5974if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 5945if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5975 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5946 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5976fi 5947fi
5977 5948
5978 fi 5949 fi
5979fi 5950fi
5988 # The nsl library prevents programs from opening the X display 5959 # The nsl library prevents programs from opening the X display
5989 # on Irix 5.2, according to T.E. Dickey. 5960 # on Irix 5.2, according to T.E. Dickey.
5990 # The functions gethostbyname, getservbyname, and inet_addr are 5961 # The functions gethostbyname, getservbyname, and inet_addr are
5991 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5962 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5992 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 5963 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5993if test "x$ac_cv_func_gethostbyname" = xyes; then : 5964if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5994 5965
5995fi 5966fi
5996 5967
5997 if test $ac_cv_func_gethostbyname = no; then 5968 if test $ac_cv_func_gethostbyname = no; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5999$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 5970$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6000if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 5971if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6001 $as_echo_n "(cached) " >&6 5972 $as_echo_n "(cached) " >&6
6002else 5973else
6003 ac_check_lib_save_LIBS=$LIBS 5974 ac_check_lib_save_LIBS=$LIBS
6004LIBS="-lnsl $LIBS" 5975LIBS="-lnsl $LIBS"
6005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 conftest$ac_exeext conftest.$ac_ext 6000 conftest$ac_exeext conftest.$ac_ext
6030LIBS=$ac_check_lib_save_LIBS 6001LIBS=$ac_check_lib_save_LIBS
6031fi 6002fi
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6033$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6004$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6034if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 6005if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6035 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6006 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6036fi 6007fi
6037 6008
6038 if test $ac_cv_lib_nsl_gethostbyname = no; then 6009 if test $ac_cv_lib_nsl_gethostbyname = no; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6040$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 6011$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6041if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 6012if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6042 $as_echo_n "(cached) " >&6 6013 $as_echo_n "(cached) " >&6
6043else 6014else
6044 ac_check_lib_save_LIBS=$LIBS 6015 ac_check_lib_save_LIBS=$LIBS
6045LIBS="-lbsd $LIBS" 6016LIBS="-lbsd $LIBS"
6046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 conftest$ac_exeext conftest.$ac_ext 6041 conftest$ac_exeext conftest.$ac_ext
6071LIBS=$ac_check_lib_save_LIBS 6042LIBS=$ac_check_lib_save_LIBS
6072fi 6043fi
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6074$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 6045$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6075if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 6046if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6076 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6047 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6077fi 6048fi
6078 6049
6079 fi 6050 fi
6080 fi 6051 fi
6085 # on later versions), says Simon Leinen: it contains gethostby* 6056 # on later versions), says Simon Leinen: it contains gethostby*
6086 # variants that don't use the name server (or something). -lsocket 6057 # variants that don't use the name server (or something). -lsocket
6087 # must be given before -lnsl if both are needed. We assume that 6058 # must be given before -lnsl if both are needed. We assume that
6088 # if connect needs -lnsl, so does gethostbyname. 6059 # if connect needs -lnsl, so does gethostbyname.
6089 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 6060 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6090if test "x$ac_cv_func_connect" = xyes; then : 6061if test "x$ac_cv_func_connect" = x""yes; then :
6091 6062
6092fi 6063fi
6093 6064
6094 if test $ac_cv_func_connect = no; then 6065 if test $ac_cv_func_connect = no; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6096$as_echo_n "checking for connect in -lsocket... " >&6; } 6067$as_echo_n "checking for connect in -lsocket... " >&6; }
6097if ${ac_cv_lib_socket_connect+:} false; then : 6068if test "${ac_cv_lib_socket_connect+set}" = set; then :
6098 $as_echo_n "(cached) " >&6 6069 $as_echo_n "(cached) " >&6
6099else 6070else
6100 ac_check_lib_save_LIBS=$LIBS 6071 ac_check_lib_save_LIBS=$LIBS
6101LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6072LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 conftest$ac_exeext conftest.$ac_ext 6097 conftest$ac_exeext conftest.$ac_ext
6127LIBS=$ac_check_lib_save_LIBS 6098LIBS=$ac_check_lib_save_LIBS
6128fi 6099fi
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6130$as_echo "$ac_cv_lib_socket_connect" >&6; } 6101$as_echo "$ac_cv_lib_socket_connect" >&6; }
6131if test "x$ac_cv_lib_socket_connect" = xyes; then : 6102if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6132 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6103 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6133fi 6104fi
6134 6105
6135 fi 6106 fi
6136 6107
6137 # Guillermo Gomez says -lposix is necessary on A/UX. 6108 # Guillermo Gomez says -lposix is necessary on A/UX.
6138 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 6109 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6139if test "x$ac_cv_func_remove" = xyes; then : 6110if test "x$ac_cv_func_remove" = x""yes; then :
6140 6111
6141fi 6112fi
6142 6113
6143 if test $ac_cv_func_remove = no; then 6114 if test $ac_cv_func_remove = no; then
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6145$as_echo_n "checking for remove in -lposix... " >&6; } 6116$as_echo_n "checking for remove in -lposix... " >&6; }
6146if ${ac_cv_lib_posix_remove+:} false; then : 6117if test "${ac_cv_lib_posix_remove+set}" = set; then :
6147 $as_echo_n "(cached) " >&6 6118 $as_echo_n "(cached) " >&6
6148else 6119else
6149 ac_check_lib_save_LIBS=$LIBS 6120 ac_check_lib_save_LIBS=$LIBS
6150LIBS="-lposix $LIBS" 6121LIBS="-lposix $LIBS"
6151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 conftest$ac_exeext conftest.$ac_ext 6146 conftest$ac_exeext conftest.$ac_ext
6176LIBS=$ac_check_lib_save_LIBS 6147LIBS=$ac_check_lib_save_LIBS
6177fi 6148fi
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6179$as_echo "$ac_cv_lib_posix_remove" >&6; } 6150$as_echo "$ac_cv_lib_posix_remove" >&6; }
6180if test "x$ac_cv_lib_posix_remove" = xyes; then : 6151if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6181 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6152 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6182fi 6153fi
6183 6154
6184 fi 6155 fi
6185 6156
6186 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6157 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6187 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 6158 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6188if test "x$ac_cv_func_shmat" = xyes; then : 6159if test "x$ac_cv_func_shmat" = x""yes; then :
6189 6160
6190fi 6161fi
6191 6162
6192 if test $ac_cv_func_shmat = no; then 6163 if test $ac_cv_func_shmat = no; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6194$as_echo_n "checking for shmat in -lipc... " >&6; } 6165$as_echo_n "checking for shmat in -lipc... " >&6; }
6195if ${ac_cv_lib_ipc_shmat+:} false; then : 6166if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6196 $as_echo_n "(cached) " >&6 6167 $as_echo_n "(cached) " >&6
6197else 6168else
6198 ac_check_lib_save_LIBS=$LIBS 6169 ac_check_lib_save_LIBS=$LIBS
6199LIBS="-lipc $LIBS" 6170LIBS="-lipc $LIBS"
6200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 conftest$ac_exeext conftest.$ac_ext 6195 conftest$ac_exeext conftest.$ac_ext
6225LIBS=$ac_check_lib_save_LIBS 6196LIBS=$ac_check_lib_save_LIBS
6226fi 6197fi
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6228$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 6199$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6229if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 6200if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
6230 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6231fi 6202fi
6232 6203
6233 fi 6204 fi
6234 fi 6205 fi
6242 # These have to be linked with before -lX11, unlike the other 6213 # These have to be linked with before -lX11, unlike the other
6243 # libraries we check for below, so use a different variable. 6214 # libraries we check for below, so use a different variable.
6244 # John Interrante, Karl Berry 6215 # John Interrante, Karl Berry
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6246$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 6217$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6247if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 6218if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
6248 $as_echo_n "(cached) " >&6 6219 $as_echo_n "(cached) " >&6
6249else 6220else
6250 ac_check_lib_save_LIBS=$LIBS 6221 ac_check_lib_save_LIBS=$LIBS
6251LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6222LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6252cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 conftest$ac_exeext conftest.$ac_ext 6247 conftest$ac_exeext conftest.$ac_ext
6277LIBS=$ac_check_lib_save_LIBS 6248LIBS=$ac_check_lib_save_LIBS
6278fi 6249fi
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6280$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 6251$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6281if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 6252if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
6282 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6253 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6283fi 6254fi
6284 6255
6285 LDFLAGS=$ac_save_LDFLAGS 6256 LDFLAGS=$ac_save_LDFLAGS
6286 6257
6287fi 6258fi
6288 6259
6289 6260
6290image_lib=none 6261STARTUP_NOTIFICATION_CFLAGS=
6262STARTUP_NOTIFICATION_LIBS=
6291 6263
6292PIXBUF_CFLAGS=
6293PIXBUF_LIBS=
6294
6295if test x$support_pixbuf = xyes; then 6264if test x$support_startup_notification = xyes; then
6296 support_pixbuf=no 6265 support_startup_notification=no
6297 # Extract the first word of "pkg-config", so it can be a program name with args. 6266 # Extract the first word of "pkg-config", so it can be a program name with args.
6298set dummy pkg-config; ac_word=$2 6267set dummy pkg-config; ac_word=$2
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; } 6269$as_echo_n "checking for $ac_word... " >&6; }
6301if ${ac_cv_path_PKG_CONFIG+:} false; then : 6270if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6302 $as_echo_n "(cached) " >&6 6271 $as_echo_n "(cached) " >&6
6303else 6272else
6304 case $PKG_CONFIG in 6273 case $PKG_CONFIG in
6305 [\\/]* | ?:[\\/]*) 6274 [\\/]* | ?:[\\/]*)
6306 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6275 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; } 6303$as_echo "no" >&6; }
6335fi 6304fi
6336 6305
6337 6306
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5
6339$as_echo_n "checking for gdk-pixbuf... " >&6; } 6308$as_echo_n "checking for libstartup-notification... " >&6; }
6340 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then 6309 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6341 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" 6310 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`"
6342 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" 6311 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`"
6343 support_pixbuf=yes 6312 support_startup_notification=yes
6344 fi 6313 fi
6345 6314
6346 if test x$support_pixbuf = xyes; then 6315 if test x$support_startup_notification = xyes; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6348$as_echo "ok" >&6; } 6317$as_echo "ok" >&6; }
6349 image_lib=gdk-pixbuf
6350 support_afterimage=no
6351 6318
6352$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h 6319$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6353
6354
6355$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6356 6320
6357 else 6321 else
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359$as_echo "no" >&6; } 6323$as_echo "no" >&6; }
6360 fi 6324 fi
6361fi 6325fi
6362 6326
6363 6327
6364 6328
6365 6329
6366STARTUP_NOTIFICATION_CFLAGS= 6330for ac_header in \
6367STARTUP_NOTIFICATION_LIBS= 6331 sys/byteorder.h \
6332 sys/ioctl.h \
6333 sys/sockio.h \
6334 sys/strredir.h \
6335 stdint.h \
6336 wchar.h \
6368 6337
6338do :
6339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6340ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6341if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6342 cat >>confdefs.h <<_ACEOF
6343#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6344_ACEOF
6345
6346fi
6347
6348done
6349
6350
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6352$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6353if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6355else
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357/* end confdefs.h. */
6358
6359#define XLIB_ILLEGAL_ACCESS
6360#include <X11/Xlib.h>
6361
6362int
6363main ()
6364{
6365
6366 Display *dpy;
6367 dpy->xdefaults = (char *)0;
6368
6369 ;
6370 return 0;
6371}
6372_ACEOF
6373if ac_fn_cxx_try_compile "$LINENO"; then :
6374 rxvt_cv_xlib_illegal_access=yes
6375else
6376 rxvt_cv_xlib_illegal_access=no
6377
6378fi
6379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380fi
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6382$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6383if test x$rxvt_cv_xlib_illegal_access = xyes; then
6384
6385$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6386
6387fi
6388
6389ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6390if test "x$ac_cv_type_mode_t" = x""yes; then :
6391
6392else
6393
6394cat >>confdefs.h <<_ACEOF
6395#define mode_t int
6396_ACEOF
6397
6398fi
6399
6400ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6401if test "x$ac_cv_type_pid_t" = x""yes; then :
6402
6403else
6404
6405cat >>confdefs.h <<_ACEOF
6406#define pid_t int
6407_ACEOF
6408
6409fi
6410
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6412$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6413if test "${ac_cv_type_uid_t+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6415else
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417/* end confdefs.h. */
6418#include <sys/types.h>
6419
6420_ACEOF
6421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6422 $EGREP "uid_t" >/dev/null 2>&1; then :
6423 ac_cv_type_uid_t=yes
6424else
6425 ac_cv_type_uid_t=no
6426fi
6427rm -f conftest*
6428
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6431$as_echo "$ac_cv_type_uid_t" >&6; }
6432if test $ac_cv_type_uid_t = no; then
6433
6434$as_echo "#define uid_t int" >>confdefs.h
6435
6436
6437$as_echo "#define gid_t int" >>confdefs.h
6438
6439fi
6440
6441ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6442case $ac_cv_c_int16_t in #(
6443 no|yes) ;; #(
6444 *)
6445
6446cat >>confdefs.h <<_ACEOF
6447#define int16_t $ac_cv_c_int16_t
6448_ACEOF
6449;;
6450esac
6451
6452ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6453case $ac_cv_c_uint16_t in #(
6454 no|yes) ;; #(
6455 *)
6456
6457
6458cat >>confdefs.h <<_ACEOF
6459#define uint16_t $ac_cv_c_uint16_t
6460_ACEOF
6461;;
6462 esac
6463
6464ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6465case $ac_cv_c_int32_t in #(
6466 no|yes) ;; #(
6467 *)
6468
6469cat >>confdefs.h <<_ACEOF
6470#define int32_t $ac_cv_c_int32_t
6471_ACEOF
6472;;
6473esac
6474
6475ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6476case $ac_cv_c_uint32_t in #(
6477 no|yes) ;; #(
6478 *)
6479
6480$as_echo "#define _UINT32_T 1" >>confdefs.h
6481
6482
6483cat >>confdefs.h <<_ACEOF
6484#define uint32_t $ac_cv_c_uint32_t
6485_ACEOF
6486;;
6487 esac
6488
6489
6490for ac_func in unsetenv
6491do :
6492 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6493if test "x$ac_cv_func_unsetenv" = x""yes; then :
6494 cat >>confdefs.h <<_ACEOF
6495#define HAVE_UNSETENV 1
6496_ACEOF
6497
6498fi
6499done
6500
6501
6502
6503support_utmp=yes
6504support_wtmp=yes
6505support_lastlog=yes
6506
6507# Check whether --enable-utmp was given.
6508if test "${enable_utmp+set}" = set; then :
6509 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6510 support_utmp=$enableval
6511 fi
6512fi
6513
6514
6515# Check whether --enable-wtmp was given.
6516if test "${enable_wtmp+set}" = set; then :
6517 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6518 support_wtmp=$enableval
6519 fi
6520fi
6521
6522
6523# Check whether --enable-lastlog was given.
6524if test "${enable_lastlog+set}" = set; then :
6525 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6526 support_lastlog=$enableval
6527 fi
6528fi
6529
6530
6369if test x$support_startup_notification = xyes; then 6531if test x$support_utmp = xyes; then
6370 support_startup_notification=no 6532
6533$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6534
6535fi
6536if test x$support_wtmp = xyes; then
6537
6538$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6539
6540fi
6541if test x$support_lastlog = xyes; then
6542
6543$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6544
6545fi
6546
6547for ac_func in \
6548 updwtmp \
6549 updwtmpx \
6550 updlastlogx \
6551
6552do :
6553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6554ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6555if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6556 cat >>confdefs.h <<_ACEOF
6557#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6558_ACEOF
6559
6560fi
6561done
6562
6563
6564for ac_header in lastlog.h
6565do :
6566 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6567if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6568 cat >>confdefs.h <<_ACEOF
6569#define HAVE_LASTLOG_H 1
6570_ACEOF
6571
6572fi
6573
6574done
6575
6576
6577case $host in
6578 *-*-solaris*)
6579
6580$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6581
6582 ;;
6583esac
6584
6585
6586for ac_header in utmp.h
6587do :
6588 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6589if test "x$ac_cv_header_utmp_h" = x""yes; then :
6590 cat >>confdefs.h <<_ACEOF
6591#define HAVE_UTMP_H 1
6592_ACEOF
6593 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
6594#include <sys/types.h>
6595#include <utmp.h>
6596
6597"
6598if test "x$ac_cv_type_struct_utmp" = x""yes; then :
6599
6600cat >>confdefs.h <<_ACEOF
6601#define HAVE_STRUCT_UTMP 1
6602_ACEOF
6603
6604
6605fi
6606
6607
6608
6609# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6610# ------------------------------------------------------
6611# Tries to find if the field MEMBER exists in type AGGR, after including
6612# INCLUDES, setting cache variable VAR accordingly.
6613ac_fn_cxx_check_member ()
6614{
6615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6617$as_echo_n "checking for $2.$3... " >&6; }
6618if eval "test \"\${$4+set}\"" = set; then :
6619 $as_echo_n "(cached) " >&6
6620else
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622/* end confdefs.h. */
6623$5
6624int
6625main ()
6626{
6627static $2 ac_aggr;
6628if (ac_aggr.$3)
6629return 0;
6630 ;
6631 return 0;
6632}
6633_ACEOF
6634if ac_fn_cxx_try_compile "$LINENO"; then :
6635 eval "$4=yes"
6636else
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h. */
6639$5
6640int
6641main ()
6642{
6643static $2 ac_aggr;
6644if (sizeof ac_aggr.$3)
6645return 0;
6646 ;
6647 return 0;
6648}
6649_ACEOF
6650if ac_fn_cxx_try_compile "$LINENO"; then :
6651 eval "$4=yes"
6652else
6653 eval "$4=no"
6654fi
6655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656fi
6657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658fi
6659eval ac_res=\$$4
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6661$as_echo "$ac_res" >&6; }
6662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6663
6664} # ac_fn_cxx_check_member
6665ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
6666#include <sys/types.h>
6667#include <utmp.h>
6668
6669"
6670if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then :
6671
6672$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
6673
6674fi
6675
6676
6677ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
6678#include <sys/types.h>
6679#include <utmp.h>
6680
6681"
6682if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then :
6683
6684$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6685
6686fi
6687
6688
6689fi
6690
6691done
6692
6693
6694for ac_header in utmpx.h
6695do :
6696 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6697if test "x$ac_cv_header_utmpx_h" = x""yes; then :
6698 cat >>confdefs.h <<_ACEOF
6699#define HAVE_UTMPX_H 1
6700_ACEOF
6701 ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
6702#include <sys/types.h>
6703#include <utmpx.h>
6704
6705"
6706if test "x$ac_cv_type_struct_utmpx" = x""yes; then :
6707
6708cat >>confdefs.h <<_ACEOF
6709#define HAVE_STRUCT_UTMPX 1
6710_ACEOF
6711
6712
6713fi
6714
6715
6716ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
6717#include <sys/types.h>
6718#include <utmpx.h>
6719
6720"
6721if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then :
6722
6723$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6724
6725fi
6726
6727
6728fi
6729
6730done
6731
6732ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
6733#include <sys/types.h>
6734#include <utmp.h>
6735#ifdef HAVE_LASTLOG_H
6736#include <lastlog.h>
6737#endif
6738
6739"
6740if test "x$ac_cv_type_struct_lastlog" = x""yes; then :
6741
6742cat >>confdefs.h <<_ACEOF
6743#define HAVE_STRUCT_LASTLOG 1
6744_ACEOF
6745
6746
6747fi
6748
6749
6750ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
6751#include <sys/types.h>
6752#include <utmpx.h>
6753#ifdef HAVE_LASTLOG_H
6754#include <lastlog.h>
6755#endif
6756
6757"
6758if test "x$ac_cv_type_struct_lastlogx" = x""yes; then :
6759
6760cat >>confdefs.h <<_ACEOF
6761#define HAVE_STRUCT_LASTLOGX 1
6762_ACEOF
6763
6764
6765fi
6766
6767
6768
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6770$as_echo_n "checking for a fallback location of utmp... " >&6; }
6771if test "${pt_cv_path_utmp+set}" = set; then :
6772 $as_echo_n "(cached) " >&6
6773else
6774
6775if test "$cross_compiling" != yes; then
6776 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
6777 if test -f "$file"; then
6778 pt_cv_path_utmp=$file
6779 break
6780 fi
6781 done
6782fi
6783fi
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6785$as_echo "$pt_cv_path_utmp" >&6; }
6786if test x$pt_cv_path_utmp != x; then
6787
6788cat >>confdefs.h <<_ACEOF
6789#define PT_UTMP_FILE "$pt_cv_path_utmp"
6790_ACEOF
6791
6792elif test "$cross_compiling" = yes; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6794$as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
6795fi
6796
6797
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
6799$as_echo_n "checking for a fallback location of wtmp... " >&6; }
6800if test "${pt_cv_path_wtmp+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
6802else
6803
6804if test "$cross_compiling" != yes; then
6805 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
6806 if test -f "$file"; then
6807 pt_cv_path_wtmp=$file
6808 break
6809 fi
6810 done
6811fi
6812fi
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
6814$as_echo "$pt_cv_path_wtmp" >&6; }
6815if test x$pt_cv_path_wtmp != x; then
6816
6817cat >>confdefs.h <<_ACEOF
6818#define PT_WTMP_FILE "$pt_cv_path_wtmp"
6819_ACEOF
6820
6821elif test "$cross_compiling" = yes; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
6823$as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
6824fi
6825
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
6827$as_echo_n "checking for a fallback location of wtmpx... " >&6; }
6828if test "${pt_cv_path_wtmpx+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
6830else
6831
6832if test "$cross_compiling" != yes; then
6833 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
6834 if test -f "$file"; then
6835 pt_cv_path_wtmpx=$file
6836 break
6837 fi
6838 done
6839fi
6840fi
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
6842$as_echo "$pt_cv_path_wtmpx" >&6; }
6843if test x$pt_cv_path_wtmpx != x; then
6844
6845cat >>confdefs.h <<_ACEOF
6846#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
6847_ACEOF
6848
6849elif test "$cross_compiling" = yes; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
6851$as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
6852fi
6853
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
6855$as_echo_n "checking for a fallback location of lastlog... " >&6; }
6856if test "${pt_cv_path_lastlog+set}" = set; then :
6857 $as_echo_n "(cached) " >&6
6858else
6859
6860if test "$cross_compiling" != yes; then
6861 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
6862 if test -f "$file"; then
6863 pt_cv_path_lastlog=$file
6864 break
6865 fi
6866 done
6867fi
6868fi
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
6870$as_echo "$pt_cv_path_lastlog" >&6; }
6871if test x$pt_cv_path_lastlog != x; then
6872
6873cat >>confdefs.h <<_ACEOF
6874#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
6875_ACEOF
6876
6877elif test "$cross_compiling" = yes; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
6879$as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
6880fi
6881
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
6883$as_echo_n "checking for a fallback location of lastlogx... " >&6; }
6884if test "${pt_cv_path_lastlogx+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886else
6887
6888if test "$cross_compiling" != yes; then
6889 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
6890 if test -f "$file"; then
6891 pt_cv_path_lastlogx=$file
6892 break
6893 fi
6894 done
6895fi
6896fi
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
6898$as_echo "$pt_cv_path_lastlogx" >&6; }
6899if test x$pt_cv_path_lastlogx != x; then
6900
6901cat >>confdefs.h <<_ACEOF
6902#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
6903_ACEOF
6904
6905elif test "$cross_compiling" = yes; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
6907$as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
6908fi
6909
6910
6911
6912
6913save_LIBS=$LIBS
6914save_CFLAGS=$CFLAGS
6915CFLAGS="$CFLAGS $X_CFLAGS"
6916LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
6917if test x$support_xim = xyes; then
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
6919$as_echo_n "checking for working Xlocale... " >&6; }
6920if test "${rxvt_cv_func_xlocale+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922else
6923 if test "$cross_compiling" = yes; then :
6924 :
6925else
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h. */
6928
6929 #include <X11/Xlib.h>
6930 #include <stdlib.h>
6931 int main() {
6932 char *p;
6933 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
6934 exit (XSupportsLocale() ? 0 : 1);
6935 else
6936 exit (1);
6937 }
6938
6939_ACEOF
6940if ac_fn_cxx_try_run "$LINENO"; then :
6941 rxvt_cv_func_xlocale=yes
6942else
6943 rxvt_cv_func_xlocale=no
6944fi
6945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6946 conftest.$ac_objext conftest.beam conftest.$ac_ext
6947fi
6948
6949fi
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
6951$as_echo "$rxvt_cv_func_xlocale" >&6; }
6952 if test x$rxvt_cv_func_xlocale = xyes; then
6953
6954$as_echo "#define USE_XIM 1" >>confdefs.h
6955
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
6957$as_echo_n "checking for broken XIM callback... " >&6; }
6958if test "${rxvt_cv_broken_ximcb+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6960else
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962/* end confdefs.h. */
6963
6964 #include <X11/Xlib.h>
6965
6966 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
6967
6968 void f() {
6969 XIMCallback cb;
6970 cb.callback = im_destroy_cb;
6971 }
6972
6973_ACEOF
6974if ac_fn_cxx_try_compile "$LINENO"; then :
6975 rxvt_cv_broken_ximcb=yes
6976else
6977 rxvt_cv_broken_ximcb=no
6978fi
6979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980fi
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
6982$as_echo "$rxvt_cv_broken_ximcb" >&6; }
6983
6984 if test x$rxvt_cv_broken_ximcb = xyes; then
6985
6986$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
6987
6988 fi
6989 fi
6990fi
6991
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
6993$as_echo_n "checking for working X setlocale... " >&6; }
6994if test "${rxvt_cv_func_xsetlocale+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6996else
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998/* end confdefs.h. */
6999#define X_LOCALE 1
7000#include <X11/Xlocale.h>
7001int
7002main ()
7003{
7004setlocale(LC_CTYPE, "");
7005 ;
7006 return 0;
7007}
7008_ACEOF
7009if ac_fn_cxx_try_link "$LINENO"; then :
7010 rxvt_cv_func_xsetlocale=yes
7011else
7012 rxvt_cv_func_xsetlocale=no
7013fi
7014rm -f core conftest.err conftest.$ac_objext \
7015 conftest$ac_exeext conftest.$ac_ext
7016fi
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7018$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
7019if test x$rxvt_cv_func_xsetlocale = xyes; then
7020
7021$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7022
7023fi
7024LIBS=$save_LIBS
7025CFLAGS=$save_CFLAGS
7026
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7028$as_echo_n "checking for working nl_langinfo... " >&6; }
7029if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
7030 $as_echo_n "(cached) " >&6
7031else
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033/* end confdefs.h. */
7034#include <langinfo.h>
7035int
7036main ()
7037{
7038nl_langinfo(CODESET);
7039 ;
7040 return 0;
7041}
7042_ACEOF
7043if ac_fn_cxx_try_link "$LINENO"; then :
7044 rxvt_cv_func_nl_langinfo=yes
7045else
7046 rxvt_cv_func_nl_langinfo=no
7047fi
7048rm -f core conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050fi
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7052$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7053if test x$rxvt_cv_func_nl_langinfo = xyes; then
7054
7055$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7056
7057fi
7058
7059
7060case $host in
7061 *-*-solaris*)
7062
7063$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7064
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7066$as_echo_n "checking for library containing sendmsg... " >&6; }
7067if test "${ac_cv_search_sendmsg+set}" = set; then :
7068 $as_echo_n "(cached) " >&6
7069else
7070 ac_func_search_save_LIBS=$LIBS
7071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072/* end confdefs.h. */
7073
7074/* Override any GCC internal prototype to avoid an error.
7075 Use char because int might match the return type of a GCC
7076 builtin and then its argument prototype would still apply. */
7077#ifdef __cplusplus
7078extern "C"
7079#endif
7080char sendmsg ();
7081int
7082main ()
7083{
7084return sendmsg ();
7085 ;
7086 return 0;
7087}
7088_ACEOF
7089for ac_lib in '' socket; do
7090 if test -z "$ac_lib"; then
7091 ac_res="none required"
7092 else
7093 ac_res=-l$ac_lib
7094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7095 fi
7096 if ac_fn_cxx_try_link "$LINENO"; then :
7097 ac_cv_search_sendmsg=$ac_res
7098fi
7099rm -f core conftest.err conftest.$ac_objext \
7100 conftest$ac_exeext
7101 if test "${ac_cv_search_sendmsg+set}" = set; then :
7102 break
7103fi
7104done
7105if test "${ac_cv_search_sendmsg+set}" = set; then :
7106
7107else
7108 ac_cv_search_sendmsg=no
7109fi
7110rm conftest.$ac_ext
7111LIBS=$ac_func_search_save_LIBS
7112fi
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7114$as_echo "$ac_cv_search_sendmsg" >&6; }
7115ac_res=$ac_cv_search_sendmsg
7116if test "$ac_res" != no; then :
7117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7118
7119fi
7120
7121 ;;
7122esac
7123
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7125$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7126if test "${pt_cv_can_pass_fds+set}" = set; then :
7127 $as_echo_n "(cached) " >&6
7128else
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130/* end confdefs.h. */
7131
7132#include <stddef.h> // broken bsds (is that redundant?) need this
7133#include <sys/types.h>
7134#include <sys/socket.h>
7135#include <sys/uio.h>
7136
7137int
7138main ()
7139{
7140
7141{
7142 msghdr msg;
7143 iovec iov;
7144 char buf [100];
7145 char data = 0;
7146
7147 iov.iov_base = &data;
7148 iov.iov_len = 1;
7149
7150 msg.msg_iov = &iov;
7151 msg.msg_iovlen = 1;
7152 msg.msg_control = buf;
7153 msg.msg_controllen = sizeof buf;
7154
7155 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
7156 cmsg->cmsg_level = SOL_SOCKET;
7157 cmsg->cmsg_type = SCM_RIGHTS;
7158 cmsg->cmsg_len = 100;
7159
7160 *(int *)CMSG_DATA (cmsg) = 5;
7161
7162 return sendmsg (3, &msg, 0);
7163}
7164
7165 ;
7166 return 0;
7167}
7168_ACEOF
7169if ac_fn_cxx_try_link "$LINENO"; then :
7170 pt_cv_can_pass_fds=yes
7171else
7172 pt_cv_can_pass_fds=no
7173fi
7174rm -f core conftest.err conftest.$ac_objext \
7175 conftest$ac_exeext conftest.$ac_ext
7176fi
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7178$as_echo "$pt_cv_can_pass_fds" >&6; }
7179if test x$pt_cv_can_pass_fds = xyes; then
7180
7181$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7182
7183else
7184 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7185fi
7186
7187
7188
7189for ac_header in \
7190 pty.h \
7191 util.h \
7192 libutil.h \
7193 sys/ioctl.h \
7194 stropts.h \
7195
7196do :
7197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7198ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7199if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7200 cat >>confdefs.h <<_ACEOF
7201#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7202_ACEOF
7203
7204fi
7205
7206done
7207
7208
7209for ac_func in \
7210 revoke \
7211 _getpty \
7212 getpt \
7213 posix_openpt \
7214 isastream \
7215 setuid \
7216 seteuid \
7217 setreuid \
7218 setresuid \
7219
7220do :
7221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7222ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7223if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7224 cat >>confdefs.h <<_ACEOF
7225#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7226_ACEOF
7227
7228fi
7229done
7230
7231
7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7233$as_echo_n "checking for UNIX98 ptys... " >&6; }
7234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h. */
7236#include <stdlib.h>
7237int
7238main ()
7239{
7240grantpt(0);unlockpt(0);ptsname(0);
7241 ;
7242 return 0;
7243}
7244_ACEOF
7245if ac_fn_cxx_try_link "$LINENO"; then :
7246 unix98_pty=yes
7247
7248$as_echo "#define UNIX98_PTY 1" >>confdefs.h
7249
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7251$as_echo "yes" >&6; }
7252else
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254$as_echo "no" >&6; }
7255fi
7256rm -f core conftest.err conftest.$ac_objext \
7257 conftest$ac_exeext conftest.$ac_ext
7258
7259if test -z "$unix98_pty"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
7261$as_echo_n "checking for library containing openpty... " >&6; }
7262if test "${ac_cv_search_openpty+set}" = set; then :
7263 $as_echo_n "(cached) " >&6
7264else
7265 ac_func_search_save_LIBS=$LIBS
7266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267/* end confdefs.h. */
7268
7269/* Override any GCC internal prototype to avoid an error.
7270 Use char because int might match the return type of a GCC
7271 builtin and then its argument prototype would still apply. */
7272#ifdef __cplusplus
7273extern "C"
7274#endif
7275char openpty ();
7276int
7277main ()
7278{
7279return openpty ();
7280 ;
7281 return 0;
7282}
7283_ACEOF
7284for ac_lib in '' util; do
7285 if test -z "$ac_lib"; then
7286 ac_res="none required"
7287 else
7288 ac_res=-l$ac_lib
7289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7290 fi
7291 if ac_fn_cxx_try_link "$LINENO"; then :
7292 ac_cv_search_openpty=$ac_res
7293fi
7294rm -f core conftest.err conftest.$ac_objext \
7295 conftest$ac_exeext
7296 if test "${ac_cv_search_openpty+set}" = set; then :
7297 break
7298fi
7299done
7300if test "${ac_cv_search_openpty+set}" = set; then :
7301
7302else
7303 ac_cv_search_openpty=no
7304fi
7305rm conftest.$ac_ext
7306LIBS=$ac_func_search_save_LIBS
7307fi
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7309$as_echo "$ac_cv_search_openpty" >&6; }
7310ac_res=$ac_cv_search_openpty
7311if test "$ac_res" != no; then :
7312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7313
7314$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7315
7316fi
7317
7318fi
7319
7320
7321
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7323$as_echo_n "checking for tty group... " >&6; }
7324if test "${pt_cv_tty_group+set}" = set; then :
7325 $as_echo_n "(cached) " >&6
7326else
7327 if test "$cross_compiling" = yes; then :
7328 pt_cv_tty_group=no
7329else
7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h. */
7332
7333#include <sys/types.h>
7334#include <sys/stat.h>
7335#include <unistd.h>
7336#include <grp.h>
7337
7338int main()
7339{
7340 struct stat st;
7341 struct group *gr;
7342 char *tty;
7343 gr = getgrnam("tty");
7344 tty = ttyname(0);
7345 if (gr != 0
7346 && tty != 0
7347 && (stat(tty, &st)) == 0
7348 && st.st_gid == gr->gr_gid)
7349 return 0;
7350 else
7351 return 1;
7352}
7353_ACEOF
7354if ac_fn_cxx_try_run "$LINENO"; then :
7355 pt_cv_tty_group=yes
7356else
7357 pt_cv_tty_group=no
7358fi
7359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7360 conftest.$ac_objext conftest.beam conftest.$ac_ext
7361fi
7362
7363fi
7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7365$as_echo "$pt_cv_tty_group" >&6; }
7366if test x$pt_cv_tty_group = xyes; then
7367
7368$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7369
7370fi
7371
7372support_image=no
7373if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
7374 support_image=yes
7375fi
7376if test x$support_xdbe = xyes; then
7377 LIBS="$LIBS -lXext"
7378fi
7379
7380if test x$support_xft = xyes || test x$support_image = xyes; then
7381 rxvt_have_xrender=no
6371 # Extract the first word of "pkg-config", so it can be a program name with args. 7382 # Extract the first word of "pkg-config", so it can be a program name with args.
6372set dummy pkg-config; ac_word=$2 7383set dummy pkg-config; ac_word=$2
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374$as_echo_n "checking for $ac_word... " >&6; } 7385$as_echo_n "checking for $ac_word... " >&6; }
6375if ${ac_cv_path_PKG_CONFIG+:} false; then : 7386if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6376 $as_echo_n "(cached) " >&6 7387 $as_echo_n "(cached) " >&6
6377else 7388else
6378 case $PKG_CONFIG in 7389 case $PKG_CONFIG in
6379 [\\/]* | ?:[\\/]*) 7390 [\\/]* | ?:[\\/]*)
6380 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7391 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408$as_echo "no" >&6; } 7419$as_echo "no" >&6; }
6409fi 7420fi
6410 7421
6411 7422
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5
6413$as_echo_n "checking for libstartup-notification... " >&6; }
6414 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then 7423 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
6415 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" 7424 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS"
6416 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" 7425 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`"
6417 support_startup_notification=yes 7426 rxvt_have_xrender=yes
6418 fi
6419 7427
6420 if test x$support_startup_notification = xyes; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6422$as_echo "ok" >&6; }
6423
6424$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6425
6426 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428$as_echo "no" >&6; }
6429 fi
6430fi
6431
6432
6433
6434
6435AFTERIMAGE_CFLAGS=
6436AFTERIMAGE_LIBS=
6437AFTERIMAGE_VERSION=
6438
6439if test x$support_afterimage = xyes; then
6440 support_afterimage=no
6441
6442 if test "x$afterimage_config" = "x" ; then
6443 # Extract the first word of "afterimage-config", so it can be a program name with args.
6444set dummy afterimage-config; ac_word=$2
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446$as_echo_n "checking for $ac_word... " >&6; }
6447if ${ac_cv_path_afterimage_config+:} false; then :
6448 $as_echo_n "(cached) " >&6
6449else
6450 case $afterimage_config in
6451 [\\/]* | ?:[\\/]*)
6452 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6453 ;;
6454 *)
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6465 fi
6466done
6467 done
6468IFS=$as_save_IFS
6469
6470 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6471 ;;
6472esac
6473fi
6474afterimage_config=$ac_cv_path_afterimage_config
6475if test -n "$afterimage_config"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5
6477$as_echo "$afterimage_config" >&6; }
6478else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480$as_echo "no" >&6; }
6481fi
6482
6483
6484 fi
6485 if test "x$afterimage_config" != "xno" ; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6487$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6488 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6489 if test -n "$xAFTERIMAGE_VERSION" ; then
6490 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6491 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6492 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6493 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6494 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6495 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6496 support_afterimage=yes
6497 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6498 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6499 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6500 fi
6501 fi
6502 fi
6503 if test "x$support_afterimage" = "xyes"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6505$as_echo "$AFTERIMAGE_LIBS" >&6; }
6506 image_lib=libafterimage
6507
6508$as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
6509
6510
6511$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6512
6513 else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; }
6516 fi
6517 fi
6518fi
6519
6520
6521
6522
6523for ac_header in \
6524 sys/byteorder.h \
6525 sys/ioctl.h \
6526 sys/sockio.h \
6527 sys/strredir.h \
6528 stdint.h \
6529 wchar.h \
6530 cwchar \
6531
6532do :
6533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6534ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6535if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6536 cat >>confdefs.h <<_ACEOF
6537#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6538_ACEOF
6539
6540fi
6541
6542done
6543
6544
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6546$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6547if ${rxvt_cv_xlib_illegal_access+:} false; then :
6548 $as_echo_n "(cached) " >&6
6549else
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551/* end confdefs.h. */
6552
6553#define XLIB_ILLEGAL_ACCESS
6554#include <X11/Xlib.h>
6555
6556int
6557main ()
6558{
6559
6560 Display *dpy;
6561 dpy->xdefaults = (char *)0;
6562
6563 ;
6564 return 0;
6565}
6566_ACEOF
6567if ac_fn_cxx_try_compile "$LINENO"; then :
6568 rxvt_cv_xlib_illegal_access=yes
6569else
6570 rxvt_cv_xlib_illegal_access=no
6571
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574fi
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6576$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6577if test x$rxvt_cv_xlib_illegal_access = xyes; then
6578
6579$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6580
6581fi
6582
6583ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6584if test "x$ac_cv_type_mode_t" = xyes; then :
6585
6586else
6587
6588cat >>confdefs.h <<_ACEOF
6589#define mode_t int
6590_ACEOF
6591
6592fi
6593
6594ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6595if test "x$ac_cv_type_pid_t" = xyes; then :
6596
6597else
6598
6599cat >>confdefs.h <<_ACEOF
6600#define pid_t int
6601_ACEOF
6602
6603fi
6604
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6606$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6607if ${ac_cv_type_uid_t+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609else
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611/* end confdefs.h. */
6612#include <sys/types.h>
6613
6614_ACEOF
6615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6616 $EGREP "uid_t" >/dev/null 2>&1; then :
6617 ac_cv_type_uid_t=yes
6618else
6619 ac_cv_type_uid_t=no
6620fi
6621rm -f conftest*
6622
6623fi
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6625$as_echo "$ac_cv_type_uid_t" >&6; }
6626if test $ac_cv_type_uid_t = no; then
6627
6628$as_echo "#define uid_t int" >>confdefs.h
6629
6630
6631$as_echo "#define gid_t int" >>confdefs.h
6632
6633fi
6634
6635ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6636case $ac_cv_c_int16_t in #(
6637 no|yes) ;; #(
6638 *)
6639
6640cat >>confdefs.h <<_ACEOF
6641#define int16_t $ac_cv_c_int16_t
6642_ACEOF
6643;;
6644esac
6645
6646ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6647case $ac_cv_c_uint16_t in #(
6648 no|yes) ;; #(
6649 *)
6650
6651
6652cat >>confdefs.h <<_ACEOF
6653#define uint16_t $ac_cv_c_uint16_t
6654_ACEOF
6655;;
6656 esac
6657
6658ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6659case $ac_cv_c_int32_t in #(
6660 no|yes) ;; #(
6661 *)
6662
6663cat >>confdefs.h <<_ACEOF
6664#define int32_t $ac_cv_c_int32_t
6665_ACEOF
6666;;
6667esac
6668
6669ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6670case $ac_cv_c_uint32_t in #(
6671 no|yes) ;; #(
6672 *)
6673
6674$as_echo "#define _UINT32_T 1" >>confdefs.h
6675
6676
6677cat >>confdefs.h <<_ACEOF
6678#define uint32_t $ac_cv_c_uint32_t
6679_ACEOF
6680;;
6681 esac
6682
6683
6684for ac_func in unsetenv
6685do :
6686 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6687if test "x$ac_cv_func_unsetenv" = xyes; then :
6688 cat >>confdefs.h <<_ACEOF
6689#define HAVE_UNSETENV 1
6690_ACEOF
6691
6692fi
6693done
6694
6695
6696
6697support_utmp=yes
6698support_wtmp=yes
6699support_lastlog=yes
6700
6701# Check whether --enable-utmp was given.
6702if test "${enable_utmp+set}" = set; then :
6703 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6704 support_utmp=$enableval
6705 fi
6706fi
6707
6708
6709# Check whether --enable-wtmp was given.
6710if test "${enable_wtmp+set}" = set; then :
6711 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6712 support_wtmp=$enableval
6713 fi
6714fi
6715
6716
6717# Check whether --enable-lastlog was given.
6718if test "${enable_lastlog+set}" = set; then :
6719 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6720 support_lastlog=$enableval
6721 fi
6722fi
6723
6724
6725if test x$support_utmp = xyes; then
6726
6727$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6728
6729fi
6730if test x$support_wtmp = xyes; then
6731
6732$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6733
6734fi
6735if test x$support_lastlog = xyes; then
6736
6737$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6738
6739fi
6740
6741for ac_func in \
6742 updwtmp \
6743 updwtmpx \
6744 updlastlogx \
6745
6746do :
6747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6748ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6749if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6750 cat >>confdefs.h <<_ACEOF
6751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6752_ACEOF
6753
6754fi
6755done
6756
6757
6758for ac_header in lastlog.h
6759do :
6760 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6761if test "x$ac_cv_header_lastlog_h" = xyes; then :
6762 cat >>confdefs.h <<_ACEOF
6763#define HAVE_LASTLOG_H 1
6764_ACEOF
6765
6766fi
6767
6768done
6769
6770
6771
6772for ac_header in utmp.h
6773do :
6774 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6775if test "x$ac_cv_header_utmp_h" = xyes; then :
6776 cat >>confdefs.h <<_ACEOF
6777#define HAVE_UTMP_H 1
6778_ACEOF
6779 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
6780#include <sys/types.h>
6781#include <utmp.h>
6782
6783"
6784if test "x$ac_cv_type_struct_utmp" = xyes; then :
6785
6786cat >>confdefs.h <<_ACEOF
6787#define HAVE_STRUCT_UTMP 1
6788_ACEOF
6789
6790
6791fi
6792
6793
6794
6795# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6796# ------------------------------------------------------
6797# Tries to find if the field MEMBER exists in type AGGR, after including
6798# INCLUDES, setting cache variable VAR accordingly.
6799ac_fn_cxx_check_member ()
6800{
6801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6803$as_echo_n "checking for $2.$3... " >&6; }
6804if eval \${$4+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806else
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h. */
6809$5
6810int
6811main ()
6812{
6813static $2 ac_aggr;
6814if (ac_aggr.$3)
6815return 0;
6816 ;
6817 return 0;
6818}
6819_ACEOF
6820if ac_fn_cxx_try_compile "$LINENO"; then :
6821 eval "$4=yes"
6822else
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824/* end confdefs.h. */
6825$5
6826int
6827main ()
6828{
6829static $2 ac_aggr;
6830if (sizeof ac_aggr.$3)
6831return 0;
6832 ;
6833 return 0;
6834}
6835_ACEOF
6836if ac_fn_cxx_try_compile "$LINENO"; then :
6837 eval "$4=yes"
6838else
6839 eval "$4=no"
6840fi
6841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844fi
6845eval ac_res=\$$4
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6847$as_echo "$ac_res" >&6; }
6848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6849
6850} # ac_fn_cxx_check_member
6851ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
6852#include <sys/types.h>
6853#include <utmp.h>
6854
6855"
6856if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
6857
6858$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
6859
6860fi
6861
6862
6863ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
6864#include <sys/types.h>
6865#include <utmp.h>
6866
6867"
6868if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
6869
6870$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6871
6872fi
6873
6874
6875fi
6876
6877done
6878
6879
6880for ac_header in utmpx.h
6881do :
6882 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6883if test "x$ac_cv_header_utmpx_h" = xyes; then :
6884 cat >>confdefs.h <<_ACEOF
6885#define HAVE_UTMPX_H 1
6886_ACEOF
6887 ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
6888#include <sys/types.h>
6889#include <utmpx.h>
6890
6891"
6892if test "x$ac_cv_type_struct_utmpx" = xyes; then :
6893
6894cat >>confdefs.h <<_ACEOF
6895#define HAVE_STRUCT_UTMPX 1
6896_ACEOF
6897
6898
6899fi
6900
6901
6902ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
6903#include <sys/types.h>
6904#include <utmpx.h>
6905
6906"
6907if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
6908
6909$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6910
6911fi
6912
6913
6914ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_session" "ac_cv_member_struct_utmpx_ut_session" "
6915#include <sys/types.h>
6916#include <utmpx.h>
6917
6918"
6919if test "x$ac_cv_member_struct_utmpx_ut_session" = xyes; then :
6920
6921$as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
6922
6923fi
6924
6925
6926fi
6927
6928done
6929
6930ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
6931#include <sys/types.h>
6932#include <utmp.h>
6933#ifdef HAVE_LASTLOG_H
6934#include <lastlog.h>
6935#endif
6936
6937"
6938if test "x$ac_cv_type_struct_lastlog" = xyes; then :
6939
6940cat >>confdefs.h <<_ACEOF
6941#define HAVE_STRUCT_LASTLOG 1
6942_ACEOF
6943
6944
6945fi
6946
6947
6948ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
6949#include <sys/types.h>
6950#include <utmpx.h>
6951#ifdef HAVE_LASTLOG_H
6952#include <lastlog.h>
6953#endif
6954
6955"
6956if test "x$ac_cv_type_struct_lastlogx" = xyes; then :
6957
6958cat >>confdefs.h <<_ACEOF
6959#define HAVE_STRUCT_LASTLOGX 1
6960_ACEOF
6961
6962
6963fi
6964
6965
6966
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6968$as_echo_n "checking for a fallback location of utmp... " >&6; }
6969if ${pt_cv_path_utmp+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971else
6972
6973if test "$cross_compiling" != yes; then
6974 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
6975 if test -f "$file"; then
6976 pt_cv_path_utmp=$file
6977 break
6978 fi
6979 done
6980fi
6981fi
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6983$as_echo "$pt_cv_path_utmp" >&6; }
6984if test x$pt_cv_path_utmp != x; then
6985
6986cat >>confdefs.h <<_ACEOF
6987#define PT_UTMP_FILE "$pt_cv_path_utmp"
6988_ACEOF
6989
6990elif test "$cross_compiling" = yes; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6992$as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
6993fi
6994
6995
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
6997$as_echo_n "checking for a fallback location of wtmp... " >&6; }
6998if ${pt_cv_path_wtmp+:} false; then :
6999 $as_echo_n "(cached) " >&6
7000else
7001
7002if test "$cross_compiling" != yes; then
7003 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
7004 if test -f "$file"; then
7005 pt_cv_path_wtmp=$file
7006 break
7007 fi
7008 done
7009fi
7010fi
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
7012$as_echo "$pt_cv_path_wtmp" >&6; }
7013if test x$pt_cv_path_wtmp != x; then
7014
7015cat >>confdefs.h <<_ACEOF
7016#define PT_WTMP_FILE "$pt_cv_path_wtmp"
7017_ACEOF
7018
7019elif test "$cross_compiling" = yes; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
7021$as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
7022fi
7023
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
7025$as_echo_n "checking for a fallback location of wtmpx... " >&6; }
7026if ${pt_cv_path_wtmpx+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028else
7029
7030if test "$cross_compiling" != yes; then
7031 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
7032 if test -f "$file"; then
7033 pt_cv_path_wtmpx=$file
7034 break
7035 fi
7036 done
7037fi
7038fi
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7040$as_echo "$pt_cv_path_wtmpx" >&6; }
7041if test x$pt_cv_path_wtmpx != x; then
7042
7043cat >>confdefs.h <<_ACEOF
7044#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
7045_ACEOF
7046
7047elif test "$cross_compiling" = yes; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7049$as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
7050fi
7051
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
7053$as_echo_n "checking for a fallback location of lastlog... " >&6; }
7054if ${pt_cv_path_lastlog+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056else
7057
7058if test "$cross_compiling" != yes; then
7059 for file in "/var/log/lastlog"; do
7060 if test -f "$file"; then
7061 pt_cv_path_lastlog=$file
7062 break
7063 fi
7064 done
7065fi
7066fi
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7068$as_echo "$pt_cv_path_lastlog" >&6; }
7069if test x$pt_cv_path_lastlog != x; then
7070
7071cat >>confdefs.h <<_ACEOF
7072#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
7073_ACEOF
7074
7075elif test "$cross_compiling" = yes; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7077$as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
7078fi
7079
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
7081$as_echo_n "checking for a fallback location of lastlogx... " >&6; }
7082if ${pt_cv_path_lastlogx+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084else
7085
7086if test "$cross_compiling" != yes; then
7087 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
7088 if test -f "$file"; then
7089 pt_cv_path_lastlogx=$file
7090 break
7091 fi
7092 done
7093fi
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7096$as_echo "$pt_cv_path_lastlogx" >&6; }
7097if test x$pt_cv_path_lastlogx != x; then
7098
7099cat >>confdefs.h <<_ACEOF
7100#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
7101_ACEOF
7102
7103elif test "$cross_compiling" = yes; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
7105$as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
7106fi
7107
7108
7109
7110
7111save_LIBS=$LIBS 7428 save_LIBS="$LIBS"
7112save_CFLAGS=$CFLAGS 7429 LIBS="$LIBS $X_LIBS"
7113CFLAGS="$CFLAGS $X_CFLAGS" 7430 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7114LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7431if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then :
7115if test x$support_xim = xyes; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7117$as_echo_n "checking for working Xlocale... " >&6; }
7118if ${rxvt_cv_func_xlocale+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120else
7121 if test "$cross_compiling" = yes; then :
7122 :
7123else
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125/* end confdefs.h. */
7126 7432
7127 #include <X11/Xlib.h>
7128 #include <stdlib.h>
7129 int main() {
7130 char *p;
7131 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
7132 exit (XSupportsLocale() ? 0 : 1);
7133 else
7134 exit (1);
7135 }
7136
7137_ACEOF
7138if ac_fn_cxx_try_run "$LINENO"; then :
7139 rxvt_cv_func_xlocale=yes
7140else
7141 rxvt_cv_func_xlocale=no
7142fi
7143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7144 conftest.$ac_objext conftest.beam conftest.$ac_ext
7145fi
7146
7147fi
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7149$as_echo "$rxvt_cv_func_xlocale" >&6; }
7150 if test x$rxvt_cv_func_xlocale = xyes; then
7151
7152$as_echo "#define USE_XIM 1" >>confdefs.h
7153
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7155$as_echo_n "checking for broken XIM callback... " >&6; }
7156if ${rxvt_cv_broken_ximcb+:} false; then :
7157 $as_echo_n "(cached) " >&6
7158else
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160/* end confdefs.h. */
7161
7162 #include <X11/Xlib.h>
7163
7164 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7165
7166 void f() {
7167 XIMCallback cb;
7168 cb.callback = im_destroy_cb;
7169 }
7170
7171_ACEOF
7172if ac_fn_cxx_try_compile "$LINENO"; then :
7173 rxvt_cv_broken_ximcb=yes
7174else
7175 rxvt_cv_broken_ximcb=no
7176fi
7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178fi
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7180$as_echo "$rxvt_cv_broken_ximcb" >&6; }
7181
7182 if test x$rxvt_cv_broken_ximcb = xyes; then
7183
7184$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7185
7186 fi
7187 fi
7188fi
7189
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
7191$as_echo_n "checking for working X setlocale... " >&6; }
7192if ${rxvt_cv_func_xsetlocale+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194else
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196/* end confdefs.h. */
7197#define X_LOCALE 1
7198#include <X11/Xlocale.h>
7199int
7200main ()
7201{
7202setlocale(LC_CTYPE, "");
7203 ;
7204 return 0;
7205}
7206_ACEOF
7207if ac_fn_cxx_try_link "$LINENO"; then :
7208 rxvt_cv_func_xsetlocale=yes
7209else
7210 rxvt_cv_func_xsetlocale=no
7211fi
7212rm -f core conftest.err conftest.$ac_objext \
7213 conftest$ac_exeext conftest.$ac_ext
7214fi
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7216$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
7217if test x$rxvt_cv_func_xsetlocale = xyes; then
7218
7219$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7220
7221fi
7222LIBS=$save_LIBS
7223CFLAGS=$save_CFLAGS
7224
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
7226$as_echo_n "checking for working plain setlocale... " >&6; }
7227if ${rxvt_cv_func_setlocale+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229else
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231/* end confdefs.h. */
7232#include <clocale>
7233int
7234main ()
7235{
7236setlocale(LC_CTYPE, "");
7237 ;
7238 return 0;
7239}
7240_ACEOF
7241if ac_fn_cxx_try_link "$LINENO"; then :
7242 rxvt_cv_func_setlocale=yes
7243else
7244 rxvt_cv_func_setlocale=no
7245fi
7246rm -f core conftest.err conftest.$ac_objext \
7247 conftest$ac_exeext conftest.$ac_ext
7248fi
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
7250$as_echo "$rxvt_cv_func_setlocale" >&6; }
7251if test x$rxvt_cv_func_setlocale = xyes; then
7252
7253$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
7254
7255fi
7256
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7258$as_echo_n "checking for working nl_langinfo... " >&6; }
7259if ${rxvt_cv_func_nl_langinfo+:} false; then :
7260 $as_echo_n "(cached) " >&6
7261else
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263/* end confdefs.h. */
7264#include <langinfo.h>
7265int
7266main ()
7267{
7268nl_langinfo(CODESET);
7269 ;
7270 return 0;
7271}
7272_ACEOF
7273if ac_fn_cxx_try_link "$LINENO"; then :
7274 rxvt_cv_func_nl_langinfo=yes
7275else
7276 rxvt_cv_func_nl_langinfo=no
7277fi
7278rm -f core conftest.err conftest.$ac_objext \
7279 conftest$ac_exeext conftest.$ac_ext
7280fi
7281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7282$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7283if test x$rxvt_cv_func_nl_langinfo = xyes; then
7284
7285$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7286
7287fi
7288
7289
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7291$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7292if ${pt_cv_can_pass_fds+:} false; then :
7293 $as_echo_n "(cached) " >&6
7294else
7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296/* end confdefs.h. */
7297
7298#include <cstddef> // broken bsds (is that redundant?) need this
7299#include <sys/types.h>
7300#include <sys/socket.h>
7301#include <sys/uio.h>
7302
7303int
7304main ()
7305{
7306
7307{
7308 msghdr msg;
7309 iovec iov;
7310 char buf [100];
7311 char data = 0;
7312
7313 iov.iov_base = &data;
7314 iov.iov_len = 1;
7315
7316 msg.msg_iov = &iov;
7317 msg.msg_iovlen = 1;
7318 msg.msg_control = buf;
7319 msg.msg_controllen = sizeof buf;
7320
7321 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
7322 cmsg->cmsg_level = SOL_SOCKET;
7323 cmsg->cmsg_type = SCM_RIGHTS;
7324 cmsg->cmsg_len = 100;
7325
7326 *(int *)CMSG_DATA (cmsg) = 5;
7327
7328 return sendmsg (3, &msg, 0);
7329}
7330
7331 ;
7332 return 0;
7333}
7334_ACEOF
7335if ac_fn_cxx_try_link "$LINENO"; then :
7336 pt_cv_can_pass_fds=yes
7337else
7338 pt_cv_can_pass_fds=no
7339fi
7340rm -f core conftest.err conftest.$ac_objext \
7341 conftest$ac_exeext conftest.$ac_ext
7342fi
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7344$as_echo "$pt_cv_can_pass_fds" >&6; }
7345if test x$pt_cv_can_pass_fds = xyes; then
7346
7347$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7348
7349else
7350 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7351fi
7352
7353
7354
7355for ac_header in \
7356 pty.h \
7357 util.h \
7358 libutil.h \
7359 sys/ioctl.h \
7360 sys/stropts.h \
7361 stropts.h \
7362
7363do :
7364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7365ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7366if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7367 cat >>confdefs.h <<_ACEOF
7368#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7369_ACEOF
7370
7371fi
7372
7373done
7374
7375
7376for ac_func in \
7377 revoke \
7378 _getpty \
7379 getpt \
7380 posix_openpt \
7381 isastream \
7382 setuid \
7383 seteuid \
7384 setreuid \
7385 setresuid \
7386
7387do :
7388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7389ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7390if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7391 cat >>confdefs.h <<_ACEOF
7392#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7393_ACEOF
7394
7395fi
7396done
7397
7398
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7400$as_echo_n "checking for UNIX98 ptys... " >&6; }
7401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h. */
7403#include <stdlib.h>
7404int
7405main ()
7406{
7407grantpt(0);unlockpt(0);ptsname(0);
7408 ;
7409 return 0;
7410}
7411_ACEOF
7412if ac_fn_cxx_try_link "$LINENO"; then :
7413 unix98_pty=yes
7414
7415$as_echo "#define UNIX98_PTY 1" >>confdefs.h
7416
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7418$as_echo "yes" >&6; }
7419else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421$as_echo "no" >&6; }
7422fi
7423rm -f core conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7425
7426if test -z "$unix98_pty"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
7428$as_echo_n "checking for library containing openpty... " >&6; }
7429if ${ac_cv_search_openpty+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431else
7432 ac_func_search_save_LIBS=$LIBS
7433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h. */
7435
7436/* Override any GCC internal prototype to avoid an error.
7437 Use char because int might match the return type of a GCC
7438 builtin and then its argument prototype would still apply. */
7439#ifdef __cplusplus
7440extern "C"
7441#endif
7442char openpty ();
7443int
7444main ()
7445{
7446return openpty ();
7447 ;
7448 return 0;
7449}
7450_ACEOF
7451for ac_lib in '' util; do
7452 if test -z "$ac_lib"; then
7453 ac_res="none required"
7454 else 7433else
7455 ac_res=-l$ac_lib
7456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7457 fi
7458 if ac_fn_cxx_try_link "$LINENO"; then :
7459 ac_cv_search_openpty=$ac_res
7460fi
7461rm -f core conftest.err conftest.$ac_objext \
7462 conftest$ac_exeext
7463 if ${ac_cv_search_openpty+:} false; then :
7464 break
7465fi
7466done
7467if ${ac_cv_search_openpty+:} false; then :
7468
7469else
7470 ac_cv_search_openpty=no
7471fi
7472rm conftest.$ac_ext
7473LIBS=$ac_func_search_save_LIBS
7474fi
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7476$as_echo "$ac_cv_search_openpty" >&6; }
7477ac_res=$ac_cv_search_openpty
7478if test "$ac_res" != no; then :
7479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7480
7481$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7482
7483fi
7484
7485fi
7486
7487
7488
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7490$as_echo_n "checking for tty group... " >&6; }
7491if ${pt_cv_tty_group+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493else
7494 if test "$cross_compiling" = yes; then :
7495 pt_cv_tty_group=no
7496else
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498/* end confdefs.h. */
7499
7500#include <sys/types.h>
7501#include <sys/stat.h>
7502#include <unistd.h>
7503#include <grp.h>
7504
7505int main()
7506{
7507 struct stat st;
7508 struct group *gr;
7509 char *tty;
7510 gr = getgrnam("tty");
7511 tty = ttyname(0);
7512 if (gr != 0
7513 && tty != 0
7514 && (stat(tty, &st)) == 0
7515 && st.st_gid == gr->gr_gid)
7516 return 0;
7517 else
7518 return 1;
7519}
7520_ACEOF
7521if ac_fn_cxx_try_run "$LINENO"; then :
7522 pt_cv_tty_group=yes
7523else
7524 pt_cv_tty_group=no
7525fi
7526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7527 conftest.$ac_objext conftest.beam conftest.$ac_ext
7528fi
7529
7530fi
7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7532$as_echo "$pt_cv_tty_group" >&6; }
7533if test x$pt_cv_tty_group = xyes; then
7534
7535$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7536
7537fi
7538
7539if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then
7540 rxvt_have_xrender=no 7434 rxvt_have_xrender=no
7435fi
7436
7437
7438 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7439if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then :
7440
7441else
7442 rxvt_have_xrender=no
7443fi
7444
7445 LIBS="$save_LIBS"
7446 fi
7447fi
7448
7449if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7541 # Extract the first word of "pkg-config", so it can be a program name with args. 7450 # Extract the first word of "pkg-config", so it can be a program name with args.
7542set dummy pkg-config; ac_word=$2 7451set dummy pkg-config; ac_word=$2
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544$as_echo_n "checking for $ac_word... " >&6; } 7453$as_echo_n "checking for $ac_word... " >&6; }
7545if ${ac_cv_path_PKG_CONFIG+:} false; then : 7454if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7546 $as_echo_n "(cached) " >&6 7455 $as_echo_n "(cached) " >&6
7547else 7456else
7548 case $PKG_CONFIG in 7457 case $PKG_CONFIG in
7549 [\\/]* | ?:[\\/]*) 7458 [\\/]* | ?:[\\/]*)
7550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7459 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578$as_echo "no" >&6; } 7487$as_echo "no" >&6; }
7579fi 7488fi
7580 7489
7581 7490
7582 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then 7491 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
7583 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" 7492 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
7584 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" 7493 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
7585 rxvt_have_xrender=yes 7494 else
7495 # Extract the first word of "xft-config", so it can be a program name with args.
7496set dummy xft-config; ac_word=$2
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498$as_echo_n "checking for $ac_word... " >&6; }
7499if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
7500 $as_echo_n "(cached) " >&6
7501else
7502 case $XFT_CONFIG in
7503 [\\/]* | ?:[\\/]*)
7504 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7505 ;;
7506 *)
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508for as_dir in $PATH
7509do
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 break 2
7517 fi
7518done
7519 done
7520IFS=$as_save_IFS
7586 7521
7522 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7523 ;;
7524esac
7525fi
7526XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7527if test -n "$XFT_CONFIG"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7529$as_echo "$XFT_CONFIG" >&6; }
7530else
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532$as_echo "no" >&6; }
7533fi
7534
7535
7536 if test $XFT_CONFIG != no; then
7537 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7538 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7539 fi
7540 fi
7541
7542 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7543 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7544 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7545 fi
7546
7587 save_LIBS="$LIBS" 7547 save_LIBS="$LIBS"
7588 LIBS="$LIBS $X_LIBS" 7548 LIBS="$LIBS $X_LIBS"
7549 for ac_header in X11/Xft/Xft.h
7550do :
7589 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" 7551 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7590if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then : 7552if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
7553 cat >>confdefs.h <<_ACEOF
7554#define HAVE_X11_XFT_XFT_H 1
7555_ACEOF
7591 7556
7592else 7557else
7593 rxvt_have_xrender=no 7558 support_xft=no
7594fi 7559fi
7595 7560
7561done
7596 7562
7597 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
7598if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes; then : 7564$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
7599 7565if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7600else 7567else
7601 rxvt_have_xrender=no 7568 ac_check_lib_save_LIBS=$LIBS
7602fi 7569LIBS="-lXft $LIBS"
7570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h. */
7603 7572
7573/* Override any GCC internal prototype to avoid an error.
7574 Use char because int might match the return type of a GCC
7575 builtin and then its argument prototype would still apply. */
7576#ifdef __cplusplus
7577extern "C"
7578#endif
7579char XftDrawString32 ();
7580int
7581main ()
7582{
7583return XftDrawString32 ();
7584 ;
7585 return 0;
7586}
7587_ACEOF
7588if ac_fn_cxx_try_link "$LINENO"; then :
7589 ac_cv_lib_Xft_XftDrawString32=yes
7590else
7591 ac_cv_lib_Xft_XftDrawString32=no
7592fi
7593rm -f core conftest.err conftest.$ac_objext \
7594 conftest$ac_exeext conftest.$ac_ext
7595LIBS=$ac_check_lib_save_LIBS
7596fi
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7598$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7599if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then :
7600 :
7601else
7602 support_xft=no
7603fi
7604
7605 for ac_header in fontconfig/fontconfig.h
7606do :
7607 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7608if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
7609 cat >>confdefs.h <<_ACEOF
7610#define HAVE_FONTCONFIG_FONTCONFIG_H 1
7611_ACEOF
7612
7613else
7614 support_xft=no
7615fi
7616
7617done
7618
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7620$as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7621if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7623else
7624 ac_check_lib_save_LIBS=$LIBS
7625LIBS="-lfontconfig $LIBS"
7626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h. */
7628
7629/* Override any GCC internal prototype to avoid an error.
7630 Use char because int might match the return type of a GCC
7631 builtin and then its argument prototype would still apply. */
7632#ifdef __cplusplus
7633extern "C"
7634#endif
7635char FcPatternGet ();
7636int
7637main ()
7638{
7639return FcPatternGet ();
7640 ;
7641 return 0;
7642}
7643_ACEOF
7644if ac_fn_cxx_try_link "$LINENO"; then :
7645 ac_cv_lib_fontconfig_FcPatternGet=yes
7646else
7647 ac_cv_lib_fontconfig_FcPatternGet=no
7648fi
7649rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7651LIBS=$ac_check_lib_save_LIBS
7652fi
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7654$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7655if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then :
7656 :
7657else
7658 support_xft=no
7659fi
7660
7604 LIBS="$save_LIBS" 7661 LIBS="$save_LIBS"
7605 fi
7606fi
7607 7662
7663 if test x$support_xft = xyes; then
7664
7665$as_echo "#define XFT 1" >>confdefs.h
7666
7667 fi
7668fi
7669
7670image_lib=none
7671
7672PIXBUF_CFLAGS=
7673PIXBUF_LIBS=
7674
7608if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then 7675if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
7676 LIBS="$LIBS -lm"
7677
7678$as_echo "#define XRENDER 1" >>confdefs.h
7679
7680
7681 if test x$support_inheritpixmap = xyes; then
7682
7683$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7684
7685 fi
7686
7687 if test x$support_pixbuf = xyes; then
7688 support_pixbuf=no
7609 # Extract the first word of "pkg-config", so it can be a program name with args. 7689 # Extract the first word of "pkg-config", so it can be a program name with args.
7610set dummy pkg-config; ac_word=$2 7690set dummy pkg-config; ac_word=$2
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612$as_echo_n "checking for $ac_word... " >&6; } 7692$as_echo_n "checking for $ac_word... " >&6; }
7613if ${ac_cv_path_PKG_CONFIG+:} false; then : 7693if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7614 $as_echo_n "(cached) " >&6 7694 $as_echo_n "(cached) " >&6
7615else 7695else
7616 case $PKG_CONFIG in 7696 case $PKG_CONFIG in
7617 [\\/]* | ?:[\\/]*) 7697 [\\/]* | ?:[\\/]*)
7618 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7698 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; } 7726$as_echo "no" >&6; }
7647fi 7727fi
7648 7728
7649 7729
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
7731$as_echo_n "checking for gdk-pixbuf... " >&6; }
7650 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 7732 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
7651 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" 7733 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
7652 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 7734 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
7653 else 7735 support_pixbuf=yes
7654 # Extract the first word of "xft-config", so it can be a program name with args.
7655set dummy xft-config; ac_word=$2
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657$as_echo_n "checking for $ac_word... " >&6; }
7658if ${ac_cv_path_XFT_CONFIG+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660else
7661 case $XFT_CONFIG in
7662 [\\/]* | ?:[\\/]*)
7663 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7664 ;;
7665 *)
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667for as_dir in $PATH
7668do
7669 IFS=$as_save_IFS
7670 test -z "$as_dir" && as_dir=.
7671 for ac_exec_ext in '' $ac_executable_extensions; do
7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 break 2
7676 fi 7736 fi
7677done
7678 done
7679IFS=$as_save_IFS
7680 7737
7681 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" 7738 if test x$support_pixbuf = xyes; then
7682 ;;
7683esac
7684fi
7685XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7686if test -n "$XFT_CONFIG"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7688$as_echo "$XFT_CONFIG" >&6; } 7740$as_echo "ok" >&6; }
7689else 7741 image_lib=gdk-pixbuf
7742
7743$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
7744
7745
7746$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
7747
7748 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691$as_echo "no" >&6; } 7750$as_echo "no" >&6; }
7692fi
7693
7694
7695 if test $XFT_CONFIG != no; then
7696 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7697 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7698 fi 7751 fi
7699 fi 7752 fi
7700
7701 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7702 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7703 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7704 fi
7705
7706 save_LIBS="$LIBS"
7707 LIBS="$LIBS $X_LIBS"
7708 for ac_header in X11/Xft/Xft.h
7709do :
7710 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7711if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
7712 cat >>confdefs.h <<_ACEOF
7713#define HAVE_X11_XFT_XFT_H 1
7714_ACEOF
7715
7716else
7717 support_xft=no
7718fi 7753fi
7719 7754
7720done
7721 7755
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
7723$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
7724if ${ac_cv_lib_Xft_XftDrawString32+:} false; then :
7725 $as_echo_n "(cached) " >&6
7726else
7727 ac_check_lib_save_LIBS=$LIBS
7728LIBS="-lXft $LIBS"
7729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730/* end confdefs.h. */
7731 7756
7732/* Override any GCC internal prototype to avoid an error.
7733 Use char because int might match the return type of a GCC
7734 builtin and then its argument prototype would still apply. */
7735#ifdef __cplusplus
7736extern "C"
7737#endif
7738char XftDrawString32 ();
7739int
7740main ()
7741{
7742return XftDrawString32 ();
7743 ;
7744 return 0;
7745}
7746_ACEOF
7747if ac_fn_cxx_try_link "$LINENO"; then :
7748 ac_cv_lib_Xft_XftDrawString32=yes
7749else
7750 ac_cv_lib_Xft_XftDrawString32=no
7751fi
7752rm -f core conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7754LIBS=$ac_check_lib_save_LIBS
7755fi
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7757$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7758if test "x$ac_cv_lib_Xft_XftDrawString32" = xyes; then :
7759 :
7760else
7761 support_xft=no
7762fi
7763 7757
7764 for ac_header in fontconfig/fontconfig.h
7765do :
7766 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7767if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
7768 cat >>confdefs.h <<_ACEOF
7769#define HAVE_FONTCONFIG_FONTCONFIG_H 1
7770_ACEOF
7771
7772else
7773 support_xft=no
7774fi
7775
7776done
7777
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7779$as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7780if ${ac_cv_lib_fontconfig_FcPatternGet+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782else
7783 ac_check_lib_save_LIBS=$LIBS
7784LIBS="-lfontconfig $LIBS"
7785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
7787
7788/* Override any GCC internal prototype to avoid an error.
7789 Use char because int might match the return type of a GCC
7790 builtin and then its argument prototype would still apply. */
7791#ifdef __cplusplus
7792extern "C"
7793#endif
7794char FcPatternGet ();
7795int
7796main ()
7797{
7798return FcPatternGet ();
7799 ;
7800 return 0;
7801}
7802_ACEOF
7803if ac_fn_cxx_try_link "$LINENO"; then :
7804 ac_cv_lib_fontconfig_FcPatternGet=yes
7805else
7806 ac_cv_lib_fontconfig_FcPatternGet=no
7807fi
7808rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
7810LIBS=$ac_check_lib_save_LIBS
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7813$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7814if test "x$ac_cv_lib_fontconfig_FcPatternGet" = xyes; then :
7815 :
7816else
7817 support_xft=no
7818fi
7819
7820 LIBS="$save_LIBS"
7821
7822 if test x$support_xft = xyes; then 7758if test x$support_xdbe = xyes; then
7823 7759
7824$as_echo "#define XFT 1" >>confdefs.h 7760$as_echo "#define ENABLE_XDBE 1" >>confdefs.h
7825 7761
7826 fi
7827fi 7762fi
7828if test x$support_styles = xyes; then 7763if test x$support_styles = xyes; then
7829 7764
7830$as_echo "#define ENABLE_STYLES 1" >>confdefs.h 7765$as_echo "#define ENABLE_STYLES 1" >>confdefs.h
7831 7766
7841 7776
7842fi 7777fi
7843if test x$support_fading = xyes; then 7778if test x$support_fading = xyes; then
7844 7779
7845$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h 7780$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
7846
7847fi
7848if test x$support_inheritpixmap = xyes; then
7849 if test x$rxvt_have_xrender = xyes; then
7850 LIBS="$LIBS -lm"
7851
7852$as_echo "#define XRENDER 1" >>confdefs.h
7853
7854 fi
7855
7856$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7857 7781
7858fi 7782fi
7859if test x$support_keepscrolling = xno; then 7783if test x$support_keepscrolling = xno; then
7860 7784
7861$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h 7785$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7958if test x$support_perl = xyes; then 7882if test x$support_perl = xyes; then
7959 # Extract the first word of "perl5", so it can be a program name with args. 7883 # Extract the first word of "perl5", so it can be a program name with args.
7960set dummy perl5; ac_word=$2 7884set dummy perl5; ac_word=$2
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962$as_echo_n "checking for $ac_word... " >&6; } 7886$as_echo_n "checking for $ac_word... " >&6; }
7963if ${ac_cv_path_PERL+:} false; then : 7887if test "${ac_cv_path_PERL+set}" = set; then :
7964 $as_echo_n "(cached) " >&6 7888 $as_echo_n "(cached) " >&6
7965else 7889else
7966 case $PERL in 7890 case $PERL in
7967 [\\/]* | ?:[\\/]*) 7891 [\\/]* | ?:[\\/]*)
7968 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7892 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7981 fi 7905 fi
7982done 7906done
7983 done 7907 done
7984IFS=$as_save_IFS 7908IFS=$as_save_IFS
7985 7909
7986 ;; 7910 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
7987esac
7988fi
7989PERL=$ac_cv_path_PERL
7990if test -n "$PERL"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7992$as_echo "$PERL" >&6; }
7993else
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }
7996fi
7997
7998
7999 # Extract the first word of "perl", so it can be a program name with args.
8000set dummy perl; ac_word=$2
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002$as_echo_n "checking for $ac_word... " >&6; }
8003if ${ac_cv_path_PERL+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005else
8006 case $PERL in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8009 ;;
8010 *)
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012for as_dir in $PATH
8013do
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8021 fi
8022done
8023 done
8024IFS=$as_save_IFS
8025
8026 ;; 7911 ;;
8027esac 7912esac
8028fi 7913fi
8029PERL=$ac_cv_path_PERL 7914PERL=$ac_cv_path_PERL
8030if test -n "$PERL"; then 7915if test -n "$PERL"; then
8162 t end 8047 t end
8163 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8048 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8164 :end' >>confcache 8049 :end' >>confcache
8165if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8050if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8166 if test -w "$cache_file"; then 8051 if test -w "$cache_file"; then
8167 if test "x$cache_file" != "x/dev/null"; then 8052 test "x$cache_file" != "x/dev/null" &&
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8169$as_echo "$as_me: updating cache $cache_file" >&6;} 8054$as_echo "$as_me: updating cache $cache_file" >&6;}
8170 if test ! -f "$cache_file" || test -h "$cache_file"; then
8171 cat confcache >"$cache_file" 8055 cat confcache >$cache_file
8172 else
8173 case $cache_file in #(
8174 */* | ?:*)
8175 mv -f confcache "$cache_file"$$ &&
8176 mv -f "$cache_file"$$ "$cache_file" ;; #(
8177 *)
8178 mv -f confcache "$cache_file" ;;
8179 esac
8180 fi
8181 fi
8182 else 8056 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8184$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8058$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8185 fi 8059 fi
8186fi 8060fi
8208 8082
8209LTLIBOBJS=$ac_ltlibobjs 8083LTLIBOBJS=$ac_ltlibobjs
8210 8084
8211 8085
8212 8086
8213: "${CONFIG_STATUS=./config.status}" 8087: ${CONFIG_STATUS=./config.status}
8214ac_write_fail=0 8088ac_write_fail=0
8215ac_clean_files_save=$ac_clean_files 8089ac_clean_files_save=$ac_clean_files
8216ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8090ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8218$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8092$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8309# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8183# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8310# splitting by setting IFS to empty value.) 8184# splitting by setting IFS to empty value.)
8311IFS=" "" $as_nl" 8185IFS=" "" $as_nl"
8312 8186
8313# Find who we are. Look in the path if we contain no directory separator. 8187# Find who we are. Look in the path if we contain no directory separator.
8314as_myself=
8315case $0 in #(( 8188case $0 in #((
8316 *[\\/]* ) as_myself=$0 ;; 8189 *[\\/]* ) as_myself=$0 ;;
8317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH 8191for as_dir in $PATH
8319do 8192do
8617# Save the log message, to keep $0 and so on meaningful, and to 8490# Save the log message, to keep $0 and so on meaningful, and to
8618# report actual input values of CONFIG_FILES etc. instead of their 8491# report actual input values of CONFIG_FILES etc. instead of their
8619# values after options handling. 8492# values after options handling.
8620ac_log=" 8493ac_log="
8621This file was extended by $as_me, which was 8494This file was extended by $as_me, which was
8622generated by GNU Autoconf 2.68. Invocation command line was 8495generated by GNU Autoconf 2.67. Invocation command line was
8623 8496
8624 CONFIG_FILES = $CONFIG_FILES 8497 CONFIG_FILES = $CONFIG_FILES
8625 CONFIG_HEADERS = $CONFIG_HEADERS 8498 CONFIG_HEADERS = $CONFIG_HEADERS
8626 CONFIG_LINKS = $CONFIG_LINKS 8499 CONFIG_LINKS = $CONFIG_LINKS
8627 CONFIG_COMMANDS = $CONFIG_COMMANDS 8500 CONFIG_COMMANDS = $CONFIG_COMMANDS
8679_ACEOF 8552_ACEOF
8680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8681ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8554ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8682ac_cs_version="\\ 8555ac_cs_version="\\
8683config.status 8556config.status
8684configured by $0, generated by GNU Autoconf 2.68, 8557configured by $0, generated by GNU Autoconf 2.67,
8685 with options \\"\$ac_cs_config\\" 8558 with options \\"\$ac_cs_config\\"
8686 8559
8687Copyright (C) 2010 Free Software Foundation, Inc. 8560Copyright (C) 2010 Free Software Foundation, Inc.
8688This config.status script is free software; the Free Software Foundation 8561This config.status script is free software; the Free Software Foundation
8689gives unlimited permission to copy, distribute and modify it." 8562gives unlimited permission to copy, distribute and modify it."
8805 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 8678 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8806 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8679 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8807 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 8680 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8808 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 8681 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8809 8682
8810 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 8683 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
8811 esac 8684 esac
8812done 8685done
8813 8686
8814 8687
8815# If the user did not use the arguments to specify the items to instantiate, 8688# If the user did not use the arguments to specify the items to instantiate,
8827# Hook for its removal unless debugging. 8700# Hook for its removal unless debugging.
8828# Note that there is a small window in which the directory will not be cleaned: 8701# Note that there is a small window in which the directory will not be cleaned:
8829# after its creation but before its name has been assigned to `$tmp'. 8702# after its creation but before its name has been assigned to `$tmp'.
8830$debug || 8703$debug ||
8831{ 8704{
8832 tmp= ac_tmp= 8705 tmp=
8833 trap 'exit_status=$? 8706 trap 'exit_status=$?
8834 : "${ac_tmp:=$tmp}"
8835 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 8707 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8836' 0 8708' 0
8837 trap 'as_fn_exit 1' 1 2 13 15 8709 trap 'as_fn_exit 1' 1 2 13 15
8838} 8710}
8839# Create a (secure) tmp directory for tmp files. 8711# Create a (secure) tmp directory for tmp files.
8840 8712
8841{ 8713{
8842 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8714 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8843 test -d "$tmp" 8715 test -n "$tmp" && test -d "$tmp"
8844} || 8716} ||
8845{ 8717{
8846 tmp=./conf$$-$RANDOM 8718 tmp=./conf$$-$RANDOM
8847 (umask 077 && mkdir "$tmp") 8719 (umask 077 && mkdir "$tmp")
8848} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 8720} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8849ac_tmp=$tmp
8850 8721
8851# Set up the scripts for CONFIG_FILES section. 8722# Set up the scripts for CONFIG_FILES section.
8852# No need to generate them if there are no CONFIG_FILES. 8723# No need to generate them if there are no CONFIG_FILES.
8853# This happens for instance with `./config.status config.h'. 8724# This happens for instance with `./config.status config.h'.
8854if test -n "$CONFIG_FILES"; then 8725if test -n "$CONFIG_FILES"; then
8866 ac_cs_awk_cr='\\r' 8737 ac_cs_awk_cr='\\r'
8867else 8738else
8868 ac_cs_awk_cr=$ac_cr 8739 ac_cs_awk_cr=$ac_cr
8869fi 8740fi
8870 8741
8871echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 8742echo 'BEGIN {' >"$tmp/subs1.awk" &&
8872_ACEOF 8743_ACEOF
8873 8744
8874 8745
8875{ 8746{
8876 echo "cat >conf$$subs.awk <<_ACEOF" && 8747 echo "cat >conf$$subs.awk <<_ACEOF" &&
8894 fi 8765 fi
8895done 8766done
8896rm -f conf$$subs.sh 8767rm -f conf$$subs.sh
8897 8768
8898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8899cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 8770cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8900_ACEOF 8771_ACEOF
8901sed -n ' 8772sed -n '
8902h 8773h
8903s/^/S["/; s/!.*/"]=/ 8774s/^/S["/; s/!.*/"]=/
8904p 8775p
8942} 8813}
8943' >>$CONFIG_STATUS || ac_write_fail=1 8814' >>$CONFIG_STATUS || ac_write_fail=1
8944rm -f conf$$subs.awk 8815rm -f conf$$subs.awk
8945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8946_ACAWK 8817_ACAWK
8947cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 8818cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8948 for (key in S) S_is_set[key] = 1 8819 for (key in S) S_is_set[key] = 1
8949 FS = "" 8820 FS = ""
8950 8821
8951} 8822}
8952{ 8823{
8974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8975if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 8846if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8976 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 8847 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8977else 8848else
8978 cat 8849 cat
8979fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 8850fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8980 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 8851 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8981_ACEOF 8852_ACEOF
8982 8853
8983# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 8854# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8984# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 8855# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9008 8879
9009# Set up the scripts for CONFIG_HEADERS section. 8880# Set up the scripts for CONFIG_HEADERS section.
9010# No need to generate them if there are no CONFIG_HEADERS. 8881# No need to generate them if there are no CONFIG_HEADERS.
9011# This happens for instance with `./config.status Makefile'. 8882# This happens for instance with `./config.status Makefile'.
9012if test -n "$CONFIG_HEADERS"; then 8883if test -n "$CONFIG_HEADERS"; then
9013cat >"$ac_tmp/defines.awk" <<\_ACAWK || 8884cat >"$tmp/defines.awk" <<\_ACAWK ||
9014BEGIN { 8885BEGIN {
9015_ACEOF 8886_ACEOF
9016 8887
9017# Transform confdefs.h into an awk script `defines.awk', embedded as 8888# Transform confdefs.h into an awk script `defines.awk', embedded as
9018# here-document in config.status, that substitutes the proper values into 8889# here-document in config.status, that substitutes the proper values into
9020 8891
9021# Create a delimiter string that does not exist in confdefs.h, to ease 8892# Create a delimiter string that does not exist in confdefs.h, to ease
9022# handling of long lines. 8893# handling of long lines.
9023ac_delim='%!_!# ' 8894ac_delim='%!_!# '
9024for ac_last_try in false false :; do 8895for ac_last_try in false false :; do
9025 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 8896 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9026 if test -z "$ac_tt"; then 8897 if test -z "$ac_t"; then
9027 break 8898 break
9028 elif $ac_last_try; then 8899 elif $ac_last_try; then
9029 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 8900 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9030 else 8901 else
9031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9122 case $ac_tag in 8993 case $ac_tag in
9123 :[FHLC]) ac_mode=$ac_tag; continue;; 8994 :[FHLC]) ac_mode=$ac_tag; continue;;
9124 esac 8995 esac
9125 case $ac_mode$ac_tag in 8996 case $ac_mode$ac_tag in
9126 :[FHL]*:*);; 8997 :[FHL]*:*);;
9127 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 8998 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
9128 :[FH]-) ac_tag=-:-;; 8999 :[FH]-) ac_tag=-:-;;
9129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9000 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9130 esac 9001 esac
9131 ac_save_IFS=$IFS 9002 ac_save_IFS=$IFS
9132 IFS=: 9003 IFS=:
9141 :[FH]) 9012 :[FH])
9142 ac_file_inputs= 9013 ac_file_inputs=
9143 for ac_f 9014 for ac_f
9144 do 9015 do
9145 case $ac_f in 9016 case $ac_f in
9146 -) ac_f="$ac_tmp/stdin";; 9017 -) ac_f="$tmp/stdin";;
9147 *) # Look for the file first in the build tree, then in the source tree 9018 *) # Look for the file first in the build tree, then in the source tree
9148 # (if the path is not absolute). The absolute path cannot be DOS-style, 9019 # (if the path is not absolute). The absolute path cannot be DOS-style,
9149 # because $ac_f cannot contain `:'. 9020 # because $ac_f cannot contain `:'.
9150 test -f "$ac_f" || 9021 test -f "$ac_f" ||
9151 case $ac_f in 9022 case $ac_f in
9152 [\\/$]*) false;; 9023 [\\/$]*) false;;
9153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9024 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9154 esac || 9025 esac ||
9155 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9026 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
9156 esac 9027 esac
9157 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9028 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9158 as_fn_append ac_file_inputs " '$ac_f'" 9029 as_fn_append ac_file_inputs " '$ac_f'"
9159 done 9030 done
9160 9031
9176 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9047 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9177 *) ac_sed_conf_input=$configure_input;; 9048 *) ac_sed_conf_input=$configure_input;;
9178 esac 9049 esac
9179 9050
9180 case $ac_tag in 9051 case $ac_tag in
9181 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9052 *:-:* | *:-) cat >"$tmp/stdin" \
9182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9053 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9183 esac 9054 esac
9184 ;; 9055 ;;
9185 esac 9056 esac
9186 9057
9187 ac_dir=`$as_dirname -- "$ac_file" || 9058 ac_dir=`$as_dirname -- "$ac_file" ||
9307s&@abs_builddir@&$ac_abs_builddir&;t t 9178s&@abs_builddir@&$ac_abs_builddir&;t t
9308s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9179s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9309s&@INSTALL@&$ac_INSTALL&;t t 9180s&@INSTALL@&$ac_INSTALL&;t t
9310$ac_datarootdir_hack 9181$ac_datarootdir_hack
9311" 9182"
9312eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 9183eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9313 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9314 9185
9315test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9186test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9316 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9187 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9188 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9318 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9320which seems to be undefined. Please make sure it is defined" >&5 9190which seems to be undefined. Please make sure it is defined" >&5
9321$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9191$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9322which seems to be undefined. Please make sure it is defined" >&2;} 9192which seems to be undefined. Please make sure it is defined" >&2;}
9323 9193
9324 rm -f "$ac_tmp/stdin" 9194 rm -f "$tmp/stdin"
9325 case $ac_file in 9195 case $ac_file in
9326 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9196 -) cat "$tmp/out" && rm -f "$tmp/out";;
9327 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 9197 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9328 esac \ 9198 esac \
9329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9330 ;; 9200 ;;
9331 :H) 9201 :H)
9332 # 9202 #
9333 # CONFIG_HEADER 9203 # CONFIG_HEADER
9334 # 9204 #
9335 if test x"$ac_file" != x-; then 9205 if test x"$ac_file" != x-; then
9336 { 9206 {
9337 $as_echo "/* $configure_input */" \ 9207 $as_echo "/* $configure_input */" \
9338 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 9208 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9339 } >"$ac_tmp/config.h" \ 9209 } >"$tmp/config.h" \
9340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9341 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 9211 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9343$as_echo "$as_me: $ac_file is unchanged" >&6;} 9213$as_echo "$as_me: $ac_file is unchanged" >&6;}
9344 else 9214 else
9345 rm -f "$ac_file" 9215 rm -f "$ac_file"
9346 mv "$ac_tmp/config.h" "$ac_file" \ 9216 mv "$tmp/config.h" "$ac_file" \
9347 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9348 fi 9218 fi
9349 else 9219 else
9350 $as_echo "/* $configure_input */" \ 9220 $as_echo "/* $configure_input */" \
9351 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 9221 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9352 || as_fn_error $? "could not create -" "$LINENO" 5 9222 || as_fn_error $? "could not create -" "$LINENO" 5
9353 fi 9223 fi
9354 ;; 9224 ;;
9355 9225
9356 9226

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines