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

Comparing rxvt-unicode/configure (file contents):
Revision 1.3 by pcg, Thu Dec 18 01:08:05 2003 UTC vs.
Revision 1.4 by pcg, Thu Dec 18 02:07:12 2003 UTC

5194 codesets=all 5194 codesets=all
5195 fi 5195 fi
5196fi 5196fi
5197 5197
5198 5198
5199echo
5200if test x$support_inheritpixmap = xyes; then
5201 support_inheritpixmap=no
5202 echo "******* transparency support disabled, does not work"
5203fi
5204if test x$support_xpm = xyes; then
5205 support_xpm=no
5206 echo "******* pixmap support disabled, does not work"
5207fi
5208if test x$support_graphics = xyes; then
5209 support_graphics=no
5210 echo "******* graphics support disabled, does not work"
5211fi
5212if test x$support_menubar = xyes; then
5213 support_menubar=no
5214 echo "******* menubar support disabled, does not work"
5215fi
5216echo
5217
5199# Check whether --enable-unicode3 or --disable-unicode3 was given. 5218# Check whether --enable-unicode3 or --disable-unicode3 was given.
5200if test "${enable_unicode3+set}" = set; then 5219if test "${enable_unicode3+set}" = set; then
5201 enableval="$enable_unicode3" 5220 enableval="$enable_unicode3"
5202 if test x$enableval = xyes; then 5221 if test x$enableval = xyes; then
5203 support_unicode3=yes 5222 support_unicode3=yes
5628fi 5647fi
5629 5648
5630# Extract the first word of "mv", so it can be a program name with args. 5649# Extract the first word of "mv", so it can be a program name with args.
5631set dummy mv; ac_word=$2 5650set dummy mv; ac_word=$2
5632echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5651echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5633echo "configure:5634: checking for $ac_word" >&5 5652echo "configure:5653: checking for $ac_word" >&5
5634if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then 5653if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
5635 echo $ac_n "(cached) $ac_c" 1>&6 5654 echo $ac_n "(cached) $ac_c" 1>&6
5636else 5655else
5637 case "$MV" in 5656 case "$MV" in
5638 /*) 5657 /*)
5664fi 5683fi
5665 5684
5666# Extract the first word of "rm", so it can be a program name with args. 5685# Extract the first word of "rm", so it can be a program name with args.
5667set dummy rm; ac_word=$2 5686set dummy rm; ac_word=$2
5668echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5669echo "configure:5670: checking for $ac_word" >&5 5688echo "configure:5689: checking for $ac_word" >&5
5670if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then 5689if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6 5690 echo $ac_n "(cached) $ac_c" 1>&6
5672else 5691else
5673 case "$RM" in 5692 case "$RM" in
5674 /*) 5693 /*)
5700fi 5719fi
5701 5720
5702# Extract the first word of "cp", so it can be a program name with args. 5721# Extract the first word of "cp", so it can be a program name with args.
5703set dummy cp; ac_word=$2 5722set dummy cp; ac_word=$2
5704echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5723echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5705echo "configure:5706: checking for $ac_word" >&5 5724echo "configure:5725: checking for $ac_word" >&5
5706if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then 5725if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6 5726 echo $ac_n "(cached) $ac_c" 1>&6
5708else 5727else
5709 case "$CP" in 5728 case "$CP" in
5710 /*) 5729 /*)
5736fi 5755fi
5737 5756
5738# Extract the first word of "ln", so it can be a program name with args. 5757# Extract the first word of "ln", so it can be a program name with args.
5739set dummy ln; ac_word=$2 5758set dummy ln; ac_word=$2
5740echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5759echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5741echo "configure:5742: checking for $ac_word" >&5 5760echo "configure:5761: checking for $ac_word" >&5
5742if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then 5761if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
5743 echo $ac_n "(cached) $ac_c" 1>&6 5762 echo $ac_n "(cached) $ac_c" 1>&6
5744else 5763else
5745 case "$LN" in 5764 case "$LN" in
5746 /*) 5765 /*)
5772fi 5791fi
5773 5792
5774# Extract the first word of "sed", so it can be a program name with args. 5793# Extract the first word of "sed", so it can be a program name with args.
5775set dummy sed; ac_word=$2 5794set dummy sed; ac_word=$2
5776echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5795echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5777echo "configure:5778: checking for $ac_word" >&5 5796echo "configure:5797: checking for $ac_word" >&5
5778if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then 5797if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6 5798 echo $ac_n "(cached) $ac_c" 1>&6
5780else 5799else
5781 case "$SED" in 5800 case "$SED" in
5782 /*) 5801 /*)
5808fi 5827fi
5809 5828
5810# Extract the first word of "echo", so it can be a program name with args. 5829# Extract the first word of "echo", so it can be a program name with args.
5811set dummy echo; ac_word=$2 5830set dummy echo; ac_word=$2
5812echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5813echo "configure:5814: checking for $ac_word" >&5 5832echo "configure:5833: checking for $ac_word" >&5
5814if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then 5833if eval "test \"`echo '$''{'ac_cv_path_ECHO'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6 5834 echo $ac_n "(cached) $ac_c" 1>&6
5816else 5835else
5817 case "$ECHO" in 5836 case "$ECHO" in
5818 /*) 5837 /*)
5844fi 5863fi
5845 5864
5846# Extract the first word of "cmp", so it can be a program name with args. 5865# Extract the first word of "cmp", so it can be a program name with args.
5847set dummy cmp; ac_word=$2 5866set dummy cmp; ac_word=$2
5848echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5867echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5849echo "configure:5850: checking for $ac_word" >&5 5868echo "configure:5869: checking for $ac_word" >&5
5850if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then 5869if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
5851 echo $ac_n "(cached) $ac_c" 1>&6 5870 echo $ac_n "(cached) $ac_c" 1>&6
5852else 5871else
5853 case "$CMP" in 5872 case "$CMP" in
5854 /*) 5873 /*)
5880fi 5899fi
5881 5900
5882# Extract the first word of "tbl", so it can be a program name with args. 5901# Extract the first word of "tbl", so it can be a program name with args.
5883set dummy tbl; ac_word=$2 5902set dummy tbl; ac_word=$2
5884echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5903echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5885echo "configure:5886: checking for $ac_word" >&5 5904echo "configure:5905: checking for $ac_word" >&5
5886if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then 5905if eval "test \"`echo '$''{'ac_cv_path_TBL'+set}'`\" = set"; then
5887 echo $ac_n "(cached) $ac_c" 1>&6 5906 echo $ac_n "(cached) $ac_c" 1>&6
5888else 5907else
5889 case "$TBL" in 5908 case "$TBL" in
5890 /*) 5909 /*)
5920# If we find X, set shell vars x_includes and x_libraries to the 5939# If we find X, set shell vars x_includes and x_libraries to the
5921# paths, otherwise set no_x=yes. 5940# paths, otherwise set no_x=yes.
5922# Uses ac_ vars as temps to allow command line to override cache and checks. 5941# Uses ac_ vars as temps to allow command line to override cache and checks.
5923# --without-x overrides everything else, but does not touch the cache. 5942# --without-x overrides everything else, but does not touch the cache.
5924echo $ac_n "checking for X""... $ac_c" 1>&6 5943echo $ac_n "checking for X""... $ac_c" 1>&6
5925echo "configure:5926: checking for X" >&5 5944echo "configure:5945: checking for X" >&5
5926 5945
5927# Check whether --with-x or --without-x was given. 5946# Check whether --with-x or --without-x was given.
5928if test "${with_x+set}" = set; then 5947if test "${with_x+set}" = set; then
5929 withval="$with_x" 5948 withval="$with_x"
5930 : 5949 :
5982 # Guess where to find include files, by looking for this one X11 .h file. 6001 # Guess where to find include files, by looking for this one X11 .h file.
5983 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 6002 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5984 6003
5985 # First, try using that file with no special directory specified. 6004 # First, try using that file with no special directory specified.
5986cat > conftest.$ac_ext <<EOF 6005cat > conftest.$ac_ext <<EOF
5987#line 5988 "configure" 6006#line 6007 "configure"
5988#include "confdefs.h" 6007#include "confdefs.h"
5989#include <$x_direct_test_include> 6008#include <$x_direct_test_include>
5990EOF 6009EOF
5991ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6010ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5992{ (eval echo configure:5993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6011{ (eval echo configure:6012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5993ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6012ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5994if test -z "$ac_err"; then 6013if test -z "$ac_err"; then
5995 rm -rf conftest* 6014 rm -rf conftest*
5996 # We can compile using X headers with no special include directory. 6015 # We can compile using X headers with no special include directory.
5997ac_x_includes= 6016ac_x_includes=
6056 # See if we find them without any special options. 6075 # See if we find them without any special options.
6057 # Don't add to $LIBS permanently. 6076 # Don't add to $LIBS permanently.
6058 ac_save_LIBS="$LIBS" 6077 ac_save_LIBS="$LIBS"
6059 LIBS="-l$x_direct_test_library $LIBS" 6078 LIBS="-l$x_direct_test_library $LIBS"
6060cat > conftest.$ac_ext <<EOF 6079cat > conftest.$ac_ext <<EOF
6061#line 6062 "configure" 6080#line 6081 "configure"
6062#include "confdefs.h" 6081#include "confdefs.h"
6063 6082
6064int main() { 6083int main() {
6065${x_direct_test_function}() 6084${x_direct_test_function}()
6066; return 0; } 6085; return 0; }
6067EOF 6086EOF
6068if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6087if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6069 rm -rf conftest* 6088 rm -rf conftest*
6070 LIBS="$ac_save_LIBS" 6089 LIBS="$ac_save_LIBS"
6071# We can link X programs with no special library path. 6090# We can link X programs with no special library path.
6072ac_x_libraries= 6091ac_x_libraries=
6073else 6092else
6169 # For Solaris; some versions of Sun CC require a space after -R and 6188 # For Solaris; some versions of Sun CC require a space after -R and
6170 # others require no space. Words are not sufficient . . . . 6189 # others require no space. Words are not sufficient . . . .
6171 case "`(uname -sr) 2>/dev/null`" in 6190 case "`(uname -sr) 2>/dev/null`" in
6172 "SunOS 5"*) 6191 "SunOS 5"*)
6173 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 6192 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6174echo "configure:6175: checking whether -R must be followed by a space" >&5 6193echo "configure:6194: checking whether -R must be followed by a space" >&5
6175 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 6194 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6176 cat > conftest.$ac_ext <<EOF 6195 cat > conftest.$ac_ext <<EOF
6177#line 6178 "configure" 6196#line 6197 "configure"
6178#include "confdefs.h" 6197#include "confdefs.h"
6179 6198
6180int main() { 6199int main() {
6181 6200
6182; return 0; } 6201; return 0; }
6183EOF 6202EOF
6184if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6203if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6185 rm -rf conftest* 6204 rm -rf conftest*
6186 ac_R_nospace=yes 6205 ac_R_nospace=yes
6187else 6206else
6188 echo "configure: failed program was:" >&5 6207 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5 6208 cat conftest.$ac_ext >&5
6195 echo "$ac_t""no" 1>&6 6214 echo "$ac_t""no" 1>&6
6196 X_LIBS="$X_LIBS -R$x_libraries" 6215 X_LIBS="$X_LIBS -R$x_libraries"
6197 else 6216 else
6198 LIBS="$ac_xsave_LIBS -R $x_libraries" 6217 LIBS="$ac_xsave_LIBS -R $x_libraries"
6199 cat > conftest.$ac_ext <<EOF 6218 cat > conftest.$ac_ext <<EOF
6200#line 6201 "configure" 6219#line 6220 "configure"
6201#include "confdefs.h" 6220#include "confdefs.h"
6202 6221
6203int main() { 6222int main() {
6204 6223
6205; return 0; } 6224; return 0; }
6206EOF 6225EOF
6207if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6226if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6208 rm -rf conftest* 6227 rm -rf conftest*
6209 ac_R_space=yes 6228 ac_R_space=yes
6210else 6229else
6211 echo "configure: failed program was:" >&5 6230 echo "configure: failed program was:" >&5
6212 cat conftest.$ac_ext >&5 6231 cat conftest.$ac_ext >&5
6234 else 6253 else
6235 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 6254 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6236 # libraries were built with DECnet support. And karl@cs.umb.edu says 6255 # libraries were built with DECnet support. And karl@cs.umb.edu says
6237 # the Alpha needs dnet_stub (dnet does not exist). 6256 # the Alpha needs dnet_stub (dnet does not exist).
6238 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 6257 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6239echo "configure:6240: checking for dnet_ntoa in -ldnet" >&5 6258echo "configure:6259: checking for dnet_ntoa in -ldnet" >&5
6240ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 6259ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6241if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6260if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6242 echo $ac_n "(cached) $ac_c" 1>&6 6261 echo $ac_n "(cached) $ac_c" 1>&6
6243else 6262else
6244 ac_save_LIBS="$LIBS" 6263 ac_save_LIBS="$LIBS"
6245LIBS="-ldnet $LIBS" 6264LIBS="-ldnet $LIBS"
6246cat > conftest.$ac_ext <<EOF 6265cat > conftest.$ac_ext <<EOF
6247#line 6248 "configure" 6266#line 6267 "configure"
6248#include "confdefs.h" 6267#include "confdefs.h"
6249/* Override any gcc2 internal prototype to avoid an error. */ 6268/* Override any gcc2 internal prototype to avoid an error. */
6250/* We use char because int might match the return type of a gcc2 6269/* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */ 6270 builtin and then its argument prototype would still apply. */
6252char dnet_ntoa(); 6271char dnet_ntoa();
6253 6272
6254int main() { 6273int main() {
6255dnet_ntoa() 6274dnet_ntoa()
6256; return 0; } 6275; return 0; }
6257EOF 6276EOF
6258if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6277if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6259 rm -rf conftest* 6278 rm -rf conftest*
6260 eval "ac_cv_lib_$ac_lib_var=yes" 6279 eval "ac_cv_lib_$ac_lib_var=yes"
6261else 6280else
6262 echo "configure: failed program was:" >&5 6281 echo "configure: failed program was:" >&5
6263 cat conftest.$ac_ext >&5 6282 cat conftest.$ac_ext >&5
6275 echo "$ac_t""no" 1>&6 6294 echo "$ac_t""no" 1>&6
6276fi 6295fi
6277 6296
6278 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6297 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6279 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 6298 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6280echo "configure:6281: checking for dnet_ntoa in -ldnet_stub" >&5 6299echo "configure:6300: checking for dnet_ntoa in -ldnet_stub" >&5
6281ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 6300ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6301if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6 6302 echo $ac_n "(cached) $ac_c" 1>&6
6284else 6303else
6285 ac_save_LIBS="$LIBS" 6304 ac_save_LIBS="$LIBS"
6286LIBS="-ldnet_stub $LIBS" 6305LIBS="-ldnet_stub $LIBS"
6287cat > conftest.$ac_ext <<EOF 6306cat > conftest.$ac_ext <<EOF
6288#line 6289 "configure" 6307#line 6308 "configure"
6289#include "confdefs.h" 6308#include "confdefs.h"
6290/* Override any gcc2 internal prototype to avoid an error. */ 6309/* Override any gcc2 internal prototype to avoid an error. */
6291/* We use char because int might match the return type of a gcc2 6310/* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */ 6311 builtin and then its argument prototype would still apply. */
6293char dnet_ntoa(); 6312char dnet_ntoa();
6294 6313
6295int main() { 6314int main() {
6296dnet_ntoa() 6315dnet_ntoa()
6297; return 0; } 6316; return 0; }
6298EOF 6317EOF
6299if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6318if { (eval echo configure:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6300 rm -rf conftest* 6319 rm -rf conftest*
6301 eval "ac_cv_lib_$ac_lib_var=yes" 6320 eval "ac_cv_lib_$ac_lib_var=yes"
6302else 6321else
6303 echo "configure: failed program was:" >&5 6322 echo "configure: failed program was:" >&5
6304 cat conftest.$ac_ext >&5 6323 cat conftest.$ac_ext >&5
6323 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 6342 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6324 # needs -lnsl. 6343 # needs -lnsl.
6325 # The nsl library prevents programs from opening the X display 6344 # The nsl library prevents programs from opening the X display
6326 # on Irix 5.2, according to dickey@clark.net. 6345 # on Irix 5.2, according to dickey@clark.net.
6327 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 6346 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6328echo "configure:6329: checking for gethostbyname" >&5 6347echo "configure:6348: checking for gethostbyname" >&5
6329if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 6348if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6330 echo $ac_n "(cached) $ac_c" 1>&6 6349 echo $ac_n "(cached) $ac_c" 1>&6
6331else 6350else
6332 cat > conftest.$ac_ext <<EOF 6351 cat > conftest.$ac_ext <<EOF
6333#line 6334 "configure" 6352#line 6353 "configure"
6334#include "confdefs.h" 6353#include "confdefs.h"
6335/* System header to define __stub macros and hopefully few prototypes, 6354/* System header to define __stub macros and hopefully few prototypes,
6336 which can conflict with char gethostbyname(); below. */ 6355 which can conflict with char gethostbyname(); below. */
6337#include <assert.h> 6356#include <assert.h>
6338/* Override any gcc2 internal prototype to avoid an error. */ 6357/* Override any gcc2 internal prototype to avoid an error. */
6351gethostbyname(); 6370gethostbyname();
6352#endif 6371#endif
6353 6372
6354; return 0; } 6373; return 0; }
6355EOF 6374EOF
6356if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6375if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6357 rm -rf conftest* 6376 rm -rf conftest*
6358 eval "ac_cv_func_gethostbyname=yes" 6377 eval "ac_cv_func_gethostbyname=yes"
6359else 6378else
6360 echo "configure: failed program was:" >&5 6379 echo "configure: failed program was:" >&5
6361 cat conftest.$ac_ext >&5 6380 cat conftest.$ac_ext >&5
6372 echo "$ac_t""no" 1>&6 6391 echo "$ac_t""no" 1>&6
6373fi 6392fi
6374 6393
6375 if test $ac_cv_func_gethostbyname = no; then 6394 if test $ac_cv_func_gethostbyname = no; then
6376 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 6395 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6377echo "configure:6378: checking for gethostbyname in -lnsl" >&5 6396echo "configure:6397: checking for gethostbyname in -lnsl" >&5
6378ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 6397ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6379if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6398if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6 6399 echo $ac_n "(cached) $ac_c" 1>&6
6381else 6400else
6382 ac_save_LIBS="$LIBS" 6401 ac_save_LIBS="$LIBS"
6383LIBS="-lnsl $LIBS" 6402LIBS="-lnsl $LIBS"
6384cat > conftest.$ac_ext <<EOF 6403cat > conftest.$ac_ext <<EOF
6385#line 6386 "configure" 6404#line 6405 "configure"
6386#include "confdefs.h" 6405#include "confdefs.h"
6387/* Override any gcc2 internal prototype to avoid an error. */ 6406/* Override any gcc2 internal prototype to avoid an error. */
6388/* We use char because int might match the return type of a gcc2 6407/* We use char because int might match the return type of a gcc2
6389 builtin and then its argument prototype would still apply. */ 6408 builtin and then its argument prototype would still apply. */
6390char gethostbyname(); 6409char gethostbyname();
6391 6410
6392int main() { 6411int main() {
6393gethostbyname() 6412gethostbyname()
6394; return 0; } 6413; return 0; }
6395EOF 6414EOF
6396if { (eval echo configure:6397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6415if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6397 rm -rf conftest* 6416 rm -rf conftest*
6398 eval "ac_cv_lib_$ac_lib_var=yes" 6417 eval "ac_cv_lib_$ac_lib_var=yes"
6399else 6418else
6400 echo "configure: failed program was:" >&5 6419 echo "configure: failed program was:" >&5
6401 cat conftest.$ac_ext >&5 6420 cat conftest.$ac_ext >&5
6421 # on later versions), says simon@lia.di.epfl.ch: it contains 6440 # on later versions), says simon@lia.di.epfl.ch: it contains
6422 # gethostby* variants that don't use the nameserver (or something). 6441 # gethostby* variants that don't use the nameserver (or something).
6423 # -lsocket must be given before -lnsl if both are needed. 6442 # -lsocket must be given before -lnsl if both are needed.
6424 # We assume that if connect needs -lnsl, so does gethostbyname. 6443 # We assume that if connect needs -lnsl, so does gethostbyname.
6425 echo $ac_n "checking for connect""... $ac_c" 1>&6 6444 echo $ac_n "checking for connect""... $ac_c" 1>&6
6426echo "configure:6427: checking for connect" >&5 6445echo "configure:6446: checking for connect" >&5
6427if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 6446if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6428 echo $ac_n "(cached) $ac_c" 1>&6 6447 echo $ac_n "(cached) $ac_c" 1>&6
6429else 6448else
6430 cat > conftest.$ac_ext <<EOF 6449 cat > conftest.$ac_ext <<EOF
6431#line 6432 "configure" 6450#line 6451 "configure"
6432#include "confdefs.h" 6451#include "confdefs.h"
6433/* System header to define __stub macros and hopefully few prototypes, 6452/* System header to define __stub macros and hopefully few prototypes,
6434 which can conflict with char connect(); below. */ 6453 which can conflict with char connect(); below. */
6435#include <assert.h> 6454#include <assert.h>
6436/* Override any gcc2 internal prototype to avoid an error. */ 6455/* Override any gcc2 internal prototype to avoid an error. */
6449connect(); 6468connect();
6450#endif 6469#endif
6451 6470
6452; return 0; } 6471; return 0; }
6453EOF 6472EOF
6454if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6473if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6455 rm -rf conftest* 6474 rm -rf conftest*
6456 eval "ac_cv_func_connect=yes" 6475 eval "ac_cv_func_connect=yes"
6457else 6476else
6458 echo "configure: failed program was:" >&5 6477 echo "configure: failed program was:" >&5
6459 cat conftest.$ac_ext >&5 6478 cat conftest.$ac_ext >&5
6470 echo "$ac_t""no" 1>&6 6489 echo "$ac_t""no" 1>&6
6471fi 6490fi
6472 6491
6473 if test $ac_cv_func_connect = no; then 6492 if test $ac_cv_func_connect = no; then
6474 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 6493 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6475echo "configure:6476: checking for connect in -lsocket" >&5 6494echo "configure:6495: checking for connect in -lsocket" >&5
6476ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 6495ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6477if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6496if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6 6497 echo $ac_n "(cached) $ac_c" 1>&6
6479else 6498else
6480 ac_save_LIBS="$LIBS" 6499 ac_save_LIBS="$LIBS"
6481LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6500LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6482cat > conftest.$ac_ext <<EOF 6501cat > conftest.$ac_ext <<EOF
6483#line 6484 "configure" 6502#line 6503 "configure"
6484#include "confdefs.h" 6503#include "confdefs.h"
6485/* Override any gcc2 internal prototype to avoid an error. */ 6504/* Override any gcc2 internal prototype to avoid an error. */
6486/* We use char because int might match the return type of a gcc2 6505/* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */ 6506 builtin and then its argument prototype would still apply. */
6488char connect(); 6507char connect();
6489 6508
6490int main() { 6509int main() {
6491connect() 6510connect()
6492; return 0; } 6511; return 0; }
6493EOF 6512EOF
6494if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6513if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6495 rm -rf conftest* 6514 rm -rf conftest*
6496 eval "ac_cv_lib_$ac_lib_var=yes" 6515 eval "ac_cv_lib_$ac_lib_var=yes"
6497else 6516else
6498 echo "configure: failed program was:" >&5 6517 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5 6518 cat conftest.$ac_ext >&5
6513 6532
6514 fi 6533 fi
6515 6534
6516 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 6535 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6517 echo $ac_n "checking for remove""... $ac_c" 1>&6 6536 echo $ac_n "checking for remove""... $ac_c" 1>&6
6518echo "configure:6519: checking for remove" >&5 6537echo "configure:6538: checking for remove" >&5
6519if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 6538if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6520 echo $ac_n "(cached) $ac_c" 1>&6 6539 echo $ac_n "(cached) $ac_c" 1>&6
6521else 6540else
6522 cat > conftest.$ac_ext <<EOF 6541 cat > conftest.$ac_ext <<EOF
6523#line 6524 "configure" 6542#line 6543 "configure"
6524#include "confdefs.h" 6543#include "confdefs.h"
6525/* System header to define __stub macros and hopefully few prototypes, 6544/* System header to define __stub macros and hopefully few prototypes,
6526 which can conflict with char remove(); below. */ 6545 which can conflict with char remove(); below. */
6527#include <assert.h> 6546#include <assert.h>
6528/* Override any gcc2 internal prototype to avoid an error. */ 6547/* Override any gcc2 internal prototype to avoid an error. */
6541remove(); 6560remove();
6542#endif 6561#endif
6543 6562
6544; return 0; } 6563; return 0; }
6545EOF 6564EOF
6546if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6565if { (eval echo configure:6566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6547 rm -rf conftest* 6566 rm -rf conftest*
6548 eval "ac_cv_func_remove=yes" 6567 eval "ac_cv_func_remove=yes"
6549else 6568else
6550 echo "configure: failed program was:" >&5 6569 echo "configure: failed program was:" >&5
6551 cat conftest.$ac_ext >&5 6570 cat conftest.$ac_ext >&5
6562 echo "$ac_t""no" 1>&6 6581 echo "$ac_t""no" 1>&6
6563fi 6582fi
6564 6583
6565 if test $ac_cv_func_remove = no; then 6584 if test $ac_cv_func_remove = no; then
6566 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 6585 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6567echo "configure:6568: checking for remove in -lposix" >&5 6586echo "configure:6587: checking for remove in -lposix" >&5
6568ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 6587ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6569if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6588if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6 6589 echo $ac_n "(cached) $ac_c" 1>&6
6571else 6590else
6572 ac_save_LIBS="$LIBS" 6591 ac_save_LIBS="$LIBS"
6573LIBS="-lposix $LIBS" 6592LIBS="-lposix $LIBS"
6574cat > conftest.$ac_ext <<EOF 6593cat > conftest.$ac_ext <<EOF
6575#line 6576 "configure" 6594#line 6595 "configure"
6576#include "confdefs.h" 6595#include "confdefs.h"
6577/* Override any gcc2 internal prototype to avoid an error. */ 6596/* Override any gcc2 internal prototype to avoid an error. */
6578/* We use char because int might match the return type of a gcc2 6597/* We use char because int might match the return type of a gcc2
6579 builtin and then its argument prototype would still apply. */ 6598 builtin and then its argument prototype would still apply. */
6580char remove(); 6599char remove();
6581 6600
6582int main() { 6601int main() {
6583remove() 6602remove()
6584; return 0; } 6603; return 0; }
6585EOF 6604EOF
6586if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6605if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6587 rm -rf conftest* 6606 rm -rf conftest*
6588 eval "ac_cv_lib_$ac_lib_var=yes" 6607 eval "ac_cv_lib_$ac_lib_var=yes"
6589else 6608else
6590 echo "configure: failed program was:" >&5 6609 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5 6610 cat conftest.$ac_ext >&5
6605 6624
6606 fi 6625 fi
6607 6626
6608 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6627 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6609 echo $ac_n "checking for shmat""... $ac_c" 1>&6 6628 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6610echo "configure:6611: checking for shmat" >&5 6629echo "configure:6630: checking for shmat" >&5
6611if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 6630if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6612 echo $ac_n "(cached) $ac_c" 1>&6 6631 echo $ac_n "(cached) $ac_c" 1>&6
6613else 6632else
6614 cat > conftest.$ac_ext <<EOF 6633 cat > conftest.$ac_ext <<EOF
6615#line 6616 "configure" 6634#line 6635 "configure"
6616#include "confdefs.h" 6635#include "confdefs.h"
6617/* System header to define __stub macros and hopefully few prototypes, 6636/* System header to define __stub macros and hopefully few prototypes,
6618 which can conflict with char shmat(); below. */ 6637 which can conflict with char shmat(); below. */
6619#include <assert.h> 6638#include <assert.h>
6620/* Override any gcc2 internal prototype to avoid an error. */ 6639/* Override any gcc2 internal prototype to avoid an error. */
6633shmat(); 6652shmat();
6634#endif 6653#endif
6635 6654
6636; return 0; } 6655; return 0; }
6637EOF 6656EOF
6638if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6657if { (eval echo configure:6658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6639 rm -rf conftest* 6658 rm -rf conftest*
6640 eval "ac_cv_func_shmat=yes" 6659 eval "ac_cv_func_shmat=yes"
6641else 6660else
6642 echo "configure: failed program was:" >&5 6661 echo "configure: failed program was:" >&5
6643 cat conftest.$ac_ext >&5 6662 cat conftest.$ac_ext >&5
6654 echo "$ac_t""no" 1>&6 6673 echo "$ac_t""no" 1>&6
6655fi 6674fi
6656 6675
6657 if test $ac_cv_func_shmat = no; then 6676 if test $ac_cv_func_shmat = no; then
6658 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 6677 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6659echo "configure:6660: checking for shmat in -lipc" >&5 6678echo "configure:6679: checking for shmat in -lipc" >&5
6660ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 6679ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6661if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6680if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6 6681 echo $ac_n "(cached) $ac_c" 1>&6
6663else 6682else
6664 ac_save_LIBS="$LIBS" 6683 ac_save_LIBS="$LIBS"
6665LIBS="-lipc $LIBS" 6684LIBS="-lipc $LIBS"
6666cat > conftest.$ac_ext <<EOF 6685cat > conftest.$ac_ext <<EOF
6667#line 6668 "configure" 6686#line 6687 "configure"
6668#include "confdefs.h" 6687#include "confdefs.h"
6669/* Override any gcc2 internal prototype to avoid an error. */ 6688/* Override any gcc2 internal prototype to avoid an error. */
6670/* We use char because int might match the return type of a gcc2 6689/* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */ 6690 builtin and then its argument prototype would still apply. */
6672char shmat(); 6691char shmat();
6673 6692
6674int main() { 6693int main() {
6675shmat() 6694shmat()
6676; return 0; } 6695; return 0; }
6677EOF 6696EOF
6678if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6697if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6679 rm -rf conftest* 6698 rm -rf conftest*
6680 eval "ac_cv_lib_$ac_lib_var=yes" 6699 eval "ac_cv_lib_$ac_lib_var=yes"
6681else 6700else
6682 echo "configure: failed program was:" >&5 6701 echo "configure: failed program was:" >&5
6683 cat conftest.$ac_ext >&5 6702 cat conftest.$ac_ext >&5
6706 # we get undefined symbols. So assume we have SM if we have ICE. 6725 # we get undefined symbols. So assume we have SM if we have ICE.
6707 # These have to be linked with before -lX11, unlike the other 6726 # These have to be linked with before -lX11, unlike the other
6708 # libraries we check for below, so use a different variable. 6727 # libraries we check for below, so use a different variable.
6709 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 6728 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6710 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 6729 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6711echo "configure:6712: checking for IceConnectionNumber in -lICE" >&5 6730echo "configure:6731: checking for IceConnectionNumber in -lICE" >&5
6712ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 6731ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6713if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6732if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6714 echo $ac_n "(cached) $ac_c" 1>&6 6733 echo $ac_n "(cached) $ac_c" 1>&6
6715else 6734else
6716 ac_save_LIBS="$LIBS" 6735 ac_save_LIBS="$LIBS"
6717LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6736LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6718cat > conftest.$ac_ext <<EOF 6737cat > conftest.$ac_ext <<EOF
6719#line 6720 "configure" 6738#line 6739 "configure"
6720#include "confdefs.h" 6739#include "confdefs.h"
6721/* Override any gcc2 internal prototype to avoid an error. */ 6740/* Override any gcc2 internal prototype to avoid an error. */
6722/* We use char because int might match the return type of a gcc2 6741/* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */ 6742 builtin and then its argument prototype would still apply. */
6724char IceConnectionNumber(); 6743char IceConnectionNumber();
6725 6744
6726int main() { 6745int main() {
6727IceConnectionNumber() 6746IceConnectionNumber()
6728; return 0; } 6747; return 0; }
6729EOF 6748EOF
6730if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6749if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731 rm -rf conftest* 6750 rm -rf conftest*
6732 eval "ac_cv_lib_$ac_lib_var=yes" 6751 eval "ac_cv_lib_$ac_lib_var=yes"
6733else 6752else
6734 echo "configure: failed program was:" >&5 6753 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5 6754 cat conftest.$ac_ext >&5
6763 6782
6764# If we find XPM, set shell vars xpm_includes and xpm_libraries to the 6783# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6765# paths, otherwise set no_xpm=yes. 6784# paths, otherwise set no_xpm=yes.
6766# Uses ac_ vars as temps to allow command line to override cache and checks. 6785# Uses ac_ vars as temps to allow command line to override cache and checks.
6767echo $ac_n "checking for libXpm""... $ac_c" 1>&6 6786echo $ac_n "checking for libXpm""... $ac_c" 1>&6
6768echo "configure:6769: checking for libXpm" >&5 6787echo "configure:6788: checking for libXpm" >&5
6769 6788
6770# Check whether --with-xpm_includes or --without-xpm_includes was given. 6789# Check whether --with-xpm_includes or --without-xpm_includes was given.
6771if test "${with_xpm_includes+set}" = set; then 6790if test "${with_xpm_includes+set}" = set; then
6772 withval="$with_xpm_includes" 6791 withval="$with_xpm_includes"
6773 xpm_includes="$withval" 6792 xpm_includes="$withval"
6816ac_save_CPPFLAGS="$CPPFLAGS" 6835ac_save_CPPFLAGS="$CPPFLAGS"
6817CPPFLAGS="$CPPFLAGS $X_CFLAGS" 6836CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6818 6837
6819 # First, try using that file with no special directory specified. 6838 # First, try using that file with no special directory specified.
6820cat > conftest.$ac_ext <<EOF 6839cat > conftest.$ac_ext <<EOF
6821#line 6822 "configure" 6840#line 6841 "configure"
6822#include "confdefs.h" 6841#include "confdefs.h"
6823#include <X11/xpm.h> 6842#include <X11/xpm.h>
6824EOF 6843EOF
6825ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6826{ (eval echo configure:6827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6845{ (eval echo configure:6846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6827ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6828if test -z "$ac_err"; then 6847if test -z "$ac_err"; then
6829 rm -rf conftest* 6848 rm -rf conftest*
6830 # We can compile using X headers with no special include directory. 6849 # We can compile using X headers with no special include directory.
6831vt_xpm_includes= 6850vt_xpm_includes=
6894 # See if we find them without any special options. 6913 # See if we find them without any special options.
6895 # Don't add to $LIBS permanently. 6914 # Don't add to $LIBS permanently.
6896 ac_save_LIBS="$LIBS" 6915 ac_save_LIBS="$LIBS"
6897 LIBS="$LIBS $X_LIBS -lXpm -lX11" 6916 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6898cat > conftest.$ac_ext <<EOF 6917cat > conftest.$ac_ext <<EOF
6899#line 6900 "configure" 6918#line 6919 "configure"
6900#include "confdefs.h" 6919#include "confdefs.h"
6901 6920
6902int main() { 6921int main() {
6903XpmReadFileToPixmap() 6922XpmReadFileToPixmap()
6904; return 0; } 6923; return 0; }
6905EOF 6924EOF
6906if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6925if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6907 rm -rf conftest* 6926 rm -rf conftest*
6908 LIBS="$ac_save_LIBS" 6927 LIBS="$ac_save_LIBS"
6909# We can link libXpm with no special library path. 6928# We can link libXpm with no special library path.
6910vt_xpm_libraries= 6929vt_xpm_libraries=
6911else 6930else
6985 fi 7004 fi
6986 else 7005 else
6987 vt_xpm_include_X11=no 7006 vt_xpm_include_X11=no
6988 if test -z "$xpm_includes"; then 7007 if test -z "$xpm_includes"; then
6989 cat > conftest.$ac_ext <<EOF 7008 cat > conftest.$ac_ext <<EOF
6990#line 6991 "configure" 7009#line 7010 "configure"
6991#include "confdefs.h" 7010#include "confdefs.h"
6992#include <X11/xpm.h> 7011#include <X11/xpm.h>
6993EOF 7012EOF
6994ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7013ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6995{ (eval echo configure:6996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7014{ (eval echo configure:7015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6996ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7015ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6997if test -z "$ac_err"; then 7016if test -z "$ac_err"; then
6998 rm -rf conftest* 7017 rm -rf conftest*
6999 vt_xpm_include_X11=yes 7018 vt_xpm_include_X11=yes
7000else 7019else
7046 support_xpm=needsmanualspecification 7065 support_xpm=needsmanualspecification
7047 fi 7066 fi
7048fi 7067fi
7049 7068
7050echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 7069echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
7051echo "configure:7052: checking for sys/wait.h that is POSIX.1 compatible" >&5 7070echo "configure:7071: checking for sys/wait.h that is POSIX.1 compatible" >&5
7052if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 7071if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7053 echo $ac_n "(cached) $ac_c" 1>&6 7072 echo $ac_n "(cached) $ac_c" 1>&6
7054else 7073else
7055 cat > conftest.$ac_ext <<EOF 7074 cat > conftest.$ac_ext <<EOF
7056#line 7057 "configure" 7075#line 7076 "configure"
7057#include "confdefs.h" 7076#include "confdefs.h"
7058#include <sys/types.h> 7077#include <sys/types.h>
7059#include <sys/wait.h> 7078#include <sys/wait.h>
7060#ifndef WEXITSTATUS 7079#ifndef WEXITSTATUS
7061#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 7080#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7067int s; 7086int s;
7068wait (&s); 7087wait (&s);
7069s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7088s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7070; return 0; } 7089; return 0; }
7071EOF 7090EOF
7072if { (eval echo configure:7073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7091if { (eval echo configure:7092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7073 rm -rf conftest* 7092 rm -rf conftest*
7074 ac_cv_header_sys_wait_h=yes 7093 ac_cv_header_sys_wait_h=yes
7075else 7094else
7076 echo "configure: failed program was:" >&5 7095 echo "configure: failed program was:" >&5
7077 cat conftest.$ac_ext >&5 7096 cat conftest.$ac_ext >&5
7111 stdint.h \ 7130 stdint.h \
7112 7131
7113do 7132do
7114ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7133ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7115echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7134echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7116echo "configure:7117: checking for $ac_hdr" >&5 7135echo "configure:7136: checking for $ac_hdr" >&5
7117if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7136if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6 7137 echo $ac_n "(cached) $ac_c" 1>&6
7119else 7138else
7120 cat > conftest.$ac_ext <<EOF 7139 cat > conftest.$ac_ext <<EOF
7121#line 7122 "configure" 7140#line 7141 "configure"
7122#include "confdefs.h" 7141#include "confdefs.h"
7123#include <$ac_hdr> 7142#include <$ac_hdr>
7124EOF 7143EOF
7125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7144ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7126{ (eval echo configure:7127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7145{ (eval echo configure:7146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7146ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7128if test -z "$ac_err"; then 7147if test -z "$ac_err"; then
7129 rm -rf conftest* 7148 rm -rf conftest*
7130 eval "ac_cv_header_$ac_safe=yes" 7149 eval "ac_cv_header_$ac_safe=yes"
7131else 7150else
7149fi 7168fi
7150done 7169done
7151 7170
7152 7171
7153echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 7172echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
7154echo "configure:7155: checking whether time.h and sys/time.h may both be included" >&5 7173echo "configure:7174: checking whether time.h and sys/time.h may both be included" >&5
7155if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 7174if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
7156 echo $ac_n "(cached) $ac_c" 1>&6 7175 echo $ac_n "(cached) $ac_c" 1>&6
7157else 7176else
7158 cat > conftest.$ac_ext <<EOF 7177 cat > conftest.$ac_ext <<EOF
7159#line 7160 "configure" 7178#line 7179 "configure"
7160#include "confdefs.h" 7179#include "confdefs.h"
7161#include <sys/types.h> 7180#include <sys/types.h>
7162#include <sys/time.h> 7181#include <sys/time.h>
7163#include <time.h> 7182#include <time.h>
7164int main() { 7183int main() {
7165struct tm *tp; 7184struct tm *tp;
7166; return 0; } 7185; return 0; }
7167EOF 7186EOF
7168if { (eval echo configure:7169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7187if { (eval echo configure:7188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7169 rm -rf conftest* 7188 rm -rf conftest*
7170 ac_cv_header_time=yes 7189 ac_cv_header_time=yes
7171else 7190else
7172 echo "configure: failed program was:" >&5 7191 echo "configure: failed program was:" >&5
7173 cat conftest.$ac_ext >&5 7192 cat conftest.$ac_ext >&5
7185 7204
7186fi 7205fi
7187 7206
7188 7207
7189echo $ac_n "checking whether termios.h and sys/ioctl.h may both be included""... $ac_c" 1>&6 7208echo $ac_n "checking whether termios.h and sys/ioctl.h may both be included""... $ac_c" 1>&6
7190echo "configure:7191: checking whether termios.h and sys/ioctl.h may both be included" >&5 7209echo "configure:7210: checking whether termios.h and sys/ioctl.h may both be included" >&5
7191if eval "test \"`echo '$''{'rxvt_cv_header_sysioctl'+set}'`\" = set"; then 7210if eval "test \"`echo '$''{'rxvt_cv_header_sysioctl'+set}'`\" = set"; then
7192 echo $ac_n "(cached) $ac_c" 1>&6 7211 echo $ac_n "(cached) $ac_c" 1>&6
7193else 7212else
7194 cat > conftest.$ac_ext <<EOF 7213 cat > conftest.$ac_ext <<EOF
7195#line 7196 "configure" 7214#line 7215 "configure"
7196#include "confdefs.h" 7215#include "confdefs.h"
7197#include <stdio.h> 7216#include <stdio.h>
7198#include <sys/ioctl.h> 7217#include <sys/ioctl.h>
7199#ifdef HAVE_TERMIOS_H 7218#ifdef HAVE_TERMIOS_H
7200#include <termios.h> 7219#include <termios.h>
7201#endif 7220#endif
7202int main() { 7221int main() {
7203int a = ECHO; 7222int a = ECHO;
7204; return 0; } 7223; return 0; }
7205EOF 7224EOF
7206if { (eval echo configure:7207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7225if { (eval echo configure:7226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7207 rm -rf conftest* 7226 rm -rf conftest*
7208 rxvt_cv_header_sysioctl=yes 7227 rxvt_cv_header_sysioctl=yes
7209else 7228else
7210 echo "configure: failed program was:" >&5 7229 echo "configure: failed program was:" >&5
7211 cat conftest.$ac_ext >&5 7230 cat conftest.$ac_ext >&5
7227ac_save_CFLAGS=$CFLAGS 7246ac_save_CFLAGS=$CFLAGS
7228ac_save_LIBS=$LIBS 7247ac_save_LIBS=$LIBS
7229CFLAGS="$CFLAGS $X_CFLAGS" 7248CFLAGS="$CFLAGS $X_CFLAGS"
7230LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 7249LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7231echo $ac_n "checking for -rpath dynamic library path recording""... $ac_c" 1>&6 7250echo $ac_n "checking for -rpath dynamic library path recording""... $ac_c" 1>&6
7232echo "configure:7233: checking for -rpath dynamic library path recording" >&5 7251echo "configure:7252: checking for -rpath dynamic library path recording" >&5
7233if eval "test \"`echo '$''{'rxvt_cv_rpath'+set}'`\" = set"; then 7252if eval "test \"`echo '$''{'rxvt_cv_rpath'+set}'`\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6 7253 echo $ac_n "(cached) $ac_c" 1>&6
7235else 7254else
7236 if test "$cross_compiling" = yes; then 7255 if test "$cross_compiling" = yes; then
7237 echo "configure: warning: You may need to check the LIBS line" 1>&2 7256 echo "configure: warning: You may need to check the LIBS line" 1>&2
7238else 7257else
7239 cat > conftest.$ac_ext <<EOF 7258 cat > conftest.$ac_ext <<EOF
7240#line 7241 "configure" 7259#line 7260 "configure"
7241#include "confdefs.h" 7260#include "confdefs.h"
7242 7261
7243main() 7262main()
7244{ 7263{
7245 exit(0); 7264 exit(0);
7246 (void) XOpenDisplay("foobar"); 7265 (void) XOpenDisplay("foobar");
7247} 7266}
7248EOF 7267EOF
7249if { (eval echo configure:7250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7268if { (eval echo configure:7269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7250then 7269then
7251 rxvt_cv_rpath=yes 7270 rxvt_cv_rpath=yes
7252else 7271else
7253 echo "configure: failed program was:" >&5 7272 echo "configure: failed program was:" >&5
7254 cat conftest.$ac_ext >&5 7273 cat conftest.$ac_ext >&5
7263echo "$ac_t""$rxvt_cv_rpath" 1>&6 7282echo "$ac_t""$rxvt_cv_rpath" 1>&6
7264if test x$rxvt_cv_rpath != xyes; then 7283if test x$rxvt_cv_rpath != xyes; then
7265 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' 7284 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7266 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 7285 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7267 echo $ac_n "checking for -R dynamic library path recording""... $ac_c" 1>&6 7286 echo $ac_n "checking for -R dynamic library path recording""... $ac_c" 1>&6
7268echo "configure:7269: checking for -R dynamic library path recording" >&5 7287echo "configure:7288: checking for -R dynamic library path recording" >&5
7269if eval "test \"`echo '$''{'rxvt_cv_R'+set}'`\" = set"; then 7288if eval "test \"`echo '$''{'rxvt_cv_R'+set}'`\" = set"; then
7270 echo $ac_n "(cached) $ac_c" 1>&6 7289 echo $ac_n "(cached) $ac_c" 1>&6
7271else 7290else
7272 if test "$cross_compiling" = yes; then 7291 if test "$cross_compiling" = yes; then
7273 rxvt_cv_R=no 7292 rxvt_cv_R=no
7274else 7293else
7275 cat > conftest.$ac_ext <<EOF 7294 cat > conftest.$ac_ext <<EOF
7276#line 7277 "configure" 7295#line 7296 "configure"
7277#include "confdefs.h" 7296#include "confdefs.h"
7278 7297
7279main() 7298main()
7280{ 7299{
7281 exit(0); 7300 exit(0);
7282 (void) XOpenDisplay("foobar"); 7301 (void) XOpenDisplay("foobar");
7283} 7302}
7284EOF 7303EOF
7285if { (eval echo configure:7286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7304if { (eval echo configure:7305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7286then 7305then
7287 rxvt_cv_R=yes 7306 rxvt_cv_R=yes
7288else 7307else
7289 echo "configure: failed program was:" >&5 7308 echo "configure: failed program was:" >&5
7290 cat conftest.$ac_ext >&5 7309 cat conftest.$ac_ext >&5
7301 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7320 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7302 fi 7321 fi
7303fi 7322fi
7304 7323
7305echo $ac_n "checking for XPointer""... $ac_c" 1>&6 7324echo $ac_n "checking for XPointer""... $ac_c" 1>&6
7306echo "configure:7307: checking for XPointer" >&5 7325echo "configure:7326: checking for XPointer" >&5
7307if eval "test \"`echo '$''{'rxvt_cv_xpointer'+set}'`\" = set"; then 7326if eval "test \"`echo '$''{'rxvt_cv_xpointer'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6 7327 echo $ac_n "(cached) $ac_c" 1>&6
7309else 7328else
7310 cat > conftest.$ac_ext <<EOF 7329 cat > conftest.$ac_ext <<EOF
7311#line 7312 "configure" 7330#line 7331 "configure"
7312#include "confdefs.h" 7331#include "confdefs.h"
7313#include <X11/Xlib.h> 7332#include <X11/Xlib.h>
7314int main() { 7333int main() {
7315XPointer dummy; 7334XPointer dummy;
7316; return 0; } 7335; return 0; }
7317EOF 7336EOF
7318if { (eval echo configure:7319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7337if { (eval echo configure:7338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7319 rm -rf conftest* 7338 rm -rf conftest*
7320 rxvt_cv_xpointer=yes 7339 rxvt_cv_xpointer=yes
7321else 7340else
7322 echo "configure: failed program was:" >&5 7341 echo "configure: failed program was:" >&5
7323 cat conftest.$ac_ext >&5 7342 cat conftest.$ac_ext >&5
7337LIBS=$ac_save_LIBS 7356LIBS=$ac_save_LIBS
7338CFLAGS=$ac_save_CFLAGS 7357CFLAGS=$ac_save_CFLAGS
7339 7358
7340 7359
7341echo $ac_n "checking for working const""... $ac_c" 1>&6 7360echo $ac_n "checking for working const""... $ac_c" 1>&6
7342echo "configure:7343: checking for working const" >&5 7361echo "configure:7362: checking for working const" >&5
7343if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 7362if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
7344 echo $ac_n "(cached) $ac_c" 1>&6 7363 echo $ac_n "(cached) $ac_c" 1>&6
7345else 7364else
7346 cat > conftest.$ac_ext <<EOF 7365 cat > conftest.$ac_ext <<EOF
7347#line 7348 "configure" 7366#line 7367 "configure"
7348#include "confdefs.h" 7367#include "confdefs.h"
7349 7368
7350int main() { 7369int main() {
7351 7370
7352/* Ultrix mips cc rejects this. */ 7371/* Ultrix mips cc rejects this. */
7391 const int foo = 10; 7410 const int foo = 10;
7392} 7411}
7393 7412
7394; return 0; } 7413; return 0; }
7395EOF 7414EOF
7396if { (eval echo configure:7397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7415if { (eval echo configure:7416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7397 rm -rf conftest* 7416 rm -rf conftest*
7398 ac_cv_c_const=yes 7417 ac_cv_c_const=yes
7399else 7418else
7400 echo "configure: failed program was:" >&5 7419 echo "configure: failed program was:" >&5
7401 cat conftest.$ac_ext >&5 7420 cat conftest.$ac_ext >&5
7412EOF 7431EOF
7413 7432
7414fi 7433fi
7415 7434
7416echo $ac_n "checking for inline""... $ac_c" 1>&6 7435echo $ac_n "checking for inline""... $ac_c" 1>&6
7417echo "configure:7418: checking for inline" >&5 7436echo "configure:7437: checking for inline" >&5
7418if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 7437if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
7419 echo $ac_n "(cached) $ac_c" 1>&6 7438 echo $ac_n "(cached) $ac_c" 1>&6
7420else 7439else
7421 ac_cv_c_inline=no 7440 ac_cv_c_inline=no
7422for ac_kw in inline __inline__ __inline; do 7441for ac_kw in inline __inline__ __inline; do
7423 cat > conftest.$ac_ext <<EOF 7442 cat > conftest.$ac_ext <<EOF
7424#line 7425 "configure" 7443#line 7444 "configure"
7425#include "confdefs.h" 7444#include "confdefs.h"
7426 7445
7427int main() { 7446int main() {
7428} $ac_kw foo() { 7447} $ac_kw foo() {
7429; return 0; } 7448; return 0; }
7430EOF 7449EOF
7431if { (eval echo configure:7432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7450if { (eval echo configure:7451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7432 rm -rf conftest* 7451 rm -rf conftest*
7433 ac_cv_c_inline=$ac_kw; break 7452 ac_cv_c_inline=$ac_kw; break
7434else 7453else
7435 echo "configure: failed program was:" >&5 7454 echo "configure: failed program was:" >&5
7436 cat conftest.$ac_ext >&5 7455 cat conftest.$ac_ext >&5
7454esac 7473esac
7455 7474
7456 7475
7457 7476
7458echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 7477echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
7459echo "configure:7460: checking for ANSI C header files" >&5 7478echo "configure:7479: checking for ANSI C header files" >&5
7460if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 7479if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7461 echo $ac_n "(cached) $ac_c" 1>&6 7480 echo $ac_n "(cached) $ac_c" 1>&6
7462else 7481else
7463 cat > conftest.$ac_ext <<EOF 7482 cat > conftest.$ac_ext <<EOF
7464#line 7465 "configure" 7483#line 7484 "configure"
7465#include "confdefs.h" 7484#include "confdefs.h"
7466#include <stdlib.h> 7485#include <stdlib.h>
7467#include <stdarg.h> 7486#include <stdarg.h>
7468#include <string.h> 7487#include <string.h>
7469#include <float.h> 7488#include <float.h>
7470EOF 7489EOF
7471ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7490ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7472{ (eval echo configure:7473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7491{ (eval echo configure:7492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7473ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7492ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7474if test -z "$ac_err"; then 7493if test -z "$ac_err"; then
7475 rm -rf conftest* 7494 rm -rf conftest*
7476 ac_cv_header_stdc=yes 7495 ac_cv_header_stdc=yes
7477else 7496else
7484rm -f conftest* 7503rm -f conftest*
7485 7504
7486if test $ac_cv_header_stdc = yes; then 7505if test $ac_cv_header_stdc = yes; then
7487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7488cat > conftest.$ac_ext <<EOF 7507cat > conftest.$ac_ext <<EOF
7489#line 7490 "configure" 7508#line 7509 "configure"
7490#include "confdefs.h" 7509#include "confdefs.h"
7491#include <string.h> 7510#include <string.h>
7492EOF 7511EOF
7493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7494 egrep "memchr" >/dev/null 2>&1; then 7513 egrep "memchr" >/dev/null 2>&1; then
7502fi 7521fi
7503 7522
7504if test $ac_cv_header_stdc = yes; then 7523if test $ac_cv_header_stdc = yes; then
7505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7506cat > conftest.$ac_ext <<EOF 7525cat > conftest.$ac_ext <<EOF
7507#line 7508 "configure" 7526#line 7527 "configure"
7508#include "confdefs.h" 7527#include "confdefs.h"
7509#include <stdlib.h> 7528#include <stdlib.h>
7510EOF 7529EOF
7511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7512 egrep "free" >/dev/null 2>&1; then 7531 egrep "free" >/dev/null 2>&1; then
7523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7524if test "$cross_compiling" = yes; then 7543if test "$cross_compiling" = yes; then
7525 : 7544 :
7526else 7545else
7527 cat > conftest.$ac_ext <<EOF 7546 cat > conftest.$ac_ext <<EOF
7528#line 7529 "configure" 7547#line 7548 "configure"
7529#include "confdefs.h" 7548#include "confdefs.h"
7530#include <ctype.h> 7549#include <ctype.h>
7531#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7550#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7532#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7551#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7533#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7552#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7534int main () { int i; for (i = 0; i < 256; i++) 7553int main () { int i; for (i = 0; i < 256; i++)
7535if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 7554if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7536exit (0); } 7555exit (0); }
7537 7556
7538EOF 7557EOF
7539if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7558if { (eval echo configure:7559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7540then 7559then
7541 : 7560 :
7542else 7561else
7543 echo "configure: failed program was:" >&5 7562 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5 7563 cat conftest.$ac_ext >&5
7558EOF 7577EOF
7559 7578
7560fi 7579fi
7561 7580
7562echo $ac_n "checking for mode_t""... $ac_c" 1>&6 7581echo $ac_n "checking for mode_t""... $ac_c" 1>&6
7563echo "configure:7564: checking for mode_t" >&5 7582echo "configure:7583: checking for mode_t" >&5
7564if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then 7583if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6 7584 echo $ac_n "(cached) $ac_c" 1>&6
7566else 7585else
7567 cat > conftest.$ac_ext <<EOF 7586 cat > conftest.$ac_ext <<EOF
7568#line 7569 "configure" 7587#line 7588 "configure"
7569#include "confdefs.h" 7588#include "confdefs.h"
7570#include <sys/types.h> 7589#include <sys/types.h>
7571#if STDC_HEADERS 7590#if STDC_HEADERS
7572#include <stdlib.h> 7591#include <stdlib.h>
7573#include <stddef.h> 7592#include <stddef.h>
7591EOF 7610EOF
7592 7611
7593fi 7612fi
7594 7613
7595echo $ac_n "checking for pid_t""... $ac_c" 1>&6 7614echo $ac_n "checking for pid_t""... $ac_c" 1>&6
7596echo "configure:7597: checking for pid_t" >&5 7615echo "configure:7616: checking for pid_t" >&5
7597if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 7616if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
7598 echo $ac_n "(cached) $ac_c" 1>&6 7617 echo $ac_n "(cached) $ac_c" 1>&6
7599else 7618else
7600 cat > conftest.$ac_ext <<EOF 7619 cat > conftest.$ac_ext <<EOF
7601#line 7602 "configure" 7620#line 7621 "configure"
7602#include "confdefs.h" 7621#include "confdefs.h"
7603#include <sys/types.h> 7622#include <sys/types.h>
7604#if STDC_HEADERS 7623#if STDC_HEADERS
7605#include <stdlib.h> 7624#include <stdlib.h>
7606#include <stddef.h> 7625#include <stddef.h>
7624EOF 7643EOF
7625 7644
7626fi 7645fi
7627 7646
7628echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 7647echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
7629echo "configure:7630: checking for uid_t in sys/types.h" >&5 7648echo "configure:7649: checking for uid_t in sys/types.h" >&5
7630if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 7649if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6 7650 echo $ac_n "(cached) $ac_c" 1>&6
7632else 7651else
7633 cat > conftest.$ac_ext <<EOF 7652 cat > conftest.$ac_ext <<EOF
7634#line 7635 "configure" 7653#line 7654 "configure"
7635#include "confdefs.h" 7654#include "confdefs.h"
7636#include <sys/types.h> 7655#include <sys/types.h>
7637EOF 7656EOF
7638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7639 egrep "uid_t" >/dev/null 2>&1; then 7658 egrep "uid_t" >/dev/null 2>&1; then
7660fi 7679fi
7661 7680
7662 7681
7663 7682
7664echo $ac_n "checking size of char""... $ac_c" 1>&6 7683echo $ac_n "checking size of char""... $ac_c" 1>&6
7665echo "configure:7666: checking size of char" >&5 7684echo "configure:7685: checking size of char" >&5
7666if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 7685if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
7667 echo $ac_n "(cached) $ac_c" 1>&6 7686 echo $ac_n "(cached) $ac_c" 1>&6
7668else 7687else
7669 if test "$cross_compiling" = yes; then 7688 if test "$cross_compiling" = yes; then
7670 ac_cv_sizeof_char=1 7689 ac_cv_sizeof_char=1
7671else 7690else
7672 cat > conftest.$ac_ext <<EOF 7691 cat > conftest.$ac_ext <<EOF
7673#line 7674 "configure" 7692#line 7693 "configure"
7674#include "confdefs.h" 7693#include "confdefs.h"
7675#include <stdio.h> 7694#include <stdio.h>
7676#include <sys/types.h> 7695#include <sys/types.h>
7677main() 7696main()
7678{ 7697{
7680 if (!f) exit(1); 7699 if (!f) exit(1);
7681 fprintf(f, "%d\n", sizeof(char)); 7700 fprintf(f, "%d\n", sizeof(char));
7682 exit(0); 7701 exit(0);
7683} 7702}
7684EOF 7703EOF
7685if { (eval echo configure:7686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7704if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7686then 7705then
7687 ac_cv_sizeof_char=`cat conftestval` 7706 ac_cv_sizeof_char=`cat conftestval`
7688else 7707else
7689 echo "configure: failed program was:" >&5 7708 echo "configure: failed program was:" >&5
7690 cat conftest.$ac_ext >&5 7709 cat conftest.$ac_ext >&5
7700#define SIZEOF_CHAR $ac_cv_sizeof_char 7719#define SIZEOF_CHAR $ac_cv_sizeof_char
7701EOF 7720EOF
7702 7721
7703 7722
7704echo $ac_n "checking size of short""... $ac_c" 1>&6 7723echo $ac_n "checking size of short""... $ac_c" 1>&6
7705echo "configure:7706: checking size of short" >&5 7724echo "configure:7725: checking size of short" >&5
7706if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 7725if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
7707 echo $ac_n "(cached) $ac_c" 1>&6 7726 echo $ac_n "(cached) $ac_c" 1>&6
7708else 7727else
7709 if test "$cross_compiling" = yes; then 7728 if test "$cross_compiling" = yes; then
7710 ac_cv_sizeof_short=2 7729 ac_cv_sizeof_short=2
7711else 7730else
7712 cat > conftest.$ac_ext <<EOF 7731 cat > conftest.$ac_ext <<EOF
7713#line 7714 "configure" 7732#line 7733 "configure"
7714#include "confdefs.h" 7733#include "confdefs.h"
7715#include <stdio.h> 7734#include <stdio.h>
7716#include <sys/types.h> 7735#include <sys/types.h>
7717main() 7736main()
7718{ 7737{
7720 if (!f) exit(1); 7739 if (!f) exit(1);
7721 fprintf(f, "%d\n", sizeof(short)); 7740 fprintf(f, "%d\n", sizeof(short));
7722 exit(0); 7741 exit(0);
7723} 7742}
7724EOF 7743EOF
7725if { (eval echo configure:7726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7744if { (eval echo configure:7745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7726then 7745then
7727 ac_cv_sizeof_short=`cat conftestval` 7746 ac_cv_sizeof_short=`cat conftestval`
7728else 7747else
7729 echo "configure: failed program was:" >&5 7748 echo "configure: failed program was:" >&5
7730 cat conftest.$ac_ext >&5 7749 cat conftest.$ac_ext >&5
7740#define SIZEOF_SHORT $ac_cv_sizeof_short 7759#define SIZEOF_SHORT $ac_cv_sizeof_short
7741EOF 7760EOF
7742 7761
7743 7762
7744echo $ac_n "checking size of int""... $ac_c" 1>&6 7763echo $ac_n "checking size of int""... $ac_c" 1>&6
7745echo "configure:7746: checking size of int" >&5 7764echo "configure:7765: checking size of int" >&5
7746if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 7765if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
7747 echo $ac_n "(cached) $ac_c" 1>&6 7766 echo $ac_n "(cached) $ac_c" 1>&6
7748else 7767else
7749 if test "$cross_compiling" = yes; then 7768 if test "$cross_compiling" = yes; then
7750 ac_cv_sizeof_int=4 7769 ac_cv_sizeof_int=4
7751else 7770else
7752 cat > conftest.$ac_ext <<EOF 7771 cat > conftest.$ac_ext <<EOF
7753#line 7754 "configure" 7772#line 7773 "configure"
7754#include "confdefs.h" 7773#include "confdefs.h"
7755#include <stdio.h> 7774#include <stdio.h>
7756#include <sys/types.h> 7775#include <sys/types.h>
7757main() 7776main()
7758{ 7777{
7760 if (!f) exit(1); 7779 if (!f) exit(1);
7761 fprintf(f, "%d\n", sizeof(int)); 7780 fprintf(f, "%d\n", sizeof(int));
7762 exit(0); 7781 exit(0);
7763} 7782}
7764EOF 7783EOF
7765if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7784if { (eval echo configure:7785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7766then 7785then
7767 ac_cv_sizeof_int=`cat conftestval` 7786 ac_cv_sizeof_int=`cat conftestval`
7768else 7787else
7769 echo "configure: failed program was:" >&5 7788 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5 7789 cat conftest.$ac_ext >&5
7780#define SIZEOF_INT $ac_cv_sizeof_int 7799#define SIZEOF_INT $ac_cv_sizeof_int
7781EOF 7800EOF
7782 7801
7783 7802
7784echo $ac_n "checking size of long""... $ac_c" 1>&6 7803echo $ac_n "checking size of long""... $ac_c" 1>&6
7785echo "configure:7786: checking size of long" >&5 7804echo "configure:7805: checking size of long" >&5
7786if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 7805if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6 7806 echo $ac_n "(cached) $ac_c" 1>&6
7788else 7807else
7789 if test "$cross_compiling" = yes; then 7808 if test "$cross_compiling" = yes; then
7790 ac_cv_sizeof_long=4 7809 ac_cv_sizeof_long=4
7791else 7810else
7792 cat > conftest.$ac_ext <<EOF 7811 cat > conftest.$ac_ext <<EOF
7793#line 7794 "configure" 7812#line 7813 "configure"
7794#include "confdefs.h" 7813#include "confdefs.h"
7795#include <stdio.h> 7814#include <stdio.h>
7796#include <sys/types.h> 7815#include <sys/types.h>
7797main() 7816main()
7798{ 7817{
7800 if (!f) exit(1); 7819 if (!f) exit(1);
7801 fprintf(f, "%d\n", sizeof(long)); 7820 fprintf(f, "%d\n", sizeof(long));
7802 exit(0); 7821 exit(0);
7803} 7822}
7804EOF 7823EOF
7805if { (eval echo configure:7806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7824if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7806then 7825then
7807 ac_cv_sizeof_long=`cat conftestval` 7826 ac_cv_sizeof_long=`cat conftestval`
7808else 7827else
7809 echo "configure: failed program was:" >&5 7828 echo "configure: failed program was:" >&5
7810 cat conftest.$ac_ext >&5 7829 cat conftest.$ac_ext >&5
7820#define SIZEOF_LONG $ac_cv_sizeof_long 7839#define SIZEOF_LONG $ac_cv_sizeof_long
7821EOF 7840EOF
7822 7841
7823 7842
7824echo $ac_n "checking size of long long""... $ac_c" 1>&6 7843echo $ac_n "checking size of long long""... $ac_c" 1>&6
7825echo "configure:7826: checking size of long long" >&5 7844echo "configure:7845: checking size of long long" >&5
7826if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then 7845if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
7827 echo $ac_n "(cached) $ac_c" 1>&6 7846 echo $ac_n "(cached) $ac_c" 1>&6
7828else 7847else
7829 if test "$cross_compiling" = yes; then 7848 if test "$cross_compiling" = yes; then
7830 ac_cv_sizeof_long_long=8 7849 ac_cv_sizeof_long_long=8
7831else 7850else
7832 cat > conftest.$ac_ext <<EOF 7851 cat > conftest.$ac_ext <<EOF
7833#line 7834 "configure" 7852#line 7853 "configure"
7834#include "confdefs.h" 7853#include "confdefs.h"
7835#include <stdio.h> 7854#include <stdio.h>
7836#include <sys/types.h> 7855#include <sys/types.h>
7837main() 7856main()
7838{ 7857{
7840 if (!f) exit(1); 7859 if (!f) exit(1);
7841 fprintf(f, "%d\n", sizeof(long long)); 7860 fprintf(f, "%d\n", sizeof(long long));
7842 exit(0); 7861 exit(0);
7843} 7862}
7844EOF 7863EOF
7845if { (eval echo configure:7846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7864if { (eval echo configure:7865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7846then 7865then
7847 ac_cv_sizeof_long_long=`cat conftestval` 7866 ac_cv_sizeof_long_long=`cat conftestval`
7848else 7867else
7849 echo "configure: failed program was:" >&5 7868 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5 7869 cat conftest.$ac_ext >&5
7860#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 7879#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7861EOF 7880EOF
7862 7881
7863 7882
7864echo $ac_n "checking size of int *""... $ac_c" 1>&6 7883echo $ac_n "checking size of int *""... $ac_c" 1>&6
7865echo "configure:7866: checking size of int *" >&5 7884echo "configure:7885: checking size of int *" >&5
7866if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then 7885if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6 7886 echo $ac_n "(cached) $ac_c" 1>&6
7868else 7887else
7869 if test "$cross_compiling" = yes; then 7888 if test "$cross_compiling" = yes; then
7870 ac_cv_sizeof_int_p=4 7889 ac_cv_sizeof_int_p=4
7871else 7890else
7872 cat > conftest.$ac_ext <<EOF 7891 cat > conftest.$ac_ext <<EOF
7873#line 7874 "configure" 7892#line 7893 "configure"
7874#include "confdefs.h" 7893#include "confdefs.h"
7875#include <stdio.h> 7894#include <stdio.h>
7876#include <sys/types.h> 7895#include <sys/types.h>
7877main() 7896main()
7878{ 7897{
7880 if (!f) exit(1); 7899 if (!f) exit(1);
7881 fprintf(f, "%d\n", sizeof(int *)); 7900 fprintf(f, "%d\n", sizeof(int *));
7882 exit(0); 7901 exit(0);
7883} 7902}
7884EOF 7903EOF
7885if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7904if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7886then 7905then
7887 ac_cv_sizeof_int_p=`cat conftestval` 7906 ac_cv_sizeof_int_p=`cat conftestval`
7888else 7907else
7889 echo "configure: failed program was:" >&5 7908 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5 7909 cat conftest.$ac_ext >&5
7902 7921
7903 7922
7904 7923
7905 7924
7906echo $ac_n "checking for int16_t""... $ac_c" 1>&6 7925echo $ac_n "checking for int16_t""... $ac_c" 1>&6
7907echo "configure:7908: checking for int16_t" >&5 7926echo "configure:7927: checking for int16_t" >&5
7908if eval "test \"`echo '$''{'rxvt_cv_int16_t'+set}'`\" = set"; then 7927if eval "test \"`echo '$''{'rxvt_cv_int16_t'+set}'`\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6 7928 echo $ac_n "(cached) $ac_c" 1>&6
7910else 7929else
7911 cat > conftest.$ac_ext <<EOF 7930 cat > conftest.$ac_ext <<EOF
7912#line 7913 "configure" 7931#line 7932 "configure"
7913#include "confdefs.h" 7932#include "confdefs.h"
7914#include <stdint.h> 7933#include <stdint.h>
7915int main() { 7934int main() {
7916int16_t dummy; 7935int16_t dummy;
7917; return 0; } 7936; return 0; }
7918EOF 7937EOF
7919if { (eval echo configure:7920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7938if { (eval echo configure:7939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7920 rm -rf conftest* 7939 rm -rf conftest*
7921 rxvt_cv_int16_t=yes 7940 rxvt_cv_int16_t=yes
7922else 7941else
7923 echo "configure: failed program was:" >&5 7942 echo "configure: failed program was:" >&5
7924 cat conftest.$ac_ext >&5 7943 cat conftest.$ac_ext >&5
7958 rxvt_int16_typedef="/* typedef short int16_t; */" 7977 rxvt_int16_typedef="/* typedef short int16_t; */"
7959 fi 7978 fi
7960fi 7979fi
7961 7980
7962echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 7981echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
7963echo "configure:7964: checking for uint16_t" >&5 7982echo "configure:7983: checking for uint16_t" >&5
7964if eval "test \"`echo '$''{'rxvt_cv_uint16_t'+set}'`\" = set"; then 7983if eval "test \"`echo '$''{'rxvt_cv_uint16_t'+set}'`\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6 7984 echo $ac_n "(cached) $ac_c" 1>&6
7966else 7985else
7967 cat > conftest.$ac_ext <<EOF 7986 cat > conftest.$ac_ext <<EOF
7968#line 7969 "configure" 7987#line 7988 "configure"
7969#include "confdefs.h" 7988#include "confdefs.h"
7970#include <stdint.h> 7989#include <stdint.h>
7971int main() { 7990int main() {
7972uint16_t dummy; 7991uint16_t dummy;
7973; return 0; } 7992; return 0; }
7974EOF 7993EOF
7975if { (eval echo configure:7976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7994if { (eval echo configure:7995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7976 rm -rf conftest* 7995 rm -rf conftest*
7977 rxvt_cv_uint16_t=yes 7996 rxvt_cv_uint16_t=yes
7978else 7997else
7979 echo "configure: failed program was:" >&5 7998 echo "configure: failed program was:" >&5
7980 cat conftest.$ac_ext >&5 7999 cat conftest.$ac_ext >&5
8014 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" 8033 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
8015 fi 8034 fi
8016fi 8035fi
8017 8036
8018echo $ac_n "checking for int32_t""... $ac_c" 1>&6 8037echo $ac_n "checking for int32_t""... $ac_c" 1>&6
8019echo "configure:8020: checking for int32_t" >&5 8038echo "configure:8039: checking for int32_t" >&5
8020if eval "test \"`echo '$''{'rxvt_cv_int32_t'+set}'`\" = set"; then 8039if eval "test \"`echo '$''{'rxvt_cv_int32_t'+set}'`\" = set"; then
8021 echo $ac_n "(cached) $ac_c" 1>&6 8040 echo $ac_n "(cached) $ac_c" 1>&6
8022else 8041else
8023 cat > conftest.$ac_ext <<EOF 8042 cat > conftest.$ac_ext <<EOF
8024#line 8025 "configure" 8043#line 8044 "configure"
8025#include "confdefs.h" 8044#include "confdefs.h"
8026#include <stdint.h> 8045#include <stdint.h>
8027int main() { 8046int main() {
8028int32_t dummy; 8047int32_t dummy;
8029; return 0; } 8048; return 0; }
8030EOF 8049EOF
8031if { (eval echo configure:8032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8050if { (eval echo configure:8051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8032 rm -rf conftest* 8051 rm -rf conftest*
8033 rxvt_cv_int32_t=yes 8052 rxvt_cv_int32_t=yes
8034else 8053else
8035 echo "configure: failed program was:" >&5 8054 echo "configure: failed program was:" >&5
8036 cat conftest.$ac_ext >&5 8055 cat conftest.$ac_ext >&5
8070 rxvt_int32_typedef="/* typedef int int32_t; */" 8089 rxvt_int32_typedef="/* typedef int int32_t; */"
8071 fi 8090 fi
8072fi 8091fi
8073 8092
8074echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 8093echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
8075echo "configure:8076: checking for uint32_t" >&5 8094echo "configure:8095: checking for uint32_t" >&5
8076if eval "test \"`echo '$''{'rxvt_cv_uint32_t'+set}'`\" = set"; then 8095if eval "test \"`echo '$''{'rxvt_cv_uint32_t'+set}'`\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6 8096 echo $ac_n "(cached) $ac_c" 1>&6
8078else 8097else
8079 cat > conftest.$ac_ext <<EOF 8098 cat > conftest.$ac_ext <<EOF
8080#line 8081 "configure" 8099#line 8100 "configure"
8081#include "confdefs.h" 8100#include "confdefs.h"
8082#include <stdint.h> 8101#include <stdint.h>
8083int main() { 8102int main() {
8084uint32_t dummy; 8103uint32_t dummy;
8085; return 0; } 8104; return 0; }
8086EOF 8105EOF
8087if { (eval echo configure:8088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8106if { (eval echo configure:8107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8088 rm -rf conftest* 8107 rm -rf conftest*
8089 rxvt_cv_uint32_t=yes 8108 rxvt_cv_uint32_t=yes
8090else 8109else
8091 echo "configure: failed program was:" >&5 8110 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5 8111 cat conftest.$ac_ext >&5
8146fi 8165fi
8147 8166
8148 8167
8149 8168
8150echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 8169echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8151echo "configure:8152: checking return type of signal handlers" >&5 8170echo "configure:8171: checking return type of signal handlers" >&5
8152if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 8171if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8153 echo $ac_n "(cached) $ac_c" 1>&6 8172 echo $ac_n "(cached) $ac_c" 1>&6
8154else 8173else
8155 cat > conftest.$ac_ext <<EOF 8174 cat > conftest.$ac_ext <<EOF
8156#line 8157 "configure" 8175#line 8176 "configure"
8157#include "confdefs.h" 8176#include "confdefs.h"
8158#include <sys/types.h> 8177#include <sys/types.h>
8159#include <signal.h> 8178#include <signal.h>
8160#ifdef signal 8179#ifdef signal
8161#undef signal 8180#undef signal
8168 8187
8169int main() { 8188int main() {
8170int i; 8189int i;
8171; return 0; } 8190; return 0; }
8172EOF 8191EOF
8173if { (eval echo configure:8174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8192if { (eval echo configure:8193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8174 rm -rf conftest* 8193 rm -rf conftest*
8175 ac_cv_type_signal=void 8194 ac_cv_type_signal=void
8176else 8195else
8177 echo "configure: failed program was:" >&5 8196 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5 8197 cat conftest.$ac_ext >&5
8214 updwtmp \ 8233 updwtmp \
8215 ttyslot \ 8234 ttyslot \
8216 8235
8217do 8236do
8218echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8237echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8219echo "configure:8220: checking for $ac_func" >&5 8238echo "configure:8239: checking for $ac_func" >&5
8220if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8239if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8221 echo $ac_n "(cached) $ac_c" 1>&6 8240 echo $ac_n "(cached) $ac_c" 1>&6
8222else 8241else
8223 cat > conftest.$ac_ext <<EOF 8242 cat > conftest.$ac_ext <<EOF
8224#line 8225 "configure" 8243#line 8244 "configure"
8225#include "confdefs.h" 8244#include "confdefs.h"
8226/* System header to define __stub macros and hopefully few prototypes, 8245/* System header to define __stub macros and hopefully few prototypes,
8227 which can conflict with char $ac_func(); below. */ 8246 which can conflict with char $ac_func(); below. */
8228#include <assert.h> 8247#include <assert.h>
8229/* Override any gcc2 internal prototype to avoid an error. */ 8248/* Override any gcc2 internal prototype to avoid an error. */
8242$ac_func(); 8261$ac_func();
8243#endif 8262#endif
8244 8263
8245; return 0; } 8264; return 0; }
8246EOF 8265EOF
8247if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8266if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8248 rm -rf conftest* 8267 rm -rf conftest*
8249 eval "ac_cv_func_$ac_func=yes" 8268 eval "ac_cv_func_$ac_func=yes"
8250else 8269else
8251 echo "configure: failed program was:" >&5 8270 echo "configure: failed program was:" >&5
8252 cat conftest.$ac_ext >&5 8271 cat conftest.$ac_ext >&5
8270 8289
8271 8290
8272 8291
8273ac_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` 8292ac_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'`
8274echo $ac_n "checking for utmp.h""... $ac_c" 1>&6 8293echo $ac_n "checking for utmp.h""... $ac_c" 1>&6
8275echo "configure:8276: checking for utmp.h" >&5 8294echo "configure:8295: checking for utmp.h" >&5
8276if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8295if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6 8296 echo $ac_n "(cached) $ac_c" 1>&6
8278else 8297else
8279 cat > conftest.$ac_ext <<EOF 8298 cat > conftest.$ac_ext <<EOF
8280#line 8281 "configure" 8299#line 8300 "configure"
8281#include "confdefs.h" 8300#include "confdefs.h"
8282#include <utmp.h> 8301#include <utmp.h>
8283EOF 8302EOF
8284ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8285{ (eval echo configure:8286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8304{ (eval echo configure:8305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8286ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8287if test -z "$ac_err"; then 8306if test -z "$ac_err"; then
8288 rm -rf conftest* 8307 rm -rf conftest*
8289 eval "ac_cv_header_$ac_safe=yes" 8308 eval "ac_cv_header_$ac_safe=yes"
8290else 8309else
8297rm -f conftest* 8316rm -f conftest*
8298fi 8317fi
8299if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8300 echo "$ac_t""yes" 1>&6 8319 echo "$ac_t""yes" 1>&6
8301 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6 8320 echo $ac_n "checking for struct utmp""... $ac_c" 1>&6
8302echo "configure:8303: checking for struct utmp" >&5 8321echo "configure:8322: checking for struct utmp" >&5
8303if eval "test \"`echo '$''{'rxvt_cv_struct_utmp'+set}'`\" = set"; then 8322if eval "test \"`echo '$''{'rxvt_cv_struct_utmp'+set}'`\" = set"; then
8304 echo $ac_n "(cached) $ac_c" 1>&6 8323 echo $ac_n "(cached) $ac_c" 1>&6
8305else 8324else
8306 cat > conftest.$ac_ext <<EOF 8325 cat > conftest.$ac_ext <<EOF
8307#line 8308 "configure" 8326#line 8327 "configure"
8308#include "confdefs.h" 8327#include "confdefs.h"
8309#include <sys/types.h> 8328#include <sys/types.h>
8310#include <stdint.h> 8329#include <stdint.h>
8311#include <utmp.h> 8330#include <utmp.h>
8312int main() { 8331int main() {
8313struct utmp ut; 8332struct utmp ut;
8314; return 0; } 8333; return 0; }
8315EOF 8334EOF
8316if { (eval echo configure:8317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8335if { (eval echo configure:8336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8317 rm -rf conftest* 8336 rm -rf conftest*
8318 rxvt_cv_struct_utmp=yes 8337 rxvt_cv_struct_utmp=yes
8319else 8338else
8320 echo "configure: failed program was:" >&5 8339 echo "configure: failed program was:" >&5
8321 cat conftest.$ac_ext >&5 8340 cat conftest.$ac_ext >&5
8333 8352
8334fi 8353fi
8335 8354
8336 8355
8337echo $ac_n "checking for ut_host in utmp struct""... $ac_c" 1>&6 8356echo $ac_n "checking for ut_host in utmp struct""... $ac_c" 1>&6
8338echo "configure:8339: checking for ut_host in utmp struct" >&5 8357echo "configure:8358: checking for ut_host in utmp struct" >&5
8339if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_host'+set}'`\" = set"; then 8358if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_host'+set}'`\" = set"; then
8340 echo $ac_n "(cached) $ac_c" 1>&6 8359 echo $ac_n "(cached) $ac_c" 1>&6
8341else 8360else
8342 cat > conftest.$ac_ext <<EOF 8361 cat > conftest.$ac_ext <<EOF
8343#line 8344 "configure" 8362#line 8363 "configure"
8344#include "confdefs.h" 8363#include "confdefs.h"
8345#include <sys/types.h> 8364#include <sys/types.h>
8346#include <utmp.h> 8365#include <utmp.h>
8347int main() { 8366int main() {
8348struct utmp ut; ut.ut_host; 8367struct utmp ut; ut.ut_host;
8349; return 0; } 8368; return 0; }
8350EOF 8369EOF
8351if { (eval echo configure:8352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8370if { (eval echo configure:8371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8352 rm -rf conftest* 8371 rm -rf conftest*
8353 rxvt_cv_struct_utmp_host=yes 8372 rxvt_cv_struct_utmp_host=yes
8354else 8373else
8355 echo "configure: failed program was:" >&5 8374 echo "configure: failed program was:" >&5
8356 cat conftest.$ac_ext >&5 8375 cat conftest.$ac_ext >&5
8367EOF 8386EOF
8368 8387
8369fi 8388fi
8370 8389
8371echo $ac_n "checking for ut_pid in utmp struct""... $ac_c" 1>&6 8390echo $ac_n "checking for ut_pid in utmp struct""... $ac_c" 1>&6
8372echo "configure:8373: checking for ut_pid in utmp struct" >&5 8391echo "configure:8392: checking for ut_pid in utmp struct" >&5
8373if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_pid'+set}'`\" = set"; then 8392if eval "test \"`echo '$''{'rxvt_cv_struct_utmp_pid'+set}'`\" = set"; then
8374 echo $ac_n "(cached) $ac_c" 1>&6 8393 echo $ac_n "(cached) $ac_c" 1>&6
8375else 8394else
8376 cat > conftest.$ac_ext <<EOF 8395 cat > conftest.$ac_ext <<EOF
8377#line 8378 "configure" 8396#line 8397 "configure"
8378#include "confdefs.h" 8397#include "confdefs.h"
8379#include <sys/types.h> 8398#include <sys/types.h>
8380#include <utmp.h> 8399#include <utmp.h>
8381int main() { 8400int main() {
8382struct utmp ut; ut.ut_pid; 8401struct utmp ut; ut.ut_pid;
8383; return 0; } 8402; return 0; }
8384EOF 8403EOF
8385if { (eval echo configure:8386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8404if { (eval echo configure:8405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8386 rm -rf conftest* 8405 rm -rf conftest*
8387 rxvt_cv_struct_utmp_pid=yes 8406 rxvt_cv_struct_utmp_pid=yes
8388else 8407else
8389 echo "configure: failed program was:" >&5 8408 echo "configure: failed program was:" >&5
8390 cat conftest.$ac_ext >&5 8409 cat conftest.$ac_ext >&5
8407fi 8426fi
8408 8427
8409 8428
8410ac_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` 8429ac_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'`
8411echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6 8430echo $ac_n "checking for utmpx.h""... $ac_c" 1>&6
8412echo "configure:8413: checking for utmpx.h" >&5 8431echo "configure:8432: checking for utmpx.h" >&5
8413if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8432if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8414 echo $ac_n "(cached) $ac_c" 1>&6 8433 echo $ac_n "(cached) $ac_c" 1>&6
8415else 8434else
8416 cat > conftest.$ac_ext <<EOF 8435 cat > conftest.$ac_ext <<EOF
8417#line 8418 "configure" 8436#line 8437 "configure"
8418#include "confdefs.h" 8437#include "confdefs.h"
8419#include <utmpx.h> 8438#include <utmpx.h>
8420EOF 8439EOF
8421ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8440ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8422{ (eval echo configure:8423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8441{ (eval echo configure:8442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8423ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8442ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8424if test -z "$ac_err"; then 8443if test -z "$ac_err"; then
8425 rm -rf conftest* 8444 rm -rf conftest*
8426 eval "ac_cv_header_$ac_safe=yes" 8445 eval "ac_cv_header_$ac_safe=yes"
8427else 8446else
8434rm -f conftest* 8453rm -f conftest*
8435fi 8454fi
8436if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8455if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8437 echo "$ac_t""yes" 1>&6 8456 echo "$ac_t""yes" 1>&6
8438 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6 8457 echo $ac_n "checking for struct utmpx""... $ac_c" 1>&6
8439echo "configure:8440: checking for struct utmpx" >&5 8458echo "configure:8459: checking for struct utmpx" >&5
8440if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx'+set}'`\" = set"; then 8459if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx'+set}'`\" = set"; then
8441 echo $ac_n "(cached) $ac_c" 1>&6 8460 echo $ac_n "(cached) $ac_c" 1>&6
8442else 8461else
8443 cat > conftest.$ac_ext <<EOF 8462 cat > conftest.$ac_ext <<EOF
8444#line 8445 "configure" 8463#line 8464 "configure"
8445#include "confdefs.h" 8464#include "confdefs.h"
8446#include <sys/types.h> 8465#include <sys/types.h>
8447#include <utmpx.h> 8466#include <utmpx.h>
8448int main() { 8467int main() {
8449struct utmpx ut; 8468struct utmpx ut;
8450; return 0; } 8469; return 0; }
8451EOF 8470EOF
8452if { (eval echo configure:8453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8471if { (eval echo configure:8472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8453 rm -rf conftest* 8472 rm -rf conftest*
8454 rxvt_cv_struct_utmpx=yes 8473 rxvt_cv_struct_utmpx=yes
8455else 8474else
8456 echo "configure: failed program was:" >&5 8475 echo "configure: failed program was:" >&5
8457 cat conftest.$ac_ext >&5 8476 cat conftest.$ac_ext >&5
8469 8488
8470fi 8489fi
8471 8490
8472 8491
8473echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6 8492echo $ac_n "checking for host in utmpx struct""... $ac_c" 1>&6
8474echo "configure:8475: checking for host in utmpx struct" >&5 8493echo "configure:8494: checking for host in utmpx struct" >&5
8475if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx_host'+set}'`\" = set"; then 8494if eval "test \"`echo '$''{'rxvt_cv_struct_utmpx_host'+set}'`\" = set"; then
8476 echo $ac_n "(cached) $ac_c" 1>&6 8495 echo $ac_n "(cached) $ac_c" 1>&6
8477else 8496else
8478 cat > conftest.$ac_ext <<EOF 8497 cat > conftest.$ac_ext <<EOF
8479#line 8480 "configure" 8498#line 8499 "configure"
8480#include "confdefs.h" 8499#include "confdefs.h"
8481#include <sys/types.h> 8500#include <sys/types.h>
8482#include <utmpx.h> 8501#include <utmpx.h>
8483int main() { 8502int main() {
8484struct utmpx utx; utx.ut_host; 8503struct utmpx utx; utx.ut_host;
8485; return 0; } 8504; return 0; }
8486EOF 8505EOF
8487if { (eval echo configure:8488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8506if { (eval echo configure:8507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8488 rm -rf conftest* 8507 rm -rf conftest*
8489 rxvt_cv_struct_utmpx_host=yes 8508 rxvt_cv_struct_utmpx_host=yes
8490else 8509else
8491 echo "configure: failed program was:" >&5 8510 echo "configure: failed program was:" >&5
8492 cat conftest.$ac_ext >&5 8511 cat conftest.$ac_ext >&5
8508 echo "$ac_t""no" 1>&6 8527 echo "$ac_t""no" 1>&6
8509fi 8528fi
8510 8529
8511 8530
8512echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6 8531echo $ac_n "checking for struct lastlog""... $ac_c" 1>&6
8513echo "configure:8514: checking for struct lastlog" >&5 8532echo "configure:8533: checking for struct lastlog" >&5
8514if eval "test \"`echo '$''{'rxvt_cv_struct_lastlog'+set}'`\" = set"; then 8533if eval "test \"`echo '$''{'rxvt_cv_struct_lastlog'+set}'`\" = set"; then
8515 echo $ac_n "(cached) $ac_c" 1>&6 8534 echo $ac_n "(cached) $ac_c" 1>&6
8516else 8535else
8517 cat > conftest.$ac_ext <<EOF 8536 cat > conftest.$ac_ext <<EOF
8518#line 8519 "configure" 8537#line 8538 "configure"
8519#include "confdefs.h" 8538#include "confdefs.h"
8520#include <sys/types.h> 8539#include <sys/types.h>
8521#include <utmp.h> 8540#include <utmp.h>
8522#ifdef HAVE_LASTLOG_H 8541#ifdef HAVE_LASTLOG_H
8523#include <lastlog.h> 8542#include <lastlog.h>
8525 8544
8526int main() { 8545int main() {
8527struct lastlog ll; 8546struct lastlog ll;
8528; return 0; } 8547; return 0; }
8529EOF 8548EOF
8530if { (eval echo configure:8531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8549if { (eval echo configure:8550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8531 rm -rf conftest* 8550 rm -rf conftest*
8532 rxvt_cv_struct_lastlog=yes 8551 rxvt_cv_struct_lastlog=yes
8533else 8552else
8534 echo "configure: failed program was:" >&5 8553 echo "configure: failed program was:" >&5
8535 cat conftest.$ac_ext >&5 8554 cat conftest.$ac_ext >&5
8546EOF 8565EOF
8547 8566
8548fi 8567fi
8549 8568
8550echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6 8569echo $ac_n "checking for struct lastlogx""... $ac_c" 1>&6
8551echo "configure:8552: checking for struct lastlogx" >&5 8570echo "configure:8571: checking for struct lastlogx" >&5
8552if eval "test \"`echo '$''{'rxvt_cv_struct_lastlogx'+set}'`\" = set"; then 8571if eval "test \"`echo '$''{'rxvt_cv_struct_lastlogx'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6 8572 echo $ac_n "(cached) $ac_c" 1>&6
8554else 8573else
8555 cat > conftest.$ac_ext <<EOF 8574 cat > conftest.$ac_ext <<EOF
8556#line 8557 "configure" 8575#line 8576 "configure"
8557#include "confdefs.h" 8576#include "confdefs.h"
8558#include <sys/types.h> 8577#include <sys/types.h>
8559#include <utmpx.h> 8578#include <utmpx.h>
8560#ifdef HAVE_LASTLOG_H 8579#ifdef HAVE_LASTLOG_H
8561#include <lastlog.h> 8580#include <lastlog.h>
8563 8582
8564int main() { 8583int main() {
8565struct lastlogx ll; 8584struct lastlogx ll;
8566; return 0; } 8585; return 0; }
8567EOF 8586EOF
8568if { (eval echo configure:8569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8587if { (eval echo configure:8588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8569 rm -rf conftest* 8588 rm -rf conftest*
8570 rxvt_cv_struct_lastlogx=yes 8589 rxvt_cv_struct_lastlogx=yes
8571else 8590else
8572 echo "configure: failed program was:" >&5 8591 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5 8592 cat conftest.$ac_ext >&5
8585 8604
8586fi 8605fi
8587 8606
8588 8607
8589echo $ac_n "checking where utmp is located""... $ac_c" 1>&6 8608echo $ac_n "checking where utmp is located""... $ac_c" 1>&6
8590echo "configure:8591: checking where utmp is located" >&5 8609echo "configure:8610: checking where utmp is located" >&5
8591if eval "test \"`echo '$''{'rxvt_cv_path_utmp'+set}'`\" = set"; then 8610if eval "test \"`echo '$''{'rxvt_cv_path_utmp'+set}'`\" = set"; then
8592 echo $ac_n "(cached) $ac_c" 1>&6 8611 echo $ac_n "(cached) $ac_c" 1>&6
8593else 8612else
8594 if test "$cross_compiling" = yes; then 8613 if test "$cross_compiling" = yes; then
8595 echo "configure: warning: Define RXVT_UTMP_FILE in config.h manually" 1>&2 8614 echo "configure: warning: Define RXVT_UTMP_FILE in config.h manually" 1>&2
8596else 8615else
8597 cat > conftest.$ac_ext <<EOF 8616 cat > conftest.$ac_ext <<EOF
8598#line 8599 "configure" 8617#line 8618 "configure"
8599#include "confdefs.h" 8618#include "confdefs.h"
8600#include <stdio.h> 8619#include <stdio.h>
8601#include <sys/types.h> 8620#include <sys/types.h>
8602#include <utmp.h> 8621#include <utmp.h>
8603#include <errno.h> 8622#include <errno.h>
8622 } 8641 }
8623 } 8642 }
8624 exit(0); 8643 exit(0);
8625} 8644}
8626EOF 8645EOF
8627if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8646if { (eval echo configure:8647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8628then 8647then
8629 rxvt_cv_path_utmp=`cat conftestval` 8648 rxvt_cv_path_utmp=`cat conftestval`
8630else 8649else
8631 echo "configure: failed program was:" >&5 8650 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5 8651 cat conftest.$ac_ext >&5
8646 8665
8647fi 8666fi
8648 8667
8649 8668
8650echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6 8669echo $ac_n "checking where utmpx is located""... $ac_c" 1>&6
8651echo "configure:8652: checking where utmpx is located" >&5 8670echo "configure:8671: checking where utmpx is located" >&5
8652if eval "test \"`echo '$''{'rxvt_cv_path_utmpx'+set}'`\" = set"; then 8671if eval "test \"`echo '$''{'rxvt_cv_path_utmpx'+set}'`\" = set"; then
8653 echo $ac_n "(cached) $ac_c" 1>&6 8672 echo $ac_n "(cached) $ac_c" 1>&6
8654else 8673else
8655 if test "$cross_compiling" = yes; then 8674 if test "$cross_compiling" = yes; then
8656 echo "configure: warning: Define RXVT_UTMPX_FILE in config.h manually" 1>&2 8675 echo "configure: warning: Define RXVT_UTMPX_FILE in config.h manually" 1>&2
8657else 8676else
8658 cat > conftest.$ac_ext <<EOF 8677 cat > conftest.$ac_ext <<EOF
8659#line 8660 "configure" 8678#line 8679 "configure"
8660#include "confdefs.h" 8679#include "confdefs.h"
8661#include <stdio.h> 8680#include <stdio.h>
8662#include <sys/types.h> 8681#include <sys/types.h>
8663#include <utmpx.h> 8682#include <utmpx.h>
8664#include <errno.h> 8683#include <errno.h>
8693 } 8712 }
8694 } 8713 }
8695 exit(0); 8714 exit(0);
8696} 8715}
8697EOF 8716EOF
8698if { (eval echo configure:8699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8717if { (eval echo configure:8718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8699then 8718then
8700 rxvt_cv_path_utmpx=`cat conftestval` 8719 rxvt_cv_path_utmpx=`cat conftestval`
8701else 8720else
8702 echo "configure: failed program was:" >&5 8721 echo "configure: failed program was:" >&5
8703 cat conftest.$ac_ext >&5 8722 cat conftest.$ac_ext >&5
8717 8736
8718fi 8737fi
8719 8738
8720 8739
8721echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6 8740echo $ac_n "checking where wtmp is located""... $ac_c" 1>&6
8722echo "configure:8723: checking where wtmp is located" >&5 8741echo "configure:8742: checking where wtmp is located" >&5
8723if eval "test \"`echo '$''{'rxvt_cv_path_wtmp'+set}'`\" = set"; then 8742if eval "test \"`echo '$''{'rxvt_cv_path_wtmp'+set}'`\" = set"; then
8724 echo $ac_n "(cached) $ac_c" 1>&6 8743 echo $ac_n "(cached) $ac_c" 1>&6
8725else 8744else
8726 if test "$cross_compiling" = yes; then 8745 if test "$cross_compiling" = yes; then
8727 echo "configure: warning: Define RXVT_WTMP_FILE in config.h manually" 1>&2 8746 echo "configure: warning: Define RXVT_WTMP_FILE in config.h manually" 1>&2
8728else 8747else
8729 cat > conftest.$ac_ext <<EOF 8748 cat > conftest.$ac_ext <<EOF
8730#line 8731 "configure" 8749#line 8750 "configure"
8731#include "confdefs.h" 8750#include "confdefs.h"
8732#include <stdio.h> 8751#include <stdio.h>
8733#include <sys/types.h> 8752#include <sys/types.h>
8734#ifdef HAVE_UTMP_H 8753#ifdef HAVE_UTMP_H
8735#include <utmp.h> 8754#include <utmp.h>
8756 } 8775 }
8757 } 8776 }
8758 exit(0); 8777 exit(0);
8759} 8778}
8760EOF 8779EOF
8761if { (eval echo configure:8762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8780if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8762then 8781then
8763 rxvt_cv_path_wtmp=`cat conftestval` 8782 rxvt_cv_path_wtmp=`cat conftestval`
8764else 8783else
8765 echo "configure: failed program was:" >&5 8784 echo "configure: failed program was:" >&5
8766 cat conftest.$ac_ext >&5 8785 cat conftest.$ac_ext >&5
8779EOF 8798EOF
8780 8799
8781fi 8800fi
8782 8801
8783echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6 8802echo $ac_n "checking where wtmpx is located""... $ac_c" 1>&6
8784echo "configure:8785: checking where wtmpx is located" >&5 8803echo "configure:8804: checking where wtmpx is located" >&5
8785if eval "test \"`echo '$''{'rxvt_cv_path_wtmpx'+set}'`\" = set"; then 8804if eval "test \"`echo '$''{'rxvt_cv_path_wtmpx'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6 8805 echo $ac_n "(cached) $ac_c" 1>&6
8787else 8806else
8788 if test "$cross_compiling" = yes; then 8807 if test "$cross_compiling" = yes; then
8789 echo "configure: warning: Define RXVT_WTMPX_FILE in config.h manually" 1>&2 8808 echo "configure: warning: Define RXVT_WTMPX_FILE in config.h manually" 1>&2
8790else 8809else
8791 cat > conftest.$ac_ext <<EOF 8810 cat > conftest.$ac_ext <<EOF
8792#line 8793 "configure" 8811#line 8812 "configure"
8793#include "confdefs.h" 8812#include "confdefs.h"
8794#include <stdio.h> 8813#include <stdio.h>
8795#ifdef HAVE_UTMPX_H 8814#ifdef HAVE_UTMPX_H
8796#include <utmpx.h> 8815#include <utmpx.h>
8797#endif 8816#endif
8817 } 8836 }
8818 } 8837 }
8819 exit(0); 8838 exit(0);
8820} 8839}
8821EOF 8840EOF
8822if { (eval echo configure:8823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8841if { (eval echo configure:8842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8823then 8842then
8824 rxvt_cv_path_wtmpx=`cat conftestval` 8843 rxvt_cv_path_wtmpx=`cat conftestval`
8825else 8844else
8826 echo "configure: failed program was:" >&5 8845 echo "configure: failed program was:" >&5
8827 cat conftest.$ac_ext >&5 8846 cat conftest.$ac_ext >&5
8840EOF 8859EOF
8841 8860
8842fi 8861fi
8843 8862
8844echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6 8863echo $ac_n "checking where lastlog is located""... $ac_c" 1>&6
8845echo "configure:8846: checking where lastlog is located" >&5 8864echo "configure:8865: checking where lastlog is located" >&5
8846if eval "test \"`echo '$''{'rxvt_cv_path_lastlog'+set}'`\" = set"; then 8865if eval "test \"`echo '$''{'rxvt_cv_path_lastlog'+set}'`\" = set"; then
8847 echo $ac_n "(cached) $ac_c" 1>&6 8866 echo $ac_n "(cached) $ac_c" 1>&6
8848else 8867else
8849 if test "$cross_compiling" = yes; then 8868 if test "$cross_compiling" = yes; then
8850 echo "configure: warning: Define RXVT_LASTLOG_FILE in config.h manually" 1>&2 8869 echo "configure: warning: Define RXVT_LASTLOG_FILE in config.h manually" 1>&2
8851else 8870else
8852 cat > conftest.$ac_ext <<EOF 8871 cat > conftest.$ac_ext <<EOF
8853#line 8854 "configure" 8872#line 8873 "configure"
8854#include "confdefs.h" 8873#include "confdefs.h"
8855#include <stdio.h> 8874#include <stdio.h>
8856#include <sys/types.h> 8875#include <sys/types.h>
8857#ifdef HAVE_UTMPX_H 8876#ifdef HAVE_UTMPX_H
8858#include <utmpx.h> 8877#include <utmpx.h>
8883 } 8902 }
8884 } 8903 }
8885 exit(0); 8904 exit(0);
8886} 8905}
8887EOF 8906EOF
8888if { (eval echo configure:8889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8907if { (eval echo configure:8908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8889then 8908then
8890 rxvt_cv_path_lastlog=`cat conftestval` 8909 rxvt_cv_path_lastlog=`cat conftestval`
8891else 8910else
8892 echo "configure: failed program was:" >&5 8911 echo "configure: failed program was:" >&5
8893 cat conftest.$ac_ext >&5 8912 cat conftest.$ac_ext >&5
8912 8931
8913 fi 8932 fi
8914fi 8933fi
8915 8934
8916echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6 8935echo $ac_n "checking where lastlogx is located""... $ac_c" 1>&6
8917echo "configure:8918: checking where lastlogx is located" >&5 8936echo "configure:8937: checking where lastlogx is located" >&5
8918if eval "test \"`echo '$''{'rxvt_cv_path_lastlogx'+set}'`\" = set"; then 8937if eval "test \"`echo '$''{'rxvt_cv_path_lastlogx'+set}'`\" = set"; then
8919 echo $ac_n "(cached) $ac_c" 1>&6 8938 echo $ac_n "(cached) $ac_c" 1>&6
8920else 8939else
8921 if test "$cross_compiling" = yes; then 8940 if test "$cross_compiling" = yes; then
8922 echo "configure: warning: Define RXVT_LASTLOGX_FILE in config.h manually" 1>&2 8941 echo "configure: warning: Define RXVT_LASTLOGX_FILE in config.h manually" 1>&2
8923else 8942else
8924 cat > conftest.$ac_ext <<EOF 8943 cat > conftest.$ac_ext <<EOF
8925#line 8926 "configure" 8944#line 8945 "configure"
8926#include "confdefs.h" 8945#include "confdefs.h"
8927#include <stdio.h> 8946#include <stdio.h>
8928#ifdef HAVE_UTMPX_H 8947#ifdef HAVE_UTMPX_H
8929#include <utmpx.h> 8948#include <utmpx.h>
8930#endif 8949#endif
8949 } 8968 }
8950 } 8969 }
8951 exit(0); 8970 exit(0);
8952} 8971}
8953EOF 8972EOF
8954if { (eval echo configure:8955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8973if { (eval echo configure:8974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8955then 8974then
8956 rxvt_cv_path_lastlogx=`cat conftestval` 8975 rxvt_cv_path_lastlogx=`cat conftestval`
8957else 8976else
8958 echo "configure: failed program was:" >&5 8977 echo "configure: failed program was:" >&5
8959 cat conftest.$ac_ext >&5 8978 cat conftest.$ac_ext >&5
8973 8992
8974fi 8993fi
8975 8994
8976 8995
8977echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6 8996echo $ac_n "checking where ttys/ttytab is located""... $ac_c" 1>&6
8978echo "configure:8979: checking where ttys/ttytab is located" >&5 8997echo "configure:8998: checking where ttys/ttytab is located" >&5
8979if eval "test \"`echo '$''{'rxvt_cv_path_ttytab'+set}'`\" = set"; then 8998if eval "test \"`echo '$''{'rxvt_cv_path_ttytab'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6 8999 echo $ac_n "(cached) $ac_c" 1>&6
8981else 9000else
8982 for ttys_file in /etc/ttys /etc/ttytab; 9001 for ttys_file in /etc/ttys /etc/ttytab;
8983do 9002do
9004LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 9023LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
9005if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 9024if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
9006 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 9025 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
9007fi 9026fi
9008echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6 9027echo $ac_n "checking for working Xlocale""... $ac_c" 1>&6
9009echo "configure:9010: checking for working Xlocale" >&5 9028echo "configure:9029: checking for working Xlocale" >&5
9010if eval "test \"`echo '$''{'rxvt_cv_func_xlocale'+set}'`\" = set"; then 9029if eval "test \"`echo '$''{'rxvt_cv_func_xlocale'+set}'`\" = set"; then
9011 echo $ac_n "(cached) $ac_c" 1>&6 9030 echo $ac_n "(cached) $ac_c" 1>&6
9012else 9031else
9013 if test "$cross_compiling" = yes; then 9032 if test "$cross_compiling" = yes; then
9014 echo "configure: warning: Define NO_XLOCALE in config.h manually" 1>&2 9033 echo "configure: warning: Define NO_XLOCALE in config.h manually" 1>&2
9015else 9034else
9016 cat > conftest.$ac_ext <<EOF 9035 cat > conftest.$ac_ext <<EOF
9017#line 9018 "configure" 9036#line 9037 "configure"
9018#include "confdefs.h" 9037#include "confdefs.h"
9019#include <X11/Xlib.h> 9038#include <X11/Xlib.h>
9020main() { 9039main() {
9021char *p; 9040char *p;
9022if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 9041if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
9023exit (XSupportsLocale() ? 0 : 1); 9042exit (XSupportsLocale() ? 0 : 1);
9024else 9043else
9025exit (1);} 9044exit (1);}
9026EOF 9045EOF
9027if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 9046if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9028then 9047then
9029 rxvt_cv_func_xlocale=yes 9048 rxvt_cv_func_xlocale=yes
9030else 9049else
9031 echo "configure: failed program was:" >&5 9050 echo "configure: failed program was:" >&5
9032 cat conftest.$ac_ext >&5 9051 cat conftest.$ac_ext >&5
9045EOF 9064EOF
9046 9065
9047fi 9066fi
9048 9067
9049echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6 9068echo $ac_n "checking for working X setlocale""... $ac_c" 1>&6
9050echo "configure:9051: checking for working X setlocale" >&5 9069echo "configure:9070: checking for working X setlocale" >&5
9051if eval "test \"`echo '$''{'rxvt_cv_func_xsetlocale'+set}'`\" = set"; then 9070if eval "test \"`echo '$''{'rxvt_cv_func_xsetlocale'+set}'`\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6 9071 echo $ac_n "(cached) $ac_c" 1>&6
9053else 9072else
9054 cat > conftest.$ac_ext <<EOF 9073 cat > conftest.$ac_ext <<EOF
9055#line 9056 "configure" 9074#line 9075 "configure"
9056#include "confdefs.h" 9075#include "confdefs.h"
9057#define X_LOCALE 1 9076#define X_LOCALE 1
9058#include <X11/Xlocale.h> 9077#include <X11/Xlocale.h>
9059int main() { 9078int main() {
9060setlocale(LC_CTYPE, ""); 9079setlocale(LC_CTYPE, "");
9061; return 0; } 9080; return 0; }
9062EOF 9081EOF
9063if { (eval echo configure:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9082if { (eval echo configure:9083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9064 rm -rf conftest* 9083 rm -rf conftest*
9065 rxvt_cv_func_xsetlocale=yes 9084 rxvt_cv_func_xsetlocale=yes
9066else 9085else
9067 echo "configure: failed program was:" >&5 9086 echo "configure: failed program was:" >&5
9068 cat conftest.$ac_ext >&5 9087 cat conftest.$ac_ext >&5
9081fi 9100fi
9082LIBS=$ac_save_LIBS 9101LIBS=$ac_save_LIBS
9083CFLAGS=$ac_save_CFLAGS 9102CFLAGS=$ac_save_CFLAGS
9084 9103
9085echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6 9104echo $ac_n "checking for working plain setlocale""... $ac_c" 1>&6
9086echo "configure:9087: checking for working plain setlocale" >&5 9105echo "configure:9106: checking for working plain setlocale" >&5
9087if eval "test \"`echo '$''{'rxvt_cv_func_setlocale'+set}'`\" = set"; then 9106if eval "test \"`echo '$''{'rxvt_cv_func_setlocale'+set}'`\" = set"; then
9088 echo $ac_n "(cached) $ac_c" 1>&6 9107 echo $ac_n "(cached) $ac_c" 1>&6
9089else 9108else
9090 cat > conftest.$ac_ext <<EOF 9109 cat > conftest.$ac_ext <<EOF
9091#line 9092 "configure" 9110#line 9111 "configure"
9092#include "confdefs.h" 9111#include "confdefs.h"
9093#include <locale.h> 9112#include <locale.h>
9094int main() { 9113int main() {
9095setlocale(LC_CTYPE, ""); 9114setlocale(LC_CTYPE, "");
9096; return 0; } 9115; return 0; }
9097EOF 9116EOF
9098if { (eval echo configure:9099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9117if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9099 rm -rf conftest* 9118 rm -rf conftest*
9100 rxvt_cv_func_setlocale=yes 9119 rxvt_cv_func_setlocale=yes
9101else 9120else
9102 echo "configure: failed program was:" >&5 9121 echo "configure: failed program was:" >&5
9103 cat conftest.$ac_ext >&5 9122 cat conftest.$ac_ext >&5
9114EOF 9133EOF
9115 9134
9116fi 9135fi
9117 9136
9118echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6 9137echo $ac_n "checking for working nl_langinfo""... $ac_c" 1>&6
9119echo "configure:9120: checking for working nl_langinfo" >&5 9138echo "configure:9139: checking for working nl_langinfo" >&5
9120if eval "test \"`echo '$''{'rxvt_cv_func_nl_langinfo'+set}'`\" = set"; then 9139if eval "test \"`echo '$''{'rxvt_cv_func_nl_langinfo'+set}'`\" = set"; then
9121 echo $ac_n "(cached) $ac_c" 1>&6 9140 echo $ac_n "(cached) $ac_c" 1>&6
9122else 9141else
9123 cat > conftest.$ac_ext <<EOF 9142 cat > conftest.$ac_ext <<EOF
9124#line 9125 "configure" 9143#line 9144 "configure"
9125#include "confdefs.h" 9144#include "confdefs.h"
9126#include <langinfo.h> 9145#include <langinfo.h>
9127int main() { 9146int main() {
9128nl_langinfo(CODESET); 9147nl_langinfo(CODESET);
9129; return 0; } 9148; return 0; }
9130EOF 9149EOF
9131if { (eval echo configure:9132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9150if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9132 rm -rf conftest* 9151 rm -rf conftest*
9133 rxvt_cv_func_nl_langinfo=yes 9152 rxvt_cv_func_nl_langinfo=yes
9134else 9153else
9135 echo "configure: failed program was:" >&5 9154 echo "configure: failed program was:" >&5
9136 cat conftest.$ac_ext >&5 9155 cat conftest.$ac_ext >&5
9147EOF 9166EOF
9148 9167
9149fi 9168fi
9150 9169
9151echo $ac_n "checking for getpt""... $ac_c" 1>&6 9170echo $ac_n "checking for getpt""... $ac_c" 1>&6
9152echo "configure:9153: checking for getpt" >&5 9171echo "configure:9172: checking for getpt" >&5
9153if eval "test \"`echo '$''{'rxvt_cv_func_getpt'+set}'`\" = set"; then 9172if eval "test \"`echo '$''{'rxvt_cv_func_getpt'+set}'`\" = set"; then
9154 echo $ac_n "(cached) $ac_c" 1>&6 9173 echo $ac_n "(cached) $ac_c" 1>&6
9155else 9174else
9156 cat > conftest.$ac_ext <<EOF 9175 cat > conftest.$ac_ext <<EOF
9157#line 9158 "configure" 9176#line 9177 "configure"
9158#include "confdefs.h" 9177#include "confdefs.h"
9159#define _GNU_SOURCE 9178#define _GNU_SOURCE
9160#ifdef HAVE_STDLIB_H 9179#ifdef HAVE_STDLIB_H
9161# include <stdlib.h> 9180# include <stdlib.h>
9162#endif 9181#endif
9163int main() { 9182int main() {
9164(void)getpt(); 9183(void)getpt();
9165; return 0; } 9184; return 0; }
9166EOF 9185EOF
9167if { (eval echo configure:9168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9186if { (eval echo configure:9187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9168 rm -rf conftest* 9187 rm -rf conftest*
9169 rxvt_cv_func_getpt=yes 9188 rxvt_cv_func_getpt=yes
9170else 9189else
9171 echo "configure: failed program was:" >&5 9190 echo "configure: failed program was:" >&5
9172 cat conftest.$ac_ext >&5 9191 cat conftest.$ac_ext >&5
9183EOF 9202EOF
9184 9203
9185fi 9204fi
9186 9205
9187echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6 9206echo $ac_n "checking for pty/tty type""... $ac_c" 1>&6
9188echo "configure:9189: checking for pty/tty type" >&5 9207echo "configure:9208: checking for pty/tty type" >&5
9189if eval "test \"`echo '$''{'rxvt_cv_ptys'+set}'`\" = set"; then 9208if eval "test \"`echo '$''{'rxvt_cv_ptys'+set}'`\" = set"; then
9190 echo $ac_n "(cached) $ac_c" 1>&6 9209 echo $ac_n "(cached) $ac_c" 1>&6
9191else 9210else
9192 if test x$ac_cv_func_openpty = xyes; then 9211 if test x$ac_cv_func_openpty = xyes; then
9193 rxvt_cv_ptys=OPENPTY 9212 rxvt_cv_ptys=OPENPTY
9278 9297
9279fi 9298fi
9280 9299
9281 9300
9282echo "checking for pty ranges" 1>&6 9301echo "checking for pty ranges" 1>&6
9283echo "configure:9284: checking for pty ranges" >&5 9302echo "configure:9303: checking for pty ranges" >&5
9284ptys=`echo /dev/pty??` 9303ptys=`echo /dev/pty??`
9285pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 9304pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
9286pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 9305pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
9287if test x$pch1 != x; then 9306if test x$pch1 != x; then
9288 cat >> confdefs.h <<EOF 9307 cat >> confdefs.h <<EOF
9296EOF 9315EOF
9297 9316
9298fi 9317fi
9299 9318
9300echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6 9319echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
9301echo "configure:9302: checking for setlocale in -lxpg4" >&5 9320echo "configure:9321: checking for setlocale in -lxpg4" >&5
9302ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'` 9321ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
9303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 9322if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9304 echo $ac_n "(cached) $ac_c" 1>&6 9323 echo $ac_n "(cached) $ac_c" 1>&6
9305else 9324else
9306 ac_save_LIBS="$LIBS" 9325 ac_save_LIBS="$LIBS"
9307LIBS="-lxpg4 $LIBS" 9326LIBS="-lxpg4 $LIBS"
9308cat > conftest.$ac_ext <<EOF 9327cat > conftest.$ac_ext <<EOF
9309#line 9310 "configure" 9328#line 9329 "configure"
9310#include "confdefs.h" 9329#include "confdefs.h"
9311/* Override any gcc2 internal prototype to avoid an error. */ 9330/* Override any gcc2 internal prototype to avoid an error. */
9312/* We use char because int might match the return type of a gcc2 9331/* We use char because int might match the return type of a gcc2
9313 builtin and then its argument prototype would still apply. */ 9332 builtin and then its argument prototype would still apply. */
9314char setlocale(); 9333char setlocale();
9315 9334
9316int main() { 9335int main() {
9317setlocale() 9336setlocale()
9318; return 0; } 9337; return 0; }
9319EOF 9338EOF
9320if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9339if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9321 rm -rf conftest* 9340 rm -rf conftest*
9322 eval "ac_cv_lib_$ac_lib_var=yes" 9341 eval "ac_cv_lib_$ac_lib_var=yes"
9323else 9342else
9324 echo "configure: failed program was:" >&5 9343 echo "configure: failed program was:" >&5
9325 cat conftest.$ac_ext >&5 9344 cat conftest.$ac_ext >&5
9644 9663
9645 for ac_hdr in X11/Xft/Xft.h 9664 for ac_hdr in X11/Xft/Xft.h
9646do 9665do
9647ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 9666ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9648echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 9667echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9649echo "configure:9650: checking for $ac_hdr" >&5 9668echo "configure:9669: checking for $ac_hdr" >&5
9650if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 9669if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9651 echo $ac_n "(cached) $ac_c" 1>&6 9670 echo $ac_n "(cached) $ac_c" 1>&6
9652else 9671else
9653 cat > conftest.$ac_ext <<EOF 9672 cat > conftest.$ac_ext <<EOF
9654#line 9655 "configure" 9673#line 9674 "configure"
9655#include "confdefs.h" 9674#include "confdefs.h"
9656#include <$ac_hdr> 9675#include <$ac_hdr>
9657EOF 9676EOF
9658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9677ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9659{ (eval echo configure:9660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9678{ (eval echo configure:9679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9679ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9661if test -z "$ac_err"; then 9680if test -z "$ac_err"; then
9662 rm -rf conftest* 9681 rm -rf conftest*
9663 eval "ac_cv_header_$ac_safe=yes" 9682 eval "ac_cv_header_$ac_safe=yes"
9664else 9683else
9682support_xft=no 9701support_xft=no
9683fi 9702fi
9684done 9703done
9685 9704
9686 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6 9705 echo $ac_n "checking for XftDrawString32 in -lXft""... $ac_c" 1>&6
9687echo "configure:9688: checking for XftDrawString32 in -lXft" >&5 9706echo "configure:9707: checking for XftDrawString32 in -lXft" >&5
9688ac_lib_var=`echo Xft'_'XftDrawString32 | sed 'y%./+-%__p_%'` 9707ac_lib_var=`echo Xft'_'XftDrawString32 | sed 'y%./+-%__p_%'`
9689if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 9708if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6 9709 echo $ac_n "(cached) $ac_c" 1>&6
9691else 9710else
9692 ac_save_LIBS="$LIBS" 9711 ac_save_LIBS="$LIBS"
9693LIBS="-lXft $LIBS" 9712LIBS="-lXft $LIBS"
9694cat > conftest.$ac_ext <<EOF 9713cat > conftest.$ac_ext <<EOF
9695#line 9696 "configure" 9714#line 9715 "configure"
9696#include "confdefs.h" 9715#include "confdefs.h"
9697/* Override any gcc2 internal prototype to avoid an error. */ 9716/* Override any gcc2 internal prototype to avoid an error. */
9698/* We use char because int might match the return type of a gcc2 9717/* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */ 9718 builtin and then its argument prototype would still apply. */
9700char XftDrawString32(); 9719char XftDrawString32();
9701 9720
9702int main() { 9721int main() {
9703XftDrawString32() 9722XftDrawString32()
9704; return 0; } 9723; return 0; }
9705EOF 9724EOF
9706if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9725if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9707 rm -rf conftest* 9726 rm -rf conftest*
9708 eval "ac_cv_lib_$ac_lib_var=yes" 9727 eval "ac_cv_lib_$ac_lib_var=yes"
9709else 9728else
9710 echo "configure: failed program was:" >&5 9729 echo "configure: failed program was:" >&5
9711 cat conftest.$ac_ext >&5 9730 cat conftest.$ac_ext >&5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines