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

Comparing rxvt-unicode/configure (file contents):
Revision 1.18 by pcg, Sat Mar 6 00:05:00 2004 UTC vs.
Revision 1.104 by ayin, Sat Jun 23 13:41:19 2007 UTC

239 239
240# CDPATH. 240# CDPATH.
241$as_unset CDPATH 241$as_unset CDPATH
242 242
243 243
244# Find the correct PATH separator. Usually this is `:', but
245# DJGPP uses `;' like DOS.
246if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
248 case X$UNAME in
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
251 esac
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case "X$ECHO" in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running ltconfig again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host. 244# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too. 246# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406 248
465#endif 307#endif
466#if HAVE_UNISTD_H 308#if HAVE_UNISTD_H
467# include <unistd.h> 309# include <unistd.h>
468#endif" 310#endif"
469 311
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER CXXLIB INSTALL_LIBRXVT RXVTNAME TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS afterimage_config XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O LIBAFTERIMAGE_CFLAGS AFTERIMAGE_LIBS include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
471ac_subst_files='MCOMMON' 313ac_subst_files=''
472 314
473# Initialize some variables set by options. 315# Initialize some variables set by options.
474ac_init_help= 316ac_init_help=
475ac_init_version=false 317ac_init_version=false
476# The variables have the same names as the options, with 318# The variables have the same names as the options, with
1021 cat <<\_ACEOF 863 cat <<\_ACEOF
1022 864
1023Optional Features: 865Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features 868 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent 869 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters 872 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
1036 --enable-utmp enable utmp (utmpx) support 874 --enable-font-styles enable bold and italic support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps 875 --enable-xpm-background enable background pixmaps
876 --enable-afterimage enable integration with libAfterImage for background images
877 --enable-afterstep enable integration with AfterStep window manager
1040 --enable-transparency enable transparent backgrounds 878 --enable-transparency enable transparent backgrounds
1041 --enable-menubar enable menubar 879 --enable-tinting enable tinting of transparent bg
880 --enable-fading enable colors fading when off focus
1042 --enable-rxvt-scroll enable rxvt style scrollbar 881 --enable-rxvt-scroll enable rxvt style scrollbar
1043 --enable-next-scroll enable NeXT style scrollbar 882 --enable-next-scroll enable NeXT style scrollbar
1044 --enable-xterm-scroll enable Xterm style scrollbar 883 --enable-xterm-scroll enable Xterm style scrollbar
884 --enable-perl enable embedded perl interpreter
1045 --enable-plain-scroll enable plain style scrollbar 885 --enable-plain-scroll enable plain style scrollbar
1046 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1047 --enable-xim XIM (X Input Method) protocol support 886 --enable-xim XIM (X Input Method) protocol support
1048 --enable-ttygid enable tty setting to group named "tty"
1049 --disable-backspace-key disable handling of the backspace key 887 --disable-backspace-key disable handling of the backspace key
1050 --disable-delete-key disable handling of the delete key 888 --disable-delete-key disable handling of the delete key
1051 --disable-resources disable all resource checking 889 --disable-resources disable all resource checking
1052 --enable-xgetdefault enable resources via X instead of our small version 890 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1053 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 891 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1054 --enable-strings enable some replacement system functions
1055 --disable-swapscreen disable swap screen support 892 --disable-swapscreen disable swap screen support
893 --enable-iso14755 enable support for extended ISO 14755 modes
1056 --enable-frills enable support for rarely used features 894 --enable-frills enable support for rarely used features
1057 --enable-linespace enable support for linespace
1058 --enable-24bit enable support for using 24bit visuals if available
1059 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 895 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1060 --enable-selectionscrolling enable scrolling during selections 896 --enable-selectionscrolling enable scrolling during selections
1061 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 897 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1062 --enable-slipwheeling enable slip wheel scrolling (requires previous) 898 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1063 --enable-old-selection enable v2.20 (& prior) mouse selection style support
1064 --disable-new-selection disable new mouse (xterm) selection style support
1065 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1066 --enable-dlmalloc enable Doug Lea's malloc - for production use
1067 NOTE: enable only one malloc package
1068 --enable-smart-resize enable smart growth/shrink behaviour 899 --enable-smart-resize enable smart growth/shrink behaviour
1069 --enable-256-color enable 256-color support
1070 --enable-cursor-blink enable blinking cursor
1071 --enable-text-blink enable blinking text 900 --enable-text-blink enable blinking text
1072 --enable-pointer-blank enable pointer blank when typing or inactive pointer 901 --enable-pointer-blank enable pointer blank when typing or inactive pointer
902 --enable-utmp enable utmp (utmpx) support
903 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
904 --enable-lastlog enable lastlog support (requires --enable-utmp)
1073 905
1074Optional Packages: 906Optional Packages:
1075 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1076 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 908 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1077 --with-gnu-ld assume the C compiler uses GNU ld default=no 909 --with-afterimage-config=DIR use libAfterImage config script in DIR
1078 --with-pic try to use only PIC/non-PIC objects default=use both
1079 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) 910 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1080 --with-res-name=NAME use this as default resource name (default: urxvt) 911 --with-res-name=NAME use this as default resource name (default: urxvt)
1081 --with-res-class=CLASS use this as the resource class (default: URxvt) 912 --with-res-class=CLASS use this as the resource class (default: URxvt)
1082 --with-name=NAME set the basename for the installed binaries (default: urxvt) 913 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1083 --with-term=NAME set the terminal to NAME (default: rxvt) 914 --with-term=NAME set the terminal to NAME (default: rxvt)
1084 --with-terminfo=PATH set the path to the terminfo tree to PATH 915 --with-terminfo=PATH set the path to the terminfo tree to PATH
1188 echo 1019 echo
1189 $ac_configure --help 1020 $ac_configure --help
1190 else 1021 else
1191 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1022 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1192 fi 1023 fi
1193 cd "$ac_popdir" 1024 cd $ac_popdir
1194 done 1025 done
1195fi 1026fi
1196 1027
1197test -n "$ac_init_help" && exit 0 1028test -n "$ac_init_help" && exit 0
1198if $ac_init_version; then 1029if $ac_init_version; then
1535 1366
1536 1367
1537 1368
1538 1369
1539 1370
1371
1372
1373 ac_config_headers="$ac_config_headers config.h:config.h.in"
1374
1375
1540ac_aux_dir= 1376ac_aux_dir=
1541for ac_dir in autoconf $srcdir/autoconf; do 1377for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542 if test -f $ac_dir/install-sh; then 1378 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir 1379 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c" 1380 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break 1381 break
1546 elif test -f $ac_dir/install.sh; then 1382 elif test -f $ac_dir/install.sh; then
1552 ac_install_sh="$ac_aux_dir/shtool install -c" 1388 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break 1389 break
1554 fi 1390 fi
1555done 1391done
1556if test -z "$ac_aux_dir"; then 1392if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1393 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1394echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559 { (exit 1); exit 1; }; } 1395 { (exit 1); exit 1; }; }
1560fi 1396fi
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1397ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1398ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1399ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564 1400
1565 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1401# Make sure we can run config.sub.
1402$ac_config_sub sun4 >/dev/null 2>&1 ||
1403 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1404echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1405 { (exit 1); exit 1; }; }
1406
1407echo "$as_me:$LINENO: checking build system type" >&5
1408echo $ECHO_N "checking build system type... $ECHO_C" >&6
1409if test "${ac_cv_build+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411else
1412 ac_cv_build_alias=$build_alias
1413test -z "$ac_cv_build_alias" &&
1414 ac_cv_build_alias=`$ac_config_guess`
1415test -z "$ac_cv_build_alias" &&
1416 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1417echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1418 { (exit 1); exit 1; }; }
1419ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1420 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1421echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1422 { (exit 1); exit 1; }; }
1423
1424fi
1425echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1426echo "${ECHO_T}$ac_cv_build" >&6
1427build=$ac_cv_build
1428build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1429build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1430build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431
1432
1433echo "$as_me:$LINENO: checking host system type" >&5
1434echo $ECHO_N "checking host system type... $ECHO_C" >&6
1435if test "${ac_cv_host+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437else
1438 ac_cv_host_alias=$host_alias
1439test -z "$ac_cv_host_alias" &&
1440 ac_cv_host_alias=$ac_cv_build_alias
1441ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1442 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1443echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1444 { (exit 1); exit 1; }; }
1445
1446fi
1447echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1448echo "${ECHO_T}$ac_cv_host" >&6
1449host=$ac_cv_host
1450host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1451host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1452host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453
1566 1454
1567 1455
1568VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1456VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1569DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1457DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1570LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1571LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1572echo "" 1458echo ""
1573echo "configuring for rxvt $VERSION" 1459echo "configuring for rxvt $VERSION"
1574echo "" 1460echo ""
1461
1462orig_CXXFLAGS="$CXXFLAGS"
1575 1463
1576 1464
1577ac_ext=c 1465ac_ext=c
1578ac_cpp='$CPP $CPPFLAGS' 1466ac_cpp='$CPP $CPPFLAGS'
1579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2140 grep -v '^ *+' conftest.er1 >conftest.err 2028 grep -v '^ *+' conftest.er1 >conftest.err
2141 rm -f conftest.er1 2029 rm -f conftest.er1
2142 cat conftest.err >&5 2030 cat conftest.err >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); } && 2032 (exit $ac_status); } &&
2145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2033 { ac_try='test -z "$ac_c_werror_flag"
2034 || test ! -s conftest.err'
2146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147 (eval $ac_try) 2>&5 2036 (eval $ac_try) 2>&5
2148 ac_status=$? 2037 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; } && 2039 (exit $ac_status); }; } &&
2198 grep -v '^ *+' conftest.er1 >conftest.err 2087 grep -v '^ *+' conftest.er1 >conftest.err
2199 rm -f conftest.er1 2088 rm -f conftest.er1
2200 cat conftest.err >&5 2089 cat conftest.err >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } && 2091 (exit $ac_status); } &&
2203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2092 { ac_try='test -z "$ac_c_werror_flag"
2093 || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5 2095 (eval $ac_try) 2>&5
2206 ac_status=$? 2096 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } && 2098 (exit $ac_status); }; } &&
2314 grep -v '^ *+' conftest.er1 >conftest.err 2204 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1 2205 rm -f conftest.er1
2316 cat conftest.err >&5 2206 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } && 2208 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2209 { ac_try='test -z "$ac_c_werror_flag"
2210 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5 2212 (eval $ac_try) 2>&5
2322 ac_status=$? 2213 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } && 2215 (exit $ac_status); }; } &&
2368 grep -v '^ *+' conftest.er1 >conftest.err 2259 grep -v '^ *+' conftest.er1 >conftest.err
2369 rm -f conftest.er1 2260 rm -f conftest.er1
2370 cat conftest.err >&5 2261 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } && 2263 (exit $ac_status); } &&
2373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 (eval $ac_try) 2>&5 2267 (eval $ac_try) 2>&5
2376 ac_status=$? 2268 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; } && 2270 (exit $ac_status); }; } &&
2413 grep -v '^ *+' conftest.er1 >conftest.err 2305 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1 2306 rm -f conftest.er1
2415 cat conftest.err >&5 2307 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } && 2309 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2310 { ac_try='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5 2313 (eval $ac_try) 2>&5
2421 ac_status=$? 2314 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } && 2316 (exit $ac_status); }; } &&
2457 grep -v '^ *+' conftest.er1 >conftest.err 2350 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1 2351 rm -f conftest.er1
2459 cat conftest.err >&5 2352 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } && 2354 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2355 { ac_try='test -z "$ac_c_werror_flag"
2356 || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5 2358 (eval $ac_try) 2>&5
2465 ac_status=$? 2359 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } && 2361 (exit $ac_status); }; } &&
2641 grep -v '^ *+' conftest.er1 >conftest.err 2535 grep -v '^ *+' conftest.er1 >conftest.err
2642 rm -f conftest.er1 2536 rm -f conftest.er1
2643 cat conftest.err >&5 2537 cat conftest.err >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } && 2539 (exit $ac_status); } &&
2646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2540 { ac_try='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 (eval $ac_try) 2>&5 2543 (eval $ac_try) 2>&5
2649 ac_status=$? 2544 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } && 2546 (exit $ac_status); }; } &&
2699 grep -v '^ *+' conftest.er1 >conftest.err 2594 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1 2595 rm -f conftest.er1
2701 cat conftest.err >&5 2596 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } && 2598 (exit $ac_status); } &&
2704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2599 { ac_try='test -z "$ac_cxx_werror_flag"
2600 || test ! -s conftest.err'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 (eval $ac_try) 2>&5 2602 (eval $ac_try) 2>&5
2707 ac_status=$? 2603 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } && 2605 (exit $ac_status); }; } &&
2770 grep -v '^ *+' conftest.er1 >conftest.err 2666 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1 2667 rm -f conftest.er1
2772 cat conftest.err >&5 2668 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } && 2670 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2671 { ac_try='test -z "$ac_cxx_werror_flag"
2672 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5 2674 (eval $ac_try) 2>&5
2778 ac_status=$? 2675 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } && 2677 (exit $ac_status); }; } &&
2814 grep -v '^ *+' conftest.er1 >conftest.err 2711 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1 2712 rm -f conftest.er1
2816 cat conftest.err >&5 2713 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && 2715 (exit $ac_status); } &&
2819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2716 { ac_try='test -z "$ac_cxx_werror_flag"
2717 || test ! -s conftest.err'
2820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821 (eval $ac_try) 2>&5 2719 (eval $ac_try) 2>&5
2822 ac_status=$? 2720 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; } && 2722 (exit $ac_status); }; } &&
3160 3058
3161test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3059test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3162 3060
3163test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3061test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3164 3062
3165for ac_prog in gawk mawk nawk awk 3063
3166do 3064
3065
3066echo "$as_me:$LINENO: checking for egrep" >&5
3067echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3068if test "${ac_cv_prog_egrep+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
3071 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3072 then ac_cv_prog_egrep='grep -E'
3073 else ac_cv_prog_egrep='egrep'
3074 fi
3075fi
3076echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3077echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3078 EGREP=$ac_cv_prog_egrep
3079
3080
3081
3082echo "$as_me:$LINENO: checking for AIX" >&5
3083echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3084cat >conftest.$ac_ext <<_ACEOF
3085/* confdefs.h. */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h. */
3090#ifdef _AIX
3091 yes
3092#endif
3093
3094_ACEOF
3095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3096 $EGREP "yes" >/dev/null 2>&1; then
3097 echo "$as_me:$LINENO: result: yes" >&5
3098echo "${ECHO_T}yes" >&6
3099cat >>confdefs.h <<\_ACEOF
3100#define _ALL_SOURCE 1
3101_ACEOF
3102
3103else
3104 echo "$as_me:$LINENO: result: no" >&5
3105echo "${ECHO_T}no" >&6
3106fi
3107rm -f conftest*
3108
3109
3110echo "$as_me:$LINENO: checking for library containing strerror" >&5
3111echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3112if test "${ac_cv_search_strerror+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 ac_func_search_save_LIBS=$LIBS
3116ac_cv_search_strerror=no
3117cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123
3124/* Override any gcc2 internal prototype to avoid an error. */
3125#ifdef __cplusplus
3126extern "C"
3127#endif
3128/* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3130char strerror ();
3131int
3132main ()
3133{
3134strerror ();
3135 ;
3136 return 0;
3137}
3138_ACEOF
3139rm -f conftest.$ac_objext conftest$ac_exeext
3140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3141 (eval $ac_link) 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try='test -z "$ac_c_werror_flag"
3149 || test ! -s conftest.err'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest$ac_exeext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_search_strerror="none required"
3162else
3163 echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166fi
3167rm -f conftest.err conftest.$ac_objext \
3168 conftest$ac_exeext conftest.$ac_ext
3169if test "$ac_cv_search_strerror" = no; then
3170 for ac_lib in cposix; do
3171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3172 cat >conftest.$ac_ext <<_ACEOF
3173/* confdefs.h. */
3174_ACEOF
3175cat confdefs.h >>conftest.$ac_ext
3176cat >>conftest.$ac_ext <<_ACEOF
3177/* end confdefs.h. */
3178
3179/* Override any gcc2 internal prototype to avoid an error. */
3180#ifdef __cplusplus
3181extern "C"
3182#endif
3183/* We use char because int might match the return type of a gcc2
3184 builtin and then its argument prototype would still apply. */
3185char strerror ();
3186int
3187main ()
3188{
3189strerror ();
3190 ;
3191 return 0;
3192}
3193_ACEOF
3194rm -f conftest.$ac_objext conftest$ac_exeext
3195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196 (eval $ac_link) 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } &&
3203 { ac_try='test -z "$ac_c_werror_flag"
3204 || test ! -s conftest.err'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 (eval $ac_try) 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest$ac_exeext'
3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 (eval $ac_try) 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; }; then
3216 ac_cv_search_strerror="-l$ac_lib"
3217break
3218else
3219 echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222fi
3223rm -f conftest.err conftest.$ac_objext \
3224 conftest$ac_exeext conftest.$ac_ext
3225 done
3226fi
3227LIBS=$ac_func_search_save_LIBS
3228fi
3229echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3230echo "${ECHO_T}$ac_cv_search_strerror" >&6
3231if test "$ac_cv_search_strerror" != no; then
3232 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3233
3234fi
3235
3236ac_ext=cc
3237ac_cpp='$CXXCPP $CPPFLAGS'
3238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3241
3242
3243if test x$GCC = xyes && test x$GXX = xyes; then
3244 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3245echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3246 save_CXX="$CXX"
3247 save_LIBS="$LIBS"
3248 CXX="$CC"
3249 LIBS="$LIBS -lsupc++"
3250 LINKER="$CC"
3251
3252cat >conftest.$ac_ext <<_ACEOF
3253/* confdefs.h. */
3254_ACEOF
3255cat confdefs.h >>conftest.$ac_ext
3256cat >>conftest.$ac_ext <<_ACEOF
3257/* end confdefs.h. */
3258struct test { }; void f() try { throw new test; } catch (...) { throw; }
3259int
3260main ()
3261{
3262
3263 ;
3264 return 0;
3265}
3266_ACEOF
3267rm -f conftest.$ac_objext conftest$ac_exeext
3268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -z "$ac_cxx_werror_flag"
3277 || test ! -s conftest.err'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; } &&
3283 { ac_try='test -s conftest$ac_exeext'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3289
3290 echo "$as_me:$LINENO: result: ok" >&5
3291echo "${ECHO_T}ok" >&6
3292 CXXLIB="-lsupc++"
3293
3294else
3295 echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298
3299 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3300echo "${ECHO_T}no, making everything bigger and slower" >&6
3301 LIBS="$save_LIBS"
3302 LINKER="$save_CXX"
3303
3304
3305fi
3306rm -f conftest.err conftest.$ac_objext \
3307 conftest$ac_exeext conftest.$ac_ext
3308 CXX="$save_CXX"
3309fi
3310LINKER=$LINKER
3311
3312
3313
3314if test -z "$orig_CXXFLAGS"; then
3315 if test x$GCC = xyes && test "x$GXX" = xyes; then
3316 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3317 cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
3323
3324int
3325main ()
3326{
3327
3328 ;
3329 return 0;
3330}
3331_ACEOF
3332rm -f conftest.$ac_objext
3333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_cxx_werror_flag"
3342 || test ! -s conftest.err'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 :
3355else
3356 echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359CXXFLAGS="-g -O3"
3360fi
3361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3362 else
3363 CXXFLAGS="-O"
3364 fi
3365 CFLAGS="$CXXFLAGS"
3366fi
3367
3368
3369cat >>confdefs.h <<\_ACEOF
3370#define _GNU_SOURCE 1
3371_ACEOF
3372
3373
3374case $host in
3375 *-*-solaris* )
3376
3377cat >>confdefs.h <<\_ACEOF
3378#define _XOPEN_SOURCE_EXTENDED 1
3379_ACEOF
3380
3381
3382cat >>confdefs.h <<\_ACEOF
3383#define _XOPEN_SOURCE 2
3384_ACEOF
3385
3386
3387cat >>confdefs.h <<\_ACEOF
3388#define __EXTENSIONS__ 1
3389_ACEOF
3390
3391 ;;
3392esac
3393
3394
3395echo "$as_me:$LINENO: checking for setlocale" >&5
3396echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3397if test "${ac_cv_func_setlocale+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */
3406/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3408#define setlocale innocuous_setlocale
3409
3410/* System header to define __stub macros and hopefully few prototypes,
3411 which can conflict with char setlocale (); below.
3412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 <limits.h> exists even on freestanding compilers. */
3414
3415#ifdef __STDC__
3416# include <limits.h>
3417#else
3418# include <assert.h>
3419#endif
3420
3421#undef setlocale
3422
3423/* Override any gcc2 internal prototype to avoid an error. */
3424#ifdef __cplusplus
3425extern "C"
3426{
3427#endif
3428/* We use char because int might match the return type of a gcc2
3429 builtin and then its argument prototype would still apply. */
3430char setlocale ();
3431/* The GNU C library defines this for functions which it implements
3432 to always fail with ENOSYS. Some functions are actually named
3433 something starting with __ and the normal name is an alias. */
3434#if defined (__stub_setlocale) || defined (__stub___setlocale)
3435choke me
3436#else
3437char (*f) () = setlocale;
3438#endif
3439#ifdef __cplusplus
3440}
3441#endif
3442
3443int
3444main ()
3445{
3446return f != setlocale;
3447 ;
3448 return 0;
3449}
3450_ACEOF
3451rm -f conftest.$ac_objext conftest$ac_exeext
3452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3453 (eval $ac_link) 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -z "$ac_cxx_werror_flag"
3461 || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try='test -s conftest$ac_exeext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_func_setlocale=yes
3474else
3475 echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478ac_cv_func_setlocale=no
3479fi
3480rm -f conftest.err conftest.$ac_objext \
3481 conftest$ac_exeext conftest.$ac_ext
3482fi
3483echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3484echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3485if test $ac_cv_func_setlocale = yes; then
3486 :
3487else
3488 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3489echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3490if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492else
3493 ac_check_lib_save_LIBS=$LIBS
3494LIBS="-lxpg4 $LIBS"
3495cat >conftest.$ac_ext <<_ACEOF
3496/* confdefs.h. */
3497_ACEOF
3498cat confdefs.h >>conftest.$ac_ext
3499cat >>conftest.$ac_ext <<_ACEOF
3500/* end confdefs.h. */
3501
3502/* Override any gcc2 internal prototype to avoid an error. */
3503#ifdef __cplusplus
3504extern "C"
3505#endif
3506/* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3508char setlocale ();
3509int
3510main ()
3511{
3512setlocale ();
3513 ;
3514 return 0;
3515}
3516_ACEOF
3517rm -f conftest.$ac_objext conftest$ac_exeext
3518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3519 (eval $ac_link) 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_cxx_werror_flag"
3527 || test ! -s conftest.err'
3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; } &&
3533 { ac_try='test -s conftest$ac_exeext'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; }; then
3539 ac_cv_lib_xpg4_setlocale=yes
3540else
3541 echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544ac_cv_lib_xpg4_setlocale=no
3545fi
3546rm -f conftest.err conftest.$ac_objext \
3547 conftest$ac_exeext conftest.$ac_ext
3548LIBS=$ac_check_lib_save_LIBS
3549fi
3550echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3551echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3552if test $ac_cv_lib_xpg4_setlocale = yes; then
3553 LIBS="$LIBS -lxpg4"
3554fi
3555
3556fi
3557
3558
3559echo "$as_me:$LINENO: checking for gethostbyname" >&5
3560echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3561if test "${ac_cv_func_gethostbyname+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564 cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h. */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h. */
3570/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3572#define gethostbyname innocuous_gethostbyname
3573
3574/* System header to define __stub macros and hopefully few prototypes,
3575 which can conflict with char gethostbyname (); below.
3576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 <limits.h> exists even on freestanding compilers. */
3578
3579#ifdef __STDC__
3580# include <limits.h>
3581#else
3582# include <assert.h>
3583#endif
3584
3585#undef gethostbyname
3586
3587/* Override any gcc2 internal prototype to avoid an error. */
3588#ifdef __cplusplus
3589extern "C"
3590{
3591#endif
3592/* We use char because int might match the return type of a gcc2
3593 builtin and then its argument prototype would still apply. */
3594char gethostbyname ();
3595/* The GNU C library defines this for functions which it implements
3596 to always fail with ENOSYS. Some functions are actually named
3597 something starting with __ and the normal name is an alias. */
3598#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3599choke me
3600#else
3601char (*f) () = gethostbyname;
3602#endif
3603#ifdef __cplusplus
3604}
3605#endif
3606
3607int
3608main ()
3609{
3610return f != gethostbyname;
3611 ;
3612 return 0;
3613}
3614_ACEOF
3615rm -f conftest.$ac_objext conftest$ac_exeext
3616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617 (eval $ac_link) 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_cxx_werror_flag"
3625 || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest$ac_exeext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 ac_cv_func_gethostbyname=yes
3638else
3639 echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642ac_cv_func_gethostbyname=no
3643fi
3644rm -f conftest.err conftest.$ac_objext \
3645 conftest$ac_exeext conftest.$ac_ext
3646fi
3647echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3648echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3649if test $ac_cv_func_gethostbyname = yes; then
3650 :
3651else
3652 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3653echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3654if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657 ac_check_lib_save_LIBS=$LIBS
3658LIBS="-lnsl $LIBS"
3659cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h. */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h. */
3665
3666/* Override any gcc2 internal prototype to avoid an error. */
3667#ifdef __cplusplus
3668extern "C"
3669#endif
3670/* We use char because int might match the return type of a gcc2
3671 builtin and then its argument prototype would still apply. */
3672char gethostbyname ();
3673int
3674main ()
3675{
3676gethostbyname ();
3677 ;
3678 return 0;
3679}
3680_ACEOF
3681rm -f conftest.$ac_objext conftest$ac_exeext
3682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683 (eval $ac_link) 2>conftest.er1
3684 ac_status=$?
3685 grep -v '^ *+' conftest.er1 >conftest.err
3686 rm -f conftest.er1
3687 cat conftest.err >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } &&
3690 { ac_try='test -z "$ac_cxx_werror_flag"
3691 || test ! -s conftest.err'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; } &&
3697 { ac_try='test -s conftest$ac_exeext'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3703 ac_cv_lib_nsl_gethostbyname=yes
3704else
3705 echo "$as_me: failed program was:" >&5
3706sed 's/^/| /' conftest.$ac_ext >&5
3707
3708ac_cv_lib_nsl_gethostbyname=no
3709fi
3710rm -f conftest.err conftest.$ac_objext \
3711 conftest$ac_exeext conftest.$ac_ext
3712LIBS=$ac_check_lib_save_LIBS
3713fi
3714echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3715echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3716if test $ac_cv_lib_nsl_gethostbyname = yes; then
3717 LIBS="$LIBS -lnsl"
3718fi
3719
3720fi
3721
3722echo "$as_me:$LINENO: checking for socket" >&5
3723echo $ECHO_N "checking for socket... $ECHO_C" >&6
3724if test "${ac_cv_func_socket+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726else
3727 cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h. */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h. */
3733/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3735#define socket innocuous_socket
3736
3737/* System header to define __stub macros and hopefully few prototypes,
3738 which can conflict with char socket (); below.
3739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3740 <limits.h> exists even on freestanding compilers. */
3741
3742#ifdef __STDC__
3743# include <limits.h>
3744#else
3745# include <assert.h>
3746#endif
3747
3748#undef socket
3749
3750/* Override any gcc2 internal prototype to avoid an error. */
3751#ifdef __cplusplus
3752extern "C"
3753{
3754#endif
3755/* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3757char socket ();
3758/* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761#if defined (__stub_socket) || defined (__stub___socket)
3762choke me
3763#else
3764char (*f) () = socket;
3765#endif
3766#ifdef __cplusplus
3767}
3768#endif
3769
3770int
3771main ()
3772{
3773return f != socket;
3774 ;
3775 return 0;
3776}
3777_ACEOF
3778rm -f conftest.$ac_objext conftest$ac_exeext
3779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780 (eval $ac_link) 2>conftest.er1
3781 ac_status=$?
3782 grep -v '^ *+' conftest.er1 >conftest.err
3783 rm -f conftest.er1
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -z "$ac_cxx_werror_flag"
3788 || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_func_socket=yes
3801else
3802 echo "$as_me: failed program was:" >&5
3803sed 's/^/| /' conftest.$ac_ext >&5
3804
3805ac_cv_func_socket=no
3806fi
3807rm -f conftest.err conftest.$ac_objext \
3808 conftest$ac_exeext conftest.$ac_ext
3809fi
3810echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3811echo "${ECHO_T}$ac_cv_func_socket" >&6
3812if test $ac_cv_func_socket = yes; then
3813 :
3814else
3815 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3816echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3817if test "${ac_cv_lib_socket_socket+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819else
3820 ac_check_lib_save_LIBS=$LIBS
3821LIBS="-lsocket $LIBS"
3822cat >conftest.$ac_ext <<_ACEOF
3823/* confdefs.h. */
3824_ACEOF
3825cat confdefs.h >>conftest.$ac_ext
3826cat >>conftest.$ac_ext <<_ACEOF
3827/* end confdefs.h. */
3828
3829/* Override any gcc2 internal prototype to avoid an error. */
3830#ifdef __cplusplus
3831extern "C"
3832#endif
3833/* We use char because int might match the return type of a gcc2
3834 builtin and then its argument prototype would still apply. */
3835char socket ();
3836int
3837main ()
3838{
3839socket ();
3840 ;
3841 return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext
3845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846 (eval $ac_link) 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } &&
3853 { ac_try='test -z "$ac_cxx_werror_flag"
3854 || test ! -s conftest.err'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; } &&
3860 { ac_try='test -s conftest$ac_exeext'
3861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 (eval $ac_try) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_lib_socket_socket=yes
3867else
3868 echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871ac_cv_lib_socket_socket=no
3872fi
3873rm -f conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext
3875LIBS=$ac_check_lib_save_LIBS
3876fi
3877echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3878echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3879if test $ac_cv_lib_socket_socket = yes; then
3880 LIBS="$LIBS -lsocket"
3881fi
3882
3883fi
3884
3885
3886
3887support_frills=yes
3888support_inheritpixmap=yes
3889support_tinting=yes
3890support_fading=yes
3891support_keepscrolling=yes
3892support_selectionscrolling=yes
3893support_mousewheel=yes
3894support_mouseslipwheel=yes
3895support_text_blink=yes
3896support_pointer_blank=yes
3897support_scroll_rxvt=yes
3898support_scroll_next=yes
3899support_scroll_xterm=yes
3900support_scroll_plain=yes
3901support_xim=yes
3902support_xpm=yes
3903support_afterimage=yes
3904support_afterstep=yes
3905support_xft=yes
3906support_unicode3=no
3907support_combining=yes
3908support_8bitctrls=no
3909support_iso14755=yes
3910support_styles=yes
3911support_perl=yes
3912codesets=all
3913
3914
3915if test "x$enable_shared" = xyes; then
3916
3917cat >>confdefs.h <<\_ACEOF
3918#define LIBRXVT 1
3919_ACEOF
3920
3921 INSTALL_LIBRXVT=yes
3922fi
3923
3924
3925# Check whether --enable-everything or --disable-everything was given.
3926if test "${enable_everything+set}" = set; then
3927 enableval="$enable_everything"
3928
3929 if test x$enableval = xno; then
3930 support_frills=no
3931 support_inheritpixmap=no
3932 support_tinting=no
3933 support_fading=no
3934 support_keepscrolling=no
3935 support_selectionscrolling=no
3936 support_lastlog=no
3937 support_mousewheel=no
3938 support_mouseslipwheel=no
3939 support_text_blink=no
3940 support_pointer_blank=no
3941 support_scroll_rxvt=no
3942 support_scroll_next=no
3943 support_scroll_xterm=no
3944 support_scroll_plain=no
3945 support_utmp=no
3946 support_wtmp=no
3947 support_xim=no
3948 support_xpm=no
3949 support_afterimage=no
3950 support_afterstep=no
3951 support_xft=no
3952 support_unicode3=no
3953 support_combining=no
3954 support_8bitctrls=no
3955 support_iso14755=no
3956 support_styles=no
3957 support_perl=no
3958 codesets=
3959 fi
3960 if test x$enableval = xyes; then
3961 support_frills=yes
3962 support_inheritpixmap=yes
3963 support_tinting=yes
3964 support_fading=yes
3965 support_keepscrolling=yes
3966 support_selectionscrolling=yes
3967 support_lastlog=yes
3968 support_mousewheel=yes
3969 support_mouseslipwheel=yes
3970 support_text_blink=yes
3971 support_pointer_blank=yes
3972 support_scroll_rxvt=yes
3973 support_scroll_next=yes
3974 support_scroll_xterm=yes
3975 support_scroll_plain=yes
3976 support_utmp=yes
3977 support_wtmp=yes
3978 support_xim=yes
3979 support_xpm=yes
3980 support_afterimage=yes
3981 support_afterstep=yes
3982 support_xft=yes
3983 support_unicode3=yes
3984 support_combining=yes
3985 #support_8bitctrls=yes
3986 support_iso14755=yes
3987 support_styles=yes
3988 support_perl=yes
3989 codesets=all
3990 fi
3991
3992fi;
3993
3994# Check whether --enable-unicode3 or --disable-unicode3 was given.
3995if test "${enable_unicode3+set}" = set; then
3996 enableval="$enable_unicode3"
3997 if test x$enableval = xyes -o x$enableval = xno; then
3998 support_unicode3=$enableval
3999 fi
4000fi;
4001
4002# Check whether --enable-combining or --disable-combining was given.
4003if test "${enable_combining+set}" = set; then
4004 enableval="$enable_combining"
4005 if test x$enableval = xyes -o x$enableval = xno; then
4006 support_combining=$enableval
4007 fi
4008fi;
4009
4010# Check whether --enable-xft or --disable-xft was given.
4011if test "${enable_xft+set}" = set; then
4012 enableval="$enable_xft"
4013 if test x$enableval = xyes -o x$enableval = xno; then
4014 support_xft=$enableval
4015 fi
4016fi;
4017
4018# Check whether --enable-font-styles or --disable-font-styles was given.
4019if test "${enable_font_styles+set}" = set; then
4020 enableval="$enable_font_styles"
4021 if test x$enableval = xyes -o x$enableval = xno; then
4022 support_styles=$enableval
4023 fi
4024fi;
4025
4026# Check whether --enable-xpm-background or --disable-xpm-background was given.
4027if test "${enable_xpm_background+set}" = set; then
4028 enableval="$enable_xpm_background"
4029 if test x$enableval = xyes -o x$enableval = xno; then
4030 support_xpm=$enableval
4031 fi
4032fi;
4033
4034# Check whether --enable-afterimage or --disable-afterimage was given.
4035if test "${enable_afterimage+set}" = set; then
4036 enableval="$enable_afterimage"
4037 if test x$enableval = xyes -o x$enableval = xno; then
4038 support_afterimage=$enableval
4039 fi
4040fi;
4041
4042
4043# Check whether --with-afterimage_config or --without-afterimage_config was given.
4044if test "${with_afterimage_config+set}" = set; then
4045 withval="$with_afterimage_config"
4046 if test "x$withval" != x; then
4047 afterimage_config=$withval/afterimage-config
4048 fi
4049fi;
4050
4051# Check whether --enable-afterstep or --disable-afterstep was given.
4052if test "${enable_afterstep+set}" = set; then
4053 enableval="$enable_afterstep"
4054 if test x$enableval = xyes -o x$enableval = xno; then
4055 support_afterstep=$enableval
4056 fi
4057fi;
4058
4059# Check whether --enable-transparency or --disable-transparency was given.
4060if test "${enable_transparency+set}" = set; then
4061 enableval="$enable_transparency"
4062 if test x$enableval = xyes -o x$enableval = xno; then
4063 support_inheritpixmap=$enableval
4064 fi
4065fi;
4066
4067# Check whether --enable-tinting or --disable-tinting was given.
4068if test "${enable_tinting+set}" = set; then
4069 enableval="$enable_tinting"
4070 if test x$enableval = xyes -o x$enableval = xno; then
4071 support_tinting=$enableval
4072 fi
4073fi;
4074
4075# Check whether --enable-fading or --disable-fading was given.
4076if test "${enable_fading+set}" = set; then
4077 enableval="$enable_fading"
4078 if test x$enableval = xyes -o x$enableval = xno; then
4079 support_fading=$enableval
4080 fi
4081fi;
4082
4083# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4084if test "${enable_rxvt_scroll+set}" = set; then
4085 enableval="$enable_rxvt_scroll"
4086 if test x$enableval = xyes -o x$enableval = xno; then
4087 support_scroll_rxvt=$enableval
4088 fi
4089fi;
4090
4091# Check whether --enable-next-scroll or --disable-next-scroll was given.
4092if test "${enable_next_scroll+set}" = set; then
4093 enableval="$enable_next_scroll"
4094 if test x$enableval = xyes -o x$enableval = xno; then
4095 support_scroll_next=$enableval
4096 fi
4097fi;
4098
4099# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4100if test "${enable_xterm_scroll+set}" = set; then
4101 enableval="$enable_xterm_scroll"
4102 if test x$enableval = xyes -o x$enableval = xno; then
4103 support_scroll_xterm=$enableval
4104 fi
4105fi;
4106
4107# Check whether --enable-perl or --disable-perl was given.
4108if test "${enable_perl+set}" = set; then
4109 enableval="$enable_perl"
4110 if test x$enableval = xyes -o x$enableval = xno; then
4111 support_perl=$enableval
4112 fi
4113fi;
4114
4115# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4116if test "${enable_plain_scroll+set}" = set; then
4117 enableval="$enable_plain_scroll"
4118 if test x$enableval = xyes -o x$enableval = xno; then
4119 support_scroll_plain=$enableval
4120 fi
4121fi;
4122
4123
4124# Check whether --with-codesets or --without-codesets was given.
4125if test "${with_codesets+set}" = set; then
4126 withval="$with_codesets"
4127 codesets="$withval"
4128fi;
4129
4130# Check whether --enable-xim or --disable-xim was given.
4131if test "${enable_xim+set}" = set; then
4132 enableval="$enable_xim"
4133 if test x$enableval = xyes -o x$enableval = xno; then
4134 support_xim=$enableval
4135 fi
4136fi;
4137
4138# Check whether --enable-backspace-key or --disable-backspace-key was given.
4139if test "${enable_backspace_key+set}" = set; then
4140 enableval="$enable_backspace_key"
4141 if test x$enableval = xno; then
4142
4143cat >>confdefs.h <<\_ACEOF
4144#define NO_BACKSPACE_KEY 1
4145_ACEOF
4146
4147 fi
4148fi;
4149
4150# Check whether --enable-delete-key or --disable-delete-key was given.
4151if test "${enable_delete_key+set}" = set; then
4152 enableval="$enable_delete_key"
4153 if test x$enableval = xno; then
4154
4155cat >>confdefs.h <<\_ACEOF
4156#define NO_DELETE_KEY 1
4157_ACEOF
4158
4159 fi
4160fi;
4161
4162# Check whether --enable-resources or --disable-resources was given.
4163if test "${enable_resources+set}" = set; then
4164 enableval="$enable_resources"
4165 if test x$enableval = xno; then
4166
4167cat >>confdefs.h <<\_ACEOF
4168#define NO_RESOURCES 1
4169_ACEOF
4170
4171 fi
4172fi;
4173
4174# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4175if test "${enable_8bitctrls+set}" = set; then
4176 enableval="$enable_8bitctrls"
4177 if test x$enableval = xyes -o x$enableval = xno; then
4178 support_8bitctrls=$enableval
4179 fi
4180fi;
4181
4182RESFALLBACK=Rxvt
4183# Check whether --enable-fallback or --disable-fallback was given.
4184if test "${enable_fallback+set}" = set; then
4185 enableval="$enable_fallback"
4186
4187 test x$enableval = xyes && enableval=Rxvt
4188 test x$enableval = xno && enableval=
4189 RESFALLBACK="$enableval"
4190
4191fi;
4192
4193if test x$RESFALLBACK != x; then
4194
4195cat >>confdefs.h <<_ACEOF
4196#define RESFALLBACK "$RESFALLBACK"
4197_ACEOF
4198
4199fi
4200
4201RESNAME=urxvt
4202
4203# Check whether --with-res-name or --without-res-name was given.
4204if test "${with_res_name+set}" = set; then
4205 withval="$with_res_name"
4206 RESNAME="$withval"
4207fi;
4208
4209cat >>confdefs.h <<_ACEOF
4210#define RESNAME "$RESNAME"
4211_ACEOF
4212
4213
4214RESCLASS=URxvt
4215
4216# Check whether --with-res-class or --without-res-class was given.
4217if test "${with_res_class+set}" = set; then
4218 withval="$with_res_class"
4219 RESCLASS="$withval"
4220fi;
4221
4222cat >>confdefs.h <<_ACEOF
4223#define RESCLASS "$RESCLASS"
4224_ACEOF
4225
4226
4227RXVTNAME=urxvt
4228
4229# Check whether --with-name or --without-name was given.
4230if test "${with_name+set}" = set; then
4231 withval="$with_name"
4232 RXVTNAME="$withval"
4233fi;
4234
4235cat >>confdefs.h <<_ACEOF
4236#define RXVTNAME "$RXVTNAME"
4237_ACEOF
4238
4239
4240RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4241
4242
4243# Check whether --enable-swapscreen or --disable-swapscreen was given.
4244if test "${enable_swapscreen+set}" = set; then
4245 enableval="$enable_swapscreen"
4246 if test x$enableval = xno; then
4247
4248cat >>confdefs.h <<\_ACEOF
4249#define NO_SECONDARY_SCREEN 1
4250_ACEOF
4251
4252 fi
4253fi;
4254
4255# Check whether --enable-iso14755 or --disable-iso14755 was given.
4256if test "${enable_iso14755+set}" = set; then
4257 enableval="$enable_iso14755"
4258 if test x$enableval = xyes -o x$enableval = xno; then
4259 support_iso14755=$enableval
4260 fi
4261fi;
4262
4263# Check whether --enable-frills or --disable-frills was given.
4264if test "${enable_frills+set}" = set; then
4265 enableval="$enable_frills"
4266 if test x$enableval = xyes -o x$enableval = xno; then
4267 support_frills=$enableval
4268 fi
4269fi;
4270
4271# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4272if test "${enable_keepscrolling+set}" = set; then
4273 enableval="$enable_keepscrolling"
4274 if test x$enableval = xyes -o x$enableval = xno; then
4275 support_keepscrolling=$enableval
4276 fi
4277fi;
4278
4279# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4280if test "${enable_selectionscrolling+set}" = set; then
4281 enableval="$enable_selectionscrolling"
4282 if test x$enableval = xyes -o x$enableval = xno; then
4283 support_selectionscrolling=$enableval
4284 fi
4285fi;
4286
4287# Check whether --enable-mousewheel or --disable-mousewheel was given.
4288if test "${enable_mousewheel+set}" = set; then
4289 enableval="$enable_mousewheel"
4290 if test x$enableval = xyes -o x$enableval = xno; then
4291 support_mousewheel=$enableval
4292 fi
4293fi;
4294
4295# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4296if test "${enable_slipwheeling+set}" = set; then
4297 enableval="$enable_slipwheeling"
4298 if test x$enableval = xyes -o x$enableval = xno; then
4299 support_mouseslipwheel=$enableval
4300 fi
4301fi;
4302
4303# Check whether --enable-smart-resize or --disable-smart-resize was given.
4304if test "${enable_smart_resize+set}" = set; then
4305 enableval="$enable_smart_resize"
4306 if test x$enableval = xyes; then
4307
4308cat >>confdefs.h <<\_ACEOF
4309#define SMART_RESIZE 1
4310_ACEOF
4311
4312 fi
4313fi;
4314
4315# Check whether --enable-text-blink or --disable-text-blink was given.
4316if test "${enable_text_blink+set}" = set; then
4317 enableval="$enable_text_blink"
4318 if test x$enableval = xyes -o x$enableval = xno; then
4319 support_text_blink=$enableval
4320 fi
4321fi;
4322
4323# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4324if test "${enable_pointer_blank+set}" = set; then
4325 enableval="$enable_pointer_blank"
4326 if test x$enableval = xyes -o x$enableval = xno; then
4327 support_pointer_blank=$enableval
4328 fi
4329fi;
4330
4331
4332# Check whether --with-term or --without-term was given.
4333if test "${with_term+set}" = set; then
4334 withval="$with_term"
4335 if test x$withval != x; then
4336
4337cat >>confdefs.h <<_ACEOF
4338#define TERMENV "$withval"
4339_ACEOF
4340 term="$withval"
4341 fi
4342fi;
4343
4344
4345# Check whether --with-terminfo or --without-terminfo was given.
4346if test "${with_terminfo+set}" = set; then
4347 withval="$with_terminfo"
4348 if test x$withval != x; then
4349
4350cat >>confdefs.h <<_ACEOF
4351#define RXVT_TERMINFO "$withval"
4352_ACEOF
4353 terminfo="$withval"
4354 fi
4355fi;
4356
4357
3167 # Extract the first word of "$ac_prog", so it can be a program name with args. 4358# Extract the first word of "tic", so it can be a program name with args.
3168set dummy $ac_prog; ac_word=$2 4359set dummy tic; ac_word=$2
3169echo "$as_me:$LINENO: checking for $ac_word" >&5 4360echo "$as_me:$LINENO: checking for $ac_word" >&5
3170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171if test "${ac_cv_prog_AWK+set}" = set; then 4362if test "${ac_cv_path_TIC+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6 4363 echo $ECHO_N "(cached) $ECHO_C" >&6
3173else 4364else
3174 if test -n "$AWK"; then 4365 case $TIC in
4366 [\\/]* | ?:[\\/]*)
3175 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4367 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
3176else 4368 ;;
4369 *)
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH 4371for as_dir in $PATH
3179do 4372do
3180 IFS=$as_save_IFS 4373 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=. 4374 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do 4375 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_AWK="$ac_prog" 4377 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
3185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2 4379 break 2
3187 fi 4380 fi
3188done 4381done
3189done 4382done
3190 4383
4384 ;;
4385esac
3191fi 4386fi
3192fi 4387TIC=$ac_cv_path_TIC
3193AWK=$ac_cv_prog_AWK 4388
3194if test -n "$AWK"; then 4389if test -n "$TIC"; then
3195 echo "$as_me:$LINENO: result: $AWK" >&5 4390 echo "$as_me:$LINENO: result: $TIC" >&5
3196echo "${ECHO_T}$AWK" >&6 4391echo "${ECHO_T}$TIC" >&6
3197else 4392else
3198 echo "$as_me:$LINENO: result: no" >&5 4393 echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6 4394echo "${ECHO_T}no" >&6
3200fi 4395fi
3201 4396
3202 test -n "$AWK" && break
3203done
3204
3205
3206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211
3212
3213LINKER="$CXX"
3214if test x$GCC = xyes && test x$GXX = xyes; then
3215
3216echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3217echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3218if test "${ac_cv_lib_supcpp_main+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221 ac_check_lib_save_LIBS=$LIBS
3222LIBS="-lsupc++ $LIBS"
3223cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
3229
3230
3231int
3232main ()
3233{
3234main ();
3235 ;
3236 return 0;
3237}
3238_ACEOF
3239rm -f conftest.$ac_objext conftest$ac_exeext
3240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3241 (eval $ac_link) 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } &&
3248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try='test -s conftest$ac_exeext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_lib_supcpp_main=yes
3261else
3262 echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265ac_cv_lib_supcpp_main=no
3266fi
3267rm -f conftest.err conftest.$ac_objext \
3268 conftest$ac_exeext conftest.$ac_ext
3269LIBS=$ac_check_lib_save_LIBS
3270fi
3271echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3272echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3273if test $ac_cv_lib_supcpp_main = yes; then
3274
3275 LINKER="$CC"
3276 LIBS="$LIBS -lsupc++"
3277
3278fi
3279
3280fi
3281LINKER=$LINKER
3282
3283
3284CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3285
3286if test x$GXX = xyes; then
3287 CXXFLAGS="$CXXFLAGS -fno-exceptions"
3288fi
3289
3290ac_ext=cc
3291ac_cpp='$CXXCPP $CPPFLAGS'
3292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3295 4397
3296 4398
3297 4399
3298ac_ext=cc 4400ac_ext=cc
3299ac_cpp='$CXXCPP $CPPFLAGS' 4401ac_cpp='$CXXCPP $CPPFLAGS'
3522ac_ext=cc 4624ac_ext=cc
3523ac_cpp='$CXXCPP $CPPFLAGS' 4625ac_cpp='$CXXCPP $CPPFLAGS'
3524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3527
3528
3529echo "$as_me:$LINENO: checking for egrep" >&5
3530echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3531if test "${ac_cv_prog_egrep+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533else
3534 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3535 then ac_cv_prog_egrep='grep -E'
3536 else ac_cv_prog_egrep='egrep'
3537 fi
3538fi
3539echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3540echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3541 EGREP=$ac_cv_prog_egrep
3542
3543
3544
3545echo "$as_me:$LINENO: checking for AIX" >&5
3546echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3547cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h. */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
3552/* end confdefs.h. */
3553#ifdef _AIX
3554 yes
3555#endif
3556
3557_ACEOF
3558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559 $EGREP "yes" >/dev/null 2>&1; then
3560 echo "$as_me:$LINENO: result: yes" >&5
3561echo "${ECHO_T}yes" >&6
3562cat >>confdefs.h <<\_ACEOF
3563#define _ALL_SOURCE 1
3564_ACEOF
3565
3566else
3567 echo "$as_me:$LINENO: result: no" >&5
3568echo "${ECHO_T}no" >&6
3569fi
3570rm -f conftest*
3571
3572
3573echo "$as_me:$LINENO: checking for library containing strerror" >&5
3574echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3575if test "${ac_cv_search_strerror+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577else
3578 ac_func_search_save_LIBS=$LIBS
3579ac_cv_search_strerror=no
3580cat >conftest.$ac_ext <<_ACEOF
3581/* confdefs.h. */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h. */
3586
3587/* Override any gcc2 internal prototype to avoid an error. */
3588#ifdef __cplusplus
3589extern "C"
3590#endif
3591/* We use char because int might match the return type of a gcc2
3592 builtin and then its argument prototype would still apply. */
3593char strerror ();
3594int
3595main ()
3596{
3597strerror ();
3598 ;
3599 return 0;
3600}
3601_ACEOF
3602rm -f conftest.$ac_objext conftest$ac_exeext
3603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3604 (eval $ac_link) 2>conftest.er1
3605 ac_status=$?
3606 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; } &&
3617 { ac_try='test -s conftest$ac_exeext'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_cv_search_strerror="none required"
3624else
3625 echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628fi
3629rm -f conftest.err conftest.$ac_objext \
3630 conftest$ac_exeext conftest.$ac_ext
3631if test "$ac_cv_search_strerror" = no; then
3632 for ac_lib in cposix; do
3633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3634 cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h. */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h. */
3640
3641/* Override any gcc2 internal prototype to avoid an error. */
3642#ifdef __cplusplus
3643extern "C"
3644#endif
3645/* We use char because int might match the return type of a gcc2
3646 builtin and then its argument prototype would still apply. */
3647char strerror ();
3648int
3649main ()
3650{
3651strerror ();
3652 ;
3653 return 0;
3654}
3655_ACEOF
3656rm -f conftest.$ac_objext conftest$ac_exeext
3657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3658 (eval $ac_link) 2>conftest.er1
3659 ac_status=$?
3660 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1
3662 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest$ac_exeext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_cv_search_strerror="-l$ac_lib"
3678break
3679else
3680 echo "$as_me: failed program was:" >&5
3681sed 's/^/| /' conftest.$ac_ext >&5
3682
3683fi
3684rm -f conftest.err conftest.$ac_objext \
3685 conftest$ac_exeext conftest.$ac_ext
3686 done
3687fi
3688LIBS=$ac_func_search_save_LIBS
3689fi
3690echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3691echo "${ECHO_T}$ac_cv_search_strerror" >&6
3692if test "$ac_cv_search_strerror" != no; then
3693 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3694
3695fi
3696
3697
3698# Check whether --enable-shared or --disable-shared was given.
3699if test "${enable_shared+set}" = set; then
3700 enableval="$enable_shared"
3701 p=${PACKAGE-default}
3702case "$enableval" in
3703yes) enable_shared=yes ;;
3704no) enable_shared=no ;;
3705*)
3706 enable_shared=no
3707 # Look at the argument we got. We use all the common list separators.
3708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3709 for pkg in $enableval; do
3710 if test "X$pkg" = "X$p"; then
3711 enable_shared=yes
3712 fi
3713 done
3714 IFS="$ac_save_ifs"
3715 ;;
3716esac
3717else
3718 enable_shared=no
3719fi; # Check whether --enable-static or --disable-static was given.
3720if test "${enable_static+set}" = set; then
3721 enableval="$enable_static"
3722 p=${PACKAGE-default}
3723case "$enableval" in
3724yes) enable_static=yes ;;
3725no) enable_static=no ;;
3726*)
3727 enable_static=no
3728 # Look at the argument we got. We use all the common list separators.
3729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3730 for pkg in $enableval; do
3731 if test "X$pkg" = "X$p"; then
3732 enable_static=yes
3733 fi
3734 done
3735 IFS="$ac_save_ifs"
3736 ;;
3737esac
3738else
3739 enable_static=yes
3740fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3741if test "${enable_fast_install+set}" = set; then
3742 enableval="$enable_fast_install"
3743 p=${PACKAGE-default}
3744case "$enableval" in
3745yes) enable_fast_install=yes ;;
3746no) enable_fast_install=no ;;
3747*)
3748 enable_fast_install=no
3749 # Look at the argument we got. We use all the common list separators.
3750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3751 for pkg in $enableval; do
3752 if test "X$pkg" = "X$p"; then
3753 enable_fast_install=yes
3754 fi
3755 done
3756 IFS="$ac_save_ifs"
3757 ;;
3758esac
3759else
3760 enable_fast_install=yes
3761fi;
3762# Make sure we can run config.sub.
3763$ac_config_sub sun4 >/dev/null 2>&1 ||
3764 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3765echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3766 { (exit 1); exit 1; }; }
3767
3768echo "$as_me:$LINENO: checking build system type" >&5
3769echo $ECHO_N "checking build system type... $ECHO_C" >&6
3770if test "${ac_cv_build+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773 ac_cv_build_alias=$build_alias
3774test -z "$ac_cv_build_alias" &&
3775 ac_cv_build_alias=`$ac_config_guess`
3776test -z "$ac_cv_build_alias" &&
3777 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3778echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3779 { (exit 1); exit 1; }; }
3780ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3781 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3782echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3783 { (exit 1); exit 1; }; }
3784
3785fi
3786echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3787echo "${ECHO_T}$ac_cv_build" >&6
3788build=$ac_cv_build
3789build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3790build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3791build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3792
3793
3794echo "$as_me:$LINENO: checking host system type" >&5
3795echo $ECHO_N "checking host system type... $ECHO_C" >&6
3796if test "${ac_cv_host+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798else
3799 ac_cv_host_alias=$host_alias
3800test -z "$ac_cv_host_alias" &&
3801 ac_cv_host_alias=$ac_cv_build_alias
3802ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3803 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3804echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3805 { (exit 1); exit 1; }; }
3806
3807fi
3808echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3809echo "${ECHO_T}$ac_cv_host" >&6
3810host=$ac_cv_host
3811host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3812host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3813host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3814
3815
3816
3817# Check whether --with-gnu-ld or --without-gnu-ld was given.
3818if test "${with_gnu_ld+set}" = set; then
3819 withval="$with_gnu_ld"
3820 test "$withval" = no || with_gnu_ld=yes
3821else
3822 with_gnu_ld=no
3823fi;
3824ac_prog=ld
3825if test "$GCC" = yes; then
3826 # Check if gcc -print-prog-name=ld gives a path.
3827 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3828echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3829 case $host in
3830 *-*-mingw*)
3831 # gcc leaves a trailing carriage return which upsets mingw
3832 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3833 *)
3834 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3835 esac
3836 case "$ac_prog" in
3837 # Accept absolute paths.
3838 [\\/]* | [A-Za-z]:[\\/]*)
3839 re_direlt='/[^/][^/]*/\.\./'
3840 # Canonicalize the path of ld
3841 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3842 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3843 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3844 done
3845 test -z "$LD" && LD="$ac_prog"
3846 ;;
3847 "")
3848 # If it fails, then pretend we aren't using GCC.
3849 ac_prog=ld
3850 ;;
3851 *)
3852 # If it is relative, then search for the first ld in PATH.
3853 with_gnu_ld=unknown
3854 ;;
3855 esac
3856elif test "$with_gnu_ld" = yes; then
3857 echo "$as_me:$LINENO: checking for GNU ld" >&5
3858echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3859else
3860 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3861echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3862fi
3863if test "${lt_cv_path_LD+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3865else
3866 if test -z "$LD"; then
3867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3868 for ac_dir in $PATH; do
3869 test -z "$ac_dir" && ac_dir=.
3870 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3871 lt_cv_path_LD="$ac_dir/$ac_prog"
3872 # Check to see if the program is GNU ld. I'd rather use --version,
3873 # but apparently some GNU ld's only accept -v.
3874 # Break only if it was the GNU/non-GNU ld that we prefer.
3875 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3876 test "$with_gnu_ld" != no && break
3877 else
3878 test "$with_gnu_ld" != yes && break
3879 fi
3880 fi
3881 done
3882 IFS="$ac_save_ifs"
3883else
3884 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3885fi
3886fi
3887
3888LD="$lt_cv_path_LD"
3889if test -n "$LD"; then
3890 echo "$as_me:$LINENO: result: $LD" >&5
3891echo "${ECHO_T}$LD" >&6
3892else
3893 echo "$as_me:$LINENO: result: no" >&5
3894echo "${ECHO_T}no" >&6
3895fi
3896test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3897echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3898 { (exit 1); exit 1; }; }
3899echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3900echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3901if test "${lt_cv_prog_gnu_ld+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903else
3904 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3905if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3906 lt_cv_prog_gnu_ld=yes
3907else
3908 lt_cv_prog_gnu_ld=no
3909fi
3910fi
3911echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3912echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3913with_gnu_ld=$lt_cv_prog_gnu_ld
3914
3915
3916echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3917echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3918if test "${lt_cv_ld_reload_flag+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920else
3921 lt_cv_ld_reload_flag='-r'
3922fi
3923echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3924echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3925reload_flag=$lt_cv_ld_reload_flag
3926test -n "$reload_flag" && reload_flag=" $reload_flag"
3927
3928echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3929echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3930if test "${lt_cv_path_NM+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932else
3933 if test -n "$NM"; then
3934 # Let the user override the test.
3935 lt_cv_path_NM="$NM"
3936else
3937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3938 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3939 test -z "$ac_dir" && ac_dir=.
3940 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3941 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3942 # Check to see if the nm accepts a BSD-compat flag.
3943 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3944 # nm: unknown option "B" ignored
3945 # Tru64's nm complains that /dev/null is an invalid object file
3946 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3947 lt_cv_path_NM="$tmp_nm -B"
3948 break
3949 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3950 lt_cv_path_NM="$tmp_nm -p"
3951 break
3952 else
3953 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3954 continue # so that we can try to find one that supports BSD flags
3955 fi
3956 fi
3957 done
3958 IFS="$ac_save_ifs"
3959 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3960fi
3961fi
3962
3963NM="$lt_cv_path_NM"
3964echo "$as_me:$LINENO: result: $NM" >&5
3965echo "${ECHO_T}$NM" >&6
3966
3967echo "$as_me:$LINENO: checking whether ln -s works" >&5
3968echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3969LN_S=$as_ln_s
3970if test "$LN_S" = "ln -s"; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972echo "${ECHO_T}yes" >&6
3973else
3974 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3975echo "${ECHO_T}no, using $LN_S" >&6
3976fi
3977
3978echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3979echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3980if test "${lt_cv_deplibs_check_method+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982else
3983 lt_cv_file_magic_cmd='$MAGIC_CMD'
3984lt_cv_file_magic_test_file=
3985lt_cv_deplibs_check_method='unknown'
3986# Need to set the preceding variable on all platforms that support
3987# interlibrary dependencies.
3988# 'none' -- dependencies not supported.
3989# `unknown' -- same as none, but documents that we really don't know.
3990# 'pass_all' -- all dependencies passed with no checks.
3991# 'test_compile' -- check by making test program.
3992# ['file_magic [regex]'] -- check by looking for files in library path
3993# which responds to the $file_magic_cmd with a given egrep regex.
3994# If you have `file' or equivalent on your system and you're not sure
3995# whether `pass_all' will *always* work, you probably want this one.
3996
3997case "$host_os" in
3998aix4*)
3999 lt_cv_deplibs_check_method=pass_all
4000 ;;
4001
4002beos*)
4003 lt_cv_deplibs_check_method=pass_all
4004 ;;
4005
4006bsdi4*)
4007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4008 lt_cv_file_magic_cmd='/usr/bin/file -L'
4009 lt_cv_file_magic_test_file=/shlib/libc.so
4010 ;;
4011
4012cygwin* | mingw* | pw32*)
4013 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4014 lt_cv_file_magic_cmd='$OBJDUMP -f'
4015 ;;
4016
4017darwin*|rhapsody*)
4018 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4019 lt_cv_file_magiic_cmd=/usr/bin/file
4020 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4021 ;;
4022
4023freebsd*)
4024 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4025 case "$host_cpu" in
4026 i*86 )
4027 # Not sure whether the presence of OpenBSD here was a mistake.
4028 # Let's accept both of them until this is cleared up.
4029 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4030 lt_cv_file_magic_cmd=/usr/bin/file
4031 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4032 ;;
4033 esac
4034 else
4035 lt_cv_deplibs_check_method=pass_all
4036 fi
4037 ;;
4038
4039gnu*)
4040 lt_cv_deplibs_check_method=pass_all
4041 ;;
4042
4043hpux10.20*|hpux11*)
4044 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4045 lt_cv_file_magic_cmd=/usr/bin/file
4046 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4047 ;;
4048
4049irix5* | irix6*)
4050 case "$host_os" in
4051 irix5*)
4052 # this will be overridden with pass_all, but let us keep it just in case
4053 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4054 ;;
4055 *)
4056 case "$LD" in
4057 *-32|*"-32 ") libmagic=32-bit;;
4058 *-n32|*"-n32 ") libmagic=N32;;
4059 *-64|*"-64 ") libmagic=64-bit;;
4060 *) libmagic=never-match;;
4061 esac
4062 # this will be overridden with pass_all, but let us keep it just in case
4063 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4064 ;;
4065 esac
4066 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4067 lt_cv_deplibs_check_method=pass_all
4068 ;;
4069
4070# This must be Linux ELF.
4071linux-gnu*)
4072 case "$host_cpu" in
4073 alpha* | i*86 | powerpc* | sparc* | ia64* )
4074 lt_cv_deplibs_check_method=pass_all ;;
4075 *)
4076 # glibc up to 2.1.1 does not perform some relocations on ARM
4077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4078 esac
4079 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4080 ;;
4081
4082netbsd*)
4083 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4084 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4085 else
4086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4087 fi
4088 lt_cv_file_magic_cmd='/usr/bin/file -L'
4089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4090 ;;
4091
4092newos6*)
4093 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4094 lt_cv_file_magic_cmd=/usr/bin/file
4095 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4096 ;;
4097
4098osf3* | osf4* | osf5*)
4099 # this will be overridden with pass_all, but let us keep it just in case
4100 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4101 lt_cv_file_magic_test_file=/shlib/libc.so
4102 lt_cv_deplibs_check_method=pass_all
4103 ;;
4104
4105sco3.2v5*)
4106 lt_cv_deplibs_check_method=pass_all
4107 ;;
4108
4109solaris*)
4110 lt_cv_deplibs_check_method=pass_all
4111 lt_cv_file_magic_test_file=/lib/libc.so
4112 ;;
4113
4114sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4115 case "$host_vendor" in
4116 motorola)
4117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4119 ;;
4120 ncr)
4121 lt_cv_deplibs_check_method=pass_all
4122 ;;
4123 sequent)
4124 lt_cv_file_magic_cmd='/bin/file'
4125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4126 ;;
4127 sni)
4128 lt_cv_file_magic_cmd='/bin/file'
4129 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4130 lt_cv_file_magic_test_file=/lib/libc.so
4131 ;;
4132 esac
4133 ;;
4134esac
4135
4136fi
4137echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4138echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4139file_magic_cmd=$lt_cv_file_magic_cmd
4140deplibs_check_method=$lt_cv_deplibs_check_method
4141
4142
4143
4144
4145
4146
4147
4148# Check for command to grab the raw symbol name followed by C symbol from nm.
4149echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4150echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4151if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153else
4154
4155# These are sane defaults that work on at least a few old systems.
4156# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4157
4158# Character class describing NM global symbol codes.
4159symcode='[BCDEGRST]'
4160
4161# Regexp to match symbols that can be accessed directly from C.
4162sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4163
4164# Transform the above into a raw symbol and a C symbol.
4165symxfrm='\1 \2\3 \3'
4166
4167# Transform an extracted symbol line into a proper C declaration
4168lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4169
4170# Define system-specific variables.
4171case "$host_os" in
4172aix*)
4173 symcode='[BCDT]'
4174 ;;
4175cygwin* | mingw* | pw32*)
4176 symcode='[ABCDGISTW]'
4177 ;;
4178hpux*) # Its linker distinguishes data from code symbols
4179 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4180 ;;
4181irix*)
4182 symcode='[BCDEGRST]'
4183 ;;
4184solaris* | sysv5*)
4185 symcode='[BDT]'
4186 ;;
4187sysv4)
4188 symcode='[DFNSTU]'
4189 ;;
4190esac
4191
4192# Handle CRLF in mingw tool chain
4193opt_cr=
4194case "$host_os" in
4195mingw*)
4196 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4197 ;;
4198esac
4199
4200# If we're using GNU nm, then use its standard symbol codes.
4201if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4202 symcode='[ABCDGISTW]'
4203fi
4204
4205# Try without a prefix undercore, then with it.
4206for ac_symprfx in "" "_"; do
4207
4208 # Write the raw and C identifiers.
4209lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4210
4211 # Check to see that the pipe works correctly.
4212 pipe_works=no
4213 rm -f conftest*
4214 cat > conftest.$ac_ext <<EOF
4215#ifdef __cplusplus
4216extern "C" {
4217#endif
4218char nm_test_var;
4219void nm_test_func(){}
4220#ifdef __cplusplus
4221}
4222#endif
4223main(){nm_test_var='a';nm_test_func();return(0);}
4224EOF
4225
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; then
4231 # Now try to grab the symbols.
4232 nlist=conftest.nm
4233 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4234 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } && test -s "$nlist"; then
4238 # Try sorting and uniquifying the output.
4239 if sort "$nlist" | uniq > "$nlist"T; then
4240 mv -f "$nlist"T "$nlist"
4241 else
4242 rm -f "$nlist"T
4243 fi
4244
4245 # Make sure that we snagged all the symbols we need.
4246 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4247 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4248 cat <<EOF > conftest.$ac_ext
4249#ifdef __cplusplus
4250extern "C" {
4251#endif
4252
4253EOF
4254 # Now generate the symbol file.
4255 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4256
4257 cat <<EOF >> conftest.$ac_ext
4258#if defined (__STDC__) && __STDC__
4259# define lt_ptr_t void *
4260#else
4261# define lt_ptr_t char *
4262# define const
4263#endif
4264
4265/* The mapping between symbol names and symbols. */
4266const struct {
4267 const char *name;
4268 lt_ptr_t address;
4269}
4270lt_preloaded_symbols[] =
4271{
4272EOF
4273 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4274 cat <<\EOF >> conftest.$ac_ext
4275 {0, (lt_ptr_t) 0}
4276};
4277
4278#ifdef __cplusplus
4279}
4280#endif
4281EOF
4282 # Now try linking the two files.
4283 mv conftest.$ac_objext conftstm.$ac_objext
4284 save_LIBS="$LIBS"
4285 save_CFLAGS="$CFLAGS"
4286 LIBS="conftstm.$ac_objext"
4287 CFLAGS="$CFLAGS$no_builtin_flag"
4288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4289 (eval $ac_link) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && test -s conftest; then
4293 pipe_works=yes
4294 fi
4295 LIBS="$save_LIBS"
4296 CFLAGS="$save_CFLAGS"
4297 else
4298 echo "cannot find nm_test_func in $nlist" >&5
4299 fi
4300 else
4301 echo "cannot find nm_test_var in $nlist" >&5
4302 fi
4303 else
4304 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4305 fi
4306 else
4307 echo "$progname: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4309 fi
4310 rm -f conftest* conftst*
4311
4312 # Do not use the global_symbol_pipe unless it works.
4313 if test "$pipe_works" = yes; then
4314 break
4315 else
4316 lt_cv_sys_global_symbol_pipe=
4317 fi
4318done
4319
4320fi
4321
4322global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4323if test -z "$lt_cv_sys_global_symbol_pipe"; then
4324 global_symbol_to_cdecl=
4325else
4326 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4327fi
4328if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4329 echo "$as_me:$LINENO: result: failed" >&5
4330echo "${ECHO_T}failed" >&6
4331else
4332 echo "$as_me:$LINENO: result: ok" >&5
4333echo "${ECHO_T}ok" >&6
4334fi
4335
4336echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4338if test "${ac_cv_header_stdc+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341 cat >conftest.$ac_ext <<_ACEOF
4342/* confdefs.h. */
4343_ACEOF
4344cat confdefs.h >>conftest.$ac_ext
4345cat >>conftest.$ac_ext <<_ACEOF
4346/* end confdefs.h. */
4347#include <stdlib.h>
4348#include <stdarg.h>
4349#include <string.h>
4350#include <float.h>
4351
4352int
4353main ()
4354{
4355
4356 ;
4357 return 0;
4358}
4359_ACEOF
4360rm -f conftest.$ac_objext
4361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362 (eval $ac_compile) 2>conftest.er1
4363 ac_status=$?
4364 grep -v '^ *+' conftest.er1 >conftest.err
4365 rm -f conftest.er1
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 (eval $ac_try) 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; } &&
4375 { ac_try='test -s conftest.$ac_objext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4377 (eval $ac_try) 2>&5
4378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4381 ac_cv_header_stdc=yes
4382else
4383 echo "$as_me: failed program was:" >&5
4384sed 's/^/| /' conftest.$ac_ext >&5
4385
4386ac_cv_header_stdc=no
4387fi
4388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4389
4390if test $ac_cv_header_stdc = yes; then
4391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4392 cat >conftest.$ac_ext <<_ACEOF
4393/* confdefs.h. */
4394_ACEOF
4395cat confdefs.h >>conftest.$ac_ext
4396cat >>conftest.$ac_ext <<_ACEOF
4397/* end confdefs.h. */
4398#include <string.h>
4399
4400_ACEOF
4401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4402 $EGREP "memchr" >/dev/null 2>&1; then
4403 :
4404else
4405 ac_cv_header_stdc=no
4406fi
4407rm -f conftest*
4408
4409fi
4410
4411if test $ac_cv_header_stdc = yes; then
4412 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4413 cat >conftest.$ac_ext <<_ACEOF
4414/* confdefs.h. */
4415_ACEOF
4416cat confdefs.h >>conftest.$ac_ext
4417cat >>conftest.$ac_ext <<_ACEOF
4418/* end confdefs.h. */
4419#include <stdlib.h>
4420
4421_ACEOF
4422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "free" >/dev/null 2>&1; then
4424 :
4425else
4426 ac_cv_header_stdc=no
4427fi
4428rm -f conftest*
4429
4430fi
4431
4432if test $ac_cv_header_stdc = yes; then
4433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4434 if test "$cross_compiling" = yes; then
4435 :
4436else
4437 cat >conftest.$ac_ext <<_ACEOF
4438/* confdefs.h. */
4439_ACEOF
4440cat confdefs.h >>conftest.$ac_ext
4441cat >>conftest.$ac_ext <<_ACEOF
4442/* end confdefs.h. */
4443#include <ctype.h>
4444#if ((' ' & 0x0FF) == 0x020)
4445# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4446# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4447#else
4448# define ISLOWER(c) \
4449 (('a' <= (c) && (c) <= 'i') \
4450 || ('j' <= (c) && (c) <= 'r') \
4451 || ('s' <= (c) && (c) <= 'z'))
4452# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4453#endif
4454
4455#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4456int
4457main ()
4458{
4459 int i;
4460 for (i = 0; i < 256; i++)
4461 if (XOR (islower (i), ISLOWER (i))
4462 || toupper (i) != TOUPPER (i))
4463 exit(2);
4464 exit (0);
4465}
4466_ACEOF
4467rm -f conftest$ac_exeext
4468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469 (eval $ac_link) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 :
4479else
4480 echo "$as_me: program exited with status $ac_status" >&5
4481echo "$as_me: failed program was:" >&5
4482sed 's/^/| /' conftest.$ac_ext >&5
4483
4484( exit $ac_status )
4485ac_cv_header_stdc=no
4486fi
4487rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4488fi
4489fi
4490fi
4491echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4492echo "${ECHO_T}$ac_cv_header_stdc" >&6
4493if test $ac_cv_header_stdc = yes; then
4494
4495cat >>confdefs.h <<\_ACEOF
4496#define STDC_HEADERS 1
4497_ACEOF
4498
4499fi
4500
4501# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4512 inttypes.h stdint.h unistd.h
4513do
4514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4515echo "$as_me:$LINENO: checking for $ac_header" >&5
4516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4517if eval "test \"\${$as_ac_Header+set}\" = set"; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520 cat >conftest.$ac_ext <<_ACEOF
4521/* confdefs.h. */
4522_ACEOF
4523cat confdefs.h >>conftest.$ac_ext
4524cat >>conftest.$ac_ext <<_ACEOF
4525/* end confdefs.h. */
4526$ac_includes_default
4527
4528#include <$ac_header>
4529_ACEOF
4530rm -f conftest.$ac_objext
4531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4532 (eval $ac_compile) 2>conftest.er1
4533 ac_status=$?
4534 grep -v '^ *+' conftest.er1 >conftest.err
4535 rm -f conftest.er1
4536 cat conftest.err >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); } &&
4539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 (eval $ac_try) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; } &&
4545 { ac_try='test -s conftest.$ac_objext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547 (eval $ac_try) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 eval "$as_ac_Header=yes"
4552else
4553 echo "$as_me: failed program was:" >&5
4554sed 's/^/| /' conftest.$ac_ext >&5
4555
4556eval "$as_ac_Header=no"
4557fi
4558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4559fi
4560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4562if test `eval echo '${'$as_ac_Header'}'` = yes; then
4563 cat >>confdefs.h <<_ACEOF
4564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4565_ACEOF
4566
4567fi
4568
4569done
4570
4571
4572
4573for ac_header in dlfcn.h
4574do
4575as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4576if eval "test \"\${$as_ac_Header+set}\" = set"; then
4577 echo "$as_me:$LINENO: checking for $ac_header" >&5
4578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4579if eval "test \"\${$as_ac_Header+set}\" = set"; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4581fi
4582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4584else
4585 # Is the header compilable?
4586echo "$as_me:$LINENO: checking $ac_header usability" >&5
4587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4588cat >conftest.$ac_ext <<_ACEOF
4589/* confdefs.h. */
4590_ACEOF
4591cat confdefs.h >>conftest.$ac_ext
4592cat >>conftest.$ac_ext <<_ACEOF
4593/* end confdefs.h. */
4594$ac_includes_default
4595#include <$ac_header>
4596_ACEOF
4597rm -f conftest.$ac_objext
4598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599 (eval $ac_compile) 2>conftest.er1
4600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try='test -s conftest.$ac_objext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614 (eval $ac_try) 2>&5
4615 ac_status=$?
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_header_compiler=yes
4619else
4620 echo "$as_me: failed program was:" >&5
4621sed 's/^/| /' conftest.$ac_ext >&5
4622
4623ac_header_compiler=no
4624fi
4625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4626echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4627echo "${ECHO_T}$ac_header_compiler" >&6
4628
4629# Is the header present?
4630echo "$as_me:$LINENO: checking $ac_header presence" >&5
4631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4632cat >conftest.$ac_ext <<_ACEOF
4633/* confdefs.h. */
4634_ACEOF
4635cat confdefs.h >>conftest.$ac_ext
4636cat >>conftest.$ac_ext <<_ACEOF
4637/* end confdefs.h. */
4638#include <$ac_header>
4639_ACEOF
4640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4642 ac_status=$?
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } >/dev/null; then
4648 if test -s conftest.err; then
4649 ac_cpp_err=$ac_cxx_preproc_warn_flag
4650 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4651 else
4652 ac_cpp_err=
4653 fi
4654else
4655 ac_cpp_err=yes
4656fi
4657if test -z "$ac_cpp_err"; then
4658 ac_header_preproc=yes
4659else
4660 echo "$as_me: failed program was:" >&5
4661sed 's/^/| /' conftest.$ac_ext >&5
4662
4663 ac_header_preproc=no
4664fi
4665rm -f conftest.err conftest.$ac_ext
4666echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4667echo "${ECHO_T}$ac_header_preproc" >&6
4668
4669# So? What about this header?
4670case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4671 yes:no: )
4672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4675echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4676 ac_header_preproc=yes
4677 ;;
4678 no:yes:* )
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4680echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4682echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4684echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4686echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4690echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4691 (
4692 cat <<\_ASBOX
4693## ------------------------------------------ ##
4694## Report this to the AC_PACKAGE_NAME lists. ##
4695## ------------------------------------------ ##
4696_ASBOX
4697 ) |
4698 sed "s/^/$as_me: WARNING: /" >&2
4699 ;;
4700esac
4701echo "$as_me:$LINENO: checking for $ac_header" >&5
4702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4703if eval "test \"\${$as_ac_Header+set}\" = set"; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705else
4706 eval "$as_ac_Header=\$ac_header_preproc"
4707fi
4708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4710
4711fi
4712if test `eval echo '${'$as_ac_Header'}'` = yes; then
4713 cat >>confdefs.h <<_ACEOF
4714#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4715_ACEOF
4716
4717fi
4718
4719done
4720
4721
4722
4723
4724
4725# Only perform the check for file, if the check method requires it
4726case "$deplibs_check_method" in
4727file_magic*)
4728 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4729 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4730echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4731if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733else
4734 case "$MAGIC_CMD" in
4735 /*)
4736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4737 ;;
4738 ?:/*)
4739 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4740 ;;
4741 *)
4742 ac_save_MAGIC_CMD="$MAGIC_CMD"
4743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4744 ac_dummy="/usr/bin:$PATH"
4745 for ac_dir in $ac_dummy; do
4746 test -z "$ac_dir" && ac_dir=.
4747 if test -f $ac_dir/${ac_tool_prefix}file; then
4748 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4749 if test -n "$file_magic_test_file"; then
4750 case "$deplibs_check_method" in
4751 "file_magic "*)
4752 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4755 egrep "$file_magic_regex" > /dev/null; then
4756 :
4757 else
4758 cat <<EOF 1>&2
4759
4760*** Warning: the command libtool uses to detect shared libraries,
4761*** $file_magic_cmd, produces output that libtool cannot recognize.
4762*** The result is that libtool may fail to recognize shared libraries
4763*** as such. This will affect the creation of libtool libraries that
4764*** depend on shared libraries, but programs linked with such libtool
4765*** libraries will work regardless of this problem. Nevertheless, you
4766*** may want to report the problem to your system manager and/or to
4767*** bug-libtool@gnu.org
4768
4769EOF
4770 fi ;;
4771 esac
4772 fi
4773 break
4774 fi
4775 done
4776 IFS="$ac_save_ifs"
4777 MAGIC_CMD="$ac_save_MAGIC_CMD"
4778 ;;
4779esac
4780fi
4781
4782MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4783if test -n "$MAGIC_CMD"; then
4784 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4785echo "${ECHO_T}$MAGIC_CMD" >&6
4786else
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
4789fi
4790
4791if test -z "$lt_cv_path_MAGIC_CMD"; then
4792 if test -n "$ac_tool_prefix"; then
4793 echo "$as_me:$LINENO: checking for file" >&5
4794echo $ECHO_N "checking for file... $ECHO_C" >&6
4795if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797else
4798 case "$MAGIC_CMD" in
4799 /*)
4800 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4801 ;;
4802 ?:/*)
4803 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4804 ;;
4805 *)
4806 ac_save_MAGIC_CMD="$MAGIC_CMD"
4807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4808 ac_dummy="/usr/bin:$PATH"
4809 for ac_dir in $ac_dummy; do
4810 test -z "$ac_dir" && ac_dir=.
4811 if test -f $ac_dir/file; then
4812 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4813 if test -n "$file_magic_test_file"; then
4814 case "$deplibs_check_method" in
4815 "file_magic "*)
4816 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4819 egrep "$file_magic_regex" > /dev/null; then
4820 :
4821 else
4822 cat <<EOF 1>&2
4823
4824*** Warning: the command libtool uses to detect shared libraries,
4825*** $file_magic_cmd, produces output that libtool cannot recognize.
4826*** The result is that libtool may fail to recognize shared libraries
4827*** as such. This will affect the creation of libtool libraries that
4828*** depend on shared libraries, but programs linked with such libtool
4829*** libraries will work regardless of this problem. Nevertheless, you
4830*** may want to report the problem to your system manager and/or to
4831*** bug-libtool@gnu.org
4832
4833EOF
4834 fi ;;
4835 esac
4836 fi
4837 break
4838 fi
4839 done
4840 IFS="$ac_save_ifs"
4841 MAGIC_CMD="$ac_save_MAGIC_CMD"
4842 ;;
4843esac
4844fi
4845
4846MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4847if test -n "$MAGIC_CMD"; then
4848 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4849echo "${ECHO_T}$MAGIC_CMD" >&6
4850else
4851 echo "$as_me:$LINENO: result: no" >&5
4852echo "${ECHO_T}no" >&6
4853fi
4854
4855 else
4856 MAGIC_CMD=:
4857 fi
4858fi
4859
4860 fi
4861 ;;
4862esac
4863
4864if test -n "$ac_tool_prefix"; then
4865 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4866set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4867echo "$as_me:$LINENO: checking for $ac_word" >&5
4868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4869if test "${ac_cv_prog_RANLIB+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872 if test -n "$RANLIB"; then
4873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4874else
4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4885 fi
4886done
4887done
4888
4889fi
4890fi
4891RANLIB=$ac_cv_prog_RANLIB
4892if test -n "$RANLIB"; then
4893 echo "$as_me:$LINENO: result: $RANLIB" >&5
4894echo "${ECHO_T}$RANLIB" >&6
4895else
4896 echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898fi
4899
4900fi
4901if test -z "$ac_cv_prog_RANLIB"; then
4902 ac_ct_RANLIB=$RANLIB
4903 # Extract the first word of "ranlib", so it can be a program name with args.
4904set dummy ranlib; ac_word=$2
4905echo "$as_me:$LINENO: checking for $ac_word" >&5
4906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4907if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910 if test -n "$ac_ct_RANLIB"; then
4911 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4912else
4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH
4915do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920 ac_cv_prog_ac_ct_RANLIB="ranlib"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4923 fi
4924done
4925done
4926
4927 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4928fi
4929fi
4930ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4931if test -n "$ac_ct_RANLIB"; then
4932 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4933echo "${ECHO_T}$ac_ct_RANLIB" >&6
4934else
4935 echo "$as_me:$LINENO: result: no" >&5
4936echo "${ECHO_T}no" >&6
4937fi
4938
4939 RANLIB=$ac_ct_RANLIB
4940else
4941 RANLIB="$ac_cv_prog_RANLIB"
4942fi
4943
4944if test -n "$ac_tool_prefix"; then
4945 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4946set dummy ${ac_tool_prefix}strip; ac_word=$2
4947echo "$as_me:$LINENO: checking for $ac_word" >&5
4948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4949if test "${ac_cv_prog_STRIP+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951else
4952 if test -n "$STRIP"; then
4953 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4954else
4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH
4957do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966done
4967done
4968
4969fi
4970fi
4971STRIP=$ac_cv_prog_STRIP
4972if test -n "$STRIP"; then
4973 echo "$as_me:$LINENO: result: $STRIP" >&5
4974echo "${ECHO_T}$STRIP" >&6
4975else
4976 echo "$as_me:$LINENO: result: no" >&5
4977echo "${ECHO_T}no" >&6
4978fi
4979
4980fi
4981if test -z "$ac_cv_prog_STRIP"; then
4982 ac_ct_STRIP=$STRIP
4983 # Extract the first word of "strip", so it can be a program name with args.
4984set dummy strip; ac_word=$2
4985echo "$as_me:$LINENO: checking for $ac_word" >&5
4986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4987if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990 if test -n "$ac_ct_STRIP"; then
4991 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4992else
4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000 ac_cv_prog_ac_ct_STRIP="strip"
5001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5003 fi
5004done
5005done
5006
5007 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5008fi
5009fi
5010ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5011if test -n "$ac_ct_STRIP"; then
5012 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5013echo "${ECHO_T}$ac_ct_STRIP" >&6
5014else
5015 echo "$as_me:$LINENO: result: no" >&5
5016echo "${ECHO_T}no" >&6
5017fi
5018
5019 STRIP=$ac_ct_STRIP
5020else
5021 STRIP="$ac_cv_prog_STRIP"
5022fi
5023
5024
5025enable_dlopen=no
5026enable_win32_dll=no
5027
5028# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5029if test "${enable_libtool_lock+set}" = set; then
5030 enableval="$enable_libtool_lock"
5031
5032fi;
5033test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5034
5035# Some flags need to be propagated to the compiler or linker for good
5036# libtool support.
5037case "$host" in
5038*-*-irix6*)
5039 # Find out which ABI we are using.
5040 echo '#line 5040 "configure"' > conftest.$ac_ext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; then
5046 case "`/usr/bin/file conftest.$ac_objext`" in
5047 *32-bit*)
5048 LD="${LD-ld} -32"
5049 ;;
5050 *N32*)
5051 LD="${LD-ld} -n32"
5052 ;;
5053 *64-bit*)
5054 LD="${LD-ld} -64"
5055 ;;
5056 esac
5057 fi
5058 rm -rf conftest*
5059 ;;
5060
5061*-*-sco3.2v5*)
5062 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5063 SAVE_CFLAGS="$CFLAGS"
5064 CFLAGS="$CFLAGS -belf"
5065 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5066echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5067if test "${lt_cv_cc_needs_belf+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069else
5070
5071
5072 ac_ext=c
5073ac_cpp='$CPP $CPPFLAGS'
5074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077
5078 cat >conftest.$ac_ext <<_ACEOF
5079/* confdefs.h. */
5080_ACEOF
5081cat confdefs.h >>conftest.$ac_ext
5082cat >>conftest.$ac_ext <<_ACEOF
5083/* end confdefs.h. */
5084
5085int
5086main ()
5087{
5088
5089 ;
5090 return 0;
5091}
5092_ACEOF
5093rm -f conftest.$ac_objext conftest$ac_exeext
5094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095 (eval $ac_link) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; } &&
5108 { ac_try='test -s conftest$ac_exeext'
5109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 (eval $ac_try) 2>&5
5111 ac_status=$?
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }; }; then
5114 lt_cv_cc_needs_belf=yes
5115else
5116 echo "$as_me: failed program was:" >&5
5117sed 's/^/| /' conftest.$ac_ext >&5
5118
5119lt_cv_cc_needs_belf=no
5120fi
5121rm -f conftest.err conftest.$ac_objext \
5122 conftest$ac_exeext conftest.$ac_ext
5123 ac_ext=cc
5124ac_cpp='$CXXCPP $CPPFLAGS'
5125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5128
5129fi
5130echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5131echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5132 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5133 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5134 CFLAGS="$SAVE_CFLAGS"
5135 fi
5136 ;;
5137
5138
5139esac
5140
5141# Sed substitution that helps us do robust quoting. It backslashifies
5142# metacharacters that are still active within double-quoted strings.
5143Xsed='sed -e s/^X//'
5144sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5145
5146# Same as above, but do not quote variable references.
5147double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5148
5149# Sed substitution to delay expansion of an escaped shell variable in a
5150# double_quote_subst'ed string.
5151delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5152
5153# Constants:
5154rm="rm -f"
5155
5156# Global variables:
5157default_ofile=libtool
5158can_build_shared=yes
5159
5160# All known linkers require a `.a' archive for static linking (except M$VC,
5161# which needs '.lib').
5162libext=a
5163ltmain="$ac_aux_dir/ltmain.sh"
5164ofile="$default_ofile"
5165with_gnu_ld="$lt_cv_prog_gnu_ld"
5166need_locks="$enable_libtool_lock"
5167
5168old_CC="$CC"
5169old_CFLAGS="$CFLAGS"
5170
5171# Set sane defaults for various variables
5172test -z "$AR" && AR=ar
5173test -z "$AR_FLAGS" && AR_FLAGS=cru
5174test -z "$AS" && AS=as
5175test -z "$CC" && CC=cc
5176test -z "$DLLTOOL" && DLLTOOL=dlltool
5177test -z "$LD" && LD=ld
5178test -z "$LN_S" && LN_S="ln -s"
5179test -z "$MAGIC_CMD" && MAGIC_CMD=file
5180test -z "$NM" && NM=nm
5181test -z "$OBJDUMP" && OBJDUMP=objdump
5182test -z "$RANLIB" && RANLIB=:
5183test -z "$STRIP" && STRIP=:
5184test -z "$ac_objext" && ac_objext=o
5185
5186if test x"$host" != x"$build"; then
5187 ac_tool_prefix=${host_alias}-
5188else
5189 ac_tool_prefix=
5190fi
5191
5192# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5193case "$host_os" in
5194linux-gnu*) ;;
5195linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5196esac
5197
5198case "$host_os" in
5199aix3*)
5200 # AIX sometimes has problems with the GCC collect2 program. For some
5201 # reason, if we set the COLLECT_NAMES environment variable, the problems
5202 # vanish in a puff of smoke.
5203 if test "X${COLLECT_NAMES+set}" != Xset; then
5204 COLLECT_NAMES=
5205 export COLLECT_NAMES
5206 fi
5207 ;;
5208esac
5209
5210# Determine commands to create old-style static archives.
5211old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5212old_postinstall_cmds='chmod 644 $oldlib'
5213old_postuninstall_cmds=
5214
5215if test -n "$RANLIB"; then
5216 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5217 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5218fi
5219
5220# Allow CC to be a program name with arguments.
5221set dummy $CC
5222compiler="$2"
5223
5224## FIXME: this should be a separate macro
5225##
5226echo "$as_me:$LINENO: checking for objdir" >&5
5227echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5228rm -f .libs 2>/dev/null
5229mkdir .libs 2>/dev/null
5230if test -d .libs; then
5231 objdir=.libs
5232else
5233 # MS-DOS does not allow filenames that begin with a dot.
5234 objdir=_libs
5235fi
5236rmdir .libs 2>/dev/null
5237echo "$as_me:$LINENO: result: $objdir" >&5
5238echo "${ECHO_T}$objdir" >&6
5239##
5240## END FIXME
5241
5242
5243## FIXME: this should be a separate macro
5244##
5245
5246# Check whether --with-pic or --without-pic was given.
5247if test "${with_pic+set}" = set; then
5248 withval="$with_pic"
5249 pic_mode="$withval"
5250else
5251 pic_mode=default
5252fi;
5253test -z "$pic_mode" && pic_mode=default
5254
5255# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5256# in isolation, and that seeing it set (from the cache) indicates that
5257# the associated values are set (in the cache) correctly too.
5258echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5259echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5260if test "${lt_cv_prog_cc_pic+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263 lt_cv_prog_cc_pic=
5264 lt_cv_prog_cc_shlib=
5265 lt_cv_prog_cc_wl=
5266 lt_cv_prog_cc_static=
5267 lt_cv_prog_cc_no_builtin=
5268 lt_cv_prog_cc_can_build_shared=$can_build_shared
5269
5270 if test "$GCC" = yes; then
5271 lt_cv_prog_cc_wl='-Wl,'
5272 lt_cv_prog_cc_static='-static'
5273
5274 case "$host_os" in
5275 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5276 # PIC is the default for these OSes.
5277 ;;
5278 aix*)
5279 # Below there is a dirty hack to force normal static linking with -ldl
5280 # The problem is because libdl dynamically linked with both libc and
5281 # libC (AIX C++ library), which obviously doesn't included in libraries
5282 # list by gcc. This cause undefined symbols with -static flags.
5283 # This hack allows C programs to be linked with "-static -ldl", but
5284 # we not sure about C++ programs.
5285 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5286 ;;
5287 cygwin* | mingw* | pw32* | os2*)
5288 # This hack is so that the source file can tell whether it is being
5289 # built for inclusion in a dll (and should export symbols for example).
5290 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5291 ;;
5292 amigaos*)
5293 # FIXME: we need at least 68020 code to build shared libraries, but
5294 # adding the `-m68020' flag to GCC prevents building anything better,
5295 # like `-m68040'.
5296 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5297 ;;
5298 sysv4*MP*)
5299 if test -d /usr/nec; then
5300 lt_cv_prog_cc_pic=-Kconform_pic
5301 fi
5302 ;;
5303 *)
5304 lt_cv_prog_cc_pic='-fPIC'
5305 ;;
5306 esac
5307 else
5308 # PORTME Check for PIC flags for the system compiler.
5309 case "$host_os" in
5310 aix3* | aix4*)
5311 # All AIX code is PIC.
5312 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5313 ;;
5314
5315 hpux9* | hpux10* | hpux11*)
5316 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5317 lt_cv_prog_cc_wl='-Wl,'
5318 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5319 lt_cv_prog_cc_pic='+Z'
5320 ;;
5321
5322 irix5* | irix6*)
5323 lt_cv_prog_cc_wl='-Wl,'
5324 lt_cv_prog_cc_static='-non_shared'
5325 # PIC (with -KPIC) is the default.
5326 ;;
5327
5328 cygwin* | mingw* | pw32* | os2*)
5329 # This hack is so that the source file can tell whether it is being
5330 # built for inclusion in a dll (and should export symbols for example).
5331 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5332 ;;
5333
5334 newsos6)
5335 lt_cv_prog_cc_pic='-KPIC'
5336 lt_cv_prog_cc_static='-Bstatic'
5337 ;;
5338
5339 osf3* | osf4* | osf5*)
5340 # All OSF/1 code is PIC.
5341 lt_cv_prog_cc_wl='-Wl,'
5342 lt_cv_prog_cc_static='-non_shared'
5343 ;;
5344
5345 sco3.2v5*)
5346 lt_cv_prog_cc_pic='-Kpic'
5347 lt_cv_prog_cc_static='-dn'
5348 lt_cv_prog_cc_shlib='-belf'
5349 ;;
5350
5351 solaris*)
5352 lt_cv_prog_cc_pic='-KPIC'
5353 lt_cv_prog_cc_static='-Bstatic'
5354 lt_cv_prog_cc_wl='-Wl,'
5355 ;;
5356
5357 sunos4*)
5358 lt_cv_prog_cc_pic='-PIC'
5359 lt_cv_prog_cc_static='-Bstatic'
5360 lt_cv_prog_cc_wl='-Qoption ld '
5361 ;;
5362
5363 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5364 lt_cv_prog_cc_pic='-KPIC'
5365 lt_cv_prog_cc_static='-Bstatic'
5366 if test "x$host_vendor" = xsni; then
5367 lt_cv_prog_cc_wl='-LD'
5368 else
5369 lt_cv_prog_cc_wl='-Wl,'
5370 fi
5371 ;;
5372
5373 uts4*)
5374 lt_cv_prog_cc_pic='-pic'
5375 lt_cv_prog_cc_static='-Bstatic'
5376 ;;
5377
5378 sysv4*MP*)
5379 if test -d /usr/nec ;then
5380 lt_cv_prog_cc_pic='-Kconform_pic'
5381 lt_cv_prog_cc_static='-Bstatic'
5382 fi
5383 ;;
5384
5385 *)
5386 lt_cv_prog_cc_can_build_shared=no
5387 ;;
5388 esac
5389 fi
5390
5391fi
5392
5393if test -z "$lt_cv_prog_cc_pic"; then
5394 echo "$as_me:$LINENO: result: none" >&5
5395echo "${ECHO_T}none" >&6
5396else
5397 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5398echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5399
5400 # Check to make sure the pic_flag actually works.
5401 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5402echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5403 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5405else
5406 save_CFLAGS="$CFLAGS"
5407 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5408 cat >conftest.$ac_ext <<_ACEOF
5409/* confdefs.h. */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h. */
5414
5415int
5416main ()
5417{
5418
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423rm -f conftest.$ac_objext
5424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5434 (eval $ac_try) 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 case "$host_os" in
5445 hpux9* | hpux10* | hpux11*)
5446 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5447 # they create non-PIC objects. So, if there were any warnings, we
5448 # assume that PIC is not supported.
5449 if test -s conftest.err; then
5450 lt_cv_prog_cc_pic_works=no
5451 else
5452 lt_cv_prog_cc_pic_works=yes
5453 fi
5454 ;;
5455 *)
5456 lt_cv_prog_cc_pic_works=yes
5457 ;;
5458 esac
5459
5460else
5461 echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 lt_cv_prog_cc_pic_works=no
5465
5466fi
5467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468 CFLAGS="$save_CFLAGS"
5469
5470fi
5471
5472
5473 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5474 lt_cv_prog_cc_pic=
5475 lt_cv_prog_cc_can_build_shared=no
5476 else
5477 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5478 fi
5479
5480 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5481echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5482fi
5483##
5484## END FIXME
5485
5486# Check for any special shared library compilation flags.
5487if test -n "$lt_cv_prog_cc_shlib"; then
5488 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5489echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5490 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5491 else
5492 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5493echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5494 lt_cv_prog_cc_can_build_shared=no
5495 fi
5496fi
5497
5498## FIXME: this should be a separate macro
5499##
5500echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5501echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5502if test "${lt_cv_prog_cc_static_works+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5504else
5505 lt_cv_prog_cc_static_works=no
5506 save_LDFLAGS="$LDFLAGS"
5507 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5508 cat >conftest.$ac_ext <<_ACEOF
5509/* confdefs.h. */
5510_ACEOF
5511cat confdefs.h >>conftest.$ac_ext
5512cat >>conftest.$ac_ext <<_ACEOF
5513/* end confdefs.h. */
5514
5515int
5516main ()
5517{
5518
5519 ;
5520 return 0;
5521}
5522_ACEOF
5523rm -f conftest.$ac_objext conftest$ac_exeext
5524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5525 (eval $ac_link) 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest$ac_exeext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 (eval $ac_try) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 lt_cv_prog_cc_static_works=yes
5545else
5546 echo "$as_me: failed program was:" >&5
5547sed 's/^/| /' conftest.$ac_ext >&5
5548
5549fi
5550rm -f conftest.err conftest.$ac_objext \
5551 conftest$ac_exeext conftest.$ac_ext
5552 LDFLAGS="$save_LDFLAGS"
5553
5554fi
5555
5556
5557# Belt *and* braces to stop my trousers falling down:
5558test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5559echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5560echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5561
5562pic_flag="$lt_cv_prog_cc_pic"
5563special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5564wl="$lt_cv_prog_cc_wl"
5565link_static_flag="$lt_cv_prog_cc_static"
5566no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5567can_build_shared="$lt_cv_prog_cc_can_build_shared"
5568##
5569## END FIXME
5570
5571
5572## FIXME: this should be a separate macro
5573##
5574# Check to see if options -o and -c are simultaneously supported by compiler
5575echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5576echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5577$rm -r conftest 2>/dev/null
5578mkdir conftest
5579cd conftest
5580echo "int some_variable = 0;" > conftest.$ac_ext
5581mkdir out
5582# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5583# that will create temporary files in the current directory regardless of
5584# the output directory. Thus, making CWD read-only will cause this test
5585# to fail, enabling locking or at least warning the user not to do parallel
5586# builds.
5587chmod -w .
5588save_CFLAGS="$CFLAGS"
5589CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5590compiler_c_o=no
5591if { (eval echo configure:5591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5592 # The compiler can only warn and ignore the option if not recognized
5593 # So say no if there are warnings
5594 if test -s out/conftest.err; then
5595 compiler_c_o=no
5596 else
5597 compiler_c_o=yes
5598 fi
5599else
5600 # Append any errors to the config.log.
5601 cat out/conftest.err 1>&5
5602 compiler_c_o=no
5603fi
5604echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5605echo "${ECHO_T}$compiler_c_o" >&6
5606CFLAGS="$save_CFLAGS"
5607chmod u+w .
5608$rm conftest* out/*
5609rmdir out
5610cd ..
5611rmdir conftest
5612$rm -r conftest 2>/dev/null
5613
5614if test x"$compiler_c_o" = x"yes"; then
5615 # Check to see if we can write to a .lo
5616 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5617echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5618 compiler_o_lo=no
5619 save_CFLAGS="$CFLAGS"
5620 CFLAGS="$CFLAGS -c -o conftest.lo"
5621 cat >conftest.$ac_ext <<_ACEOF
5622/* confdefs.h. */
5623_ACEOF
5624cat confdefs.h >>conftest.$ac_ext
5625cat >>conftest.$ac_ext <<_ACEOF
5626/* end confdefs.h. */
5627
5628int
5629main ()
5630{
5631int some_variable = 0;
5632 ;
5633 return 0;
5634}
5635_ACEOF
5636rm -f conftest.$ac_objext
5637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5638 (eval $ac_compile) 2>conftest.er1
5639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } &&
5645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5647 (eval $ac_try) 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; } &&
5651 { ac_try='test -s conftest.$ac_objext'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; }; then
5657 # The compiler can only warn and ignore the option if not recognized
5658 # So say no if there are warnings
5659 if test -s conftest.err; then
5660 compiler_o_lo=no
5661 else
5662 compiler_o_lo=yes
5663 fi
5664
5665else
5666 echo "$as_me: failed program was:" >&5
5667sed 's/^/| /' conftest.$ac_ext >&5
5668
5669fi
5670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5671 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5672echo "${ECHO_T}$compiler_c_o" >&6
5673 CFLAGS="$save_CFLAGS"
5674else
5675 compiler_o_lo=no
5676fi
5677##
5678## END FIXME
5679
5680## FIXME: this should be a separate macro
5681##
5682# Check to see if we can do hard links to lock some files if needed
5683hard_links="nottested"
5684if test "$compiler_c_o" = no && test "$need_locks" != no; then
5685 # do not overwrite the value of need_locks provided by the user
5686 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5687echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5688 hard_links=yes
5689 $rm conftest*
5690 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5691 touch conftest.a
5692 ln conftest.a conftest.b 2>&5 || hard_links=no
5693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5694 echo "$as_me:$LINENO: result: $hard_links" >&5
5695echo "${ECHO_T}$hard_links" >&6
5696 if test "$hard_links" = no; then
5697 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5698echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5699 need_locks=warn
5700 fi
5701else
5702 need_locks=no
5703fi
5704##
5705## END FIXME
5706
5707## FIXME: this should be a separate macro
5708##
5709if test "$GCC" = yes; then
5710 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5711 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5712echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5713 echo "int some_variable = 0;" > conftest.$ac_ext
5714 save_CFLAGS="$CFLAGS"
5715 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5716 compiler_rtti_exceptions=no
5717 cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
5723
5724int
5725main ()
5726{
5727int some_variable = 0;
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732rm -f conftest.$ac_objext
5733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } &&
5741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; } &&
5747 { ac_try='test -s conftest.$ac_objext'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 (eval $ac_try) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5753 # The compiler can only warn and ignore the option if not recognized
5754 # So say no if there are warnings
5755 if test -s conftest.err; then
5756 compiler_rtti_exceptions=no
5757 else
5758 compiler_rtti_exceptions=yes
5759 fi
5760
5761else
5762 echo "$as_me: failed program was:" >&5
5763sed 's/^/| /' conftest.$ac_ext >&5
5764
5765fi
5766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5767 CFLAGS="$save_CFLAGS"
5768 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5769echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5770
5771 if test "$compiler_rtti_exceptions" = "yes"; then
5772 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5773 else
5774 no_builtin_flag=' -fno-builtin'
5775 fi
5776fi
5777##
5778## END FIXME
5779
5780## FIXME: this should be a separate macro
5781##
5782# See if the linker supports building shared libraries.
5783echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5784echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5785
5786allow_undefined_flag=
5787no_undefined_flag=
5788need_lib_prefix=unknown
5789need_version=unknown
5790# when you set need_version to no, make sure it does not cause -set_version
5791# flags to be left without arguments
5792archive_cmds=
5793archive_expsym_cmds=
5794old_archive_from_new_cmds=
5795old_archive_from_expsyms_cmds=
5796export_dynamic_flag_spec=
5797whole_archive_flag_spec=
5798thread_safe_flag_spec=
5799hardcode_into_libs=no
5800hardcode_libdir_flag_spec=
5801hardcode_libdir_separator=
5802hardcode_direct=no
5803hardcode_minus_L=no
5804hardcode_shlibpath_var=unsupported
5805runpath_var=
5806link_all_deplibs=unknown
5807always_export_symbols=no
5808export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5809# include_expsyms should be a list of space-separated symbols to be *always*
5810# included in the symbol list
5811include_expsyms=
5812# exclude_expsyms can be an egrep regular expression of symbols to exclude
5813# it will be wrapped by ` (' and `)$', so one must not match beginning or
5814# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5815# as well as any symbol that contains `d'.
5816exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5817# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5818# platforms (ab)use it in PIC code, but their linkers get confused if
5819# the symbol is explicitly referenced. Since portable code cannot
5820# rely on this symbol name, it's probably fine to never include it in
5821# preloaded symbol tables.
5822extract_expsyms_cmds=
5823
5824case "$host_os" in
5825cygwin* | mingw* | pw32* )
5826 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5827 # When not using gcc, we currently assume that we are using
5828 # Microsoft Visual C++.
5829 if test "$GCC" != yes; then
5830 with_gnu_ld=no
5831 fi
5832 ;;
5833
5834esac
5835
5836ld_shlibs=yes
5837if test "$with_gnu_ld" = yes; then
5838 # If archive_cmds runs LD, not CC, wlarc should be empty
5839 wlarc='${wl}'
5840
5841 # See if GNU ld supports shared libraries.
5842 case "$host_os" in
5843 aix3* | aix4*)
5844 # On AIX, the GNU linker is very broken
5845 ld_shlibs=no
5846 cat <<EOF 1>&2
5847
5848*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5849*** to be unable to reliably create shared libraries on AIX.
5850*** Therefore, libtool is disabling shared libraries support. If you
5851*** really care for shared libraries, you may want to modify your PATH
5852*** so that a non-GNU linker is found, and then restart.
5853
5854EOF
5855 ;;
5856
5857 amigaos*)
5858 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5859 hardcode_libdir_flag_spec='-L$libdir'
5860 hardcode_minus_L=yes
5861
5862 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5863 # that the semantics of dynamic libraries on AmigaOS, at least up
5864 # to version 4, is to share data among multiple programs linked
5865 # with the same dynamic library. Since this doesn't match the
5866 # behavior of shared libraries on other platforms, we can use
5867 # them.
5868 ld_shlibs=no
5869 ;;
5870
5871 beos*)
5872 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5873 allow_undefined_flag=unsupported
5874 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5875 # support --undefined. This deserves some investigation. FIXME
5876 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5877 else
5878 ld_shlibs=no
5879 fi
5880 ;;
5881
5882 cygwin* | mingw* | pw32*)
5883 # hardcode_libdir_flag_spec is actually meaningless, as there is
5884 # no search path for DLLs.
5885 hardcode_libdir_flag_spec='-L$libdir'
5886 allow_undefined_flag=unsupported
5887 always_export_symbols=yes
5888
5889 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5890 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5891 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5892 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5893 else $CC -o impgen impgen.c ; fi)~
5894 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
5895
5896 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5897
5898 # cygwin and mingw dlls have different entry points and sets of symbols
5899 # to exclude.
5900 # FIXME: what about values for MSVC?
5901 dll_entry=__cygwin_dll_entry@12
5902 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5903 case "$host_os" in
5904 mingw*)
5905 # mingw values
5906 dll_entry=_DllMainCRTStartup@12
5907 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5908 ;;
5909 esac
5910
5911 # mingw and cygwin differ, and it's simplest to just exclude the union
5912 # of the two symbol sets.
5913 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5914
5915 # recent cygwin and mingw systems supply a stub DllMain which the user
5916 # can override, but on older systems we have to supply one (in ltdll.c)
5917 if test "x$lt_cv_need_dllmain" = "xyes"; then
5918 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5919 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
5920 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5921 else
5922 ltdll_obj=
5923 ltdll_cmds=
5924 fi
5925
5926 # Extract the symbol export list from an `--export-all' def file,
5927 # then regenerate the def file from the symbol export list, so that
5928 # the compiled dll only exports the symbol export list.
5929 # Be careful not to strip the DATA tag left be newer dlltools.
5930 export_symbols_cmds="$ltdll_cmds"'
5931 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5932 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5933
5934 # If DATA tags from a recent dlltool are present, honour them!
5935 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
5936 _lt_hint=1;
5937 cat $export_symbols | while read symbol; do
5938 set dummy \$symbol;
5939 case \$# in
5940 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5941 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5942 esac;
5943 _lt_hint=`expr 1 + \$_lt_hint`;
5944 done~
5945 '"$ltdll_cmds"'
5946 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5947 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5948 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5949 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5950 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5951 ;;
5952
5953 netbsd*)
5954 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5955 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5956 wlarc=
5957 else
5958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5959 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5960 fi
5961 ;;
5962
5963 solaris* | sysv5*)
5964 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5965 ld_shlibs=no
5966 cat <<EOF 1>&2
5967
5968*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5969*** create shared libraries on Solaris systems. Therefore, libtool
5970*** is disabling shared libraries support. We urge you to upgrade GNU
5971*** binutils to release 2.9.1 or newer. Another option is to modify
5972*** your PATH or compiler configuration so that the native linker is
5973*** used, and then restart.
5974
5975EOF
5976 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5979 else
5980 ld_shlibs=no
5981 fi
5982 ;;
5983
5984 sunos4*)
5985 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5986 wlarc=
5987 hardcode_direct=yes
5988 hardcode_shlibpath_var=no
5989 ;;
5990
5991 *)
5992 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5995 else
5996 ld_shlibs=no
5997 fi
5998 ;;
5999 esac
6000
6001 if test "$ld_shlibs" = yes; then
6002 runpath_var=LD_RUN_PATH
6003 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6004 export_dynamic_flag_spec='${wl}--export-dynamic'
6005 case $host_os in
6006 cygwin* | mingw* | pw32*)
6007 # dlltool doesn't understand --whole-archive et. al.
6008 whole_archive_flag_spec=
6009 ;;
6010 *)
6011 # ancient GNU ld didn't support --whole-archive et. al.
6012 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6013 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6014 else
6015 whole_archive_flag_spec=
6016 fi
6017 ;;
6018 esac
6019 fi
6020else
6021 # PORTME fill in a description of your system's linker (not GNU ld)
6022 case "$host_os" in
6023 aix3*)
6024 allow_undefined_flag=unsupported
6025 always_export_symbols=yes
6026 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6027 # Note: this linker hardcodes the directories in LIBPATH if there
6028 # are no directories specified by -L.
6029 hardcode_minus_L=yes
6030 if test "$GCC" = yes && test -z "$link_static_flag"; then
6031 # Neither direct hardcoding nor static linking is supported with a
6032 # broken collect2.
6033 hardcode_direct=unsupported
6034 fi
6035 ;;
6036
6037 aix4*)
6038 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6039 hardcode_libdir_separator=':'
6040 if test "$GCC" = yes; then
6041 collect2name=`${CC} -print-prog-name=collect2`
6042 if test -f "$collect2name" && \
6043 strings "$collect2name" | grep resolve_lib_name >/dev/null
6044 then
6045 # We have reworked collect2
6046 hardcode_direct=yes
6047 else
6048 # We have old collect2
6049 hardcode_direct=unsupported
6050 # It fails to find uninstalled libraries when the uninstalled
6051 # path is not listed in the libpath. Setting hardcode_minus_L
6052 # to unsupported forces relinking
6053 hardcode_minus_L=yes
6054 hardcode_libdir_flag_spec='-L$libdir'
6055 hardcode_libdir_separator=
6056 fi
6057 shared_flag='-shared'
6058 else
6059 shared_flag='${wl}-bM:SRE'
6060 hardcode_direct=yes
6061 fi
6062 allow_undefined_flag=' ${wl}-berok'
6063 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6064 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6065 case "$host_os" in aix4.[01]|aix4.[01].*)
6066 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6067 always_export_symbols=yes ;;
6068 esac
6069
6070 # We don't want to build shared libraries on unknown CPU types.
6071 case $host_cpu in
6072 powerpc | rs6000) ;;
6073 *) ld_shlibs=no ;;
6074 esac
6075 ;;
6076
6077 amigaos*)
6078 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6079 hardcode_libdir_flag_spec='-L$libdir'
6080 hardcode_minus_L=yes
6081 # see comment about different semantics on the GNU ld section
6082 ld_shlibs=no
6083 ;;
6084
6085 cygwin* | mingw* | pw32*)
6086 # When not using gcc, we currently assume that we are using
6087 # Microsoft Visual C++.
6088 # hardcode_libdir_flag_spec is actually meaningless, as there is
6089 # no search path for DLLs.
6090 hardcode_libdir_flag_spec=' '
6091 allow_undefined_flag=unsupported
6092 # Tell ltmain to make .lib files, not .a files.
6093 libext=lib
6094 # FIXME: Setting linknames here is a bad hack.
6095 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6096 # The linker will automatically build a .lib file if we build a DLL.
6097 old_archive_from_new_cmds='true'
6098 # FIXME: Should let the user specify the lib program.
6099 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6100 fix_srcfile_path='`cygpath -w "$srcfile"`'
6101 ;;
6102
6103 darwin* | rhapsody*)
6104 allow_undefined_flag='-undefined warning'
6105 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6106 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6107 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6108 ## What we need is to hardcode the path to the library, not the search path
6109 #hardcode_direct=yes
6110 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6111 hardcode_shlibpath_var=no
6112 whole_archive_flag_spec='-all_load'
6113 ;;
6114
6115 freebsd1*)
6116 ld_shlibs=no
6117 ;;
6118
6119 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6120 # support. Future versions do this automatically, but an explicit c++rt0.o
6121 # does not break anything, and helps significantly (at the cost of a little
6122 # extra space).
6123 freebsd2.2*)
6124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6125 hardcode_libdir_flag_spec='-R$libdir'
6126 hardcode_direct=yes
6127 hardcode_shlibpath_var=no
6128 ;;
6129
6130 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6131 freebsd2*)
6132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6133 hardcode_direct=yes
6134 hardcode_minus_L=yes
6135 hardcode_shlibpath_var=no
6136 ;;
6137
6138 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6139 freebsd*)
6140 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6141 hardcode_libdir_flag_spec='-R$libdir'
6142 hardcode_direct=yes
6143 hardcode_shlibpath_var=no
6144 ;;
6145
6146 hpux9* | hpux10* | hpux11*)
6147 case "$host_os" in
6148 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6149 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6150 esac
6151 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6152 hardcode_libdir_separator=:
6153 hardcode_direct=yes
6154 hardcode_minus_L=yes # Not in the search PATH, but as the default
6155 # location of the library.
6156 export_dynamic_flag_spec='${wl}-E'
6157 ;;
6158
6159 irix5* | irix6*)
6160 if test "$GCC" = yes; then
6161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6162 else
6163 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6164 fi
6165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6166 hardcode_libdir_separator=:
6167 link_all_deplibs=yes
6168 ;;
6169
6170 netbsd*)
6171 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6172 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6173 else
6174 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6175 fi
6176 hardcode_libdir_flag_spec='-R$libdir'
6177 hardcode_direct=yes
6178 hardcode_shlibpath_var=no
6179 ;;
6180
6181 newsos6)
6182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6183 hardcode_direct=yes
6184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6185 hardcode_libdir_separator=:
6186 hardcode_shlibpath_var=no
6187 ;;
6188
6189 openbsd*)
6190 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6191 hardcode_libdir_flag_spec='-R$libdir'
6192 hardcode_direct=yes
6193 hardcode_shlibpath_var=no
6194 ;;
6195
6196 os2*)
6197 hardcode_libdir_flag_spec='-L$libdir'
6198 hardcode_minus_L=yes
6199 allow_undefined_flag=unsupported
6200 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6201 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6202 ;;
6203
6204 osf3*)
6205 if test "$GCC" = yes; then
6206 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6207 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6208 else
6209 allow_undefined_flag=' -expect_unresolved \*'
6210 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6211 fi
6212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6213 hardcode_libdir_separator=:
6214 ;;
6215
6216 osf4* | osf5*) # as osf3* with the addition of -msym flag
6217 if test "$GCC" = yes; then
6218 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6219 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6220 else
6221 allow_undefined_flag=' -expect_unresolved \*'
6222 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6223 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6224 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6225 fi
6226#Both c and cxx compiler support -rpath directly
6227 hardcode_libdir_flag_spec='-rpath $libdir'
6228 hardcode_libdir_separator=:
6229 ;;
6230
6231 sco3.2v5*)
6232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6233 hardcode_shlibpath_var=no
6234 runpath_var=LD_RUN_PATH
6235 hardcode_runpath_var=yes
6236 ;;
6237
6238 solaris*)
6239 no_undefined_flag=' -z text'
6240 # $CC -shared without GNU ld will not create a library from C++
6241 # object files and a static libstdc++, better avoid it by now
6242 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6243 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6244 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6245 hardcode_libdir_flag_spec='-R$libdir'
6246 hardcode_shlibpath_var=no
6247 case "$host_os" in
6248 solaris2.[0-5] | solaris2.[0-5].*) ;;
6249 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6250 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6251 esac
6252 link_all_deplibs=yes
6253 ;;
6254
6255 sunos4*)
6256 if test "x$host_vendor" = xsequent; then
6257 # Use $CC to link under sequent, because it throws in some extra .o
6258 # files that make .init and .fini sections work.
6259 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6260 else
6261 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6262 fi
6263 hardcode_libdir_flag_spec='-L$libdir'
6264 hardcode_direct=yes
6265 hardcode_minus_L=yes
6266 hardcode_shlibpath_var=no
6267 ;;
6268
6269 sysv4)
6270 if test "x$host_vendor" = xsno; then
6271 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6272 hardcode_direct=yes # is this really true???
6273 else
6274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6275 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6276 fi
6277 runpath_var='LD_RUN_PATH'
6278 hardcode_shlibpath_var=no
6279 ;;
6280
6281 sysv4.3*)
6282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6283 hardcode_shlibpath_var=no
6284 export_dynamic_flag_spec='-Bexport'
6285 ;;
6286
6287 sysv5*)
6288 no_undefined_flag=' -z text'
6289 # $CC -shared without GNU ld will not create a library from C++
6290 # object files and a static libstdc++, better avoid it by now
6291 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6292 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6293 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6294 hardcode_libdir_flag_spec=
6295 hardcode_shlibpath_var=no
6296 runpath_var='LD_RUN_PATH'
6297 ;;
6298
6299 uts4*)
6300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6301 hardcode_libdir_flag_spec='-L$libdir'
6302 hardcode_shlibpath_var=no
6303 ;;
6304
6305 dgux*)
6306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6307 hardcode_libdir_flag_spec='-L$libdir'
6308 hardcode_shlibpath_var=no
6309 ;;
6310
6311 sysv4*MP*)
6312 if test -d /usr/nec; then
6313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6314 hardcode_shlibpath_var=no
6315 runpath_var=LD_RUN_PATH
6316 hardcode_runpath_var=yes
6317 ld_shlibs=yes
6318 fi
6319 ;;
6320
6321 sysv4.2uw2*)
6322 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6323 hardcode_direct=yes
6324 hardcode_minus_L=no
6325 hardcode_shlibpath_var=no
6326 hardcode_runpath_var=yes
6327 runpath_var=LD_RUN_PATH
6328 ;;
6329
6330 unixware7*)
6331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6332 runpath_var='LD_RUN_PATH'
6333 hardcode_shlibpath_var=no
6334 ;;
6335
6336 *)
6337 ld_shlibs=no
6338 ;;
6339 esac
6340fi
6341echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6342echo "${ECHO_T}$ld_shlibs" >&6
6343test "$ld_shlibs" = no && can_build_shared=no
6344##
6345## END FIXME
6346
6347## FIXME: this should be a separate macro
6348##
6349# Check hardcoding attributes.
6350echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6351echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6352hardcode_action=
6353if test -n "$hardcode_libdir_flag_spec" || \
6354 test -n "$runpath_var"; then
6355
6356 # We can hardcode non-existant directories.
6357 if test "$hardcode_direct" != no &&
6358 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6359 # have to relink, otherwise we might link with an installed library
6360 # when we should be linking with a yet-to-be-installed one
6361 ## test "$hardcode_shlibpath_var" != no &&
6362 test "$hardcode_minus_L" != no; then
6363 # Linking always hardcodes the temporary library directory.
6364 hardcode_action=relink
6365 else
6366 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6367 hardcode_action=immediate
6368 fi
6369else
6370 # We cannot hardcode anything, or else we can only hardcode existing
6371 # directories.
6372 hardcode_action=unsupported
6373fi
6374echo "$as_me:$LINENO: result: $hardcode_action" >&5
6375echo "${ECHO_T}$hardcode_action" >&6
6376##
6377## END FIXME
6378
6379## FIXME: this should be a separate macro
6380##
6381striplib=
6382old_striplib=
6383echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6384echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6385if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6386 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6387 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6388 echo "$as_me:$LINENO: result: yes" >&5
6389echo "${ECHO_T}yes" >&6
6390else
6391 echo "$as_me:$LINENO: result: no" >&5
6392echo "${ECHO_T}no" >&6
6393fi
6394##
6395## END FIXME
6396
6397reload_cmds='$LD$reload_flag -o $output$reload_objs'
6398test -z "$deplibs_check_method" && deplibs_check_method=unknown
6399
6400## FIXME: this should be a separate macro
6401##
6402# PORTME Fill in your ld.so characteristics
6403echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6404echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6405library_names_spec=
6406libname_spec='lib$name'
6407soname_spec=
6408postinstall_cmds=
6409postuninstall_cmds=
6410finish_cmds=
6411finish_eval=
6412shlibpath_var=
6413shlibpath_overrides_runpath=unknown
6414version_type=none
6415dynamic_linker="$host_os ld.so"
6416sys_lib_dlsearch_path_spec="/lib /usr/lib"
6417sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6418
6419case "$host_os" in
6420aix3*)
6421 version_type=linux
6422 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6423 shlibpath_var=LIBPATH
6424
6425 # AIX has no versioning support, so we append a major version to the name.
6426 soname_spec='${libname}${release}.so$major'
6427 ;;
6428
6429aix4*)
6430 version_type=linux
6431 # AIX has no versioning support, so currently we can not hardcode correct
6432 # soname into executable. Probably we can add versioning support to
6433 # collect2, so additional links can be useful in future.
6434 # We preserve .a as extension for shared libraries though AIX4.2
6435 # and later linker supports .so
6436 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6437 shlibpath_var=LIBPATH
6438 ;;
6439
6440amigaos*)
6441 library_names_spec='$libname.ixlibrary $libname.a'
6442 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6443 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6444 ;;
6445
6446beos*)
6447 library_names_spec='${libname}.so'
6448 dynamic_linker="$host_os ld.so"
6449 shlibpath_var=LIBRARY_PATH
6450 ;;
6451
6452bsdi4*)
6453 version_type=linux
6454 need_version=no
6455 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6456 soname_spec='${libname}${release}.so$major'
6457 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6458 shlibpath_var=LD_LIBRARY_PATH
6459 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6460 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6461 export_dynamic_flag_spec=-rdynamic
6462 # the default ld.so.conf also contains /usr/contrib/lib and
6463 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6464 # libtool to hard-code these into programs
6465 ;;
6466
6467cygwin* | mingw* | pw32*)
6468 version_type=windows
6469 need_version=no
6470 need_lib_prefix=no
6471 if test "$GCC" = yes; then
6472 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6473 else
6474 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6475 fi
6476 dynamic_linker='Win32 ld.exe'
6477 # FIXME: first we should search . and the directory the executable is in
6478 shlibpath_var=PATH
6479 ;;
6480
6481darwin* | rhapsody*)
6482 need_lib_prefix=no
6483 need_version=no
6484 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6485 shlibpath_overrides_runpath=yes
6486 shlibpath_var=DYLD_LIBRARY_PATH
6487 postinstall_cmds='chmod +x $lib'
6488 ;;
6489
6490freebsd1*)
6491 dynamic_linker=no
6492 ;;
6493
6494freebsd*)
6495 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6496 version_type=freebsd-$objformat
6497 case "$version_type" in
6498 freebsd-elf*)
6499 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6500 need_version=no
6501 need_lib_prefix=no
6502 ;;
6503 freebsd-*)
6504 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6505 need_version=yes
6506 ;;
6507 esac
6508 shlibpath_var=LD_LIBRARY_PATH
6509 case "$host_os" in
6510 freebsd2*)
6511 shlibpath_overrides_runpath=yes
6512 ;;
6513 *)
6514 shlibpath_overrides_runpath=no
6515 hardcode_into_libs=yes
6516 ;;
6517 esac
6518 ;;
6519
6520gnu*)
6521 version_type=linux
6522 need_lib_prefix=no
6523 need_version=no
6524 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6525 soname_spec='${libname}${release}.so$major'
6526 shlibpath_var=LD_LIBRARY_PATH
6527 hardcode_into_libs=yes
6528 ;;
6529
6530hpux9* | hpux10* | hpux11*)
6531 # Give a soname corresponding to the major version so that dld.sl refuses to
6532 # link against other versions.
6533 dynamic_linker="$host_os dld.sl"
6534 version_type=sunos
6535 need_lib_prefix=no
6536 need_version=no
6537 shlibpath_var=SHLIB_PATH
6538 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6539 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6540 soname_spec='${libname}${release}.sl$major'
6541 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6542 postinstall_cmds='chmod 555 $lib'
6543 ;;
6544
6545irix5* | irix6*)
6546 version_type=irix
6547 need_lib_prefix=no
6548 need_version=no
6549 soname_spec='${libname}${release}.so$major'
6550 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6551 case "$host_os" in
6552 irix5*)
6553 libsuff= shlibsuff=
6554 ;;
6555 *)
6556 case "$LD" in # libtool.m4 will add one of these switches to LD
6557 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6558 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6559 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6560 *) libsuff= shlibsuff= libmagic=never-match;;
6561 esac
6562 ;;
6563 esac
6564 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6565 shlibpath_overrides_runpath=no
6566 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6567 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6568 ;;
6569
6570# No shared lib support for Linux oldld, aout, or coff.
6571linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6572 dynamic_linker=no
6573 ;;
6574
6575# This must be Linux ELF.
6576linux-gnu*)
6577 version_type=linux
6578 need_lib_prefix=no
6579 need_version=no
6580 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6581 soname_spec='${libname}${release}.so$major'
6582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6583 shlibpath_var=LD_LIBRARY_PATH
6584 shlibpath_overrides_runpath=no
6585 # This implies no fast_install, which is unacceptable.
6586 # Some rework will be needed to allow for fast_install
6587 # before this can be enabled.
6588 hardcode_into_libs=yes
6589
6590 # We used to test for /lib/ld.so.1 and disable shared libraries on
6591 # powerpc, because MkLinux only supported shared libraries with the
6592 # GNU dynamic linker. Since this was broken with cross compilers,
6593 # most powerpc-linux boxes support dynamic linking these days and
6594 # people can always --disable-shared, the test was removed, and we
6595 # assume the GNU/Linux dynamic linker is in use.
6596 dynamic_linker='GNU/Linux ld.so'
6597 ;;
6598
6599netbsd*)
6600 version_type=sunos
6601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6602 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6603 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6604 dynamic_linker='NetBSD (a.out) ld.so'
6605 else
6606 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6607 soname_spec='${libname}${release}.so$major'
6608 dynamic_linker='NetBSD ld.elf_so'
6609 fi
6610 shlibpath_var=LD_LIBRARY_PATH
6611 shlibpath_overrides_runpath=yes
6612 hardcode_into_libs=yes
6613 ;;
6614
6615newsos6)
6616 version_type=linux
6617 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6618 shlibpath_var=LD_LIBRARY_PATH
6619 shlibpath_overrides_runpath=yes
6620 ;;
6621
6622openbsd*)
6623 version_type=sunos
6624 if test "$with_gnu_ld" = yes; then
6625 need_lib_prefix=no
6626 need_version=no
6627 fi
6628 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6630 shlibpath_var=LD_LIBRARY_PATH
6631 ;;
6632
6633os2*)
6634 libname_spec='$name'
6635 need_lib_prefix=no
6636 library_names_spec='$libname.dll $libname.a'
6637 dynamic_linker='OS/2 ld.exe'
6638 shlibpath_var=LIBPATH
6639 ;;
6640
6641osf3* | osf4* | osf5*)
6642 version_type=osf
6643 need_version=no
6644 soname_spec='${libname}${release}.so'
6645 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6646 shlibpath_var=LD_LIBRARY_PATH
6647 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6648 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6649 ;;
6650
6651sco3.2v5*)
6652 version_type=osf
6653 soname_spec='${libname}${release}.so$major'
6654 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6655 shlibpath_var=LD_LIBRARY_PATH
6656 ;;
6657
6658solaris*)
6659 version_type=linux
6660 need_lib_prefix=no
6661 need_version=no
6662 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6663 soname_spec='${libname}${release}.so$major'
6664 shlibpath_var=LD_LIBRARY_PATH
6665 shlibpath_overrides_runpath=yes
6666 hardcode_into_libs=yes
6667 # ldd complains unless libraries are executable
6668 postinstall_cmds='chmod +x $lib'
6669 ;;
6670
6671sunos4*)
6672 version_type=sunos
6673 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6674 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6675 shlibpath_var=LD_LIBRARY_PATH
6676 shlibpath_overrides_runpath=yes
6677 if test "$with_gnu_ld" = yes; then
6678 need_lib_prefix=no
6679 fi
6680 need_version=yes
6681 ;;
6682
6683sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6684 version_type=linux
6685 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6686 soname_spec='${libname}${release}.so$major'
6687 shlibpath_var=LD_LIBRARY_PATH
6688 case "$host_vendor" in
6689 sni)
6690 shlibpath_overrides_runpath=no
6691 ;;
6692 motorola)
6693 need_lib_prefix=no
6694 need_version=no
6695 shlibpath_overrides_runpath=no
6696 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6697 ;;
6698 esac
6699 ;;
6700
6701uts4*)
6702 version_type=linux
6703 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6704 soname_spec='${libname}${release}.so$major'
6705 shlibpath_var=LD_LIBRARY_PATH
6706 ;;
6707
6708dgux*)
6709 version_type=linux
6710 need_lib_prefix=no
6711 need_version=no
6712 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6713 soname_spec='${libname}${release}.so$major'
6714 shlibpath_var=LD_LIBRARY_PATH
6715 ;;
6716
6717sysv4*MP*)
6718 if test -d /usr/nec ;then
6719 version_type=linux
6720 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6721 soname_spec='$libname.so.$major'
6722 shlibpath_var=LD_LIBRARY_PATH
6723 fi
6724 ;;
6725
6726*)
6727 dynamic_linker=no
6728 ;;
6729esac
6730echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6731echo "${ECHO_T}$dynamic_linker" >&6
6732test "$dynamic_linker" = no && can_build_shared=no
6733##
6734## END FIXME
6735
6736## FIXME: this should be a separate macro
6737##
6738# Report the final consequences.
6739echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6740echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6741echo "$as_me:$LINENO: result: $can_build_shared" >&5
6742echo "${ECHO_T}$can_build_shared" >&6
6743##
6744## END FIXME
6745
6746if test "$hardcode_action" = relink; then
6747 # Fast installation is not supported
6748 enable_fast_install=no
6749elif test "$shlibpath_overrides_runpath" = yes ||
6750 test "$enable_shared" = no; then
6751 # Fast installation is not necessary
6752 enable_fast_install=needless
6753fi
6754
6755variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6756if test "$GCC" = yes; then
6757 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6758fi
6759
6760if test "x$enable_dlopen" != xyes; then
6761 enable_dlopen=unknown
6762 enable_dlopen_self=unknown
6763 enable_dlopen_self_static=unknown
6764else
6765 lt_cv_dlopen=no
6766 lt_cv_dlopen_libs=
6767
6768 case "$host_os" in
6769 beos*)
6770 lt_cv_dlopen="load_add_on"
6771 lt_cv_dlopen_libs=
6772 lt_cv_dlopen_self=yes
6773 ;;
6774
6775 cygwin* | mingw* | pw32*)
6776 lt_cv_dlopen="LoadLibrary"
6777 lt_cv_dlopen_libs=
6778 ;;
6779
6780 *)
6781 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6782echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6783if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6785else
6786 ac_check_lib_save_LIBS=$LIBS
6787LIBS="-ldl $LIBS"
6788cat >conftest.$ac_ext <<_ACEOF
6789/* confdefs.h. */
6790_ACEOF
6791cat confdefs.h >>conftest.$ac_ext
6792cat >>conftest.$ac_ext <<_ACEOF
6793/* end confdefs.h. */
6794
6795/* Override any gcc2 internal prototype to avoid an error. */
6796#ifdef __cplusplus
6797extern "C"
6798#endif
6799/* We use char because int might match the return type of a gcc2
6800 builtin and then its argument prototype would still apply. */
6801char dlopen ();
6802int
6803main ()
6804{
6805dlopen ();
6806 ;
6807 return 0;
6808}
6809_ACEOF
6810rm -f conftest.$ac_objext conftest$ac_exeext
6811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6812 (eval $ac_link) 2>conftest.er1
6813 ac_status=$?
6814 grep -v '^ *+' conftest.er1 >conftest.err
6815 rm -f conftest.er1
6816 cat conftest.err >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); } &&
6819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 (eval $ac_try) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try='test -s conftest$ac_exeext'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 (eval $ac_try) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6831 ac_cv_lib_dl_dlopen=yes
6832else
6833 echo "$as_me: failed program was:" >&5
6834sed 's/^/| /' conftest.$ac_ext >&5
6835
6836ac_cv_lib_dl_dlopen=no
6837fi
6838rm -f conftest.err conftest.$ac_objext \
6839 conftest$ac_exeext conftest.$ac_ext
6840LIBS=$ac_check_lib_save_LIBS
6841fi
6842echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6843echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6844if test $ac_cv_lib_dl_dlopen = yes; then
6845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6846else
6847 echo "$as_me:$LINENO: checking for dlopen" >&5
6848echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6849if test "${ac_cv_func_dlopen+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6851else
6852 cat >conftest.$ac_ext <<_ACEOF
6853/* confdefs.h. */
6854_ACEOF
6855cat confdefs.h >>conftest.$ac_ext
6856cat >>conftest.$ac_ext <<_ACEOF
6857/* end confdefs.h. */
6858/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
6859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6860#define dlopen innocuous_dlopen
6861
6862/* System header to define __stub macros and hopefully few prototypes,
6863 which can conflict with char dlopen (); below.
6864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6865 <limits.h> exists even on freestanding compilers. */
6866
6867#ifdef __STDC__
6868# include <limits.h>
6869#else
6870# include <assert.h>
6871#endif
6872
6873#undef dlopen
6874
6875/* Override any gcc2 internal prototype to avoid an error. */
6876#ifdef __cplusplus
6877extern "C"
6878{
6879#endif
6880/* We use char because int might match the return type of a gcc2
6881 builtin and then its argument prototype would still apply. */
6882char dlopen ();
6883/* The GNU C library defines this for functions which it implements
6884 to always fail with ENOSYS. Some functions are actually named
6885 something starting with __ and the normal name is an alias. */
6886#if defined (__stub_dlopen) || defined (__stub___dlopen)
6887choke me
6888#else
6889char (*f) () = dlopen;
6890#endif
6891#ifdef __cplusplus
6892}
6893#endif
6894
6895int
6896main ()
6897{
6898return f != dlopen;
6899 ;
6900 return 0;
6901}
6902_ACEOF
6903rm -f conftest.$ac_objext conftest$ac_exeext
6904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6905 (eval $ac_link) 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } &&
6912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; } &&
6918 { ac_try='test -s conftest$ac_exeext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 (eval $ac_try) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6924 ac_cv_func_dlopen=yes
6925else
6926 echo "$as_me: failed program was:" >&5
6927sed 's/^/| /' conftest.$ac_ext >&5
6928
6929ac_cv_func_dlopen=no
6930fi
6931rm -f conftest.err conftest.$ac_objext \
6932 conftest$ac_exeext conftest.$ac_ext
6933fi
6934echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6935echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6936if test $ac_cv_func_dlopen = yes; then
6937 lt_cv_dlopen="dlopen"
6938else
6939 echo "$as_me:$LINENO: checking for shl_load" >&5
6940echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6941if test "${ac_cv_func_shl_load+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944 cat >conftest.$ac_ext <<_ACEOF
6945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
6950/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
6951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6952#define shl_load innocuous_shl_load
6953
6954/* System header to define __stub macros and hopefully few prototypes,
6955 which can conflict with char shl_load (); below.
6956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6957 <limits.h> exists even on freestanding compilers. */
6958
6959#ifdef __STDC__
6960# include <limits.h>
6961#else
6962# include <assert.h>
6963#endif
6964
6965#undef shl_load
6966
6967/* Override any gcc2 internal prototype to avoid an error. */
6968#ifdef __cplusplus
6969extern "C"
6970{
6971#endif
6972/* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */
6974char shl_load ();
6975/* The GNU C library defines this for functions which it implements
6976 to always fail with ENOSYS. Some functions are actually named
6977 something starting with __ and the normal name is an alias. */
6978#if defined (__stub_shl_load) || defined (__stub___shl_load)
6979choke me
6980#else
6981char (*f) () = shl_load;
6982#endif
6983#ifdef __cplusplus
6984}
6985#endif
6986
6987int
6988main ()
6989{
6990return f != shl_load;
6991 ;
6992 return 0;
6993}
6994_ACEOF
6995rm -f conftest.$ac_objext conftest$ac_exeext
6996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6997 (eval $ac_link) 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; } &&
7010 { ac_try='test -s conftest$ac_exeext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 ac_cv_func_shl_load=yes
7017else
7018 echo "$as_me: failed program was:" >&5
7019sed 's/^/| /' conftest.$ac_ext >&5
7020
7021ac_cv_func_shl_load=no
7022fi
7023rm -f conftest.err conftest.$ac_objext \
7024 conftest$ac_exeext conftest.$ac_ext
7025fi
7026echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7027echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7028if test $ac_cv_func_shl_load = yes; then
7029 lt_cv_dlopen="shl_load"
7030else
7031 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7032echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7033if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035else
7036 ac_check_lib_save_LIBS=$LIBS
7037LIBS="-lsvld $LIBS"
7038cat >conftest.$ac_ext <<_ACEOF
7039/* confdefs.h. */
7040_ACEOF
7041cat confdefs.h >>conftest.$ac_ext
7042cat >>conftest.$ac_ext <<_ACEOF
7043/* end confdefs.h. */
7044
7045/* Override any gcc2 internal prototype to avoid an error. */
7046#ifdef __cplusplus
7047extern "C"
7048#endif
7049/* We use char because int might match the return type of a gcc2
7050 builtin and then its argument prototype would still apply. */
7051char dlopen ();
7052int
7053main ()
7054{
7055dlopen ();
7056 ;
7057 return 0;
7058}
7059_ACEOF
7060rm -f conftest.$ac_objext conftest$ac_exeext
7061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062 (eval $ac_link) 2>conftest.er1
7063 ac_status=$?
7064 grep -v '^ *+' conftest.er1 >conftest.err
7065 rm -f conftest.er1
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } &&
7069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; } &&
7075 { ac_try='test -s conftest$ac_exeext'
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; }; then
7081 ac_cv_lib_svld_dlopen=yes
7082else
7083 echo "$as_me: failed program was:" >&5
7084sed 's/^/| /' conftest.$ac_ext >&5
7085
7086ac_cv_lib_svld_dlopen=no
7087fi
7088rm -f conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7090LIBS=$ac_check_lib_save_LIBS
7091fi
7092echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7093echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7094if test $ac_cv_lib_svld_dlopen = yes; then
7095 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7096else
7097 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7098echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7099if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7101else
7102 ac_check_lib_save_LIBS=$LIBS
7103LIBS="-ldld $LIBS"
7104cat >conftest.$ac_ext <<_ACEOF
7105/* confdefs.h. */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h. */
7110
7111/* Override any gcc2 internal prototype to avoid an error. */
7112#ifdef __cplusplus
7113extern "C"
7114#endif
7115/* We use char because int might match the return type of a gcc2
7116 builtin and then its argument prototype would still apply. */
7117char shl_load ();
7118int
7119main ()
7120{
7121shl_load ();
7122 ;
7123 return 0;
7124}
7125_ACEOF
7126rm -f conftest.$ac_objext conftest$ac_exeext
7127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7128 (eval $ac_link) 2>conftest.er1
7129 ac_status=$?
7130 grep -v '^ *+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } &&
7135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try='test -s conftest$ac_exeext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 (eval $ac_try) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7147 ac_cv_lib_dld_shl_load=yes
7148else
7149 echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152ac_cv_lib_dld_shl_load=no
7153fi
7154rm -f conftest.err conftest.$ac_objext \
7155 conftest$ac_exeext conftest.$ac_ext
7156LIBS=$ac_check_lib_save_LIBS
7157fi
7158echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7159echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7160if test $ac_cv_lib_dld_shl_load = yes; then
7161 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7162fi
7163
7164
7165fi
7166
7167
7168fi
7169
7170
7171fi
7172
7173
7174fi
7175
7176 ;;
7177 esac
7178
7179 if test "x$lt_cv_dlopen" != xno; then
7180 enable_dlopen=yes
7181 else
7182 enable_dlopen=no
7183 fi
7184
7185 case "$lt_cv_dlopen" in
7186 dlopen)
7187 save_CPPFLAGS="$CPP_FLAGS"
7188 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7189
7190 save_LDFLAGS="$LDFLAGS"
7191 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7192
7193 save_LIBS="$LIBS"
7194 LIBS="$lt_cv_dlopen_libs $LIBS"
7195
7196 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7197echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7198if test "${lt_cv_dlopen_self+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200else
7201 if test "$cross_compiling" = yes; then :
7202 lt_cv_dlopen_self=cross
7203else
7204 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7205 lt_status=$lt_dlunknown
7206 cat > conftest.$ac_ext <<EOF
7207#line 7207 "configure"
7208#include "confdefs.h"
7209
7210#if HAVE_DLFCN_H
7211#include <dlfcn.h>
7212#endif
7213
7214#include <stdio.h>
7215
7216#ifdef RTLD_GLOBAL
7217# define LT_DLGLOBAL RTLD_GLOBAL
7218#else
7219# ifdef DL_GLOBAL
7220# define LT_DLGLOBAL DL_GLOBAL
7221# else
7222# define LT_DLGLOBAL 0
7223# endif
7224#endif
7225
7226/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7227 find out it does not work in some platform. */
7228#ifndef LT_DLLAZY_OR_NOW
7229# ifdef RTLD_LAZY
7230# define LT_DLLAZY_OR_NOW RTLD_LAZY
7231# else
7232# ifdef DL_LAZY
7233# define LT_DLLAZY_OR_NOW DL_LAZY
7234# else
7235# ifdef RTLD_NOW
7236# define LT_DLLAZY_OR_NOW RTLD_NOW
7237# else
7238# ifdef DL_NOW
7239# define LT_DLLAZY_OR_NOW DL_NOW
7240# else
7241# define LT_DLLAZY_OR_NOW 0
7242# endif
7243# endif
7244# endif
7245# endif
7246#endif
7247
7248#ifdef __cplusplus
7249extern "C" void exit (int);
7250#endif
7251
7252fnord() { int i=42;}
7253main ()
7254{
7255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7256 int status = $lt_dlunknown;
7257
7258 if (self)
7259 {
7260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7261 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7262 /* dlclose (self); */
7263 }
7264
7265 exit (status);
7266}
7267EOF
7268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7269 (eval $ac_link) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7273 (./conftest; exit; ) 2>/dev/null
7274 lt_status=$?
7275 case x$lt_status in
7276 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7277 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7278 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7279 esac
7280 else :
7281 # compilation failed
7282 lt_cv_dlopen_self=no
7283 fi
7284fi
7285rm -fr conftest*
7286
7287
7288fi
7289echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7290echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7291
7292 if test "x$lt_cv_dlopen_self" = xyes; then
7293 LDFLAGS="$LDFLAGS $link_static_flag"
7294 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7295echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7296if test "${lt_cv_dlopen_self_static+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7298else
7299 if test "$cross_compiling" = yes; then :
7300 lt_cv_dlopen_self_static=cross
7301else
7302 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7303 lt_status=$lt_dlunknown
7304 cat > conftest.$ac_ext <<EOF
7305#line 7305 "configure"
7306#include "confdefs.h"
7307
7308#if HAVE_DLFCN_H
7309#include <dlfcn.h>
7310#endif
7311
7312#include <stdio.h>
7313
7314#ifdef RTLD_GLOBAL
7315# define LT_DLGLOBAL RTLD_GLOBAL
7316#else
7317# ifdef DL_GLOBAL
7318# define LT_DLGLOBAL DL_GLOBAL
7319# else
7320# define LT_DLGLOBAL 0
7321# endif
7322#endif
7323
7324/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7325 find out it does not work in some platform. */
7326#ifndef LT_DLLAZY_OR_NOW
7327# ifdef RTLD_LAZY
7328# define LT_DLLAZY_OR_NOW RTLD_LAZY
7329# else
7330# ifdef DL_LAZY
7331# define LT_DLLAZY_OR_NOW DL_LAZY
7332# else
7333# ifdef RTLD_NOW
7334# define LT_DLLAZY_OR_NOW RTLD_NOW
7335# else
7336# ifdef DL_NOW
7337# define LT_DLLAZY_OR_NOW DL_NOW
7338# else
7339# define LT_DLLAZY_OR_NOW 0
7340# endif
7341# endif
7342# endif
7343# endif
7344#endif
7345
7346#ifdef __cplusplus
7347extern "C" void exit (int);
7348#endif
7349
7350fnord() { int i=42;}
7351main ()
7352{
7353 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7354 int status = $lt_dlunknown;
7355
7356 if (self)
7357 {
7358 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7359 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7360 /* dlclose (self); */
7361 }
7362
7363 exit (status);
7364}
7365EOF
7366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7367 (eval $ac_link) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7371 (./conftest; exit; ) 2>/dev/null
7372 lt_status=$?
7373 case x$lt_status in
7374 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7375 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7376 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7377 esac
7378 else :
7379 # compilation failed
7380 lt_cv_dlopen_self_static=no
7381 fi
7382fi
7383rm -fr conftest*
7384
7385
7386fi
7387echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7388echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7389 fi
7390
7391 CPPFLAGS="$save_CPPFLAGS"
7392 LDFLAGS="$save_LDFLAGS"
7393 LIBS="$save_LIBS"
7394 ;;
7395 esac
7396
7397 case "$lt_cv_dlopen_self" in
7398 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7399 *) enable_dlopen_self=unknown ;;
7400 esac
7401
7402 case "$lt_cv_dlopen_self_static" in
7403 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7404 *) enable_dlopen_self_static=unknown ;;
7405 esac
7406fi
7407
7408
7409## FIXME: this should be a separate macro
7410##
7411if test "$enable_shared" = yes && test "$GCC" = yes; then
7412 case "$archive_cmds" in
7413 *'~'*)
7414 # FIXME: we may have to deal with multi-command sequences.
7415 ;;
7416 '$CC '*)
7417 # Test whether the compiler implicitly links with -lc since on some
7418 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7419 # to ld, don't add -lc before -lgcc.
7420 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7421echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7422 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7424else
7425 $rm conftest*
7426 echo 'static int dummy;' > conftest.$ac_ext
7427
7428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7429 (eval $ac_compile) 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; then
7433 soname=conftest
7434 lib=conftest
7435 libobjs=conftest.$ac_objext
7436 deplibs=
7437 wl=$lt_cv_prog_cc_wl
7438 compiler_flags=-v
7439 linker_flags=-v
7440 verstring=
7441 output_objdir=.
7442 libname=conftest
7443 save_allow_undefined_flag=$allow_undefined_flag
7444 allow_undefined_flag=
7445 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7446 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }
7450 then
7451 lt_cv_archive_cmds_need_lc=no
7452 else
7453 lt_cv_archive_cmds_need_lc=yes
7454 fi
7455 allow_undefined_flag=$save_allow_undefined_flag
7456 else
7457 cat conftest.err 1>&5
7458 fi
7459fi
7460
7461 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7462echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7463 ;;
7464 esac
7465fi
7466need_lc=${lt_cv_archive_cmds_need_lc-yes}
7467##
7468## END FIXME
7469
7470## FIXME: this should be a separate macro
7471##
7472# The second clause should only fire when bootstrapping the
7473# libtool distribution, otherwise you forgot to ship ltmain.sh
7474# with your package, and you will get complaints that there are
7475# no rules to generate ltmain.sh.
7476if test -f "$ltmain"; then
7477 :
7478else
7479 # If there is no Makefile yet, we rely on a make rule to execute
7480 # `config.status --recheck' to rerun these tests and create the
7481 # libtool script then.
7482 test -f Makefile && make "$ltmain"
7483fi
7484
7485if test -f "$ltmain"; then
7486 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7487 $rm -f "${ofile}T"
7488
7489 echo creating $ofile
7490
7491 # Now quote all the things that may contain metacharacters while being
7492 # careful not to overquote the AC_SUBSTed values. We take copies of the
7493 # variables and quote the copies for generation of the libtool script.
7494 for var in echo old_CC old_CFLAGS \
7495 AR AR_FLAGS CC LD LN_S NM SHELL \
7496 reload_flag reload_cmds wl \
7497 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7498 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7499 library_names_spec soname_spec \
7500 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7501 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7502 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7503 old_striplib striplib file_magic_cmd export_symbols_cmds \
7504 deplibs_check_method allow_undefined_flag no_undefined_flag \
7505 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7506 hardcode_libdir_flag_spec hardcode_libdir_separator \
7507 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7508 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7509
7510 case "$var" in
7511 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7512 old_postinstall_cmds | old_postuninstall_cmds | \
7513 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7514 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7515 postinstall_cmds | postuninstall_cmds | \
7516 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7517 # Double-quote double-evaled strings.
7518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7519 ;;
7520 *)
7521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7522 ;;
7523 esac
7524 done
7525
7526 cat <<__EOF__ > "${ofile}T"
7527#! $SHELL
7528
7529# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7530# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7531# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7532#
7533# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7534# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7535#
7536# This program is free software; you can redistribute it and/or modify
7537# it under the terms of the GNU General Public License as published by
7538# the Free Software Foundation; either version 2 of the License, or
7539# (at your option) any later version.
7540#
7541# This program is distributed in the hope that it will be useful, but
7542# WITHOUT ANY WARRANTY; without even the implied warranty of
7543# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7544# General Public License for more details.
7545#
7546# You should have received a copy of the GNU General Public License
7547# along with this program; if not, write to the Free Software
7548# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7549#
7550# As a special exception to the GNU General Public License, if you
7551# distribute this file as part of a program that contains a
7552# configuration script generated by Autoconf, you may include it under
7553# the same distribution terms that you use for the rest of that program.
7554
7555# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7556Xsed="sed -e s/^X//"
7557
7558# The HP-UX ksh and POSIX shell print the target directory to stdout
7559# if CDPATH is set.
7560if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7561
7562# ### BEGIN LIBTOOL CONFIG
7563
7564# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7565
7566# Shell to use when invoking shell scripts.
7567SHELL=$lt_SHELL
7568
7569# Whether or not to build shared libraries.
7570build_libtool_libs=$enable_shared
7571
7572# Whether or not to add -lc for building shared libraries.
7573build_libtool_need_lc=$need_lc
7574
7575# Whether or not to build static libraries.
7576build_old_libs=$enable_static
7577
7578# Whether or not to optimize for fast installation.
7579fast_install=$enable_fast_install
7580
7581# The host system.
7582host_alias=$host_alias
7583host=$host
7584
7585# An echo program that does not interpret backslashes.
7586echo=$lt_echo
7587
7588# The archiver.
7589AR=$lt_AR
7590AR_FLAGS=$lt_AR_FLAGS
7591
7592# The default C compiler.
7593CC=$lt_CC
7594
7595# Is the compiler the GNU C compiler?
7596with_gcc=$GCC
7597
7598# The linker used to build libraries.
7599LD=$lt_LD
7600
7601# Whether we need hard or soft links.
7602LN_S=$lt_LN_S
7603
7604# A BSD-compatible nm program.
7605NM=$lt_NM
7606
7607# A symbol stripping program
7608STRIP=$STRIP
7609
7610# Used to examine libraries when file_magic_cmd begins "file"
7611MAGIC_CMD=$MAGIC_CMD
7612
7613# Used on cygwin: DLL creation program.
7614DLLTOOL="$DLLTOOL"
7615
7616# Used on cygwin: object dumper.
7617OBJDUMP="$OBJDUMP"
7618
7619# Used on cygwin: assembler.
7620AS="$AS"
7621
7622# The name of the directory that contains temporary libtool files.
7623objdir=$objdir
7624
7625# How to create reloadable object files.
7626reload_flag=$lt_reload_flag
7627reload_cmds=$lt_reload_cmds
7628
7629# How to pass a linker flag through the compiler.
7630wl=$lt_wl
7631
7632# Object file suffix (normally "o").
7633objext="$ac_objext"
7634
7635# Old archive suffix (normally "a").
7636libext="$libext"
7637
7638# Executable file suffix (normally "").
7639exeext="$exeext"
7640
7641# Additional compiler flags for building library objects.
7642pic_flag=$lt_pic_flag
7643pic_mode=$pic_mode
7644
7645# Does compiler simultaneously support -c and -o options?
7646compiler_c_o=$lt_compiler_c_o
7647
7648# Can we write directly to a .lo ?
7649compiler_o_lo=$lt_compiler_o_lo
7650
7651# Must we lock files when doing compilation ?
7652need_locks=$lt_need_locks
7653
7654# Do we need the lib prefix for modules?
7655need_lib_prefix=$need_lib_prefix
7656
7657# Do we need a version for libraries?
7658need_version=$need_version
7659
7660# Whether dlopen is supported.
7661dlopen_support=$enable_dlopen
7662
7663# Whether dlopen of programs is supported.
7664dlopen_self=$enable_dlopen_self
7665
7666# Whether dlopen of statically linked programs is supported.
7667dlopen_self_static=$enable_dlopen_self_static
7668
7669# Compiler flag to prevent dynamic linking.
7670link_static_flag=$lt_link_static_flag
7671
7672# Compiler flag to turn off builtin functions.
7673no_builtin_flag=$lt_no_builtin_flag
7674
7675# Compiler flag to allow reflexive dlopens.
7676export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7677
7678# Compiler flag to generate shared objects directly from archives.
7679whole_archive_flag_spec=$lt_whole_archive_flag_spec
7680
7681# Compiler flag to generate thread-safe objects.
7682thread_safe_flag_spec=$lt_thread_safe_flag_spec
7683
7684# Library versioning type.
7685version_type=$version_type
7686
7687# Format of library name prefix.
7688libname_spec=$lt_libname_spec
7689
7690# List of archive names. First name is the real one, the rest are links.
7691# The last name is the one that the linker finds with -lNAME.
7692library_names_spec=$lt_library_names_spec
7693
7694# The coded name of the library, if different from the real name.
7695soname_spec=$lt_soname_spec
7696
7697# Commands used to build and install an old-style archive.
7698RANLIB=$lt_RANLIB
7699old_archive_cmds=$lt_old_archive_cmds
7700old_postinstall_cmds=$lt_old_postinstall_cmds
7701old_postuninstall_cmds=$lt_old_postuninstall_cmds
7702
7703# Create an old-style archive from a shared archive.
7704old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7705
7706# Create a temporary old-style archive to link instead of a shared archive.
7707old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7708
7709# Commands used to build and install a shared archive.
7710archive_cmds=$lt_archive_cmds
7711archive_expsym_cmds=$lt_archive_expsym_cmds
7712postinstall_cmds=$lt_postinstall_cmds
7713postuninstall_cmds=$lt_postuninstall_cmds
7714
7715# Commands to strip libraries.
7716old_striplib=$lt_old_striplib
7717striplib=$lt_striplib
7718
7719# Method to check whether dependent libraries are shared objects.
7720deplibs_check_method=$lt_deplibs_check_method
7721
7722# Command to use when deplibs_check_method == file_magic.
7723file_magic_cmd=$lt_file_magic_cmd
7724
7725# Flag that allows shared libraries with undefined symbols to be built.
7726allow_undefined_flag=$lt_allow_undefined_flag
7727
7728# Flag that forces no undefined symbols.
7729no_undefined_flag=$lt_no_undefined_flag
7730
7731# Commands used to finish a libtool library installation in a directory.
7732finish_cmds=$lt_finish_cmds
7733
7734# Same as above, but a single script fragment to be evaled but not shown.
7735finish_eval=$lt_finish_eval
7736
7737# Take the output of nm and produce a listing of raw symbols and C names.
7738global_symbol_pipe=$lt_global_symbol_pipe
7739
7740# Transform the output of nm in a proper C declaration
7741global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7742
7743# This is the shared library runtime path variable.
7744runpath_var=$runpath_var
7745
7746# This is the shared library path variable.
7747shlibpath_var=$shlibpath_var
7748
7749# Is shlibpath searched before the hard-coded library search path?
7750shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7751
7752# How to hardcode a shared library path into an executable.
7753hardcode_action=$hardcode_action
7754
7755# Whether we should hardcode library paths into libraries.
7756hardcode_into_libs=$hardcode_into_libs
7757
7758# Flag to hardcode \$libdir into a binary during linking.
7759# This must work even if \$libdir does not exist.
7760hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7761
7762# Whether we need a single -rpath flag with a separated argument.
7763hardcode_libdir_separator=$lt_hardcode_libdir_separator
7764
7765# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7766# resulting binary.
7767hardcode_direct=$hardcode_direct
7768
7769# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7770# resulting binary.
7771hardcode_minus_L=$hardcode_minus_L
7772
7773# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7774# the resulting binary.
7775hardcode_shlibpath_var=$hardcode_shlibpath_var
7776
7777# Variables whose values should be saved in libtool wrapper scripts and
7778# restored at relink time.
7779variables_saved_for_relink="$variables_saved_for_relink"
7780
7781# Whether libtool must link a program against all its dependency libraries.
7782link_all_deplibs=$link_all_deplibs
7783
7784# Compile-time system search path for libraries
7785sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7786
7787# Run-time system search path for libraries
7788sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7789
7790# Fix the shell variable \$srcfile for the compiler.
7791fix_srcfile_path="$fix_srcfile_path"
7792
7793# Set to yes if exported symbols are required.
7794always_export_symbols=$always_export_symbols
7795
7796# The commands to list exported symbols.
7797export_symbols_cmds=$lt_export_symbols_cmds
7798
7799# The commands to extract the exported symbol list from a shared archive.
7800extract_expsyms_cmds=$lt_extract_expsyms_cmds
7801
7802# Symbols that should not be listed in the preloaded symbols.
7803exclude_expsyms=$lt_exclude_expsyms
7804
7805# Symbols that must always be exported.
7806include_expsyms=$lt_include_expsyms
7807
7808# ### END LIBTOOL CONFIG
7809
7810__EOF__
7811
7812 case "$host_os" in
7813 aix3*)
7814 cat <<\EOF >> "${ofile}T"
7815
7816# AIX sometimes has problems with the GCC collect2 program. For some
7817# reason, if we set the COLLECT_NAMES environment variable, the problems
7818# vanish in a puff of smoke.
7819if test "X${COLLECT_NAMES+set}" != Xset; then
7820 COLLECT_NAMES=
7821 export COLLECT_NAMES
7822fi
7823EOF
7824 ;;
7825 esac
7826
7827 case "$host_os" in
7828 cygwin* | mingw* | pw32* | os2*)
7829 cat <<'EOF' >> "${ofile}T"
7830 # This is a source program that is used to create dlls on Windows
7831 # Don't remove nor modify the starting and closing comments
7832# /* ltdll.c starts here */
7833# #define WIN32_LEAN_AND_MEAN
7834# #include <windows.h>
7835# #undef WIN32_LEAN_AND_MEAN
7836# #include <stdio.h>
7837#
7838# #ifndef __CYGWIN__
7839# # ifdef __CYGWIN32__
7840# # define __CYGWIN__ __CYGWIN32__
7841# # endif
7842# #endif
7843#
7844# #ifdef __cplusplus
7845# extern "C" {
7846# #endif
7847# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7848# #ifdef __cplusplus
7849# }
7850# #endif
7851#
7852# #ifdef __CYGWIN__
7853# #include <cygwin/cygwin_dll.h>
7854# DECLARE_CYGWIN_DLL( DllMain );
7855# #endif
7856# HINSTANCE __hDllInstance_base;
7857#
7858# BOOL APIENTRY
7859# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7860# {
7861# __hDllInstance_base = hInst;
7862# return TRUE;
7863# }
7864# /* ltdll.c ends here */
7865 # This is a source program that is used to create import libraries
7866 # on Windows for dlls which lack them. Don't remove nor modify the
7867 # starting and closing comments
7868# /* impgen.c starts here */
7869# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7870#
7871# This file is part of GNU libtool.
7872#
7873# This program is free software; you can redistribute it and/or modify
7874# it under the terms of the GNU General Public License as published by
7875# the Free Software Foundation; either version 2 of the License, or
7876# (at your option) any later version.
7877#
7878# This program is distributed in the hope that it will be useful,
7879# but WITHOUT ANY WARRANTY; without even the implied warranty of
7880# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7881# GNU General Public License for more details.
7882#
7883# You should have received a copy of the GNU General Public License
7884# along with this program; if not, write to the Free Software
7885# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7886# */
7887#
7888# #include <stdio.h> /* for printf() */
7889# #include <unistd.h> /* for open(), lseek(), read() */
7890# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7891# #include <string.h> /* for strdup() */
7892#
7893# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7894# #ifndef O_BINARY
7895# #define O_BINARY 0
7896# #endif
7897#
7898# static unsigned int
7899# pe_get16 (fd, offset)
7900# int fd;
7901# int offset;
7902# {
7903# unsigned char b[2];
7904# lseek (fd, offset, SEEK_SET);
7905# read (fd, b, 2);
7906# return b[0] + (b[1]<<8);
7907# }
7908#
7909# static unsigned int
7910# pe_get32 (fd, offset)
7911# int fd;
7912# int offset;
7913# {
7914# unsigned char b[4];
7915# lseek (fd, offset, SEEK_SET);
7916# read (fd, b, 4);
7917# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7918# }
7919#
7920# static unsigned int
7921# pe_as32 (ptr)
7922# void *ptr;
7923# {
7924# unsigned char *b = ptr;
7925# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7926# }
7927#
7928# int
7929# main (argc, argv)
7930# int argc;
7931# char *argv[];
7932# {
7933# int dll;
7934# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7935# unsigned long export_rva, export_size, nsections, secptr, expptr;
7936# unsigned long name_rvas, nexp;
7937# unsigned char *expdata, *erva;
7938# char *filename, *dll_name;
7939#
7940# filename = argv[1];
7941#
7942# dll = open(filename, O_RDONLY|O_BINARY);
7943# if (!dll)
7944# return 1;
7945#
7946# dll_name = filename;
7947#
7948# for (i=0; filename[i]; i++)
7949# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7950# dll_name = filename + i +1;
7951#
7952# pe_header_offset = pe_get32 (dll, 0x3c);
7953# opthdr_ofs = pe_header_offset + 4 + 20;
7954# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7955#
7956# if (num_entries < 1) /* no exports */
7957# return 1;
7958#
7959# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7960# export_size = pe_get32 (dll, opthdr_ofs + 100);
7961# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7962# secptr = (pe_header_offset + 4 + 20 +
7963# pe_get16 (dll, pe_header_offset + 4 + 16));
7964#
7965# expptr = 0;
7966# for (i = 0; i < nsections; i++)
7967# {
7968# char sname[8];
7969# unsigned long secptr1 = secptr + 40 * i;
7970# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7971# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7972# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7973# lseek(dll, secptr1, SEEK_SET);
7974# read(dll, sname, 8);
7975# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7976# {
7977# expptr = fptr + (export_rva - vaddr);
7978# if (export_rva + export_size > vaddr + vsize)
7979# export_size = vsize - (export_rva - vaddr);
7980# break;
7981# }
7982# }
7983#
7984# expdata = (unsigned char*)malloc(export_size);
7985# lseek (dll, expptr, SEEK_SET);
7986# read (dll, expdata, export_size);
7987# erva = expdata - export_rva;
7988#
7989# nexp = pe_as32 (expdata+24);
7990# name_rvas = pe_as32 (expdata+32);
7991#
7992# printf ("EXPORTS\n");
7993# for (i = 0; i<nexp; i++)
7994# {
7995# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7996# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7997# }
7998#
7999# return 0;
8000# }
8001# /* impgen.c ends here */
8002
8003EOF
8004 ;;
8005 esac
8006
8007 # We use sed instead of cat because bash on DJGPP gets confused if
8008 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8009 # text mode, it properly converts lines to CR/LF. This bash problem
8010 # is reportedly fixed, but why not run on old versions too?
8011 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8012
8013 mv -f "${ofile}T" "$ofile" || \
8014 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8015 chmod +x "$ofile"
8016fi
8017##
8018## END FIXME
8019
8020
8021
8022
8023
8024# This can be used to rebuild libtool when needed
8025LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8026
8027# Always use our own libtool.
8028LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8029
8030# Prevent multiple expansion
8031
8032
8033MALLOC_TYPE=S
8034support_addstrings=no
8035support_frills=no
8036support_linespace=no
8037support_inheritpixmap=no
8038support_keepscrolling=no
8039support_selectionscrolling=no
8040support_menubar=no
8041support_mousewheel=no
8042support_mouseslipwheel=no
8043support_oldselection=no
8044support_utmp=no
8045support_wtmp=no
8046support_lastlog=no
8047support_cursor_blink=no
8048support_text_blink=no
8049support_pointer_blank=no
8050support_scroll_rxvt=no
8051support_scroll_next=no
8052support_scroll_xterm=no
8053support_scroll_plain=no
8054support_xim=no
8055support_xpm=no
8056support_xft=no
8057support_unicode3=no
8058support_combining=no
8059codesets=
8060
8061
8062if test "x$enable_shared" = xyes; then
8063
8064cat >>confdefs.h <<\_ACEOF
8065#define LIBRXVT 1
8066_ACEOF
8067
8068 INSTALL_LIBRXVT=yes
8069fi
8070
8071
8072# Check whether --enable-everything or --disable-everything was given.
8073if test "${enable_everything+set}" = set; then
8074 enableval="$enable_everything"
8075 if test x$enableval = xyes; then
8076 support_24bit=yes
8077 support_frills=yes
8078 support_linespace=yes
8079 support_inheritpixmap=yes
8080 support_keepscrolling=yes
8081 support_selectionscrolling=yes
8082 support_lastlog=yes
8083 support_menubar=yes
8084 support_mousewheel=yes
8085 support_mouseslipwheel=yes
8086 support_oldselection=yes
8087 support_cursor_blink=yes
8088 support_text_blink=yes
8089 support_pointer_blank=yes
8090 support_scroll_rxvt=yes
8091 support_scroll_next=yes
8092 support_scroll_xterm=yes
8093 support_scroll_plain=yes
8094 support_utmp=yes
8095 support_wtmp=yes
8096 support_xim=yes
8097 support_xpm=yes
8098 support_xft=yes
8099 support_unicode3=yes
8100 support_combining=yes
8101 codesets=all
8102 fi
8103fi;
8104
8105# Check whether --enable-unicode3 or --disable-unicode3 was given.
8106if test "${enable_unicode3+set}" = set; then
8107 enableval="$enable_unicode3"
8108 if test x$enableval = xyes -o x$enableval = xno; then
8109 support_unicode3=yes
8110 fi
8111fi;
8112
8113# Check whether --enable-combining or --disable-combining was given.
8114if test "${enable_combining+set}" = set; then
8115 enableval="$enable_combining"
8116 if test x$enableval = xyes -o x$enableval = xno; then
8117 support_combining=yes
8118 fi
8119fi;
8120
8121# Check whether --enable-xft or --disable-xft was given.
8122if test "${enable_xft+set}" = set; then
8123 enableval="$enable_xft"
8124 if test x$enableval = xyes -o x$enableval = xno; then
8125 support_xft=yes
8126 fi
8127fi;
8128
8129# Check whether --enable-utmp or --disable-utmp was given.
8130if test "${enable_utmp+set}" = set; then
8131 enableval="$enable_utmp"
8132 if test x$enableval = xyes -o x$enableval = xno; then
8133 support_utmp=$enableval
8134 fi
8135fi;
8136
8137# Check whether --enable-wtmp or --disable-wtmp was given.
8138if test "${enable_wtmp+set}" = set; then
8139 enableval="$enable_wtmp"
8140 if test x$enableval = xyes -o x$enableval = xno; then
8141 support_wtmp=$enableval
8142 fi
8143fi;
8144
8145# Check whether --enable-lastlog or --disable-lastlog was given.
8146if test "${enable_lastlog+set}" = set; then
8147 enableval="$enable_lastlog"
8148 if test x$enableval = xyes -o x$enableval = xno; then
8149 support_lastlog=$enableval
8150 fi
8151fi;
8152
8153# Check whether --enable-xpm-background or --disable-xpm-background was given.
8154if test "${enable_xpm_background+set}" = set; then
8155 enableval="$enable_xpm_background"
8156 if test x$enableval = xyes -o x$enableval = xno; then
8157 support_xpm=$enableval
8158 fi
8159fi;
8160
8161# Check whether --enable-transparency or --disable-transparency was given.
8162if test "${enable_transparency+set}" = set; then
8163 enableval="$enable_transparency"
8164 if test x$enableval = xyes -o x$enableval = xno; then
8165 support_inheritpixmap=$enableval
8166 fi
8167fi;
8168
8169# Check whether --enable-menubar or --disable-menubar was given.
8170if test "${enable_menubar+set}" = set; then
8171 enableval="$enable_menubar"
8172 if test x$enableval = xyes -o x$enableval = xno; then
8173 support_menubar=$enableval
8174 fi
8175fi;
8176
8177# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8178if test "${enable_rxvt_scroll+set}" = set; then
8179 enableval="$enable_rxvt_scroll"
8180 if test x$enableval = xyes -o x$enableval = xno; then
8181 support_scroll_rxvt=$enableval
8182 fi
8183fi;
8184
8185# Check whether --enable-next-scroll or --disable-next-scroll was given.
8186if test "${enable_next_scroll+set}" = set; then
8187 enableval="$enable_next_scroll"
8188 if test x$enableval = xyes -o x$enableval = xno; then
8189 support_scroll_next=$enableval
8190 fi
8191fi;
8192
8193# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
8194if test "${enable_xterm_scroll+set}" = set; then
8195 enableval="$enable_xterm_scroll"
8196 if test x$enableval = xyes -o x$enableval = xno; then
8197 support_scroll_xterm=$enableval
8198 fi
8199fi;
8200
8201# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8202if test "${enable_plain_scroll+set}" = set; then
8203 enableval="$enable_plain_scroll"
8204 if test x$enableval = xyes -o x$enableval = xno; then
8205 support_scroll_plain=$enableval
8206 fi
8207fi;
8208
8209# Check whether --enable-half-shadow or --disable-half-shadow was given.
8210if test "${enable_half_shadow+set}" = set; then
8211 enableval="$enable_half_shadow"
8212 if test x$enableval = xyes; then
8213
8214cat >>confdefs.h <<\_ACEOF
8215#define HALFSHADOW 1
8216_ACEOF
8217
8218 fi
8219fi;
8220
8221
8222# Check whether --with-codesets or --without-codesets was given.
8223if test "${with_codesets+set}" = set; then
8224 withval="$with_codesets"
8225 codesets="$withval"
8226fi;
8227
8228# Check whether --enable-xim or --disable-xim was given.
8229if test "${enable_xim+set}" = set; then
8230 enableval="$enable_xim"
8231 if test x$enableval = xyes -o x$enableval = xno; then
8232 support_xim=$enableval
8233 fi
8234fi;
8235
8236# Check whether --enable-ttygid or --disable-ttygid was given.
8237if test "${enable_ttygid+set}" = set; then
8238 enableval="$enable_ttygid"
8239 if test x$enableval = xyes; then
8240
8241cat >>confdefs.h <<\_ACEOF
8242#define TTY_GID_SUPPORT 1
8243_ACEOF
8244
8245 fi
8246fi;
8247
8248# Check whether --enable-backspace-key or --disable-backspace-key was given.
8249if test "${enable_backspace_key+set}" = set; then
8250 enableval="$enable_backspace_key"
8251 if test x$enableval = xno; then
8252
8253cat >>confdefs.h <<\_ACEOF
8254#define NO_BACKSPACE_KEY 1
8255_ACEOF
8256
8257 fi
8258fi;
8259
8260# Check whether --enable-delete-key or --disable-delete-key was given.
8261if test "${enable_delete_key+set}" = set; then
8262 enableval="$enable_delete_key"
8263 if test x$enableval = xno; then
8264
8265cat >>confdefs.h <<\_ACEOF
8266#define NO_DELETE_KEY 1
8267_ACEOF
8268
8269 fi
8270fi;
8271
8272# Check whether --enable-resources or --disable-resources was given.
8273if test "${enable_resources+set}" = set; then
8274 enableval="$enable_resources"
8275 if test x$enableval = xno; then
8276
8277cat >>confdefs.h <<\_ACEOF
8278#define NO_RESOURCES 1
8279_ACEOF
8280
8281 fi
8282fi;
8283
8284# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
8285if test "${enable_xgetdefault+set}" = set; then
8286 enableval="$enable_xgetdefault"
8287 if test x$enableval = xyes; then
8288
8289cat >>confdefs.h <<\_ACEOF
8290#define USE_XGETDEFAULT 1
8291_ACEOF
8292
8293 fi
8294fi;
8295
8296RESFALLBACK=Rxvt
8297# Check whether --enable-fallback or --disable-fallback was given.
8298if test "${enable_fallback+set}" = set; then
8299 enableval="$enable_fallback"
8300
8301 test x$enableval = xyes && enableval=Rxvt
8302 test x$enableval = xno && enableval=
8303 RESFALLBACK="$enableval"
8304
8305fi;
8306
8307if test x$RESFALLBACK != x; then
8308
8309cat >>confdefs.h <<_ACEOF
8310#define RESFALLBACK "$RESFALLBACK"
8311_ACEOF
8312
8313fi
8314
8315RESNAME=urxvt
8316
8317# Check whether --with-res-name or --without-res-name was given.
8318if test "${with_res_name+set}" = set; then
8319 withval="$with_res_name"
8320 RESNAME="$withval"
8321fi;
8322
8323cat >>confdefs.h <<_ACEOF
8324#define RESNAME "$RESNAME"
8325_ACEOF
8326
8327
8328RESCLASS=URxvt
8329
8330# Check whether --with-res-class or --without-res-class was given.
8331if test "${with_res_class+set}" = set; then
8332 withval="$with_res_class"
8333 RESCLASS="$withval"
8334fi;
8335
8336cat >>confdefs.h <<_ACEOF
8337#define RESCLASS "$RESCLASS"
8338_ACEOF
8339
8340
8341RXVTNAME=urxvt
8342
8343# Check whether --with-name or --without-name was given.
8344if test "${with_name+set}" = set; then
8345 withval="$with_name"
8346 RXVTNAME="$withval"
8347fi;
8348
8349RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8350
8351
8352# Check whether --enable-strings or --disable-strings was given.
8353if test "${enable_strings+set}" = set; then
8354 enableval="$enable_strings"
8355 if test x$enableval = xyes -o x$enableval = xno; then
8356 support_addstrings=$enableval
8357 fi
8358fi;
8359
8360# Check whether --enable-swapscreen or --disable-swapscreen was given.
8361if test "${enable_swapscreen+set}" = set; then
8362 enableval="$enable_swapscreen"
8363 if test x$enableval = xno; then
8364
8365cat >>confdefs.h <<\_ACEOF
8366#define NO_SECONDARY_SCREEN 1
8367_ACEOF
8368
8369 fi
8370fi;
8371
8372# Check whether --enable-frills or --disable-frills was given.
8373if test "${enable_frills+set}" = set; then
8374 enableval="$enable_frills"
8375 if test x$enableval = xyes -o x$enableval = xno; then
8376 support_frills=$enableval
8377 fi
8378fi;
8379
8380# Check whether --enable-linespace or --disable-linespace was given.
8381if test "${enable_linespace+set}" = set; then
8382 enableval="$enable_linespace"
8383 if test x$enableval = xyes -o x$enableval = xno; then
8384 support_linespace=$enableval
8385 fi
8386fi;
8387
8388# Check whether --enable-24bit or --disable-24bit was given.
8389if test "${enable_24bit+set}" = set; then
8390 enableval="$enable_24bit"
8391 if test x$enableval = xyes -o x$enableval = xno; then
8392 support_24bit=$enableval
8393 fi
8394fi;
8395
8396# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
8397if test "${enable_keepscrolling+set}" = set; then
8398 enableval="$enable_keepscrolling"
8399 if test x$enableval = xyes -o x$enableval = xno; then
8400 support_keepscrolling=$enableval
8401 fi
8402fi;
8403
8404# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
8405if test "${enable_selectionscrolling+set}" = set; then
8406 enableval="$enable_selectionscrolling"
8407 if test x$enableval = xyes -o x$enableval = xno; then
8408 support_selectionscrolling=$enableval
8409 fi
8410fi;
8411
8412# Check whether --enable-mousewheel or --disable-mousewheel was given.
8413if test "${enable_mousewheel+set}" = set; then
8414 enableval="$enable_mousewheel"
8415 if test x$enableval = xyes -o x$enableval = xno; then
8416 support_mousewheel=$enableval
8417 fi
8418fi;
8419
8420# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
8421if test "${enable_slipwheeling+set}" = set; then
8422 enableval="$enable_slipwheeling"
8423 if test x$enableval = xyes -o x$enableval = xno; then
8424 support_mouseslipwheel=$enableval
8425 fi
8426fi;
8427
8428# Check whether --enable-old-selection or --disable-old-selection was given.
8429if test "${enable_old_selection+set}" = set; then
8430 enableval="$enable_old_selection"
8431 if test x$enableval = xyes -o x$enableval = xno; then
8432 support_oldselection=$enableval
8433 fi
8434fi;
8435
8436# Check whether --enable-new-selection or --disable-new-selection was given.
8437if test "${enable_new_selection+set}" = set; then
8438 enableval="$enable_new_selection"
8439 if test x$enableval = xno; then
8440
8441cat >>confdefs.h <<\_ACEOF
8442#define NO_NEW_SELECTION 1
8443_ACEOF
8444
8445 fi
8446fi;
8447
8448# Check whether --enable-dmalloc or --disable-dmalloc was given.
8449if test "${enable_dmalloc+set}" = set; then
8450 enableval="$enable_dmalloc"
8451 if test x$enableval = xyes; then
8452 MALLOC_TYPE=G
8453 DEBUG=-DDEBUG_MALLOC
8454 DLIB="-L/usr/local/lib -ldmalloc"
8455 DINCLUDE=-I/usr/local/include
8456 fi
8457fi;
8458
8459# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
8460if test "${enable_dlmalloc+set}" = set; then
8461 enableval="$enable_dlmalloc"
8462 if test x$enableval = xyes; then
8463 MALLOC_TYPE=D
8464 DEBUG=
8465 DLIB="-L/usr/local/lib -ldlmalloc"
8466 DINCLUDE=
8467 fi
8468fi;
8469
8470# Check whether --enable-smart-resize or --disable-smart-resize was given.
8471if test "${enable_smart_resize+set}" = set; then
8472 enableval="$enable_smart_resize"
8473 if test x$enableval = xyes; then
8474
8475cat >>confdefs.h <<\_ACEOF
8476#define SMART_RESIZE 1
8477_ACEOF
8478
8479 fi
8480fi;
8481
8482# Check whether --enable-256-color or --disable-256-color was given.
8483if test "${enable_256_color+set}" = set; then
8484 enableval="$enable_256_color"
8485 if test x$enableval = xyes; then
8486
8487cat >>confdefs.h <<\_ACEOF
8488#define TTY_256COLOR 1
8489_ACEOF
8490
8491 fi
8492fi;
8493
8494# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8495if test "${enable_cursor_blink+set}" = set; then
8496 enableval="$enable_cursor_blink"
8497 if test x$enableval = xyes -o x$enableval = xno; then
8498 support_cursor_blink=$enableval
8499 fi
8500fi;
8501
8502# Check whether --enable-text-blink or --disable-text-blink was given.
8503if test "${enable_text_blink+set}" = set; then
8504 enableval="$enable_text_blink"
8505 if test x$enableval = xyes -o x$enableval = xno; then
8506 support_text_blink=$enableval
8507 fi
8508fi;
8509
8510# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
8511if test "${enable_pointer_blank+set}" = set; then
8512 enableval="$enable_pointer_blank"
8513 if test x$enableval = xyes -o x$enableval = xno; then
8514 support_pointer_blank=$enableval
8515 fi
8516fi;
8517
8518
8519# Check whether --with-term or --without-term was given.
8520if test "${with_term+set}" = set; then
8521 withval="$with_term"
8522 if test x$withval != x; then
8523
8524cat >>confdefs.h <<_ACEOF
8525#define TERMENV "$withval"
8526_ACEOF
8527 term="$withval"
8528 fi
8529fi;
8530
8531
8532# Check whether --with-terminfo or --without-terminfo was given.
8533if test "${with_terminfo+set}" = set; then
8534 withval="$with_terminfo"
8535 if test x$withval != x; then
8536
8537cat >>confdefs.h <<_ACEOF
8538#define RXVT_TERMINFO "$withval"
8539_ACEOF
8540 terminfo="$withval"
8541 fi
8542fi;
8543
8544
8545
8546cat >>confdefs.h <<\_ACEOF
8547#define PROTOTYPES 1
8548_ACEOF
8549
8550
8551if test -z "$CFLAGS"; then
8552 if test -z "$CCOPTS"; then
8553 CCOPTS='-O'
8554 fi
8555 CFLAGS="$CCOPTS"
8556fi
8557
8558# Extract the first word of "mv", so it can be a program name with args.
8559set dummy mv; ac_word=$2
8560echo "$as_me:$LINENO: checking for $ac_word" >&5
8561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8562if test "${ac_cv_path_MV+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564else
8565 case $MV in
8566 [\\/]* | ?:[\\/]*)
8567 ac_cv_path_MV="$MV" # Let the user override the test with a path.
8568 ;;
8569 *)
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571for as_dir in $PATH
8572do
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8580 fi
8581done
8582done
8583
8584 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
8585 ;;
8586esac
8587fi
8588MV=$ac_cv_path_MV
8589
8590if test -n "$MV"; then
8591 echo "$as_me:$LINENO: result: $MV" >&5
8592echo "${ECHO_T}$MV" >&6
8593else
8594 echo "$as_me:$LINENO: result: no" >&5
8595echo "${ECHO_T}no" >&6
8596fi
8597
8598# Extract the first word of "rm", so it can be a program name with args.
8599set dummy rm; ac_word=$2
8600echo "$as_me:$LINENO: checking for $ac_word" >&5
8601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8602if test "${ac_cv_path_RM+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8604else
8605 case $RM in
8606 [\\/]* | ?:[\\/]*)
8607 ac_cv_path_RM="$RM" # Let the user override the test with a path.
8608 ;;
8609 *)
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611for as_dir in $PATH
8612do
8613 IFS=$as_save_IFS
8614 test -z "$as_dir" && as_dir=.
8615 for ac_exec_ext in '' $ac_executable_extensions; do
8616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8617 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 break 2
8620 fi
8621done
8622done
8623
8624 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
8625 ;;
8626esac
8627fi
8628RM=$ac_cv_path_RM
8629
8630if test -n "$RM"; then
8631 echo "$as_me:$LINENO: result: $RM" >&5
8632echo "${ECHO_T}$RM" >&6
8633else
8634 echo "$as_me:$LINENO: result: no" >&5
8635echo "${ECHO_T}no" >&6
8636fi
8637
8638# Extract the first word of "cp", so it can be a program name with args.
8639set dummy cp; ac_word=$2
8640echo "$as_me:$LINENO: checking for $ac_word" >&5
8641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8642if test "${ac_cv_path_CP+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644else
8645 case $CP in
8646 [\\/]* | ?:[\\/]*)
8647 ac_cv_path_CP="$CP" # Let the user override the test with a path.
8648 ;;
8649 *)
8650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651for as_dir in $PATH
8652do
8653 IFS=$as_save_IFS
8654 test -z "$as_dir" && as_dir=.
8655 for ac_exec_ext in '' $ac_executable_extensions; do
8656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8657 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
8658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 break 2
8660 fi
8661done
8662done
8663
8664 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
8665 ;;
8666esac
8667fi
8668CP=$ac_cv_path_CP
8669
8670if test -n "$CP"; then
8671 echo "$as_me:$LINENO: result: $CP" >&5
8672echo "${ECHO_T}$CP" >&6
8673else
8674 echo "$as_me:$LINENO: result: no" >&5
8675echo "${ECHO_T}no" >&6
8676fi
8677
8678# Extract the first word of "ln", so it can be a program name with args.
8679set dummy ln; ac_word=$2
8680echo "$as_me:$LINENO: checking for $ac_word" >&5
8681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8682if test "${ac_cv_path_LN+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684else
8685 case $LN in
8686 [\\/]* | ?:[\\/]*)
8687 ac_cv_path_LN="$LN" # Let the user override the test with a path.
8688 ;;
8689 *)
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691for as_dir in $PATH
8692do
8693 IFS=$as_save_IFS
8694 test -z "$as_dir" && as_dir=.
8695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8697 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
8698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8699 break 2
8700 fi
8701done
8702done
8703
8704 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
8705 ;;
8706esac
8707fi
8708LN=$ac_cv_path_LN
8709
8710if test -n "$LN"; then
8711 echo "$as_me:$LINENO: result: $LN" >&5
8712echo "${ECHO_T}$LN" >&6
8713else
8714 echo "$as_me:$LINENO: result: no" >&5
8715echo "${ECHO_T}no" >&6
8716fi
8717
8718# Extract the first word of "sed", so it can be a program name with args.
8719set dummy sed; ac_word=$2
8720echo "$as_me:$LINENO: checking for $ac_word" >&5
8721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8722if test "${ac_cv_path_SED+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8724else
8725 case $SED in
8726 [\\/]* | ?:[\\/]*)
8727 ac_cv_path_SED="$SED" # Let the user override the test with a path.
8728 ;;
8729 *)
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731for as_dir in $PATH
8732do
8733 IFS=$as_save_IFS
8734 test -z "$as_dir" && as_dir=.
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8737 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
8738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8739 break 2
8740 fi
8741done
8742done
8743
8744 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
8745 ;;
8746esac
8747fi
8748SED=$ac_cv_path_SED
8749
8750if test -n "$SED"; then
8751 echo "$as_me:$LINENO: result: $SED" >&5
8752echo "${ECHO_T}$SED" >&6
8753else
8754 echo "$as_me:$LINENO: result: no" >&5
8755echo "${ECHO_T}no" >&6
8756fi
8757
8758# Extract the first word of "echo", so it can be a program name with args.
8759set dummy echo; ac_word=$2
8760echo "$as_me:$LINENO: checking for $ac_word" >&5
8761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8762if test "${ac_cv_path_ECHO+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8764else
8765 case $ECHO in
8766 [\\/]* | ?:[\\/]*)
8767 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
8768 ;;
8769 *)
8770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771for as_dir in $PATH
8772do
8773 IFS=$as_save_IFS
8774 test -z "$as_dir" && as_dir=.
8775 for ac_exec_ext in '' $ac_executable_extensions; do
8776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8777 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
8778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8779 break 2
8780 fi
8781done
8782done
8783
8784 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
8785 ;;
8786esac
8787fi
8788ECHO=$ac_cv_path_ECHO
8789
8790if test -n "$ECHO"; then
8791 echo "$as_me:$LINENO: result: $ECHO" >&5
8792echo "${ECHO_T}$ECHO" >&6
8793else
8794 echo "$as_me:$LINENO: result: no" >&5
8795echo "${ECHO_T}no" >&6
8796fi
8797
8798# Extract the first word of "cmp", so it can be a program name with args.
8799set dummy cmp; ac_word=$2
8800echo "$as_me:$LINENO: checking for $ac_word" >&5
8801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8802if test "${ac_cv_path_CMP+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8804else
8805 case $CMP in
8806 [\\/]* | ?:[\\/]*)
8807 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
8808 ;;
8809 *)
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811for as_dir in $PATH
8812do
8813 IFS=$as_save_IFS
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
8818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 break 2
8820 fi
8821done
8822done
8823
8824 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
8825 ;;
8826esac
8827fi
8828CMP=$ac_cv_path_CMP
8829
8830if test -n "$CMP"; then
8831 echo "$as_me:$LINENO: result: $CMP" >&5
8832echo "${ECHO_T}$CMP" >&6
8833else
8834 echo "$as_me:$LINENO: result: no" >&5
8835echo "${ECHO_T}no" >&6
8836fi
8837
8838# Extract the first word of "tbl", so it can be a program name with args.
8839set dummy tbl; ac_word=$2
8840echo "$as_me:$LINENO: checking for $ac_word" >&5
8841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8842if test "${ac_cv_path_TBL+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8844else
8845 case $TBL in
8846 [\\/]* | ?:[\\/]*)
8847 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
8848 ;;
8849 *)
8850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851for as_dir in $PATH
8852do
8853 IFS=$as_save_IFS
8854 test -z "$as_dir" && as_dir=.
8855 for ac_exec_ext in '' $ac_executable_extensions; do
8856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8857 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
8858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8859 break 2
8860 fi
8861done
8862done
8863
8864 ;;
8865esac
8866fi
8867TBL=$ac_cv_path_TBL
8868
8869if test -n "$TBL"; then
8870 echo "$as_me:$LINENO: result: $TBL" >&5
8871echo "${ECHO_T}$TBL" >&6
8872else
8873 echo "$as_me:$LINENO: result: no" >&5
8874echo "${ECHO_T}no" >&6
8875fi
8876
8877
8878 4629
8879 4630
8880echo "$as_me:$LINENO: checking for X" >&5 4631echo "$as_me:$LINENO: checking for X" >&5
8881echo $ECHO_N "checking for X... $ECHO_C" >&6 4632echo $ECHO_N "checking for X... $ECHO_C" >&6
8882 4633
9044 grep -v '^ *+' conftest.er1 >conftest.err 4795 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1 4796 rm -f conftest.er1
9046 cat conftest.err >&5 4797 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } && 4799 (exit $ac_status); } &&
9049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4800 { ac_try='test -z "$ac_cxx_werror_flag"
4801 || test ! -s conftest.err'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 (eval $ac_try) 2>&5 4803 (eval $ac_try) 2>&5
9052 ac_status=$? 4804 ac_status=$?
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; } && 4806 (exit $ac_status); }; } &&
9155 grep -v '^ *+' conftest.er1 >conftest.err 4907 grep -v '^ *+' conftest.er1 >conftest.err
9156 rm -f conftest.er1 4908 rm -f conftest.er1
9157 cat conftest.err >&5 4909 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } && 4911 (exit $ac_status); } &&
9160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4912 { ac_try='test -z "$ac_cxx_werror_flag"
4913 || test ! -s conftest.err'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 (eval $ac_try) 2>&5 4915 (eval $ac_try) 2>&5
9163 ac_status=$? 4916 ac_status=$?
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; } && 4918 (exit $ac_status); }; } &&
9206 grep -v '^ *+' conftest.er1 >conftest.err 4959 grep -v '^ *+' conftest.er1 >conftest.err
9207 rm -f conftest.er1 4960 rm -f conftest.er1
9208 cat conftest.err >&5 4961 cat conftest.err >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); } && 4963 (exit $ac_status); } &&
9211 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4964 { ac_try='test -z "$ac_cxx_werror_flag"
4965 || test ! -s conftest.err'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5 4967 (eval $ac_try) 2>&5
9214 ac_status=$? 4968 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; } && 4970 (exit $ac_status); }; } &&
9282 grep -v '^ *+' conftest.er1 >conftest.err 5036 grep -v '^ *+' conftest.er1 >conftest.err
9283 rm -f conftest.er1 5037 rm -f conftest.er1
9284 cat conftest.err >&5 5038 cat conftest.err >&5
9285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } && 5040 (exit $ac_status); } &&
9287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5041 { ac_try='test -z "$ac_cxx_werror_flag"
5042 || test ! -s conftest.err'
9288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9289 (eval $ac_try) 2>&5 5044 (eval $ac_try) 2>&5
9290 ac_status=$? 5045 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); }; } && 5047 (exit $ac_status); }; } &&
9337 grep -v '^ *+' conftest.er1 >conftest.err 5092 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1 5093 rm -f conftest.er1
9339 cat conftest.err >&5 5094 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } && 5096 (exit $ac_status); } &&
9342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5097 { ac_try='test -z "$ac_cxx_werror_flag"
5098 || test ! -s conftest.err'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5 5100 (eval $ac_try) 2>&5
9345 ac_status=$? 5101 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; } && 5103 (exit $ac_status); }; } &&
9405 grep -v '^ *+' conftest.er1 >conftest.err 5161 grep -v '^ *+' conftest.er1 >conftest.err
9406 rm -f conftest.er1 5162 rm -f conftest.er1
9407 cat conftest.err >&5 5163 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } && 5165 (exit $ac_status); } &&
9410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5166 { ac_try='test -z "$ac_cxx_werror_flag"
5167 || test ! -s conftest.err'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5 5169 (eval $ac_try) 2>&5
9413 ac_status=$? 5170 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; } && 5172 (exit $ac_status); }; } &&
9513 grep -v '^ *+' conftest.er1 >conftest.err 5270 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1 5271 rm -f conftest.er1
9515 cat conftest.err >&5 5272 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && 5274 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5275 { ac_try='test -z "$ac_cxx_werror_flag"
5276 || test ! -s conftest.err'
9519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520 (eval $ac_try) 2>&5 5278 (eval $ac_try) 2>&5
9521 ac_status=$? 5279 ac_status=$?
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; } && 5281 (exit $ac_status); }; } &&
9577 grep -v '^ *+' conftest.er1 >conftest.err 5335 grep -v '^ *+' conftest.er1 >conftest.err
9578 rm -f conftest.er1 5336 rm -f conftest.er1
9579 cat conftest.err >&5 5337 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } && 5339 (exit $ac_status); } &&
9582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5340 { ac_try='test -z "$ac_cxx_werror_flag"
5341 || test ! -s conftest.err'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5 5343 (eval $ac_try) 2>&5
9585 ac_status=$? 5344 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; } && 5346 (exit $ac_status); }; } &&
9645 grep -v '^ *+' conftest.er1 >conftest.err 5404 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1 5405 rm -f conftest.er1
9647 cat conftest.err >&5 5406 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && 5408 (exit $ac_status); } &&
9650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5409 { ac_try='test -z "$ac_cxx_werror_flag"
5410 || test ! -s conftest.err'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5 5412 (eval $ac_try) 2>&5
9653 ac_status=$? 5413 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; } && 5415 (exit $ac_status); }; } &&
9749 grep -v '^ *+' conftest.er1 >conftest.err 5509 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1 5510 rm -f conftest.er1
9751 cat conftest.err >&5 5511 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } && 5513 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5514 { ac_try='test -z "$ac_cxx_werror_flag"
5515 || test ! -s conftest.err'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 (eval $ac_try) 2>&5 5517 (eval $ac_try) 2>&5
9757 ac_status=$? 5518 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; } && 5520 (exit $ac_status); }; } &&
9813 grep -v '^ *+' conftest.er1 >conftest.err 5574 grep -v '^ *+' conftest.er1 >conftest.err
9814 rm -f conftest.er1 5575 rm -f conftest.er1
9815 cat conftest.err >&5 5576 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } && 5578 (exit $ac_status); } &&
9818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5579 { ac_try='test -z "$ac_cxx_werror_flag"
5580 || test ! -s conftest.err'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 (eval $ac_try) 2>&5 5582 (eval $ac_try) 2>&5
9821 ac_status=$? 5583 ac_status=$?
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; } && 5585 (exit $ac_status); }; } &&
9910 grep -v '^ *+' conftest.er1 >conftest.err 5672 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1 5673 rm -f conftest.er1
9912 cat conftest.err >&5 5674 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } && 5676 (exit $ac_status); } &&
9915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5677 { ac_try='test -z "$ac_cxx_werror_flag"
5678 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 (eval $ac_try) 2>&5 5680 (eval $ac_try) 2>&5
9918 ac_status=$? 5681 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } && 5683 (exit $ac_status); }; } &&
9974 grep -v '^ *+' conftest.er1 >conftest.err 5737 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1 5738 rm -f conftest.er1
9976 cat conftest.err >&5 5739 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && 5741 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5742 { ac_try='test -z "$ac_cxx_werror_flag"
5743 || test ! -s conftest.err'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 (eval $ac_try) 2>&5 5745 (eval $ac_try) 2>&5
9982 ac_status=$? 5746 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; } && 5748 (exit $ac_status); }; } &&
10071 grep -v '^ *+' conftest.er1 >conftest.err 5835 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1 5836 rm -f conftest.er1
10073 cat conftest.err >&5 5837 cat conftest.err >&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } && 5839 (exit $ac_status); } &&
10076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5840 { ac_try='test -z "$ac_cxx_werror_flag"
5841 || test ! -s conftest.err'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5 5843 (eval $ac_try) 2>&5
10079 ac_status=$? 5844 ac_status=$?
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; } && 5846 (exit $ac_status); }; } &&
10135 grep -v '^ *+' conftest.er1 >conftest.err 5900 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1 5901 rm -f conftest.er1
10137 cat conftest.err >&5 5902 cat conftest.err >&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && 5904 (exit $ac_status); } &&
10140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5905 { ac_try='test -z "$ac_cxx_werror_flag"
5906 || test ! -s conftest.err'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5 5908 (eval $ac_try) 2>&5
10143 ac_status=$? 5909 ac_status=$?
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; } && 5911 (exit $ac_status); }; } &&
10214 grep -v '^ *+' conftest.er1 >conftest.err 5980 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1 5981 rm -f conftest.er1
10216 cat conftest.err >&5 5982 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && 5984 (exit $ac_status); } &&
10219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5985 { ac_try='test -z "$ac_cxx_werror_flag"
5986 || test ! -s conftest.err'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5 5988 (eval $ac_try) 2>&5
10222 ac_status=$? 5989 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } && 5991 (exit $ac_status); }; } &&
10249 6016
10250fi 6017fi
10251 6018
10252 6019
10253 6020
6021LIBAFTERIMAGE_CFLAGS=
6022AFTERIMAGE_LIBS=
6023have_afterimage=
6024
10254if test x$support_xpm = xyes; then 6025if test x$support_afterimage = xyes; then
6026 support_afterimage=no
6027
6028 if test "x$afterimage_config" = "x" ; then
6029 # Extract the first word of "afterimage-config", so it can be a program name with args.
6030set dummy afterimage-config; ac_word=$2
6031echo "$as_me:$LINENO: checking for $ac_word" >&5
6032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033if test "${ac_cv_path_afterimage_config+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035else
6036 case $afterimage_config in
6037 [\\/]* | ?:[\\/]*)
6038 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6039 ;;
6040 *)
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053done
6054
6055 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6056 ;;
6057esac
6058fi
6059afterimage_config=$ac_cv_path_afterimage_config
6060
6061if test -n "$afterimage_config"; then
6062 echo "$as_me:$LINENO: result: $afterimage_config" >&5
6063echo "${ECHO_T}$afterimage_config" >&6
6064else
6065 echo "$as_me:$LINENO: result: no" >&5
6066echo "${ECHO_T}no" >&6
6067fi
6068
6069 fi
6070
6071 echo "$as_me:$LINENO: checking for libAfterImage" >&5
6072echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6
6073 if $afterimage_config --version >/dev/null 2>&1 ; then
6074 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6075 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6076 if test "x$AFTERIMAGE_LIBS" != "x"; then
6077 support_afterimage=yes
6078 fi
6079 fi
6080
6081 if test "x$support_afterimage" = "xyes"; then
6082 echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6083echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088fi
6089
6090if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
10255 6091
10256 6092
10257 6093
10258# Initialize some more variables set by options. 6094# Initialize some more variables set by options.
10259# The variables have the same names as the options, with 6095# The variables have the same names as the options, with
10430 grep -v '^ *+' conftest.er1 >conftest.err 6266 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1 6267 rm -f conftest.er1
10432 cat conftest.err >&5 6268 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && 6270 (exit $ac_status); } &&
10435 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6271 { ac_try='test -z "$ac_cxx_werror_flag"
6272 || test ! -s conftest.err'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5 6274 (eval $ac_try) 2>&5
10438 ac_status=$? 6275 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } && 6277 (exit $ac_status); }; } &&
10644 grep -v '^ *+' conftest.er1 >conftest.err 6481 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1 6482 rm -f conftest.er1
10646 cat conftest.err >&5 6483 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } && 6485 (exit $ac_status); } &&
10649 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6486 { ac_try='test -z "$ac_cxx_werror_flag"
6487 || test ! -s conftest.err'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5 6489 (eval $ac_try) 2>&5
10652 ac_status=$? 6490 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; } && 6492 (exit $ac_status); }; } &&
10675#define HAVE_SYS_WAIT_H 1 6513#define HAVE_SYS_WAIT_H 1
10676_ACEOF 6514_ACEOF
10677 6515
10678fi 6516fi
10679 6517
6518echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6519echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6520if test "${ac_cv_header_stdc+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523 cat >conftest.$ac_ext <<_ACEOF
6524/* confdefs.h. */
6525_ACEOF
6526cat confdefs.h >>conftest.$ac_ext
6527cat >>conftest.$ac_ext <<_ACEOF
6528/* end confdefs.h. */
6529#include <stdlib.h>
6530#include <stdarg.h>
6531#include <string.h>
6532#include <float.h>
6533
6534int
6535main ()
6536{
6537
6538 ;
6539 return 0;
6540}
6541_ACEOF
6542rm -f conftest.$ac_objext
6543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_cxx_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 ac_cv_header_stdc=yes
6565else
6566 echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
6569ac_cv_header_stdc=no
6570fi
6571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6572
6573if test $ac_cv_header_stdc = yes; then
6574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6575 cat >conftest.$ac_ext <<_ACEOF
6576/* confdefs.h. */
6577_ACEOF
6578cat confdefs.h >>conftest.$ac_ext
6579cat >>conftest.$ac_ext <<_ACEOF
6580/* end confdefs.h. */
6581#include <string.h>
6582
6583_ACEOF
6584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585 $EGREP "memchr" >/dev/null 2>&1; then
6586 :
6587else
6588 ac_cv_header_stdc=no
6589fi
6590rm -f conftest*
6591
6592fi
6593
6594if test $ac_cv_header_stdc = yes; then
6595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6596 cat >conftest.$ac_ext <<_ACEOF
6597/* confdefs.h. */
6598_ACEOF
6599cat confdefs.h >>conftest.$ac_ext
6600cat >>conftest.$ac_ext <<_ACEOF
6601/* end confdefs.h. */
6602#include <stdlib.h>
6603
6604_ACEOF
6605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6606 $EGREP "free" >/dev/null 2>&1; then
6607 :
6608else
6609 ac_cv_header_stdc=no
6610fi
6611rm -f conftest*
6612
6613fi
6614
6615if test $ac_cv_header_stdc = yes; then
6616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6617 if test "$cross_compiling" = yes; then
6618 :
6619else
6620 cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
6626#include <ctype.h>
6627#if ((' ' & 0x0FF) == 0x020)
6628# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6629# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6630#else
6631# define ISLOWER(c) \
6632 (('a' <= (c) && (c) <= 'i') \
6633 || ('j' <= (c) && (c) <= 'r') \
6634 || ('s' <= (c) && (c) <= 'z'))
6635# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6636#endif
6637
6638#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6639int
6640main ()
6641{
6642 int i;
6643 for (i = 0; i < 256; i++)
6644 if (XOR (islower (i), ISLOWER (i))
6645 || toupper (i) != TOUPPER (i))
6646 exit(2);
6647 exit (0);
6648}
6649_ACEOF
6650rm -f conftest$ac_exeext
6651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652 (eval $ac_link) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 (eval $ac_try) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 :
6662else
6663 echo "$as_me: program exited with status $ac_status" >&5
6664echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667( exit $ac_status )
6668ac_cv_header_stdc=no
6669fi
6670rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6671fi
6672fi
6673fi
6674echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6675echo "${ECHO_T}$ac_cv_header_stdc" >&6
6676if test $ac_cv_header_stdc = yes; then
6677
6678cat >>confdefs.h <<\_ACEOF
6679#define STDC_HEADERS 1
6680_ACEOF
6681
6682fi
6683
6684# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6695 inttypes.h stdint.h unistd.h
6696do
6697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6698echo "$as_me:$LINENO: checking for $ac_header" >&5
6699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6700if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703 cat >conftest.$ac_ext <<_ACEOF
6704/* confdefs.h. */
6705_ACEOF
6706cat confdefs.h >>conftest.$ac_ext
6707cat >>conftest.$ac_ext <<_ACEOF
6708/* end confdefs.h. */
6709$ac_includes_default
6710
6711#include <$ac_header>
6712_ACEOF
6713rm -f conftest.$ac_objext
6714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715 (eval $ac_compile) 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try='test -z "$ac_cxx_werror_flag"
6723 || test ! -s conftest.err'
6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 (eval $ac_try) 2>&5
6726 ac_status=$?
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); }; } &&
6729 { ac_try='test -s conftest.$ac_objext'
6730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 (eval $ac_try) 2>&5
6732 ac_status=$?
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6735 eval "$as_ac_Header=yes"
6736else
6737 echo "$as_me: failed program was:" >&5
6738sed 's/^/| /' conftest.$ac_ext >&5
6739
6740eval "$as_ac_Header=no"
6741fi
6742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6743fi
6744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6746if test `eval echo '${'$as_ac_Header'}'` = yes; then
6747 cat >>confdefs.h <<_ACEOF
6748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749_ACEOF
6750
6751fi
6752
6753done
10680 6754
10681 6755
10682 6756
10683 6757
10684 6758
10697 6771
10698 6772
10699for ac_header in \ 6773for ac_header in \
10700 assert.h \ 6774 assert.h \
10701 fcntl.h \ 6775 fcntl.h \
10702 grp.h \
10703 libc.h \
10704 lastlog.h \
10705 stdarg.h \ 6776 stdarg.h \
10706 stdlib.h \ 6777 stdlib.h \
10707 string.h \ 6778 string.h \
10708 termios.h \ 6779 termios.h \
10709 unistd.h \ 6780 unistd.h \
10711 sys/ioctl.h \ 6782 sys/ioctl.h \
10712 sys/select.h \ 6783 sys/select.h \
10713 sys/sockio.h \ 6784 sys/sockio.h \
10714 sys/strredir.h \ 6785 sys/strredir.h \
10715 sys/time.h \ 6786 sys/time.h \
10716 utmp.h \ 6787 stdint.h \
10717 utmpx.h \ 6788 wchar.h \
10718 stdint.h \ 6789 cwchar \
6790 clocale \
10719 6791
10720do 6792do
10721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10722if eval "test \"\${$as_ac_Header+set}\" = set"; then 6794if eval "test \"\${$as_ac_Header+set}\" = set"; then
10723 echo "$as_me:$LINENO: checking for $ac_header" >&5 6795 echo "$as_me:$LINENO: checking for $ac_header" >&5
10747 grep -v '^ *+' conftest.er1 >conftest.err 6819 grep -v '^ *+' conftest.er1 >conftest.err
10748 rm -f conftest.er1 6820 rm -f conftest.er1
10749 cat conftest.err >&5 6821 cat conftest.err >&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } && 6823 (exit $ac_status); } &&
10752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6824 { ac_try='test -z "$ac_cxx_werror_flag"
6825 || test ! -s conftest.err'
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5 6827 (eval $ac_try) 2>&5
10755 ac_status=$? 6828 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } && 6830 (exit $ac_status); }; } &&
10896 grep -v '^ *+' conftest.er1 >conftest.err 6969 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1 6970 rm -f conftest.er1
10898 cat conftest.err >&5 6971 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } && 6973 (exit $ac_status); } &&
10901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6974 { ac_try='test -z "$ac_cxx_werror_flag"
6975 || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5 6977 (eval $ac_try) 2>&5
10904 ac_status=$? 6978 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } && 6980 (exit $ac_status); }; } &&
10961 grep -v '^ *+' conftest.er1 >conftest.err 7035 grep -v '^ *+' conftest.er1 >conftest.err
10962 rm -f conftest.er1 7036 rm -f conftest.er1
10963 cat conftest.err >&5 7037 cat conftest.err >&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } && 7039 (exit $ac_status); } &&
10966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7040 { ac_try='test -z "$ac_cxx_werror_flag"
7041 || test ! -s conftest.err'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5 7043 (eval $ac_try) 2>&5
10969 ac_status=$? 7044 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; } && 7046 (exit $ac_status); }; } &&
11011/* confdefs.h. */ 7086/* confdefs.h. */
11012_ACEOF 7087_ACEOF
11013cat confdefs.h >>conftest.$ac_ext 7088cat confdefs.h >>conftest.$ac_ext
11014cat >>conftest.$ac_ext <<_ACEOF 7089cat >>conftest.$ac_ext <<_ACEOF
11015/* end confdefs.h. */ 7090/* end confdefs.h. */
11016 7091#include <X11/Xlib.h>
7092#include <stdlib.h>
11017main() 7093main()
11018{ 7094{
11019 exit(0); 7095 exit(0);
11020 (void) XOpenDisplay("foobar"); 7096 (void) XOpenDisplay("foobar");
11021} 7097}
11060/* confdefs.h. */ 7136/* confdefs.h. */
11061_ACEOF 7137_ACEOF
11062cat confdefs.h >>conftest.$ac_ext 7138cat confdefs.h >>conftest.$ac_ext
11063cat >>conftest.$ac_ext <<_ACEOF 7139cat >>conftest.$ac_ext <<_ACEOF
11064/* end confdefs.h. */ 7140/* end confdefs.h. */
11065 7141#include <X11/Xlib.h>
7142#include <stdlib.h>
11066main() 7143main()
11067{ 7144{
11068 exit(0); 7145 exit(0);
11069 (void) XOpenDisplay("foobar"); 7146 (void) XOpenDisplay("foobar");
11070} 7147}
11126 grep -v '^ *+' conftest.er1 >conftest.err 7203 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1 7204 rm -f conftest.er1
11128 cat conftest.err >&5 7205 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } && 7207 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7208 { ac_try='test -z "$ac_cxx_werror_flag"
7209 || test ! -s conftest.err'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5 7211 (eval $ac_try) 2>&5
11134 ac_status=$? 7212 ac_status=$?
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; } && 7214 (exit $ac_status); }; } &&
11159 7237
11160fi 7238fi
11161LIBS=$ac_save_LIBS 7239LIBS=$ac_save_LIBS
11162CFLAGS=$ac_save_CFLAGS 7240CFLAGS=$ac_save_CFLAGS
11163 7241
7242echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7243echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7244if test "${rxvt_xlib_illegal_access+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247 cat >conftest.$ac_ext <<_ACEOF
7248/* confdefs.h. */
7249_ACEOF
7250cat confdefs.h >>conftest.$ac_ext
7251cat >>conftest.$ac_ext <<_ACEOF
7252/* end confdefs.h. */
7253
7254#define XLIB_ILLEGAL_ACCESS
7255#include <X11/Xlib.h>
7256
7257int
7258main ()
7259{
7260
7261 Display *dpy;
7262 dpy->xdefaults = (char *)0;
7263
7264 ;
7265 return 0;
7266}
7267_ACEOF
7268rm -f conftest.$ac_objext
7269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -z "$ac_cxx_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 rxvt_xlib_illegal_access=yes
7291else
7292 echo "$as_me: failed program was:" >&5
7293sed 's/^/| /' conftest.$ac_ext >&5
7294
7295rxvt_xlib_illegal_access=no
7296
7297fi
7298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299fi
7300echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7301echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7302if test x$rxvt_xlib_illegal_access = xyes; then
7303
7304cat >>confdefs.h <<\_ACEOF
7305#define XLIB_ILLEGAL_ACCESS 1
7306_ACEOF
7307
7308fi
11164 7309
11165echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7310echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11166echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 7311echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11167if test "${ac_cv_c_const+set}" = set; then 7312if test "${ac_cv_c_const+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6 7313 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 grep -v '^ *+' conftest.er1 >conftest.err 7380 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1 7381 rm -f conftest.er1
11237 cat conftest.err >&5 7382 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } && 7384 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7385 { ac_try='test -z "$ac_cxx_werror_flag"
7386 || test ! -s conftest.err'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5 7388 (eval $ac_try) 2>&5
11243 ac_status=$? 7389 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; } && 7391 (exit $ac_status); }; } &&
11295 grep -v '^ *+' conftest.er1 >conftest.err 7441 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1 7442 rm -f conftest.er1
11297 cat conftest.err >&5 7443 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } && 7445 (exit $ac_status); } &&
11300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7446 { ac_try='test -z "$ac_cxx_werror_flag"
7447 || test ! -s conftest.err'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5 7449 (eval $ac_try) 2>&5
11303 ac_status=$? 7450 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } && 7452 (exit $ac_status); }; } &&
11370 grep -v '^ *+' conftest.er1 >conftest.err 7517 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1 7518 rm -f conftest.er1
11372 cat conftest.err >&5 7519 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } && 7521 (exit $ac_status); } &&
11375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7522 { ac_try='test -z "$ac_cxx_werror_flag"
7523 || test ! -s conftest.err'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5 7525 (eval $ac_try) 2>&5
11378 ac_status=$? 7526 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; } && 7528 (exit $ac_status); }; } &&
11435 grep -v '^ *+' conftest.er1 >conftest.err 7583 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1 7584 rm -f conftest.er1
11437 cat conftest.err >&5 7585 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } && 7587 (exit $ac_status); } &&
11440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7588 { ac_try='test -z "$ac_cxx_werror_flag"
7589 || test ! -s conftest.err'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5 7591 (eval $ac_try) 2>&5
11443 ac_status=$? 7592 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } && 7594 (exit $ac_status); }; } &&
11505cat >>confdefs.h <<\_ACEOF 7654cat >>confdefs.h <<\_ACEOF
11506#define gid_t int 7655#define gid_t int
11507_ACEOF 7656_ACEOF
11508 7657
11509fi 7658fi
11510
11511
11512
11513echo "$as_me:$LINENO: checking for char" >&5
11514echo $ECHO_N "checking for char... $ECHO_C" >&6
11515if test "${ac_cv_type_char+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11517else
11518 cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h. */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h. */
11524$ac_includes_default
11525int
11526main ()
11527{
11528if ((char *) 0)
11529 return 0;
11530if (sizeof (char))
11531 return 0;
11532 ;
11533 return 0;
11534}
11535_ACEOF
11536rm -f conftest.$ac_objext
11537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11538 (eval $ac_compile) 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } &&
11545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_cv_type_char=yes
11558else
11559 echo "$as_me: failed program was:" >&5
11560sed 's/^/| /' conftest.$ac_ext >&5
11561
11562ac_cv_type_char=no
11563fi
11564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11565fi
11566echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11567echo "${ECHO_T}$ac_cv_type_char" >&6
11568
11569echo "$as_me:$LINENO: checking size of char" >&5
11570echo $ECHO_N "checking size of char... $ECHO_C" >&6
11571if test "${ac_cv_sizeof_char+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573else
11574 if test "$ac_cv_type_char" = yes; then
11575 # The cast to unsigned long works around a bug in the HP C Compiler
11576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11578 # This bug is HP SR number 8606223364.
11579 if test "$cross_compiling" = yes; then
11580 # Depending upon the size, compute the lo and hi bounds.
11581cat >conftest.$ac_ext <<_ACEOF
11582/* confdefs.h. */
11583_ACEOF
11584cat confdefs.h >>conftest.$ac_ext
11585cat >>conftest.$ac_ext <<_ACEOF
11586/* end confdefs.h. */
11587$ac_includes_default
11588int
11589main ()
11590{
11591static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11592test_array [0] = 0
11593
11594 ;
11595 return 0;
11596}
11597_ACEOF
11598rm -f conftest.$ac_objext
11599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11600 (eval $ac_compile) 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest.$ac_objext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 ac_lo=0 ac_mid=0
11620 while :; do
11621 cat >conftest.$ac_ext <<_ACEOF
11622/* confdefs.h. */
11623_ACEOF
11624cat confdefs.h >>conftest.$ac_ext
11625cat >>conftest.$ac_ext <<_ACEOF
11626/* end confdefs.h. */
11627$ac_includes_default
11628int
11629main ()
11630{
11631static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11632test_array [0] = 0
11633
11634 ;
11635 return 0;
11636}
11637_ACEOF
11638rm -f conftest.$ac_objext
11639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640 (eval $ac_compile) 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } &&
11647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest.$ac_objext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 ac_hi=$ac_mid; break
11660else
11661 echo "$as_me: failed program was:" >&5
11662sed 's/^/| /' conftest.$ac_ext >&5
11663
11664ac_lo=`expr $ac_mid + 1`
11665 if test $ac_lo -le $ac_mid; then
11666 ac_lo= ac_hi=
11667 break
11668 fi
11669 ac_mid=`expr 2 '*' $ac_mid + 1`
11670fi
11671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11672 done
11673else
11674 echo "$as_me: failed program was:" >&5
11675sed 's/^/| /' conftest.$ac_ext >&5
11676
11677cat >conftest.$ac_ext <<_ACEOF
11678/* confdefs.h. */
11679_ACEOF
11680cat confdefs.h >>conftest.$ac_ext
11681cat >>conftest.$ac_ext <<_ACEOF
11682/* end confdefs.h. */
11683$ac_includes_default
11684int
11685main ()
11686{
11687static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11688test_array [0] = 0
11689
11690 ;
11691 return 0;
11692}
11693_ACEOF
11694rm -f conftest.$ac_objext
11695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11696 (eval $ac_compile) 2>conftest.er1
11697 ac_status=$?
11698 grep -v '^ *+' conftest.er1 >conftest.err
11699 rm -f conftest.er1
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
11703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; } &&
11709 { ac_try='test -s conftest.$ac_objext'
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 ac_hi=-1 ac_mid=-1
11716 while :; do
11717 cat >conftest.$ac_ext <<_ACEOF
11718/* confdefs.h. */
11719_ACEOF
11720cat confdefs.h >>conftest.$ac_ext
11721cat >>conftest.$ac_ext <<_ACEOF
11722/* end confdefs.h. */
11723$ac_includes_default
11724int
11725main ()
11726{
11727static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11728test_array [0] = 0
11729
11730 ;
11731 return 0;
11732}
11733_ACEOF
11734rm -f conftest.$ac_objext
11735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11736 (eval $ac_compile) 2>conftest.er1
11737 ac_status=$?
11738 grep -v '^ *+' conftest.er1 >conftest.err
11739 rm -f conftest.er1
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } &&
11743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try='test -s conftest.$ac_objext'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 ac_lo=$ac_mid; break
11756else
11757 echo "$as_me: failed program was:" >&5
11758sed 's/^/| /' conftest.$ac_ext >&5
11759
11760ac_hi=`expr '(' $ac_mid ')' - 1`
11761 if test $ac_mid -le $ac_hi; then
11762 ac_lo= ac_hi=
11763 break
11764 fi
11765 ac_mid=`expr 2 '*' $ac_mid`
11766fi
11767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11768 done
11769else
11770 echo "$as_me: failed program was:" >&5
11771sed 's/^/| /' conftest.$ac_ext >&5
11772
11773ac_lo= ac_hi=
11774fi
11775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11776fi
11777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11778# Binary search between lo and hi bounds.
11779while test "x$ac_lo" != "x$ac_hi"; do
11780 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11781 cat >conftest.$ac_ext <<_ACEOF
11782/* confdefs.h. */
11783_ACEOF
11784cat confdefs.h >>conftest.$ac_ext
11785cat >>conftest.$ac_ext <<_ACEOF
11786/* end confdefs.h. */
11787$ac_includes_default
11788int
11789main ()
11790{
11791static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11792test_array [0] = 0
11793
11794 ;
11795 return 0;
11796}
11797_ACEOF
11798rm -f conftest.$ac_objext
11799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11800 (eval $ac_compile) 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest.$ac_objext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 ac_hi=$ac_mid
11820else
11821 echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824ac_lo=`expr '(' $ac_mid ')' + 1`
11825fi
11826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11827done
11828case $ac_lo in
11829?*) ac_cv_sizeof_char=$ac_lo;;
11830'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11831See \`config.log' for more details." >&5
11832echo "$as_me: error: cannot compute sizeof (char), 77
11833See \`config.log' for more details." >&2;}
11834 { (exit 1); exit 1; }; } ;;
11835esac
11836else
11837 if test "$cross_compiling" = yes; then
11838 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11839echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11840 { (exit 1); exit 1; }; }
11841else
11842 cat >conftest.$ac_ext <<_ACEOF
11843/* confdefs.h. */
11844_ACEOF
11845cat confdefs.h >>conftest.$ac_ext
11846cat >>conftest.$ac_ext <<_ACEOF
11847/* end confdefs.h. */
11848$ac_includes_default
11849long longval () { return (long) (sizeof (char)); }
11850unsigned long ulongval () { return (long) (sizeof (char)); }
11851#include <stdio.h>
11852#include <stdlib.h>
11853int
11854main ()
11855{
11856
11857 FILE *f = fopen ("conftest.val", "w");
11858 if (! f)
11859 exit (1);
11860 if (((long) (sizeof (char))) < 0)
11861 {
11862 long i = longval ();
11863 if (i != ((long) (sizeof (char))))
11864 exit (1);
11865 fprintf (f, "%ld\n", i);
11866 }
11867 else
11868 {
11869 unsigned long i = ulongval ();
11870 if (i != ((long) (sizeof (char))))
11871 exit (1);
11872 fprintf (f, "%lu\n", i);
11873 }
11874 exit (ferror (f) || fclose (f) != 0);
11875
11876 ;
11877 return 0;
11878}
11879_ACEOF
11880rm -f conftest$ac_exeext
11881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11882 (eval $ac_link) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 ac_cv_sizeof_char=`cat conftest.val`
11892else
11893 echo "$as_me: program exited with status $ac_status" >&5
11894echo "$as_me: failed program was:" >&5
11895sed 's/^/| /' conftest.$ac_ext >&5
11896
11897( exit $ac_status )
11898{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11899See \`config.log' for more details." >&5
11900echo "$as_me: error: cannot compute sizeof (char), 77
11901See \`config.log' for more details." >&2;}
11902 { (exit 1); exit 1; }; }
11903fi
11904rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11905fi
11906fi
11907rm -f conftest.val
11908else
11909 ac_cv_sizeof_char=0
11910fi
11911fi
11912echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11913echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11914cat >>confdefs.h <<_ACEOF
11915#define SIZEOF_CHAR $ac_cv_sizeof_char
11916_ACEOF
11917 7659
11918 7660
11919echo "$as_me:$LINENO: checking for short" >&5 7661echo "$as_me:$LINENO: checking for short" >&5
11920echo $ECHO_N "checking for short... $ECHO_C" >&6 7662echo $ECHO_N "checking for short... $ECHO_C" >&6
11921if test "${ac_cv_type_short+set}" = set; then 7663if test "${ac_cv_type_short+set}" = set; then
11946 grep -v '^ *+' conftest.er1 >conftest.err 7688 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1 7689 rm -f conftest.er1
11948 cat conftest.err >&5 7690 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } && 7692 (exit $ac_status); } &&
11951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7693 { ac_try='test -z "$ac_cxx_werror_flag"
7694 || test ! -s conftest.err'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5 7696 (eval $ac_try) 2>&5
11954 ac_status=$? 7697 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } && 7699 (exit $ac_status); }; } &&
12008 grep -v '^ *+' conftest.er1 >conftest.err 7751 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1 7752 rm -f conftest.er1
12010 cat conftest.err >&5 7753 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } && 7755 (exit $ac_status); } &&
12013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7756 { ac_try='test -z "$ac_cxx_werror_flag"
7757 || test ! -s conftest.err'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5 7759 (eval $ac_try) 2>&5
12016 ac_status=$? 7760 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } && 7762 (exit $ac_status); }; } &&
12048 grep -v '^ *+' conftest.er1 >conftest.err 7792 grep -v '^ *+' conftest.er1 >conftest.err
12049 rm -f conftest.er1 7793 rm -f conftest.er1
12050 cat conftest.err >&5 7794 cat conftest.err >&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } && 7796 (exit $ac_status); } &&
12053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7797 { ac_try='test -z "$ac_cxx_werror_flag"
7798 || test ! -s conftest.err'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5 7800 (eval $ac_try) 2>&5
12056 ac_status=$? 7801 ac_status=$?
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; } && 7803 (exit $ac_status); }; } &&
12104 grep -v '^ *+' conftest.er1 >conftest.err 7849 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1 7850 rm -f conftest.er1
12106 cat conftest.err >&5 7851 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && 7853 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7854 { ac_try='test -z "$ac_cxx_werror_flag"
7855 || test ! -s conftest.err'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5 7857 (eval $ac_try) 2>&5
12112 ac_status=$? 7858 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; } && 7860 (exit $ac_status); }; } &&
12144 grep -v '^ *+' conftest.er1 >conftest.err 7890 grep -v '^ *+' conftest.er1 >conftest.err
12145 rm -f conftest.er1 7891 rm -f conftest.er1
12146 cat conftest.err >&5 7892 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } && 7894 (exit $ac_status); } &&
12149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7895 { ac_try='test -z "$ac_cxx_werror_flag"
7896 || test ! -s conftest.err'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5 7898 (eval $ac_try) 2>&5
12152 ac_status=$? 7899 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } && 7901 (exit $ac_status); }; } &&
12208 grep -v '^ *+' conftest.er1 >conftest.err 7955 grep -v '^ *+' conftest.er1 >conftest.err
12209 rm -f conftest.er1 7956 rm -f conftest.er1
12210 cat conftest.err >&5 7957 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && 7959 (exit $ac_status); } &&
12213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7960 { ac_try='test -z "$ac_cxx_werror_flag"
7961 || test ! -s conftest.err'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5 7963 (eval $ac_try) 2>&5
12216 ac_status=$? 7964 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } && 7966 (exit $ac_status); }; } &&
12239See \`config.log' for more details." >&2;} 7987See \`config.log' for more details." >&2;}
12240 { (exit 1); exit 1; }; } ;; 7988 { (exit 1); exit 1; }; } ;;
12241esac 7989esac
12242else 7990else
12243 if test "$cross_compiling" = yes; then 7991 if test "$cross_compiling" = yes; then
12244 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 7992 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12245echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 7993See \`config.log' for more details." >&5
7994echo "$as_me: error: cannot run test program while cross compiling
7995See \`config.log' for more details." >&2;}
12246 { (exit 1); exit 1; }; } 7996 { (exit 1); exit 1; }; }
12247else 7997else
12248 cat >conftest.$ac_ext <<_ACEOF 7998 cat >conftest.$ac_ext <<_ACEOF
12249/* confdefs.h. */ 7999/* confdefs.h. */
12250_ACEOF 8000_ACEOF
12352 grep -v '^ *+' conftest.er1 >conftest.err 8102 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1 8103 rm -f conftest.er1
12354 cat conftest.err >&5 8104 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } && 8106 (exit $ac_status); } &&
12357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8107 { ac_try='test -z "$ac_cxx_werror_flag"
8108 || test ! -s conftest.err'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5 8110 (eval $ac_try) 2>&5
12360 ac_status=$? 8111 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; } && 8113 (exit $ac_status); }; } &&
12414 grep -v '^ *+' conftest.er1 >conftest.err 8165 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1 8166 rm -f conftest.er1
12416 cat conftest.err >&5 8167 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } && 8169 (exit $ac_status); } &&
12419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8170 { ac_try='test -z "$ac_cxx_werror_flag"
8171 || test ! -s conftest.err'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5 8173 (eval $ac_try) 2>&5
12422 ac_status=$? 8174 ac_status=$?
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; } && 8176 (exit $ac_status); }; } &&
12454 grep -v '^ *+' conftest.er1 >conftest.err 8206 grep -v '^ *+' conftest.er1 >conftest.err
12455 rm -f conftest.er1 8207 rm -f conftest.er1
12456 cat conftest.err >&5 8208 cat conftest.err >&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } && 8210 (exit $ac_status); } &&
12459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8211 { ac_try='test -z "$ac_cxx_werror_flag"
8212 || test ! -s conftest.err'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5 8214 (eval $ac_try) 2>&5
12462 ac_status=$? 8215 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } && 8217 (exit $ac_status); }; } &&
12510 grep -v '^ *+' conftest.er1 >conftest.err 8263 grep -v '^ *+' conftest.er1 >conftest.err
12511 rm -f conftest.er1 8264 rm -f conftest.er1
12512 cat conftest.err >&5 8265 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && 8267 (exit $ac_status); } &&
12515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8268 { ac_try='test -z "$ac_cxx_werror_flag"
8269 || test ! -s conftest.err'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5 8271 (eval $ac_try) 2>&5
12518 ac_status=$? 8272 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; } && 8274 (exit $ac_status); }; } &&
12550 grep -v '^ *+' conftest.er1 >conftest.err 8304 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1 8305 rm -f conftest.er1
12552 cat conftest.err >&5 8306 cat conftest.err >&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && 8308 (exit $ac_status); } &&
12555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8309 { ac_try='test -z "$ac_cxx_werror_flag"
8310 || test ! -s conftest.err'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5 8312 (eval $ac_try) 2>&5
12558 ac_status=$? 8313 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; } && 8315 (exit $ac_status); }; } &&
12614 grep -v '^ *+' conftest.er1 >conftest.err 8369 grep -v '^ *+' conftest.er1 >conftest.err
12615 rm -f conftest.er1 8370 rm -f conftest.er1
12616 cat conftest.err >&5 8371 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } && 8373 (exit $ac_status); } &&
12619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8374 { ac_try='test -z "$ac_cxx_werror_flag"
8375 || test ! -s conftest.err'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5 8377 (eval $ac_try) 2>&5
12622 ac_status=$? 8378 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; } && 8380 (exit $ac_status); }; } &&
12645See \`config.log' for more details." >&2;} 8401See \`config.log' for more details." >&2;}
12646 { (exit 1); exit 1; }; } ;; 8402 { (exit 1); exit 1; }; } ;;
12647esac 8403esac
12648else 8404else
12649 if test "$cross_compiling" = yes; then 8405 if test "$cross_compiling" = yes; then
12650 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8406 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12651echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8407See \`config.log' for more details." >&5
8408echo "$as_me: error: cannot run test program while cross compiling
8409See \`config.log' for more details." >&2;}
12652 { (exit 1); exit 1; }; } 8410 { (exit 1); exit 1; }; }
12653else 8411else
12654 cat >conftest.$ac_ext <<_ACEOF 8412 cat >conftest.$ac_ext <<_ACEOF
12655/* confdefs.h. */ 8413/* confdefs.h. */
12656_ACEOF 8414_ACEOF
12726cat >>confdefs.h <<_ACEOF 8484cat >>confdefs.h <<_ACEOF
12727#define SIZEOF_INT $ac_cv_sizeof_int 8485#define SIZEOF_INT $ac_cv_sizeof_int
12728_ACEOF 8486_ACEOF
12729 8487
12730 8488
12731echo "$as_me:$LINENO: checking for long" >&5
12732echo $ECHO_N "checking for long... $ECHO_C" >&6
12733if test "${ac_cv_type_long+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735else
12736 cat >conftest.$ac_ext <<_ACEOF
12737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h. */
12742$ac_includes_default
12743int
12744main ()
12745{
12746if ((long *) 0)
12747 return 0;
12748if (sizeof (long))
12749 return 0;
12750 ;
12751 return 0;
12752}
12753_ACEOF
12754rm -f conftest.$ac_objext
12755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756 (eval $ac_compile) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_type_long=yes
12776else
12777 echo "$as_me: failed program was:" >&5
12778sed 's/^/| /' conftest.$ac_ext >&5
12779
12780ac_cv_type_long=no
12781fi
12782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12783fi
12784echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12785echo "${ECHO_T}$ac_cv_type_long" >&6
12786
12787echo "$as_me:$LINENO: checking size of long" >&5
12788echo $ECHO_N "checking size of long... $ECHO_C" >&6
12789if test "${ac_cv_sizeof_long+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12791else
12792 if test "$ac_cv_type_long" = yes; then
12793 # The cast to unsigned long works around a bug in the HP C Compiler
12794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12796 # This bug is HP SR number 8606223364.
12797 if test "$cross_compiling" = yes; then
12798 # Depending upon the size, compute the lo and hi bounds.
12799cat >conftest.$ac_ext <<_ACEOF
12800/* confdefs.h. */
12801_ACEOF
12802cat confdefs.h >>conftest.$ac_ext
12803cat >>conftest.$ac_ext <<_ACEOF
12804/* end confdefs.h. */
12805$ac_includes_default
12806int
12807main ()
12808{
12809static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12810test_array [0] = 0
12811
12812 ;
12813 return 0;
12814}
12815_ACEOF
12816rm -f conftest.$ac_objext
12817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818 (eval $ac_compile) 2>conftest.er1
12819 ac_status=$?
12820 grep -v '^ *+' conftest.er1 >conftest.err
12821 rm -f conftest.er1
12822 cat conftest.err >&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } &&
12825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; } &&
12831 { ac_try='test -s conftest.$ac_objext'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_lo=0 ac_mid=0
12838 while :; do
12839 cat >conftest.$ac_ext <<_ACEOF
12840/* confdefs.h. */
12841_ACEOF
12842cat confdefs.h >>conftest.$ac_ext
12843cat >>conftest.$ac_ext <<_ACEOF
12844/* end confdefs.h. */
12845$ac_includes_default
12846int
12847main ()
12848{
12849static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12850test_array [0] = 0
12851
12852 ;
12853 return 0;
12854}
12855_ACEOF
12856rm -f conftest.$ac_objext
12857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12858 (eval $ac_compile) 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; } &&
12871 { ac_try='test -s conftest.$ac_objext'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; }; then
12877 ac_hi=$ac_mid; break
12878else
12879 echo "$as_me: failed program was:" >&5
12880sed 's/^/| /' conftest.$ac_ext >&5
12881
12882ac_lo=`expr $ac_mid + 1`
12883 if test $ac_lo -le $ac_mid; then
12884 ac_lo= ac_hi=
12885 break
12886 fi
12887 ac_mid=`expr 2 '*' $ac_mid + 1`
12888fi
12889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12890 done
12891else
12892 echo "$as_me: failed program was:" >&5
12893sed 's/^/| /' conftest.$ac_ext >&5
12894
12895cat >conftest.$ac_ext <<_ACEOF
12896/* confdefs.h. */
12897_ACEOF
12898cat confdefs.h >>conftest.$ac_ext
12899cat >>conftest.$ac_ext <<_ACEOF
12900/* end confdefs.h. */
12901$ac_includes_default
12902int
12903main ()
12904{
12905static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12906test_array [0] = 0
12907
12908 ;
12909 return 0;
12910}
12911_ACEOF
12912rm -f conftest.$ac_objext
12913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914 (eval $ac_compile) 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; } &&
12927 { ac_try='test -s conftest.$ac_objext'
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
12933 ac_hi=-1 ac_mid=-1
12934 while :; do
12935 cat >conftest.$ac_ext <<_ACEOF
12936/* confdefs.h. */
12937_ACEOF
12938cat confdefs.h >>conftest.$ac_ext
12939cat >>conftest.$ac_ext <<_ACEOF
12940/* end confdefs.h. */
12941$ac_includes_default
12942int
12943main ()
12944{
12945static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12946test_array [0] = 0
12947
12948 ;
12949 return 0;
12950}
12951_ACEOF
12952rm -f conftest.$ac_objext
12953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12954 (eval $ac_compile) 2>conftest.er1
12955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_lo=$ac_mid; break
12974else
12975 echo "$as_me: failed program was:" >&5
12976sed 's/^/| /' conftest.$ac_ext >&5
12977
12978ac_hi=`expr '(' $ac_mid ')' - 1`
12979 if test $ac_mid -le $ac_hi; then
12980 ac_lo= ac_hi=
12981 break
12982 fi
12983 ac_mid=`expr 2 '*' $ac_mid`
12984fi
12985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986 done
12987else
12988 echo "$as_me: failed program was:" >&5
12989sed 's/^/| /' conftest.$ac_ext >&5
12990
12991ac_lo= ac_hi=
12992fi
12993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12994fi
12995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12996# Binary search between lo and hi bounds.
12997while test "x$ac_lo" != "x$ac_hi"; do
12998 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12999 cat >conftest.$ac_ext <<_ACEOF
13000/* confdefs.h. */
13001_ACEOF
13002cat confdefs.h >>conftest.$ac_ext
13003cat >>conftest.$ac_ext <<_ACEOF
13004/* end confdefs.h. */
13005$ac_includes_default
13006int
13007main ()
13008{
13009static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13010test_array [0] = 0
13011
13012 ;
13013 return 0;
13014}
13015_ACEOF
13016rm -f conftest.$ac_objext
13017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try='test -s conftest.$ac_objext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_hi=$ac_mid
13038else
13039 echo "$as_me: failed program was:" >&5
13040sed 's/^/| /' conftest.$ac_ext >&5
13041
13042ac_lo=`expr '(' $ac_mid ')' + 1`
13043fi
13044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13045done
13046case $ac_lo in
13047?*) ac_cv_sizeof_long=$ac_lo;;
13048'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13049See \`config.log' for more details." >&5
13050echo "$as_me: error: cannot compute sizeof (long), 77
13051See \`config.log' for more details." >&2;}
13052 { (exit 1); exit 1; }; } ;;
13053esac
13054else
13055 if test "$cross_compiling" = yes; then
13056 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13057echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13058 { (exit 1); exit 1; }; }
13059else
13060 cat >conftest.$ac_ext <<_ACEOF
13061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
13066$ac_includes_default
13067long longval () { return (long) (sizeof (long)); }
13068unsigned long ulongval () { return (long) (sizeof (long)); }
13069#include <stdio.h>
13070#include <stdlib.h>
13071int
13072main ()
13073{
13074
13075 FILE *f = fopen ("conftest.val", "w");
13076 if (! f)
13077 exit (1);
13078 if (((long) (sizeof (long))) < 0)
13079 {
13080 long i = longval ();
13081 if (i != ((long) (sizeof (long))))
13082 exit (1);
13083 fprintf (f, "%ld\n", i);
13084 }
13085 else
13086 {
13087 unsigned long i = ulongval ();
13088 if (i != ((long) (sizeof (long))))
13089 exit (1);
13090 fprintf (f, "%lu\n", i);
13091 }
13092 exit (ferror (f) || fclose (f) != 0);
13093
13094 ;
13095 return 0;
13096}
13097_ACEOF
13098rm -f conftest$ac_exeext
13099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13100 (eval $ac_link) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 ac_cv_sizeof_long=`cat conftest.val`
13110else
13111 echo "$as_me: program exited with status $ac_status" >&5
13112echo "$as_me: failed program was:" >&5
13113sed 's/^/| /' conftest.$ac_ext >&5
13114
13115( exit $ac_status )
13116{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13117See \`config.log' for more details." >&5
13118echo "$as_me: error: cannot compute sizeof (long), 77
13119See \`config.log' for more details." >&2;}
13120 { (exit 1); exit 1; }; }
13121fi
13122rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13123fi
13124fi
13125rm -f conftest.val
13126else
13127 ac_cv_sizeof_long=0
13128fi
13129fi
13130echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13131echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13132cat >>confdefs.h <<_ACEOF
13133#define SIZEOF_LONG $ac_cv_sizeof_long
13134_ACEOF
13135
13136
13137echo "$as_me:$LINENO: checking for long long" >&5 8489echo "$as_me:$LINENO: checking for long long" >&5
13138echo $ECHO_N "checking for long long... $ECHO_C" >&6 8490echo $ECHO_N "checking for long long... $ECHO_C" >&6
13139if test "${ac_cv_type_long_long+set}" = set; then 8491if test "${ac_cv_type_long_long+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6 8492 echo $ECHO_N "(cached) $ECHO_C" >&6
13141else 8493else
13164 grep -v '^ *+' conftest.er1 >conftest.err 8516 grep -v '^ *+' conftest.er1 >conftest.err
13165 rm -f conftest.er1 8517 rm -f conftest.er1
13166 cat conftest.err >&5 8518 cat conftest.err >&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } && 8520 (exit $ac_status); } &&
13169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8521 { ac_try='test -z "$ac_cxx_werror_flag"
8522 || test ! -s conftest.err'
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5 8524 (eval $ac_try) 2>&5
13172 ac_status=$? 8525 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; } && 8527 (exit $ac_status); }; } &&
13226 grep -v '^ *+' conftest.er1 >conftest.err 8579 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1 8580 rm -f conftest.er1
13228 cat conftest.err >&5 8581 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } && 8583 (exit $ac_status); } &&
13231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8584 { ac_try='test -z "$ac_cxx_werror_flag"
8585 || test ! -s conftest.err'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5 8587 (eval $ac_try) 2>&5
13234 ac_status=$? 8588 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; } && 8590 (exit $ac_status); }; } &&
13266 grep -v '^ *+' conftest.er1 >conftest.err 8620 grep -v '^ *+' conftest.er1 >conftest.err
13267 rm -f conftest.er1 8621 rm -f conftest.er1
13268 cat conftest.err >&5 8622 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } && 8624 (exit $ac_status); } &&
13271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8625 { ac_try='test -z "$ac_cxx_werror_flag"
8626 || test ! -s conftest.err'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5 8628 (eval $ac_try) 2>&5
13274 ac_status=$? 8629 ac_status=$?
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; } && 8631 (exit $ac_status); }; } &&
13322 grep -v '^ *+' conftest.er1 >conftest.err 8677 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1 8678 rm -f conftest.er1
13324 cat conftest.err >&5 8679 cat conftest.err >&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && 8681 (exit $ac_status); } &&
13327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8682 { ac_try='test -z "$ac_cxx_werror_flag"
8683 || test ! -s conftest.err'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5 8685 (eval $ac_try) 2>&5
13330 ac_status=$? 8686 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } && 8688 (exit $ac_status); }; } &&
13362 grep -v '^ *+' conftest.er1 >conftest.err 8718 grep -v '^ *+' conftest.er1 >conftest.err
13363 rm -f conftest.er1 8719 rm -f conftest.er1
13364 cat conftest.err >&5 8720 cat conftest.err >&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } && 8722 (exit $ac_status); } &&
13367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8723 { ac_try='test -z "$ac_cxx_werror_flag"
8724 || test ! -s conftest.err'
13368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13369 (eval $ac_try) 2>&5 8726 (eval $ac_try) 2>&5
13370 ac_status=$? 8727 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; } && 8729 (exit $ac_status); }; } &&
13426 grep -v '^ *+' conftest.er1 >conftest.err 8783 grep -v '^ *+' conftest.er1 >conftest.err
13427 rm -f conftest.er1 8784 rm -f conftest.er1
13428 cat conftest.err >&5 8785 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } && 8787 (exit $ac_status); } &&
13431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8788 { ac_try='test -z "$ac_cxx_werror_flag"
8789 || test ! -s conftest.err'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5 8791 (eval $ac_try) 2>&5
13434 ac_status=$? 8792 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; } && 8794 (exit $ac_status); }; } &&
13457See \`config.log' for more details." >&2;} 8815See \`config.log' for more details." >&2;}
13458 { (exit 1); exit 1; }; } ;; 8816 { (exit 1); exit 1; }; } ;;
13459esac 8817esac
13460else 8818else
13461 if test "$cross_compiling" = yes; then 8819 if test "$cross_compiling" = yes; then
13462 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8820 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13463echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8821See \`config.log' for more details." >&5
8822echo "$as_me: error: cannot run test program while cross compiling
8823See \`config.log' for more details." >&2;}
13464 { (exit 1); exit 1; }; } 8824 { (exit 1); exit 1; }; }
13465else 8825else
13466 cat >conftest.$ac_ext <<_ACEOF 8826 cat >conftest.$ac_ext <<_ACEOF
13467/* confdefs.h. */ 8827/* confdefs.h. */
13468_ACEOF 8828_ACEOF
13570 grep -v '^ *+' conftest.er1 >conftest.err 8930 grep -v '^ *+' conftest.er1 >conftest.err
13571 rm -f conftest.er1 8931 rm -f conftest.er1
13572 cat conftest.err >&5 8932 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } && 8934 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8935 { ac_try='test -z "$ac_cxx_werror_flag"
8936 || test ! -s conftest.err'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5 8938 (eval $ac_try) 2>&5
13578 ac_status=$? 8939 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } && 8941 (exit $ac_status); }; } &&
13632 grep -v '^ *+' conftest.er1 >conftest.err 8993 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1 8994 rm -f conftest.er1
13634 cat conftest.err >&5 8995 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } && 8997 (exit $ac_status); } &&
13637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8998 { ac_try='test -z "$ac_cxx_werror_flag"
8999 || test ! -s conftest.err'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5 9001 (eval $ac_try) 2>&5
13640 ac_status=$? 9002 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } && 9004 (exit $ac_status); }; } &&
13672 grep -v '^ *+' conftest.er1 >conftest.err 9034 grep -v '^ *+' conftest.er1 >conftest.err
13673 rm -f conftest.er1 9035 rm -f conftest.er1
13674 cat conftest.err >&5 9036 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } && 9038 (exit $ac_status); } &&
13677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9039 { ac_try='test -z "$ac_cxx_werror_flag"
9040 || test ! -s conftest.err'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5 9042 (eval $ac_try) 2>&5
13680 ac_status=$? 9043 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } && 9045 (exit $ac_status); }; } &&
13728 grep -v '^ *+' conftest.er1 >conftest.err 9091 grep -v '^ *+' conftest.er1 >conftest.err
13729 rm -f conftest.er1 9092 rm -f conftest.er1
13730 cat conftest.err >&5 9093 cat conftest.err >&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } && 9095 (exit $ac_status); } &&
13733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9096 { ac_try='test -z "$ac_cxx_werror_flag"
9097 || test ! -s conftest.err'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5 9099 (eval $ac_try) 2>&5
13736 ac_status=$? 9100 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } && 9102 (exit $ac_status); }; } &&
13768 grep -v '^ *+' conftest.er1 >conftest.err 9132 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1 9133 rm -f conftest.er1
13770 cat conftest.err >&5 9134 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } && 9136 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9137 { ac_try='test -z "$ac_cxx_werror_flag"
9138 || test ! -s conftest.err'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5 9140 (eval $ac_try) 2>&5
13776 ac_status=$? 9141 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; } && 9143 (exit $ac_status); }; } &&
13832 grep -v '^ *+' conftest.er1 >conftest.err 9197 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1 9198 rm -f conftest.er1
13834 cat conftest.err >&5 9199 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } && 9201 (exit $ac_status); } &&
13837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9202 { ac_try='test -z "$ac_cxx_werror_flag"
9203 || test ! -s conftest.err'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5 9205 (eval $ac_try) 2>&5
13840 ac_status=$? 9206 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } && 9208 (exit $ac_status); }; } &&
13863See \`config.log' for more details." >&2;} 9229See \`config.log' for more details." >&2;}
13864 { (exit 1); exit 1; }; } ;; 9230 { (exit 1); exit 1; }; } ;;
13865esac 9231esac
13866else 9232else
13867 if test "$cross_compiling" = yes; then 9233 if test "$cross_compiling" = yes; then
13868 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 9234 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13869echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 9235See \`config.log' for more details." >&5
9236echo "$as_me: error: cannot run test program while cross compiling
9237See \`config.log' for more details." >&2;}
13870 { (exit 1); exit 1; }; } 9238 { (exit 1); exit 1; }; }
13871else 9239else
13872 cat >conftest.$ac_ext <<_ACEOF 9240 cat >conftest.$ac_ext <<_ACEOF
13873/* confdefs.h. */ 9241/* confdefs.h. */
13874_ACEOF 9242_ACEOF
13975 grep -v '^ *+' conftest.er1 >conftest.err 9343 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1 9344 rm -f conftest.er1
13977 cat conftest.err >&5 9345 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } && 9347 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9348 { ac_try='test -z "$ac_cxx_werror_flag"
9349 || test ! -s conftest.err'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5 9351 (eval $ac_try) 2>&5
13983 ac_status=$? 9352 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; } && 9354 (exit $ac_status); }; } &&
13992 rxvt_cv_int16_t=yes 9361 rxvt_cv_int16_t=yes
13993else 9362else
13994 echo "$as_me: failed program was:" >&5 9363 echo "$as_me: failed program was:" >&5
13995sed 's/^/| /' conftest.$ac_ext >&5 9364sed 's/^/| /' conftest.$ac_ext >&5
13996 9365
13997if test $ac_cv_sizeof_char -ge 2; then 9366if test "$ac_cv_sizeof_char" -ge 2; then
13998 rxvt_cv_int16_t=" char" 9367 rxvt_cv_int16_t=" char"
13999else 9368else
14000 if test $ac_cv_sizeof_short -ge 2; then 9369 if test "$ac_cv_sizeof_short" -ge 2; then
14001 rxvt_cv_int16_t=" short" 9370 rxvt_cv_int16_t=" short"
14002 else 9371 else
14003 if test $ac_cv_sizeof_int -ge 2; then 9372 if test "$ac_cv_sizeof_int" -ge 2; then
14004 rxvt_cv_int16_t=" int" 9373 rxvt_cv_int16_t=" int"
14005 else 9374 else
14006 if test $ac_cv_sizeof_long -ge 2; then 9375 if test "$ac_cv_sizeof_long" -ge 2; then
14007 rxvt_cv_int16_t=" long" 9376 rxvt_cv_int16_t=" long"
14008 else 9377 else
14009 if test $ac_cv_sizeof_long_long -ge 2; then 9378 if test "$ac_cv_sizeof_long_long" -ge 2; then
14010 rxvt_cv_int16_t=" long long" 9379 rxvt_cv_int16_t=" long long"
14011 else 9380 else
14012 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9381 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14013 fi 9382 fi
14014 fi 9383 fi
14057 grep -v '^ *+' conftest.er1 >conftest.err 9426 grep -v '^ *+' conftest.er1 >conftest.err
14058 rm -f conftest.er1 9427 rm -f conftest.er1
14059 cat conftest.err >&5 9428 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } && 9430 (exit $ac_status); } &&
14062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9431 { ac_try='test -z "$ac_cxx_werror_flag"
9432 || test ! -s conftest.err'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5 9434 (eval $ac_try) 2>&5
14065 ac_status=$? 9435 ac_status=$?
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; } && 9437 (exit $ac_status); }; } &&
14074 rxvt_cv_uint16_t=yes 9444 rxvt_cv_uint16_t=yes
14075else 9445else
14076 echo "$as_me: failed program was:" >&5 9446 echo "$as_me: failed program was:" >&5
14077sed 's/^/| /' conftest.$ac_ext >&5 9447sed 's/^/| /' conftest.$ac_ext >&5
14078 9448
14079if test $ac_cv_sizeof_char -ge 2; then 9449if test "$ac_cv_sizeof_char" -ge 2; then
14080 rxvt_cv_uint16_t="unsigned char" 9450 rxvt_cv_uint16_t="unsigned char"
14081else 9451else
14082 if test $ac_cv_sizeof_short -ge 2; then 9452 if test "$ac_cv_sizeof_short" -ge 2; then
14083 rxvt_cv_uint16_t="unsigned short" 9453 rxvt_cv_uint16_t="unsigned short"
14084 else 9454 else
14085 if test $ac_cv_sizeof_int -ge 2; then 9455 if test "$ac_cv_sizeof_int" -ge 2; then
14086 rxvt_cv_uint16_t="unsigned int" 9456 rxvt_cv_uint16_t="unsigned int"
14087 else 9457 else
14088 if test $ac_cv_sizeof_long -ge 2; then 9458 if test "$ac_cv_sizeof_long" -ge 2; then
14089 rxvt_cv_uint16_t="unsigned long" 9459 rxvt_cv_uint16_t="unsigned long"
14090 else 9460 else
14091 if test $ac_cv_sizeof_long_long -ge 2; then 9461 if test "$ac_cv_sizeof_long_long" -ge 2; then
14092 rxvt_cv_uint16_t="unsigned long long" 9462 rxvt_cv_uint16_t="unsigned long long"
14093 else 9463 else
14094 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9464 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14095 fi 9465 fi
14096 fi 9466 fi
14139 grep -v '^ *+' conftest.er1 >conftest.err 9509 grep -v '^ *+' conftest.er1 >conftest.err
14140 rm -f conftest.er1 9510 rm -f conftest.er1
14141 cat conftest.err >&5 9511 cat conftest.err >&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } && 9513 (exit $ac_status); } &&
14144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9514 { ac_try='test -z "$ac_cxx_werror_flag"
9515 || test ! -s conftest.err'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5 9517 (eval $ac_try) 2>&5
14147 ac_status=$? 9518 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } && 9520 (exit $ac_status); }; } &&
14156 rxvt_cv_int32_t=yes 9527 rxvt_cv_int32_t=yes
14157else 9528else
14158 echo "$as_me: failed program was:" >&5 9529 echo "$as_me: failed program was:" >&5
14159sed 's/^/| /' conftest.$ac_ext >&5 9530sed 's/^/| /' conftest.$ac_ext >&5
14160 9531
14161if test $ac_cv_sizeof_char -ge 4; then 9532if test "$ac_cv_sizeof_char" -ge 4; then
14162 rxvt_cv_int32_t=" char" 9533 rxvt_cv_int32_t=" char"
14163else 9534else
14164 if test $ac_cv_sizeof_short -ge 4; then 9535 if test "$ac_cv_sizeof_short" -ge 4; then
14165 rxvt_cv_int32_t=" short" 9536 rxvt_cv_int32_t=" short"
14166 else 9537 else
14167 if test $ac_cv_sizeof_int -ge 4; then 9538 if test "$ac_cv_sizeof_int" -ge 4; then
14168 rxvt_cv_int32_t=" int" 9539 rxvt_cv_int32_t=" int"
14169 else 9540 else
14170 if test $ac_cv_sizeof_long -ge 4; then 9541 if test "$ac_cv_sizeof_long" -ge 4; then
14171 rxvt_cv_int32_t=" long" 9542 rxvt_cv_int32_t=" long"
14172 else 9543 else
14173 if test $ac_cv_sizeof_long_long -ge 4; then 9544 if test "$ac_cv_sizeof_long_long" -ge 4; then
14174 rxvt_cv_int32_t=" long long" 9545 rxvt_cv_int32_t=" long long"
14175 else 9546 else
14176 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9547 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14177 fi 9548 fi
14178 fi 9549 fi
14221 grep -v '^ *+' conftest.er1 >conftest.err 9592 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1 9593 rm -f conftest.er1
14223 cat conftest.err >&5 9594 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } && 9596 (exit $ac_status); } &&
14226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9597 { ac_try='test -z "$ac_cxx_werror_flag"
9598 || test ! -s conftest.err'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5 9600 (eval $ac_try) 2>&5
14229 ac_status=$? 9601 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; } && 9603 (exit $ac_status); }; } &&
14238 rxvt_cv_uint32_t=yes 9610 rxvt_cv_uint32_t=yes
14239else 9611else
14240 echo "$as_me: failed program was:" >&5 9612 echo "$as_me: failed program was:" >&5
14241sed 's/^/| /' conftest.$ac_ext >&5 9613sed 's/^/| /' conftest.$ac_ext >&5
14242 9614
14243if test $ac_cv_sizeof_char -ge 4; then 9615if test "$ac_cv_sizeof_char" -ge 4; then
14244 rxvt_cv_uint32_t="unsigned char" 9616 rxvt_cv_uint32_t="unsigned char"
14245else 9617else
14246 if test $ac_cv_sizeof_short -ge 4; then 9618 if test "$ac_cv_sizeof_short" -ge 4; then
14247 rxvt_cv_uint32_t="unsigned short" 9619 rxvt_cv_uint32_t="unsigned short"
14248 else 9620 else
14249 if test $ac_cv_sizeof_int -ge 4; then 9621 if test "$ac_cv_sizeof_int" -ge 4; then
14250 rxvt_cv_uint32_t="unsigned int" 9622 rxvt_cv_uint32_t="unsigned int"
14251 else 9623 else
14252 if test $ac_cv_sizeof_long -ge 4; then 9624 if test "$ac_cv_sizeof_long" -ge 4; then
14253 rxvt_cv_uint32_t="unsigned long" 9625 rxvt_cv_uint32_t="unsigned long"
14254 else 9626 else
14255 if test $ac_cv_sizeof_long_long -ge 4; then 9627 if test "$ac_cv_sizeof_long_long" -ge 4; then
14256 rxvt_cv_uint32_t="unsigned long long" 9628 rxvt_cv_uint32_t="unsigned long long"
14257 else 9629 else
14258 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9630 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14259 fi 9631 fi
14260 fi 9632 fi
14274 else 9646 else
14275 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9647 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14276 fi 9648 fi
14277fi 9649fi
14278 9650
14279if test $ac_cv_sizeof_int_p -eq 8; then 9651if test "$ac_cv_sizeof_int_p" -eq 8; then
14280 rxvt_intp_define="#define intp_t int64_t" 9652 rxvt_intp_define="#define intp_t int64_t"
14281 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9653 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14282else 9654else
14283 if test $ac_cv_sizeof_int_p -eq 4; then 9655 if test "$ac_cv_sizeof_int_p" -eq 4; then
14284 rxvt_intp_define="#define intp_t int32_t" 9656 rxvt_intp_define="#define intp_t int32_t"
14285 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9657 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14286 else 9658 else
14287 if test $ac_cv_sizeof_int_p -eq 2; then 9659 if test "$ac_cv_sizeof_int_p" -eq 2; then
14288 rxvt_intp_define="#define intp_t int16_t" 9660 rxvt_intp_define="#define intp_t int16_t"
14289 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9661 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14290 else 9662 else
14291 rxvt_intp_define="#error set intp_t" 9663 rxvt_intp_define="#error set intp_t"
14292 rxvt_u_intp_define="#error set u_intp_t" 9664 rxvt_u_intp_define="#error set u_intp_t"
14333 grep -v '^ *+' conftest.er1 >conftest.err 9705 grep -v '^ *+' conftest.er1 >conftest.err
14334 rm -f conftest.er1 9706 rm -f conftest.er1
14335 cat conftest.err >&5 9707 cat conftest.err >&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } && 9709 (exit $ac_status); } &&
14338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9710 { ac_try='test -z "$ac_cxx_werror_flag"
9711 || test ! -s conftest.err'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5 9713 (eval $ac_try) 2>&5
14341 ac_status=$? 9714 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } && 9716 (exit $ac_status); }; } &&
14363#define RETSIGTYPE $ac_cv_type_signal 9736#define RETSIGTYPE $ac_cv_type_signal
14364_ACEOF 9737_ACEOF
14365 9738
14366 9739
14367 9740
14368case "$host_alias" in
14369 *ultrix) ac_cv_func_setsid='no' ;;
14370 *) break;;
14371esac
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388 9741
14389 9742
14390 9743
14391for ac_func in \ 9744for ac_func in \
14392 atexit \
14393 revoke \
14394 unsetenv \ 9745 unsetenv \
14395 setutent \ 9746 setutent \
14396 seteuid \
14397 setreuid \
14398 setsid \
14399 setpgrp \
14400 setpgid \
14401 openpty \
14402 _getpty \
14403 grantpt \
14404 unlockpt \
14405 isastream \
14406 on_exit \ 9747 on_exit \
14407 nanosleep \
14408 updwtmp \
14409 ttyslot \
14410 9748
14411do 9749do
14412as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14413echo "$as_me:$LINENO: checking for $ac_func" >&5 9751echo "$as_me:$LINENO: checking for $ac_func" >&5
14414echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14473 grep -v '^ *+' conftest.er1 >conftest.err 9811 grep -v '^ *+' conftest.er1 >conftest.err
14474 rm -f conftest.er1 9812 rm -f conftest.er1
14475 cat conftest.err >&5 9813 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } && 9815 (exit $ac_status); } &&
14478 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9816 { ac_try='test -z "$ac_cxx_werror_flag"
9817 || test ! -s conftest.err'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5 9819 (eval $ac_try) 2>&5
14481 ac_status=$? 9820 ac_status=$?
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; } && 9822 (exit $ac_status); }; } &&
14507fi 9846fi
14508done 9847done
14509 9848
14510 9849
14511 9850
9851support_utmp=yes
9852support_wtmp=yes
9853support_lastlog=yes
9854
9855# Check whether --enable-utmp or --disable-utmp was given.
9856if test "${enable_utmp+set}" = set; then
9857 enableval="$enable_utmp"
9858 if test x$enableval = xyes -o x$enableval = xno; then
9859 support_utmp=$enableval
9860 fi
9861fi;
9862
9863# Check whether --enable-wtmp or --disable-wtmp was given.
9864if test "${enable_wtmp+set}" = set; then
9865 enableval="$enable_wtmp"
9866 if test x$enableval = xyes -o x$enableval = xno; then
9867 support_wtmp=$enableval
9868 fi
9869fi;
9870
9871# Check whether --enable-lastlog or --disable-lastlog was given.
9872if test "${enable_lastlog+set}" = set; then
9873 enableval="$enable_lastlog"
9874 if test x$enableval = xyes -o x$enableval = xno; then
9875 support_lastlog=$enableval
9876 fi
9877fi;
9878
9879if test x$support_utmp = xyes; then
9880
9881cat >>confdefs.h <<\_ACEOF
9882#define UTMP_SUPPORT 1
9883_ACEOF
9884
9885fi
9886if test x$support_wtmp = xyes; then
9887
9888cat >>confdefs.h <<\_ACEOF
9889#define WTMP_SUPPORT 1
9890_ACEOF
9891
9892fi
9893if test x$support_lastlog = xyes; then
9894
9895cat >>confdefs.h <<\_ACEOF
9896#define LASTLOG_SUPPORT 1
9897_ACEOF
9898
9899fi
9900
9901
9902
9903
9904for ac_func in \
9905 ttyslot \
9906 updwtmp \
9907 updwtmpx \
9908
9909do
9910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9911echo "$as_me:$LINENO: checking for $ac_func" >&5
9912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9913if eval "test \"\${$as_ac_var+set}\" = set"; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9915else
9916 cat >conftest.$ac_ext <<_ACEOF
9917/* confdefs.h. */
9918_ACEOF
9919cat confdefs.h >>conftest.$ac_ext
9920cat >>conftest.$ac_ext <<_ACEOF
9921/* end confdefs.h. */
9922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9924#define $ac_func innocuous_$ac_func
9925
9926/* System header to define __stub macros and hopefully few prototypes,
9927 which can conflict with char $ac_func (); below.
9928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9929 <limits.h> exists even on freestanding compilers. */
9930
9931#ifdef __STDC__
9932# include <limits.h>
9933#else
9934# include <assert.h>
9935#endif
9936
9937#undef $ac_func
9938
9939/* Override any gcc2 internal prototype to avoid an error. */
9940#ifdef __cplusplus
9941extern "C"
9942{
9943#endif
9944/* We use char because int might match the return type of a gcc2
9945 builtin and then its argument prototype would still apply. */
9946char $ac_func ();
9947/* The GNU C library defines this for functions which it implements
9948 to always fail with ENOSYS. Some functions are actually named
9949 something starting with __ and the normal name is an alias. */
9950#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9951choke me
9952#else
9953char (*f) () = $ac_func;
9954#endif
9955#ifdef __cplusplus
9956}
9957#endif
9958
9959int
9960main ()
9961{
9962return f != $ac_func;
9963 ;
9964 return 0;
9965}
9966_ACEOF
9967rm -f conftest.$ac_objext conftest$ac_exeext
9968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_cxx_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 eval "$as_ac_var=yes"
9990else
9991 echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5
9993
9994eval "$as_ac_var=no"
9995fi
9996rm -f conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998fi
9999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10001if test `eval echo '${'$as_ac_var'}'` = yes; then
10002 cat >>confdefs.h <<_ACEOF
10003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10004_ACEOF
10005
10006fi
10007done
10008
10009
10010
10011
10012
10013for ac_header in \
10014 utmp.h \
10015 utmpx.h \
10016 lastlog.h \
10017
10018do
10019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10020if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo "$as_me:$LINENO: checking for $ac_header" >&5
10022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10023if eval "test \"\${$as_ac_Header+set}\" = set"; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025fi
10026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10028else
10029 # Is the header compilable?
10030echo "$as_me:$LINENO: checking $ac_header usability" >&5
10031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10032cat >conftest.$ac_ext <<_ACEOF
10033/* confdefs.h. */
10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h. */
10038$ac_includes_default
10039#include <$ac_header>
10040_ACEOF
10041rm -f conftest.$ac_objext
10042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_cxx_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_header_compiler=yes
10064else
10065 echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
10068ac_header_compiler=no
10069fi
10070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072echo "${ECHO_T}$ac_header_compiler" >&6
10073
10074# Is the header present?
10075echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10077cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h. */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h. */
10083#include <$ac_header>
10084_ACEOF
10085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } >/dev/null; then
10093 if test -s conftest.err; then
10094 ac_cpp_err=$ac_cxx_preproc_warn_flag
10095 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10096 else
10097 ac_cpp_err=
10098 fi
10099else
10100 ac_cpp_err=yes
10101fi
10102if test -z "$ac_cpp_err"; then
10103 ac_header_preproc=yes
10104else
10105 echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
10108 ac_header_preproc=no
10109fi
10110rm -f conftest.err conftest.$ac_ext
10111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112echo "${ECHO_T}$ac_header_preproc" >&6
10113
10114# So? What about this header?
10115case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10116 yes:no: )
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10121 ac_header_preproc=yes
10122 ;;
10123 no:yes:* )
10124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10127echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10131echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10136 (
10137 cat <<\_ASBOX
10138## ------------------------------------------ ##
10139## Report this to the AC_PACKAGE_NAME lists. ##
10140## ------------------------------------------ ##
10141_ASBOX
10142 ) |
10143 sed "s/^/$as_me: WARNING: /" >&2
10144 ;;
10145esac
10146echo "$as_me:$LINENO: checking for $ac_header" >&5
10147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10148if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151 eval "$as_ac_Header=\$ac_header_preproc"
10152fi
10153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10155
10156fi
10157if test `eval echo '${'$as_ac_Header'}'` = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10160_ACEOF
10161
10162fi
10163
10164done
10165
10166
10167
14512if test "${ac_cv_header_utmp_h+set}" = set; then 10168if test "${ac_cv_header_utmp_h+set}" = set; then
14513 echo "$as_me:$LINENO: checking for utmp.h" >&5 10169 echo "$as_me:$LINENO: checking for utmp.h" >&5
14514echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 10170echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14515if test "${ac_cv_header_utmp_h+set}" = set; then 10171if test "${ac_cv_header_utmp_h+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6 10172 echo $ECHO_N "(cached) $ECHO_C" >&6
14537 grep -v '^ *+' conftest.er1 >conftest.err 10193 grep -v '^ *+' conftest.er1 >conftest.err
14538 rm -f conftest.er1 10194 rm -f conftest.er1
14539 cat conftest.err >&5 10195 cat conftest.err >&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } && 10197 (exit $ac_status); } &&
14542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10198 { ac_try='test -z "$ac_cxx_werror_flag"
10199 || test ! -s conftest.err'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5 10201 (eval $ac_try) 2>&5
14545 ac_status=$? 10202 ac_status=$?
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; } && 10204 (exit $ac_status); }; } &&
14646 10303
14647fi 10304fi
14648if test $ac_cv_header_utmp_h = yes; then 10305if test $ac_cv_header_utmp_h = yes; then
14649 echo "$as_me:$LINENO: checking for struct utmp" >&5 10306 echo "$as_me:$LINENO: checking for struct utmp" >&5
14650echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10307echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14651if test "${rxvt_cv_struct_utmp+set}" = set; then 10308if test "${struct_utmp+set}" = set; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6 10309 echo $ECHO_N "(cached) $ECHO_C" >&6
14653else 10310else
14654 cat >conftest.$ac_ext <<_ACEOF 10311 cat >conftest.$ac_ext <<_ACEOF
14655/* confdefs.h. */ 10312/* confdefs.h. */
14656_ACEOF 10313_ACEOF
14657cat confdefs.h >>conftest.$ac_ext 10314cat confdefs.h >>conftest.$ac_ext
14658cat >>conftest.$ac_ext <<_ACEOF 10315cat >>conftest.$ac_ext <<_ACEOF
14659/* end confdefs.h. */ 10316/* end confdefs.h. */
14660#include <sys/types.h> 10317#include <sys/types.h>
14661#include <stdint.h>
14662#include <utmp.h> 10318#include <utmp.h>
14663int 10319int
14664main () 10320main ()
14665{ 10321{
14666struct utmp ut; 10322struct utmp ut;
14675 grep -v '^ *+' conftest.er1 >conftest.err 10331 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1 10332 rm -f conftest.er1
14677 cat conftest.err >&5 10333 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && 10335 (exit $ac_status); } &&
14680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10336 { ac_try='test -z "$ac_cxx_werror_flag"
10337 || test ! -s conftest.err'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5 10339 (eval $ac_try) 2>&5
14683 ac_status=$? 10340 ac_status=$?
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; } && 10342 (exit $ac_status); }; } &&
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5 10345 (eval $ac_try) 2>&5
14689 ac_status=$? 10346 ac_status=$?
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; }; then 10348 (exit $ac_status); }; }; then
14692 rxvt_cv_struct_utmp=yes 10349 struct_utmp=yes
14693else 10350else
14694 echo "$as_me: failed program was:" >&5 10351 echo "$as_me: failed program was:" >&5
14695sed 's/^/| /' conftest.$ac_ext >&5 10352sed 's/^/| /' conftest.$ac_ext >&5
14696 10353
14697rxvt_cv_struct_utmp=no 10354struct_utmp=no
14698fi 10355fi
14699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14700fi 10357fi
14701echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10358echo "$as_me:$LINENO: result: $struct_utmp" >&5
14702echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10359echo "${ECHO_T}$struct_utmp" >&6
14703if test x$rxvt_cv_struct_utmp = xyes; then 10360if test x$struct_utmp = xyes; then
14704 10361
14705cat >>confdefs.h <<\_ACEOF 10362cat >>confdefs.h <<\_ACEOF
14706#define HAVE_STRUCT_UTMP 1 10363#define HAVE_STRUCT_UTMP 1
14707_ACEOF 10364_ACEOF
14708 10365
14709fi 10366fi
14710 10367
14711 10368
14712echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10369echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14713echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10370echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14714if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10371if test "${struct_utmp_host+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6 10372 echo $ECHO_N "(cached) $ECHO_C" >&6
14716else 10373else
14717 cat >conftest.$ac_ext <<_ACEOF 10374 cat >conftest.$ac_ext <<_ACEOF
14718/* confdefs.h. */ 10375/* confdefs.h. */
14719_ACEOF 10376_ACEOF
14737 grep -v '^ *+' conftest.er1 >conftest.err 10394 grep -v '^ *+' conftest.er1 >conftest.err
14738 rm -f conftest.er1 10395 rm -f conftest.er1
14739 cat conftest.err >&5 10396 cat conftest.err >&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } && 10398 (exit $ac_status); } &&
14742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10399 { ac_try='test -z "$ac_cxx_werror_flag"
10400 || test ! -s conftest.err'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5 10402 (eval $ac_try) 2>&5
14745 ac_status=$? 10403 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; } && 10405 (exit $ac_status); }; } &&
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5 10408 (eval $ac_try) 2>&5
14751 ac_status=$? 10409 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then 10411 (exit $ac_status); }; }; then
14754 rxvt_cv_struct_utmp_host=yes 10412 struct_utmp_host=yes
14755else 10413else
14756 echo "$as_me: failed program was:" >&5 10414 echo "$as_me: failed program was:" >&5
14757sed 's/^/| /' conftest.$ac_ext >&5 10415sed 's/^/| /' conftest.$ac_ext >&5
14758 10416
14759rxvt_cv_struct_utmp_host=no 10417struct_utmp_host=no
14760fi 10418fi
14761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14762fi 10420fi
14763echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10421echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
14764echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10422echo "${ECHO_T}$struct_utmp_host" >&6
14765if test x$rxvt_cv_struct_utmp_host = xyes; then 10423if test x$struct_utmp_host = xyes; then
14766 10424
14767cat >>confdefs.h <<\_ACEOF 10425cat >>confdefs.h <<\_ACEOF
14768#define HAVE_UTMP_HOST 1 10426#define HAVE_UTMP_HOST 1
14769_ACEOF 10427_ACEOF
14770 10428
14771fi 10429fi
14772 10430
14773echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10431echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
14774echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10432echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
14775if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10433if test "${struct_utmp_pid+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6 10434 echo $ECHO_N "(cached) $ECHO_C" >&6
14777else 10435else
14778 cat >conftest.$ac_ext <<_ACEOF 10436 cat >conftest.$ac_ext <<_ACEOF
14779/* confdefs.h. */ 10437/* confdefs.h. */
14780_ACEOF 10438_ACEOF
14798 grep -v '^ *+' conftest.er1 >conftest.err 10456 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1 10457 rm -f conftest.er1
14800 cat conftest.err >&5 10458 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } && 10460 (exit $ac_status); } &&
14803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10461 { ac_try='test -z "$ac_cxx_werror_flag"
10462 || test ! -s conftest.err'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5 10464 (eval $ac_try) 2>&5
14806 ac_status=$? 10465 ac_status=$?
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; } && 10467 (exit $ac_status); }; } &&
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5 10470 (eval $ac_try) 2>&5
14812 ac_status=$? 10471 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then 10473 (exit $ac_status); }; }; then
14815 rxvt_cv_struct_utmp_pid=yes 10474 struct_utmp_pid=yes
14816else 10475else
14817 echo "$as_me: failed program was:" >&5 10476 echo "$as_me: failed program was:" >&5
14818sed 's/^/| /' conftest.$ac_ext >&5 10477sed 's/^/| /' conftest.$ac_ext >&5
14819 10478
14820rxvt_cv_struct_utmp_pid=no 10479struct_utmp_pid=no
14821fi 10480fi
14822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823fi 10482fi
14824echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10483echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
14825echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10484echo "${ECHO_T}$struct_utmp_pid" >&6
14826if test x$rxvt_cv_struct_utmp_pid = xyes; then 10485if test x$struct_utmp_pid = xyes; then
14827 10486
14828cat >>confdefs.h <<\_ACEOF 10487cat >>confdefs.h <<\_ACEOF
14829#define HAVE_UTMP_PID 1 10488#define HAVE_UTMP_PID 1
14830_ACEOF 10489_ACEOF
14831 10490
14863 grep -v '^ *+' conftest.er1 >conftest.err 10522 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1 10523 rm -f conftest.er1
14865 cat conftest.err >&5 10524 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } && 10526 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10527 { ac_try='test -z "$ac_cxx_werror_flag"
10528 || test ! -s conftest.err'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5 10530 (eval $ac_try) 2>&5
14871 ac_status=$? 10531 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; } && 10533 (exit $ac_status); }; } &&
14972 10632
14973fi 10633fi
14974if test $ac_cv_header_utmpx_h = yes; then 10634if test $ac_cv_header_utmpx_h = yes; then
14975 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10635 echo "$as_me:$LINENO: checking for struct utmpx" >&5
14976echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10636echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
14977if test "${rxvt_cv_struct_utmpx+set}" = set; then 10637if test "${struct_utmpx+set}" = set; then
14978 echo $ECHO_N "(cached) $ECHO_C" >&6 10638 echo $ECHO_N "(cached) $ECHO_C" >&6
14979else 10639else
14980 cat >conftest.$ac_ext <<_ACEOF 10640 cat >conftest.$ac_ext <<_ACEOF
14981/* confdefs.h. */ 10641/* confdefs.h. */
14982_ACEOF 10642_ACEOF
15000 grep -v '^ *+' conftest.er1 >conftest.err 10660 grep -v '^ *+' conftest.er1 >conftest.err
15001 rm -f conftest.er1 10661 rm -f conftest.er1
15002 cat conftest.err >&5 10662 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); } && 10664 (exit $ac_status); } &&
15005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10665 { ac_try='test -z "$ac_cxx_werror_flag"
10666 || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5 10668 (eval $ac_try) 2>&5
15008 ac_status=$? 10669 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } && 10671 (exit $ac_status); }; } &&
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5 10674 (eval $ac_try) 2>&5
15014 ac_status=$? 10675 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then 10677 (exit $ac_status); }; }; then
15017 rxvt_cv_struct_utmpx=yes 10678 struct_utmpx=yes
15018else 10679else
15019 echo "$as_me: failed program was:" >&5 10680 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5 10681sed 's/^/| /' conftest.$ac_ext >&5
15021 10682
15022rxvt_cv_struct_utmpx=no 10683struct_utmpx=no
15023fi 10684fi
15024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15025fi 10686fi
15026echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10687echo "$as_me:$LINENO: result: $struct_utmpx" >&5
15027echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10688echo "${ECHO_T}$struct_utmpx" >&6
15028if test x$rxvt_cv_struct_utmpx = xyes; then 10689if test x$struct_utmpx = xyes; then
15029 10690
15030cat >>confdefs.h <<\_ACEOF 10691cat >>confdefs.h <<\_ACEOF
15031#define HAVE_STRUCT_UTMPX 1 10692#define HAVE_STRUCT_UTMPX 1
15032_ACEOF 10693_ACEOF
15033 10694
15034fi 10695fi
15035 10696
15036 10697
15037echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10698echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
15038echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10699echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
15039if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10700if test "${struct_utmpx_host+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6 10701 echo $ECHO_N "(cached) $ECHO_C" >&6
15041else 10702else
15042 cat >conftest.$ac_ext <<_ACEOF 10703 cat >conftest.$ac_ext <<_ACEOF
15043/* confdefs.h. */ 10704/* confdefs.h. */
15044_ACEOF 10705_ACEOF
15062 grep -v '^ *+' conftest.er1 >conftest.err 10723 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1 10724 rm -f conftest.er1
15064 cat conftest.err >&5 10725 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } && 10727 (exit $ac_status); } &&
15067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10728 { ac_try='test -z "$ac_cxx_werror_flag"
10729 || test ! -s conftest.err'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5 10731 (eval $ac_try) 2>&5
15070 ac_status=$? 10732 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; } && 10734 (exit $ac_status); }; } &&
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5 10737 (eval $ac_try) 2>&5
15076 ac_status=$? 10738 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then 10740 (exit $ac_status); }; }; then
15079 rxvt_cv_struct_utmpx_host=yes 10741 struct_utmpx_host=yes
15080else 10742else
15081 echo "$as_me: failed program was:" >&5 10743 echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5 10744sed 's/^/| /' conftest.$ac_ext >&5
15083 10745
15084rxvt_cv_struct_utmpx_host=no 10746struct_utmpx_host=no
15085fi 10747fi
15086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15087fi 10749fi
15088echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 10750echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
15089echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 10751echo "${ECHO_T}$struct_utmpx_host" >&6
15090if test x$rxvt_cv_struct_utmpx_host = xyes; then 10752if test x$struct_utmpx_host = xyes; then
15091 10753
15092cat >>confdefs.h <<\_ACEOF 10754cat >>confdefs.h <<\_ACEOF
15093#define HAVE_UTMPX_HOST 1 10755#define HAVE_UTMPX_HOST 1
15094_ACEOF 10756_ACEOF
15095 10757
15096fi 10758fi
15097 10759
15098fi 10760echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10761echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10762if test "${struct_utmpx_session+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764else
10765 cat >conftest.$ac_ext <<_ACEOF
10766/* confdefs.h. */
10767_ACEOF
10768cat confdefs.h >>conftest.$ac_ext
10769cat >>conftest.$ac_ext <<_ACEOF
10770/* end confdefs.h. */
10771#include <sys/types.h>
10772#include <utmpx.h>
10773int
10774main ()
10775{
10776struct utmpx utx; utx.ut_session;
10777 ;
10778 return 0;
10779}
10780_ACEOF
10781rm -f conftest.$ac_objext
10782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10783 (eval $ac_compile) 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } &&
10790 { ac_try='test -z "$ac_cxx_werror_flag"
10791 || test ! -s conftest.err'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; } &&
10797 { ac_try='test -s conftest.$ac_objext'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }; then
10803 struct_utmpx_session=yes
10804else
10805 echo "$as_me: failed program was:" >&5
10806sed 's/^/| /' conftest.$ac_ext >&5
15099 10807
10808struct_utmpx_session=no
10809fi
10810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10811fi
10812echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10813echo "${ECHO_T}$struct_utmpx_session" >&6
10814if test x$struct_utmpx_session = xyes; then
10815
10816cat >>confdefs.h <<\_ACEOF
10817#define HAVE_UTMPX_SESSION 1
10818_ACEOF
10819
10820fi
10821
10822fi
15100 10823
15101 10824
15102echo "$as_me:$LINENO: checking for struct lastlog" >&5 10825echo "$as_me:$LINENO: checking for struct lastlog" >&5
15103echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10826echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15104if test "${rxvt_cv_struct_lastlog+set}" = set; then 10827if test "${struct_lastlog+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6 10828 echo $ECHO_N "(cached) $ECHO_C" >&6
15106else 10829else
15107 cat >conftest.$ac_ext <<_ACEOF 10830 cat >conftest.$ac_ext <<_ACEOF
15108/* confdefs.h. */ 10831/* confdefs.h. */
15109_ACEOF 10832_ACEOF
15131 grep -v '^ *+' conftest.er1 >conftest.err 10854 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1 10855 rm -f conftest.er1
15133 cat conftest.err >&5 10856 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && 10858 (exit $ac_status); } &&
15136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10859 { ac_try='test -z "$ac_cxx_werror_flag"
10860 || test ! -s conftest.err'
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5 10862 (eval $ac_try) 2>&5
15139 ac_status=$? 10863 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } && 10865 (exit $ac_status); }; } &&
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5 10868 (eval $ac_try) 2>&5
15145 ac_status=$? 10869 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then 10871 (exit $ac_status); }; }; then
15148 rxvt_cv_struct_lastlog=yes 10872 struct_lastlog=yes
15149else 10873else
15150 echo "$as_me: failed program was:" >&5 10874 echo "$as_me: failed program was:" >&5
15151sed 's/^/| /' conftest.$ac_ext >&5 10875sed 's/^/| /' conftest.$ac_ext >&5
15152 10876
15153rxvt_cv_struct_lastlog=no 10877struct_lastlog=no
15154fi 10878fi
15155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15156fi 10880fi
15157echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 10881echo "$as_me:$LINENO: result: $struct_lastlog" >&5
15158echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 10882echo "${ECHO_T}$struct_lastlog" >&6
15159if test x$rxvt_cv_struct_lastlog = xyes; then 10883if test x$struct_lastlog = xyes; then
15160 10884
15161cat >>confdefs.h <<\_ACEOF 10885cat >>confdefs.h <<\_ACEOF
15162#define HAVE_STRUCT_LASTLOG 1 10886#define HAVE_STRUCT_LASTLOG 1
15163_ACEOF 10887_ACEOF
15164 10888
15165fi 10889fi
15166 10890
15167echo "$as_me:$LINENO: checking for struct lastlogx" >&5 10891echo "$as_me:$LINENO: checking for struct lastlogx" >&5
15168echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 10892echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
15169if test "${rxvt_cv_struct_lastlogx+set}" = set; then 10893if test "${struct_lastlogx+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6 10894 echo $ECHO_N "(cached) $ECHO_C" >&6
15171else 10895else
15172 cat >conftest.$ac_ext <<_ACEOF 10896 cat >conftest.$ac_ext <<_ACEOF
15173/* confdefs.h. */ 10897/* confdefs.h. */
15174_ACEOF 10898_ACEOF
15196 grep -v '^ *+' conftest.er1 >conftest.err 10920 grep -v '^ *+' conftest.er1 >conftest.err
15197 rm -f conftest.er1 10921 rm -f conftest.er1
15198 cat conftest.err >&5 10922 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } && 10924 (exit $ac_status); } &&
15201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10925 { ac_try='test -z "$ac_cxx_werror_flag"
10926 || test ! -s conftest.err'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5 10928 (eval $ac_try) 2>&5
15204 ac_status=$? 10929 ac_status=$?
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } && 10931 (exit $ac_status); }; } &&
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5 10934 (eval $ac_try) 2>&5
15210 ac_status=$? 10935 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; }; then 10937 (exit $ac_status); }; }; then
15213 rxvt_cv_struct_lastlogx=yes 10938 struct_lastlogx=yes
15214else 10939else
15215 echo "$as_me: failed program was:" >&5 10940 echo "$as_me: failed program was:" >&5
15216sed 's/^/| /' conftest.$ac_ext >&5 10941sed 's/^/| /' conftest.$ac_ext >&5
15217 10942
15218rxvt_cv_struct_lastlogx=no 10943struct_lastlogx=no
15219fi 10944fi
15220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15221fi 10946fi
15222echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 10947echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
15223echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 10948echo "${ECHO_T}$struct_lastlogx" >&6
15224if test x$rxvt_cv_struct_lastlogx = xyes; then 10949if test x$struct_lastlogx = xyes; then
15225 10950
15226cat >>confdefs.h <<\_ACEOF 10951cat >>confdefs.h <<\_ACEOF
15227#define HAVE_STRUCT_LASTLOGX 1 10952#define HAVE_STRUCT_LASTLOGX 1
15228_ACEOF 10953_ACEOF
15229 10954
15230fi 10955fi
15231 10956
15232 10957
15233echo "$as_me:$LINENO: checking where utmp is located" >&5 10958echo "$as_me:$LINENO: checking where utmp is located" >&5
15234echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 10959echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
15235if test "${rxvt_cv_path_utmp+set}" = set; then 10960if test "${path_utmp+set}" = set; then
15236 echo $ECHO_N "(cached) $ECHO_C" >&6 10961 echo $ECHO_N "(cached) $ECHO_C" >&6
15237else 10962else
15238 if test "$cross_compiling" = yes; then 10963 if test "$cross_compiling" = yes; then
15239 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 10964 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
15240echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 10965echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
15241else 10966else
15242 cat >conftest.$ac_ext <<_ACEOF 10967 cat >conftest.$ac_ext <<_ACEOF
15243/* confdefs.h. */ 10968/* confdefs.h. */
15244_ACEOF 10969_ACEOF
15245cat confdefs.h >>conftest.$ac_ext 10970cat confdefs.h >>conftest.$ac_ext
15246cat >>conftest.$ac_ext <<_ACEOF 10971cat >>conftest.$ac_ext <<_ACEOF
15247/* end confdefs.h. */ 10972/* end confdefs.h. */
15248#include <stdio.h> 10973#include <stdio.h>
10974#include <stdlib.h>
15249#include <sys/types.h> 10975#include <sys/types.h>
15250#include <utmp.h> 10976#include <utmp.h>
15251#include <errno.h> 10977#include <errno.h>
15252main() 10978main()
15253{ 10979{
15281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282 (eval $ac_try) 2>&5 11008 (eval $ac_try) 2>&5
15283 ac_status=$? 11009 ac_status=$?
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); }; }; then 11011 (exit $ac_status); }; }; then
15286 rxvt_cv_path_utmp=`cat conftestval` 11012 path_utmp=`cat conftestval`
15287else 11013else
15288 echo "$as_me: program exited with status $ac_status" >&5 11014 echo "$as_me: program exited with status $ac_status" >&5
15289echo "$as_me: failed program was:" >&5 11015echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5 11016sed 's/^/| /' conftest.$ac_ext >&5
15291 11017
15292( exit $ac_status ) 11018( exit $ac_status )
15293rxvt_cv_path_utmp= 11019path_utmp=
15294fi 11020fi
15295rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15296fi 11022fi
15297fi 11023fi
15298echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 11024echo "$as_me:$LINENO: result: $path_utmp" >&5
15299echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 11025echo "${ECHO_T}$path_utmp" >&6
15300if test x$rxvt_cv_path_utmp != x; then 11026if test x$path_utmp != x; then
15301 11027
15302cat >>confdefs.h <<_ACEOF 11028cat >>confdefs.h <<_ACEOF
15303#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 11029#define UTMP_FILE "$path_utmp"
15304_ACEOF 11030_ACEOF
15305 11031
15306fi 11032fi
15307 11033
15308 11034
15309echo "$as_me:$LINENO: checking where utmpx is located" >&5 11035echo "$as_me:$LINENO: checking where utmpx is located" >&5
15310echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 11036echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
15311if test "${rxvt_cv_path_utmpx+set}" = set; then 11037if test "${path_utmpx+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6 11038 echo $ECHO_N "(cached) $ECHO_C" >&6
15313else 11039else
15314 if test "$cross_compiling" = yes; then 11040 if test "$cross_compiling" = yes; then
15315 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 11041 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
15316echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 11042echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
15317else 11043else
15318 cat >conftest.$ac_ext <<_ACEOF 11044 cat >conftest.$ac_ext <<_ACEOF
15319/* confdefs.h. */ 11045/* confdefs.h. */
15320_ACEOF 11046_ACEOF
15321cat confdefs.h >>conftest.$ac_ext 11047cat confdefs.h >>conftest.$ac_ext
15322cat >>conftest.$ac_ext <<_ACEOF 11048cat >>conftest.$ac_ext <<_ACEOF
15323/* end confdefs.h. */ 11049/* end confdefs.h. */
15324#include <stdio.h> 11050#include <stdio.h>
11051#include <stdlib.h>
15325#include <sys/types.h> 11052#include <sys/types.h>
15326#include <utmpx.h> 11053#include <utmpx.h>
15327#include <errno.h> 11054#include <errno.h>
15328#include <sys/stat.h> 11055#include <sys/stat.h>
15329#ifdef HAVE_STRING_H 11056#ifdef HAVE_STRING_H
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5 11095 (eval $ac_try) 2>&5
15369 ac_status=$? 11096 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then 11098 (exit $ac_status); }; }; then
15372 rxvt_cv_path_utmpx=`cat conftestval` 11099 path_utmpx=`cat conftestval`
15373else 11100else
15374 echo "$as_me: program exited with status $ac_status" >&5 11101 echo "$as_me: program exited with status $ac_status" >&5
15375echo "$as_me: failed program was:" >&5 11102echo "$as_me: failed program was:" >&5
15376sed 's/^/| /' conftest.$ac_ext >&5 11103sed 's/^/| /' conftest.$ac_ext >&5
15377 11104
15378( exit $ac_status ) 11105( exit $ac_status )
15379rxvt_cv_path_utmpx= 11106path_utmpx=
15380fi 11107fi
15381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11108rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15382fi 11109fi
15383fi 11110fi
15384echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 11111echo "$as_me:$LINENO: result: $path_utmpx" >&5
15385echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 11112echo "${ECHO_T}$path_utmpx" >&6
15386if test x$rxvt_cv_path_utmpx != x; then 11113if test x$path_utmpx != x; then
15387 11114
15388cat >>confdefs.h <<_ACEOF 11115cat >>confdefs.h <<_ACEOF
15389#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 11116#define UTMPX_FILE "$path_utmpx"
15390_ACEOF 11117_ACEOF
15391 11118
15392fi 11119fi
15393 11120
15394 11121
15395echo "$as_me:$LINENO: checking where wtmp is located" >&5 11122echo "$as_me:$LINENO: checking where wtmp is located" >&5
15396echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 11123echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15397if test "${rxvt_cv_path_wtmp+set}" = set; then 11124if test "${path_wtmp+set}" = set; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6 11125 echo $ECHO_N "(cached) $ECHO_C" >&6
15399else 11126else
15400 if test "$cross_compiling" = yes; then 11127 if test "$cross_compiling" = yes; then
15401 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11128 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
15402echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11129echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
15403else 11130else
15404 cat >conftest.$ac_ext <<_ACEOF 11131 cat >conftest.$ac_ext <<_ACEOF
15405/* confdefs.h. */ 11132/* confdefs.h. */
15406_ACEOF 11133_ACEOF
15407cat confdefs.h >>conftest.$ac_ext 11134cat confdefs.h >>conftest.$ac_ext
15408cat >>conftest.$ac_ext <<_ACEOF 11135cat >>conftest.$ac_ext <<_ACEOF
15409/* end confdefs.h. */ 11136/* end confdefs.h. */
15410#include <stdio.h> 11137#include <stdio.h>
11138#include <stdlib.h>
15411#include <sys/types.h> 11139#include <sys/types.h>
15412#ifdef HAVE_UTMP_H 11140#ifdef HAVE_UTMP_H
15413#include <utmp.h> 11141#include <utmp.h>
15414#endif 11142#endif
15415#include <errno.h> 11143#include <errno.h>
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5 11174 (eval $ac_try) 2>&5
15447 ac_status=$? 11175 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then 11177 (exit $ac_status); }; }; then
15450 rxvt_cv_path_wtmp=`cat conftestval` 11178 path_wtmp=`cat conftestval`
15451else 11179else
15452 echo "$as_me: program exited with status $ac_status" >&5 11180 echo "$as_me: program exited with status $ac_status" >&5
15453echo "$as_me: failed program was:" >&5 11181echo "$as_me: failed program was:" >&5
15454sed 's/^/| /' conftest.$ac_ext >&5 11182sed 's/^/| /' conftest.$ac_ext >&5
15455 11183
15456( exit $ac_status ) 11184( exit $ac_status )
15457rxvt_cv_path_wtmp= 11185path_wtmp=
15458fi 11186fi
15459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11187rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15460fi 11188fi
15461fi 11189fi
15462echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11190echo "$as_me:$LINENO: result: $path_wtmp" >&5
15463echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11191echo "${ECHO_T}$path_wtmp" >&6
15464if test x$rxvt_cv_path_wtmp != x; then 11192if test x$path_wtmp != x; then
15465 11193
15466cat >>confdefs.h <<_ACEOF 11194cat >>confdefs.h <<_ACEOF
15467#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11195#define WTMP_FILE "$path_wtmp"
15468_ACEOF 11196_ACEOF
15469 11197
15470fi 11198fi
15471 11199
15472echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11200echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15473echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11201echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15474if test "${rxvt_cv_path_wtmpx+set}" = set; then 11202if test "${path_wtmpx+set}" = set; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6 11203 echo $ECHO_N "(cached) $ECHO_C" >&6
15476else 11204else
15477 if test "$cross_compiling" = yes; then 11205 if test "$cross_compiling" = yes; then
15478 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11206 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
15479echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11207echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
15480else 11208else
15481 cat >conftest.$ac_ext <<_ACEOF 11209 cat >conftest.$ac_ext <<_ACEOF
15482/* confdefs.h. */ 11210/* confdefs.h. */
15483_ACEOF 11211_ACEOF
15484cat confdefs.h >>conftest.$ac_ext 11212cat confdefs.h >>conftest.$ac_ext
15485cat >>conftest.$ac_ext <<_ACEOF 11213cat >>conftest.$ac_ext <<_ACEOF
15486/* end confdefs.h. */ 11214/* end confdefs.h. */
15487#include <stdio.h> 11215#include <stdio.h>
11216#include <stdlib.h>
15488#ifdef HAVE_UTMPX_H 11217#ifdef HAVE_UTMPX_H
15489#include <utmpx.h> 11218#include <utmpx.h>
15490#endif 11219#endif
15491#include <errno.h> 11220#include <errno.h>
15492main() 11221main()
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5 11251 (eval $ac_try) 2>&5
15523 ac_status=$? 11252 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then 11254 (exit $ac_status); }; }; then
15526 rxvt_cv_path_wtmpx=`cat conftestval` 11255 path_wtmpx=`cat conftestval`
15527else 11256else
15528 echo "$as_me: program exited with status $ac_status" >&5 11257 echo "$as_me: program exited with status $ac_status" >&5
15529echo "$as_me: failed program was:" >&5 11258echo "$as_me: failed program was:" >&5
15530sed 's/^/| /' conftest.$ac_ext >&5 11259sed 's/^/| /' conftest.$ac_ext >&5
15531 11260
15532( exit $ac_status ) 11261( exit $ac_status )
15533rxvt_cv_path_wtmpx= 11262path_wtmpx=
15534fi 11263fi
15535rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11264rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15536fi 11265fi
15537fi 11266fi
15538echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11267echo "$as_me:$LINENO: result: $path_wtmpx" >&5
15539echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11268echo "${ECHO_T}$path_wtmpx" >&6
15540if test x$rxvt_cv_path_wtmpx != x; then 11269if test x$path_wtmpx != x; then
15541 11270
15542cat >>confdefs.h <<_ACEOF 11271cat >>confdefs.h <<_ACEOF
15543#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11272#define WTMPX_FILE "$path_wtmpx"
15544_ACEOF 11273_ACEOF
15545 11274
15546fi 11275fi
15547 11276
15548echo "$as_me:$LINENO: checking where lastlog is located" >&5 11277echo "$as_me:$LINENO: checking where lastlog is located" >&5
15549echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11278echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15550if test "${rxvt_cv_path_lastlog+set}" = set; then 11279if test "${path_lastlog+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6 11280 echo $ECHO_N "(cached) $ECHO_C" >&6
15552else 11281else
15553 if test "$cross_compiling" = yes; then 11282 if test "$cross_compiling" = yes; then
15554 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11283 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
15555echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11284echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
15556else 11285else
15557 cat >conftest.$ac_ext <<_ACEOF 11286 cat >conftest.$ac_ext <<_ACEOF
15558/* confdefs.h. */ 11287/* confdefs.h. */
15559_ACEOF 11288_ACEOF
15560cat confdefs.h >>conftest.$ac_ext 11289cat confdefs.h >>conftest.$ac_ext
15561cat >>conftest.$ac_ext <<_ACEOF 11290cat >>conftest.$ac_ext <<_ACEOF
15562/* end confdefs.h. */ 11291/* end confdefs.h. */
15563#include <stdio.h> 11292#include <stdio.h>
11293#include <stdlib.h>
15564#include <sys/types.h> 11294#include <sys/types.h>
15565#ifdef HAVE_UTMPX_H 11295#ifdef HAVE_UTMPX_H
15566#include <utmpx.h> 11296#include <utmpx.h>
15567#elif defined(HAVE_UTMP_H) 11297#elif defined(HAVE_UTMP_H)
15568#include <utmp.h> 11298#include <utmp.h>
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5 11333 (eval $ac_try) 2>&5
15604 ac_status=$? 11334 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then 11336 (exit $ac_status); }; }; then
15607 rxvt_cv_path_lastlog=`cat conftestval` 11337 path_lastlog=`cat conftestval`
15608else 11338else
15609 echo "$as_me: program exited with status $ac_status" >&5 11339 echo "$as_me: program exited with status $ac_status" >&5
15610echo "$as_me: failed program was:" >&5 11340echo "$as_me: failed program was:" >&5
15611sed 's/^/| /' conftest.$ac_ext >&5 11341sed 's/^/| /' conftest.$ac_ext >&5
15612 11342
15613( exit $ac_status ) 11343( exit $ac_status )
15614rxvt_cv_path_lastlog= 11344path_lastlog=
15615fi 11345fi
15616rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15617fi 11347fi
15618fi 11348fi
15619echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11349echo "$as_me:$LINENO: result: $path_lastlog" >&5
15620echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11350echo "${ECHO_T}$path_lastlog" >&6
15621if test x$rxvt_cv_path_lastlog != x; then 11351if test x$path_lastlog != x; then
15622 11352
15623cat >>confdefs.h <<_ACEOF 11353cat >>confdefs.h <<_ACEOF
15624#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11354#define LASTLOG_FILE "$path_lastlog"
15625_ACEOF 11355_ACEOF
15626 11356
15627 if test -d "$rxvt_cv_path_lastlog"; then 11357 if test -d "$path_lastlog"; then
15628 11358
15629cat >>confdefs.h <<\_ACEOF 11359cat >>confdefs.h <<\_ACEOF
15630#define LASTLOG_IS_DIR 1 11360#define LASTLOG_IS_DIR 1
15631_ACEOF 11361_ACEOF
15632 11362
15633 fi 11363 fi
15634fi 11364fi
15635 11365
15636echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11366echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15637echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11367echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15638if test "${rxvt_cv_path_lastlogx+set}" = set; then 11368if test "${path_lastlogx+set}" = set; then
15639 echo $ECHO_N "(cached) $ECHO_C" >&6 11369 echo $ECHO_N "(cached) $ECHO_C" >&6
15640else 11370else
15641 if test "$cross_compiling" = yes; then 11371 if test "$cross_compiling" = yes; then
15642 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11372 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
15643echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11373echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
15644else 11374else
15645 cat >conftest.$ac_ext <<_ACEOF 11375 cat >conftest.$ac_ext <<_ACEOF
15646/* confdefs.h. */ 11376/* confdefs.h. */
15647_ACEOF 11377_ACEOF
15648cat confdefs.h >>conftest.$ac_ext 11378cat confdefs.h >>conftest.$ac_ext
15649cat >>conftest.$ac_ext <<_ACEOF 11379cat >>conftest.$ac_ext <<_ACEOF
15650/* end confdefs.h. */ 11380/* end confdefs.h. */
15651#include <stdio.h> 11381#include <stdio.h>
11382#include <stdlib.h>
15652#ifdef HAVE_UTMPX_H 11383#ifdef HAVE_UTMPX_H
15653#include <utmpx.h> 11384#include <utmpx.h>
15654#endif 11385#endif
15655#include <errno.h> 11386#include <errno.h>
15656main() 11387main()
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5 11416 (eval $ac_try) 2>&5
15686 ac_status=$? 11417 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; }; then 11419 (exit $ac_status); }; }; then
15689 rxvt_cv_path_lastlogx=`cat conftestval` 11420 path_lastlogx=`cat conftestval`
15690else 11421else
15691 echo "$as_me: program exited with status $ac_status" >&5 11422 echo "$as_me: program exited with status $ac_status" >&5
15692echo "$as_me: failed program was:" >&5 11423echo "$as_me: failed program was:" >&5
15693sed 's/^/| /' conftest.$ac_ext >&5 11424sed 's/^/| /' conftest.$ac_ext >&5
15694 11425
15695( exit $ac_status ) 11426( exit $ac_status )
15696rxvt_cv_path_lastlogx= 11427path_lastlogx=
15697fi 11428fi
15698rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11429rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15699fi 11430fi
15700fi 11431fi
15701echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11432echo "$as_me:$LINENO: result: $path_lastlogx" >&5
15702echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11433echo "${ECHO_T}$path_lastlogx" >&6
15703if test x$rxvt_cv_path_lastlogx != x; then 11434if test x$path_lastlogx != x; then
15704 11435
15705cat >>confdefs.h <<_ACEOF 11436cat >>confdefs.h <<_ACEOF
15706#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11437#define LASTLOGX_FILE "$path_lastlogx"
15707_ACEOF 11438_ACEOF
15708 11439
15709fi 11440fi
11441
15710 11442
15711 11443
15712echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11444echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15713echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11445echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15714if test "${rxvt_cv_path_ttytab+set}" = set; then 11446if test "${rxvt_cv_path_ttytab+set}" = set; then
15755_ACEOF 11487_ACEOF
15756cat confdefs.h >>conftest.$ac_ext 11488cat confdefs.h >>conftest.$ac_ext
15757cat >>conftest.$ac_ext <<_ACEOF 11489cat >>conftest.$ac_ext <<_ACEOF
15758/* end confdefs.h. */ 11490/* end confdefs.h. */
15759#include <X11/Xlib.h> 11491#include <X11/Xlib.h>
11492#include <stdlib.h>
15760main() { 11493main() {
15761char *p; 11494char *p;
15762if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11495if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
15763exit (XSupportsLocale() ? 0 : 1); 11496exit (XSupportsLocale() ? 0 : 1);
15764else 11497else
15825 grep -v '^ *+' conftest.er1 >conftest.err 11558 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1 11559 rm -f conftest.er1
15827 cat conftest.err >&5 11560 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); } && 11562 (exit $ac_status); } &&
15830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11563 { ac_try='test -z "$ac_cxx_werror_flag"
11564 || test ! -s conftest.err'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5 11566 (eval $ac_try) 2>&5
15833 ac_status=$? 11567 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; } && 11569 (exit $ac_status); }; } &&
15888 grep -v '^ *+' conftest.er1 >conftest.err 11622 grep -v '^ *+' conftest.er1 >conftest.err
15889 rm -f conftest.er1 11623 rm -f conftest.er1
15890 cat conftest.err >&5 11624 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } && 11626 (exit $ac_status); } &&
15893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11627 { ac_try='test -z "$ac_cxx_werror_flag"
11628 || test ! -s conftest.err'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5 11630 (eval $ac_try) 2>&5
15896 ac_status=$? 11631 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; } && 11633 (exit $ac_status); }; } &&
15949 grep -v '^ *+' conftest.er1 >conftest.err 11684 grep -v '^ *+' conftest.er1 >conftest.err
15950 rm -f conftest.er1 11685 rm -f conftest.er1
15951 cat conftest.err >&5 11686 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } && 11688 (exit $ac_status); } &&
15954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11689 { ac_try='test -z "$ac_cxx_werror_flag"
11690 || test ! -s conftest.err'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5 11692 (eval $ac_try) 2>&5
15957 ac_status=$? 11693 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } && 11695 (exit $ac_status); }; } &&
15981#define HAVE_NL_LANGINFO 1 11717#define HAVE_NL_LANGINFO 1
15982_ACEOF 11718_ACEOF
15983 11719
15984fi 11720fi
15985 11721
15986echo "$as_me:$LINENO: checking for getpt" >&5 11722
15987echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11723echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
15988if test "${rxvt_cv_func_getpt+set}" = set; then 11724echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11725if test "${can_pass_fds+set}" = set; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6 11726 echo $ECHO_N "(cached) $ECHO_C" >&6
15990else 11727else
15991 cat >conftest.$ac_ext <<_ACEOF 11728 cat >conftest.$ac_ext <<_ACEOF
15992/* confdefs.h. */ 11729/* confdefs.h. */
15993_ACEOF 11730_ACEOF
15994cat confdefs.h >>conftest.$ac_ext 11731cat confdefs.h >>conftest.$ac_ext
15995cat >>conftest.$ac_ext <<_ACEOF 11732cat >>conftest.$ac_ext <<_ACEOF
15996/* end confdefs.h. */ 11733/* end confdefs.h. */
15997#define _GNU_SOURCE 11734
15998#ifdef HAVE_STDLIB_H 11735#include <cstddef> // broken bsds (is that redundant?) need this
15999# include <cstdlib> 11736#include <sys/types.h>
16000#endif 11737#include <sys/socket.h>
11738#include <sys/uio.h>
11739
16001int 11740int
16002main () 11741main ()
16003{ 11742{
16004(void)getpt(); 11743
11744{
11745 msghdr msg;
11746 iovec iov;
11747 char buf [100];
11748 char data = 0;
11749
11750 iov.iov_base = &data;
11751 iov.iov_len = 1;
11752
11753 msg.msg_iov = &iov;
11754 msg.msg_iovlen = 1;
11755 msg.msg_control = buf;
11756 msg.msg_controllen = sizeof buf;
11757
11758 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11759 cmsg->cmsg_level = SOL_SOCKET;
11760 cmsg->cmsg_type = SCM_RIGHTS;
11761 cmsg->cmsg_len = 100;
11762
11763 *(int *)CMSG_DATA (cmsg) = 5;
11764
11765 return sendmsg (3, &msg, 0);
11766}
11767
16005 ; 11768 ;
16006 return 0; 11769 return 0;
16007} 11770}
16008_ACEOF 11771_ACEOF
16009rm -f conftest.$ac_objext conftest$ac_exeext 11772rm -f conftest.$ac_objext conftest$ac_exeext
16013 grep -v '^ *+' conftest.er1 >conftest.err 11776 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1 11777 rm -f conftest.er1
16015 cat conftest.err >&5 11778 cat conftest.err >&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } && 11780 (exit $ac_status); } &&
16018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11781 { ac_try='test -z "$ac_cxx_werror_flag"
11782 || test ! -s conftest.err'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5 11784 (eval $ac_try) 2>&5
16021 ac_status=$? 11785 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; } && 11787 (exit $ac_status); }; } &&
16025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16026 (eval $ac_try) 2>&5 11790 (eval $ac_try) 2>&5
16027 ac_status=$? 11791 ac_status=$?
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; }; then 11793 (exit $ac_status); }; }; then
16030 rxvt_cv_func_getpt=yes 11794 can_pass_fds=yes
16031else 11795else
16032 echo "$as_me: failed program was:" >&5 11796 echo "$as_me: failed program was:" >&5
16033sed 's/^/| /' conftest.$ac_ext >&5 11797sed 's/^/| /' conftest.$ac_ext >&5
16034 11798
16035rxvt_cv_func_getpt=no 11799can_pass_fds=no
16036fi 11800fi
16037rm -f conftest.err conftest.$ac_objext \ 11801rm -f conftest.err conftest.$ac_objext \
16038 conftest$ac_exeext conftest.$ac_ext 11802 conftest$ac_exeext conftest.$ac_ext
16039fi 11803fi
16040echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 11804echo "$as_me:$LINENO: result: $can_pass_fds" >&5
16041echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 11805echo "${ECHO_T}$can_pass_fds" >&6
16042if test x$rxvt_cv_func_getpt = xyes; then 11806if test x$can_pass_fds = xyes; then
16043 11807
16044cat >>confdefs.h <<\_ACEOF 11808cat >>confdefs.h <<\_ACEOF
16045#define HAVE_GETPT 1 11809#define HAVE_UNIX_FDPASS 1
16046_ACEOF 11810_ACEOF
16047 11811
11812else
11813 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11814echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11815 { (exit 1); exit 1; }; }
16048fi 11816fi
16049 11817
16050echo "$as_me:$LINENO: checking for pty/tty type" >&5 11818
11819echo "$as_me:$LINENO: checking for broken XIM callback" >&5
16051echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 11820echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
16052if test "${rxvt_cv_ptys+set}" = set; then 11821if test "${rxvt_broken_ximcb+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6 11822 echo $ECHO_N "(cached) $ECHO_C" >&6
16054else 11823else
16055 if test x$ac_cv_func_openpty = xyes; then
16056 rxvt_cv_ptys=OPENPTY
16057 else if test x$ac_cv_func__getpty = xyes; then
16058 rxvt_cv_ptys=SGI4
16059 else if test -c /dev/ttyp20; then
16060 rxvt_cv_ptys=SCO
16061 else if test -c /dev/ptym/clone; then
16062 rxvt_cv_ptys=HPUX
16063 else if test x$rxvt_cv_func_getpt = xyes; then
16064 rxvt_cv_ptys=GLIBC
16065 else if test -c /dev/ptc -a -c /dev/pts; then
16066 rxvt_cv_ptys=PTC
16067 else if test -c /dev/ptc -a -d /dev/pts; then
16068 rxvt_cv_ptys=PTC
16069 else if test -c /dev/ptmx -a -c /dev/pts/0; then
16070 rxvt_cv_ptys=STREAMS
16071 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
16072 rxvt_cv_ptys=STREAMS
16073 else
16074 rxvt_cv_ptys=BSD
16075fi
16076fi
16077fi
16078fi
16079fi
16080fi
16081fi
16082fi
16083fi
16084
16085fi
16086echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16087echo "${ECHO_T}$rxvt_cv_ptys" >&6
16088
16089if test x$rxvt_cv_ptys = xOPENPTY; then
16090
16091cat >>confdefs.h <<\_ACEOF
16092#define PTYS_ARE_OPENPTY 1
16093_ACEOF
16094
16095fi
16096if test x$rxvt_cv_ptys = xSCO; then
16097
16098cat >>confdefs.h <<\_ACEOF
16099#define PTYS_ARE_NUMERIC 1
16100_ACEOF
16101
16102fi
16103if test x$rxvt_cv_ptys = xSTREAMS; then
16104
16105cat >>confdefs.h <<\_ACEOF
16106#define PTYS_ARE_PTMX 1
16107_ACEOF
16108
16109fi
16110if test x$rxvt_cv_ptys = xPTC; then
16111
16112cat >>confdefs.h <<\_ACEOF
16113#define PTYS_ARE_PTC 1
16114_ACEOF
16115
16116fi
16117if test x$rxvt_cv_ptys = xSGI4; then
16118
16119cat >>confdefs.h <<\_ACEOF
16120#define PTYS_ARE__GETPTY 1
16121_ACEOF
16122
16123fi
16124if test x$rxvt_cv_ptys = xCONVEX; then
16125
16126cat >>confdefs.h <<\_ACEOF
16127#define PTYS_ARE_GETPTY 1
16128_ACEOF
16129
16130fi
16131if test x$rxvt_cv_ptys = xGLIBC; then
16132
16133cat >>confdefs.h <<\_ACEOF
16134#define PTYS_ARE_GETPT 1
16135_ACEOF
16136
16137fi
16138if test x$rxvt_cv_ptys = xHPUX; then
16139
16140cat >>confdefs.h <<\_ACEOF
16141#define PTYS_ARE_CLONE 1
16142_ACEOF
16143
16144fi
16145if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16146
16147cat >>confdefs.h <<\_ACEOF
16148#define PTYS_ARE_SEARCHED 1
16149_ACEOF
16150
16151fi
16152
16153
16154{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
16155echo "$as_me: checking for pty ranges..." >&6;}
16156ptys=`echo /dev/pty??`
16157pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
16158pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
16159if test x$pch1 != x; then
16160
16161cat >>confdefs.h <<_ACEOF
16162#define PTYCHAR1 "$pch1"
16163_ACEOF
16164
16165fi
16166if test x$pch2 != x; then
16167
16168cat >>confdefs.h <<_ACEOF
16169#define PTYCHAR2 "$pch2"
16170_ACEOF
16171
16172fi
16173
16174echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16175echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16176if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178else
16179 ac_check_lib_save_LIBS=$LIBS
16180LIBS="-lxpg4 $LIBS"
16181cat >conftest.$ac_ext <<_ACEOF 11824 cat >conftest.$ac_ext <<_ACEOF
16182/* confdefs.h. */
16183_ACEOF
16184cat confdefs.h >>conftest.$ac_ext
16185cat >>conftest.$ac_ext <<_ACEOF
16186/* end confdefs.h. */
16187 11825
16188/* Override any gcc2 internal prototype to avoid an error. */ 11826#include <X11/Xlib.h>
16189#ifdef __cplusplus 11827
16190extern "C" 11828void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
16191#endif 11829
16192/* We use char because int might match the return type of a gcc2 11830void f() {
16193 builtin and then its argument prototype would still apply. */ 11831 XIMCallback cb;
16194char setlocale (); 11832 cb.callback = im_destroy_cb;
16195int
16196main ()
16197{
16198setlocale ();
16199 ;
16200 return 0;
16201} 11833}
11834
16202_ACEOF 11835_ACEOF
16203rm -f conftest.$ac_objext conftest$ac_exeext 11836rm -f conftest.$ac_objext
16204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16205 (eval $ac_link) 2>conftest.er1 11838 (eval $ac_compile) 2>conftest.er1
16206 ac_status=$? 11839 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err 11840 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1 11841 rm -f conftest.er1
16209 cat conftest.err >&5 11842 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && 11844 (exit $ac_status); } &&
16212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11845 { ac_try='test -z "$ac_cxx_werror_flag"
11846 || test ! -s conftest.err'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5 11848 (eval $ac_try) 2>&5
16215 ac_status=$? 11849 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; } && 11851 (exit $ac_status); }; } &&
16218 { ac_try='test -s conftest$ac_exeext' 11852 { ac_try='test -s conftest.$ac_objext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5 11854 (eval $ac_try) 2>&5
16221 ac_status=$? 11855 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then 11857 (exit $ac_status); }; }; then
16224 ac_cv_lib_xpg4_setlocale=yes 11858 rxvt_broken_ximcb=yes
16225else 11859else
16226 echo "$as_me: failed program was:" >&5 11860 echo "$as_me: failed program was:" >&5
16227sed 's/^/| /' conftest.$ac_ext >&5 11861sed 's/^/| /' conftest.$ac_ext >&5
16228 11862
16229ac_cv_lib_xpg4_setlocale=no 11863rxvt_broken_ximcb=no
16230fi 11864fi
16231rm -f conftest.err conftest.$ac_objext \ 11865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16232 conftest$ac_exeext conftest.$ac_ext
16233LIBS=$ac_check_lib_save_LIBS
16234fi 11866fi
16235echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 11867echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
16236echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 11868echo "${ECHO_T}$rxvt_broken_ximcb" >&6
16237if test $ac_cv_lib_xpg4_setlocale = yes; then
16238 LIBS="$LIBS -lxpg4"
16239fi
16240 11869
16241 11870if test x$rxvt_broken_ximcb = xyes; then
16242if test x$support_inheritpixmap = xyes; then
16243 11871
16244cat >>confdefs.h <<\_ACEOF 11872cat >>confdefs.h <<\_ACEOF
16245#define TRANSPARENT 1 11873#define XIMCB_PROTO_BROKEN 1
16246_ACEOF 11874_ACEOF
16247 11875
16248fi 11876fi
16249if test x$support_keepscrolling = xno; then
16250 11877
16251cat >>confdefs.h <<\_ACEOF
16252#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16253_ACEOF
16254 11878
16255fi
16256if test x$support_selectionscrolling = xyes; then
16257 11879
16258cat >>confdefs.h <<\_ACEOF
16259#define SELECTION_SCROLLING 1
16260_ACEOF
16261 11880
16262fi
16263if test x$support_menubar = xyes; then
16264 11881
16265cat >>confdefs.h <<\_ACEOF
16266#define MENUBAR 1
16267_ACEOF
16268 11882
16269fi
16270if test x$support_frills = xno; then
16271 11883
16272cat >>confdefs.h <<\_ACEOF 11884for ac_header in \
16273#define NO_FRILLS 1 11885 pty.h \
16274_ACEOF 11886 util.h \
11887 libutil.h \
11888 sys/ioctl.h \
11889 sys/stropts.h \
16275 11890
16276fi
16277if test x$support_linespace = xno; then
16278
16279cat >>confdefs.h <<\_ACEOF
16280#define NO_LINESPACE 1
16281_ACEOF
16282
16283fi
16284if test x$support_24bit = xyes; then
16285
16286cat >>confdefs.h <<\_ACEOF
16287#define PREFER_24BIT 1
16288_ACEOF
16289
16290fi
16291if test x$support_mousewheel = xyes; then
16292
16293cat >>confdefs.h <<\_ACEOF
16294#define MOUSE_WHEEL 1
16295_ACEOF
16296
16297fi
16298if test x$support_mouseslipwheel = xyes; then
16299
16300cat >>confdefs.h <<\_ACEOF
16301#define MOUSE_SLIP_WHEELING 1
16302_ACEOF
16303
16304fi
16305if test x$support_oldselection = xno; then
16306
16307cat >>confdefs.h <<\_ACEOF
16308#define NO_OLD_SELECTION 1
16309_ACEOF
16310
16311fi
16312if test x$support_utmp = xyes; then
16313
16314cat >>confdefs.h <<\_ACEOF
16315#define UTMP_SUPPORT 1
16316_ACEOF
16317
16318fi
16319if test x$support_wtmp = xyes; then
16320
16321cat >>confdefs.h <<\_ACEOF
16322#define WTMP_SUPPORT 1
16323_ACEOF
16324
16325fi
16326if test x$support_lastlog = xyes; then
16327
16328cat >>confdefs.h <<\_ACEOF
16329#define LASTLOG_SUPPORT 1
16330_ACEOF
16331
16332fi
16333if test x$support_xim = xyes -o x$multichar_set = xyes; then
16334 if test x$rxvt_cv_func_xlocale = xyes; then
16335
16336cat >>confdefs.h <<\_ACEOF
16337#define USE_XIM 1
16338_ACEOF
16339
16340 fi
16341fi
16342if test x$support_xpm = xyes; then
16343
16344cat >>confdefs.h <<\_ACEOF
16345#define XPM_BACKGROUND 1
16346_ACEOF
16347
16348fi
16349if test x$support_scroll_rxvt = xyes; then
16350
16351cat >>confdefs.h <<\_ACEOF
16352#define RXVT_SCROLLBAR 1
16353_ACEOF
16354
16355 scrolltypes="rxvt"
16356fi
16357if test x$support_scroll_next = xyes; then
16358
16359cat >>confdefs.h <<\_ACEOF
16360#define NEXT_SCROLLBAR 1
16361_ACEOF
16362
16363 scrolltypes="$scrolltypes next"
16364fi
16365if test x$support_scroll_xterm = xyes; then
16366
16367cat >>confdefs.h <<\_ACEOF
16368#define XTERM_SCROLLBAR 1
16369_ACEOF
16370
16371 scrolltypes="$scrolltypes xterm"
16372fi
16373if test x$support_scroll_plain = xyes; then
16374
16375cat >>confdefs.h <<\_ACEOF
16376#define PLAIN_SCROLLBAR 1
16377_ACEOF
16378
16379 scrolltypes="$scrolltypes plain"
16380fi
16381if test x$support_pointer_blank = xyes; then
16382
16383cat >>confdefs.h <<\_ACEOF
16384#define POINTER_BLANK 1
16385_ACEOF
16386
16387fi
16388if test x$support_cursor_blink = xyes; then
16389
16390cat >>confdefs.h <<\_ACEOF
16391#define CURSOR_BLINK 1
16392_ACEOF
16393
16394fi
16395if test x$support_text_blink = xyes; then
16396
16397cat >>confdefs.h <<\_ACEOF
16398#define TEXT_BLINK 1
16399_ACEOF
16400
16401fi
16402if test x$support_unicode3 = xyes; then
16403
16404cat >>confdefs.h <<\_ACEOF
16405#define UNICODE_3 1
16406_ACEOF
16407
16408fi
16409if test x$support_combining = xyes; then
16410
16411cat >>confdefs.h <<\_ACEOF
16412#define ENCODING_COMPOSE 1
16413_ACEOF
16414
16415fi
16416if test x$codesets = xall; then
16417 codesets=jp,jp-ext,kr,cn,cn-ext
16418fi
16419for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16420
16421cat >>confdefs.h <<\_ACEOF
16422#define ENCODING_EU 1
16423_ACEOF
16424
16425
16426cat >>confdefs.h <<\_ACEOF
16427#define ENCODING_VN 1
16428_ACEOF
16429
16430 case "$codeset" in
16431 JP )
16432cat >>confdefs.h <<\_ACEOF
16433#define ENCODING_JP 1
16434_ACEOF
16435 ;;
16436 JP_EXT )
16437cat >>confdefs.h <<\_ACEOF
16438#define ENCODING_JP_EXT 1
16439_ACEOF
16440 ;;
16441 KR )
16442cat >>confdefs.h <<\_ACEOF
16443#define ENCODING_KR 1
16444_ACEOF
16445 ;;
16446 CN )
16447cat >>confdefs.h <<\_ACEOF
16448#define ENCODING_CN 1
16449_ACEOF
16450 ;;
16451 CN_EXT )
16452cat >>confdefs.h <<\_ACEOF
16453#define ENCODING_CN_EXT 1
16454_ACEOF
16455 ;;
16456 esac
16457done
16458
16459
16460CFLAGS=${CFLAGS--O}
16461LDFLAGS=${LDFLAGS--O}
16462
16463CPPFLAGS="$CPPFLAGS"
16464
16465
16466
16467
16468
16469
16470
16471if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16472 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16473 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16474 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16475 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16476 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16477fi
16478
16479
16480
16481
16482
16483if test x$support_addstrings = xno; then
16484
16485cat >>confdefs.h <<\_ACEOF
16486#define NO_STRINGS 1
16487_ACEOF
16488
16489fi
16490
16491MCOMMON=./autoconf/Make.common
16492
16493
16494test "$program_prefix" != NONE &&
16495 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16496# Use a double $ so make ignores it.
16497test "$program_suffix" != NONE &&
16498 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16499# Double any \ or $. echo might interpret backslashes.
16500# By default was `s,x,x', remove it if useless.
16501cat <<\_ACEOF >conftest.sed
16502s/[\\$]/&&/g;s/;s,x,x,$//
16503_ACEOF
16504program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16505rm conftest.sed
16506
16507
16508
16509
16510
16511if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16512 include_stdint_h="#include <stdint.h>"
16513else
16514 include_stdint_h="/* #include <stdint.h> */"
16515fi
16516if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16517 include_stdarg_h="#include <cstdarg>"
16518else
16519 include_stdarg_h="/* #include <cstdarg> */"
16520fi
16521if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16522 include_stdlib_h="#include <cstdlib>"
16523else
16524 include_stdlib_h="/* #include <cstdlib> */"
16525fi
16526if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16527 include_unistd_h="#include <unistd.h>"
16528else
16529 include_unistd_h="/* #include <unistd.h> */"
16530fi
16531if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16532 include_string_h="#include <cstring>"
16533else
16534 include_string_h="/* #include <cstring> */"
16535fi
16536if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16537 include_fcntl_h="#include <fcntl.h>"
16538else
16539 include_fcntl_h="/* #include <fcntl.h> */"
16540fi
16541if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16542 include_util_h="#include <util.h>"
16543else
16544 include_util_h="/* #include <util.h> */"
16545fi
16546if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16547 include_assert_h="#include <assert.h>"
16548else
16549 include_assert_h="/* #include <assert.h> */"
16550fi
16551if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16552 include_sys_ioctl_h="#include <sys/ioctl.h>"
16553else
16554 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16555fi
16556if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16557 include_sys_select_h="#include <sys/select.h>"
16558else
16559 include_sys_select_h="/* #include <sys/select.h> */"
16560fi
16561if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16562 include_sys_strredir_h="#include <sys/strredir.h>"
16563else
16564 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16565fi
16566if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16567 include_sys_time_h="#include <sys/time.h>"
16568else
16569 include_sys_time_h="/* #include <sys/time.h> */"
16570fi
16571if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16572 include_time_h="#include <time.h>"
16573else
16574 include_time_h="/* #include <time.h> */"
16575fi
16576
16577if test x$support_xft = xyes; then
16578 LIBS="$LIBS `pkg-config xft --libs`"
16579 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16580 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16581
16582
16583for ac_header in X11/Xft/Xft.h
16584do 11891do
16585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16586if eval "test \"\${$as_ac_Header+set}\" = set"; then 11893if eval "test \"\${$as_ac_Header+set}\" = set"; then
16587 echo "$as_me:$LINENO: checking for $ac_header" >&5 11894 echo "$as_me:$LINENO: checking for $ac_header" >&5
16588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16611 grep -v '^ *+' conftest.er1 >conftest.err 11918 grep -v '^ *+' conftest.er1 >conftest.err
16612 rm -f conftest.er1 11919 rm -f conftest.er1
16613 cat conftest.err >&5 11920 cat conftest.err >&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } && 11922 (exit $ac_status); } &&
16616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11923 { ac_try='test -z "$ac_cxx_werror_flag"
11924 || test ! -s conftest.err'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5 11926 (eval $ac_try) 2>&5
16619 ac_status=$? 11927 ac_status=$?
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; } && 11929 (exit $ac_status); }; } &&
16722if test `eval echo '${'$as_ac_Header'}'` = yes; then 12030if test `eval echo '${'$as_ac_Header'}'` = yes; then
16723 cat >>confdefs.h <<_ACEOF 12031 cat >>confdefs.h <<_ACEOF
16724#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16725_ACEOF 12033_ACEOF
16726 12034
12035fi
12036
12037done
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049for ac_func in \
12050 revoke \
12051 _getpty \
12052 getpt \
12053 posix_openpt \
12054 isastream \
12055 setuid \
12056 seteuid \
12057 setreuid \
12058 setresuid \
12059
12060do
12061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12062echo "$as_me:$LINENO: checking for $ac_func" >&5
12063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12064if eval "test \"\${$as_ac_var+set}\" = set"; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066else
12067 cat >conftest.$ac_ext <<_ACEOF
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
12072/* end confdefs.h. */
12073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12075#define $ac_func innocuous_$ac_func
12076
12077/* System header to define __stub macros and hopefully few prototypes,
12078 which can conflict with char $ac_func (); below.
12079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12080 <limits.h> exists even on freestanding compilers. */
12081
12082#ifdef __STDC__
12083# include <limits.h>
12084#else
12085# include <assert.h>
12086#endif
12087
12088#undef $ac_func
12089
12090/* Override any gcc2 internal prototype to avoid an error. */
12091#ifdef __cplusplus
12092extern "C"
12093{
12094#endif
12095/* We use char because int might match the return type of a gcc2
12096 builtin and then its argument prototype would still apply. */
12097char $ac_func ();
12098/* The GNU C library defines this for functions which it implements
12099 to always fail with ENOSYS. Some functions are actually named
12100 something starting with __ and the normal name is an alias. */
12101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12102choke me
12103#else
12104char (*f) () = $ac_func;
12105#endif
12106#ifdef __cplusplus
12107}
12108#endif
12109
12110int
12111main ()
12112{
12113return f != $ac_func;
12114 ;
12115 return 0;
12116}
12117_ACEOF
12118rm -f conftest.$ac_objext conftest$ac_exeext
12119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120 (eval $ac_link) 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -z "$ac_cxx_werror_flag"
12128 || test ! -s conftest.err'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest$ac_exeext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 eval "$as_ac_var=yes"
12141else
12142 echo "$as_me: failed program was:" >&5
12143sed 's/^/| /' conftest.$ac_ext >&5
12144
12145eval "$as_ac_var=no"
12146fi
12147rm -f conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12149fi
12150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12152if test `eval echo '${'$as_ac_var'}'` = yes; then
12153 cat >>confdefs.h <<_ACEOF
12154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12155_ACEOF
12156
12157fi
12158done
12159
12160
12161have_clone=no
12162
12163echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12164echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12165if test -e /dev/ptym/clone; then
12166 echo "$as_me:$LINENO: result: yes" >&5
12167echo "${ECHO_T}yes" >&6
12168
12169cat >>confdefs.h <<\_ACEOF
12170#define HAVE_DEV_CLONE 1
12171_ACEOF
12172
12173
12174cat >>confdefs.h <<\_ACEOF
12175#define CLONE_DEVICE "/dev/ptym/clone"
12176_ACEOF
12177
12178 have_clone=yes
12179else
12180 echo "$as_me:$LINENO: result: no" >&5
12181echo "${ECHO_T}no" >&6
12182fi
12183
12184echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12185echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12186if test -e /dev/ptc; then
12187 echo "$as_me:$LINENO: result: yes" >&5
12188echo "${ECHO_T}yes" >&6
12189
12190cat >>confdefs.h <<\_ACEOF
12191#define HAVE_DEV_PTC 1
12192_ACEOF
12193
12194
12195cat >>confdefs.h <<\_ACEOF
12196#define CLONE_DEVICE "/dev/ptc"
12197_ACEOF
12198
12199 have_clone=yes
12200else
12201 echo "$as_me:$LINENO: result: no" >&5
12202echo "${ECHO_T}no" >&6
12203fi
12204
12205case $host in
12206 *-*-cygwin*)
12207 have_clone=yes
12208
12209cat >>confdefs.h <<\_ACEOF
12210#define CLONE_DEVICE "/dev/ptmx"
12211_ACEOF
12212
12213 ;;
12214 *)
12215 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12216echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12217 if test -e /dev/ptmx; then
12218 echo "$as_me:$LINENO: result: yes" >&5
12219echo "${ECHO_T}yes" >&6
12220
12221cat >>confdefs.h <<\_ACEOF
12222#define HAVE_DEV_PTMX 1
12223_ACEOF
12224
12225
12226cat >>confdefs.h <<\_ACEOF
12227#define CLONE_DEVICE "/dev/ptmx"
12228_ACEOF
12229
12230 have_clone=yes
12231 else
12232 echo "$as_me:$LINENO: result: no" >&5
12233echo "${ECHO_T}no" >&6
12234 fi
12235 ;;
12236esac
12237
12238if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12239 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12240echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
12247#include <stdlib.h>
12248int
12249main ()
12250{
12251grantpt(0);unlockpt(0);ptsname(0);
12252 ;
12253 return 0;
12254}
12255_ACEOF
12256rm -f conftest.$ac_objext conftest$ac_exeext
12257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_cxx_werror_flag"
12266 || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 unix98_pty=yes
12279
12280cat >>confdefs.h <<\_ACEOF
12281#define UNIX98_PTY 1
12282_ACEOF
12283
12284 echo "$as_me:$LINENO: result: yes" >&5
12285echo "${ECHO_T}yes" >&6
12286else
12287 echo "$as_me: failed program was:" >&5
12288sed 's/^/| /' conftest.$ac_ext >&5
12289
12290echo "$as_me:$LINENO: result: no" >&5
12291echo "${ECHO_T}no" >&6
12292fi
12293rm -f conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295fi
12296
12297if test -z "$unix98_pty"; then
12298
12299for ac_func in openpty
12300do
12301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12302echo "$as_me:$LINENO: checking for $ac_func" >&5
12303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12304if eval "test \"\${$as_ac_var+set}\" = set"; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307 cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
12313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12315#define $ac_func innocuous_$ac_func
12316
12317/* System header to define __stub macros and hopefully few prototypes,
12318 which can conflict with char $ac_func (); below.
12319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12320 <limits.h> exists even on freestanding compilers. */
12321
12322#ifdef __STDC__
12323# include <limits.h>
12324#else
12325# include <assert.h>
12326#endif
12327
12328#undef $ac_func
12329
12330/* Override any gcc2 internal prototype to avoid an error. */
12331#ifdef __cplusplus
12332extern "C"
12333{
12334#endif
12335/* We use char because int might match the return type of a gcc2
12336 builtin and then its argument prototype would still apply. */
12337char $ac_func ();
12338/* The GNU C library defines this for functions which it implements
12339 to always fail with ENOSYS. Some functions are actually named
12340 something starting with __ and the normal name is an alias. */
12341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12342choke me
12343#else
12344char (*f) () = $ac_func;
12345#endif
12346#ifdef __cplusplus
12347}
12348#endif
12349
12350int
12351main ()
12352{
12353return f != $ac_func;
12354 ;
12355 return 0;
12356}
12357_ACEOF
12358rm -f conftest.$ac_objext conftest$ac_exeext
12359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360 (eval $ac_link) 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_cxx_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest$ac_exeext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 eval "$as_ac_var=yes"
12381else
12382 echo "$as_me: failed program was:" >&5
12383sed 's/^/| /' conftest.$ac_ext >&5
12384
12385eval "$as_ac_var=no"
12386fi
12387rm -f conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
12389fi
12390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12392if test `eval echo '${'$as_ac_var'}'` = yes; then
12393 cat >>confdefs.h <<_ACEOF
12394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12395_ACEOF
12396
12397else
12398 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12399echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12400if test "${ac_cv_lib_util_openpty+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403 ac_check_lib_save_LIBS=$LIBS
12404LIBS="-lutil $LIBS"
12405cat >conftest.$ac_ext <<_ACEOF
12406/* confdefs.h. */
12407_ACEOF
12408cat confdefs.h >>conftest.$ac_ext
12409cat >>conftest.$ac_ext <<_ACEOF
12410/* end confdefs.h. */
12411
12412/* Override any gcc2 internal prototype to avoid an error. */
12413#ifdef __cplusplus
12414extern "C"
12415#endif
12416/* We use char because int might match the return type of a gcc2
12417 builtin and then its argument prototype would still apply. */
12418char openpty ();
12419int
12420main ()
12421{
12422openpty ();
12423 ;
12424 return 0;
12425}
12426_ACEOF
12427rm -f conftest.$ac_objext conftest$ac_exeext
12428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_cxx_werror_flag"
12437 || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_cv_lib_util_openpty=yes
12450else
12451 echo "$as_me: failed program was:" >&5
12452sed 's/^/| /' conftest.$ac_ext >&5
12453
12454ac_cv_lib_util_openpty=no
12455fi
12456rm -f conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458LIBS=$ac_check_lib_save_LIBS
12459fi
12460echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12461echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12462if test $ac_cv_lib_util_openpty = yes; then
12463 cat >>confdefs.h <<\_ACEOF
12464#define HAVE_OPENPTY 1
12465_ACEOF
12466 LIBS="$LIBS -lutil"
12467fi
12468
12469fi
12470done
12471
12472fi
12473
12474
12475
12476echo "$as_me:$LINENO: checking for tty group" >&5
12477echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12478if test "${tty_group+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12480else
12481 if test "$cross_compiling" = yes; then
12482 tty_group=no
12483else
12484 cat >conftest.$ac_ext <<_ACEOF
12485/* confdefs.h. */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
12489/* end confdefs.h. */
12490
12491#include <sys/types.h>
12492#include <sys/stat.h>
12493#include <unistd.h>
12494#include <grp.h>
12495
12496main()
12497{
12498 struct stat st;
12499 struct group *gr;
12500 char *tty;
12501 gr = getgrnam("tty");
12502 tty = ttyname(0);
12503 if (gr != 0
12504 && tty != 0
12505 && (stat(tty, &st)) == 0
12506 && st.st_gid == gr->gr_gid)
12507 return 0;
12508 else
12509 return 1;
12510}
12511_ACEOF
12512rm -f conftest$ac_exeext
12513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 tty_group=yes
12524else
12525 echo "$as_me: program exited with status $ac_status" >&5
12526echo "$as_me: failed program was:" >&5
12527sed 's/^/| /' conftest.$ac_ext >&5
12528
12529( exit $ac_status )
12530tty_group=no
12531fi
12532rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12533fi
12534fi
12535echo "$as_me:$LINENO: result: $tty_group" >&5
12536echo "${ECHO_T}$tty_group" >&6
12537if test x$tty_group = xyes; then
12538
12539cat >>confdefs.h <<\_ACEOF
12540#define TTY_GID_SUPPORT 1
12541_ACEOF
12542
12543fi
12544
12545if test x$support_xft = xyes; then
12546 # Extract the first word of "pkg-config", so it can be a program name with args.
12547set dummy pkg-config; ac_word=$2
12548echo "$as_me:$LINENO: checking for $ac_word" >&5
12549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12550if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552else
12553 case $PKG_CONFIG in
12554 [\\/]* | ?:[\\/]*)
12555 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12556 ;;
12557 *)
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559for as_dir in $PATH
12560do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12568 fi
12569done
12570done
12571
12572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12573 ;;
12574esac
12575fi
12576PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12577
12578if test -n "$PKG_CONFIG"; then
12579 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12580echo "${ECHO_T}$PKG_CONFIG" >&6
12581else
12582 echo "$as_me:$LINENO: result: no" >&5
12583echo "${ECHO_T}no" >&6
12584fi
12585
12586 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12587 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12588 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12589 else
12590 # Extract the first word of "xft-config", so it can be a program name with args.
12591set dummy xft-config; ac_word=$2
12592echo "$as_me:$LINENO: checking for $ac_word" >&5
12593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12594if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597 case $XFT_CONFIG in
12598 [\\/]* | ?:[\\/]*)
12599 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12600 ;;
12601 *)
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603for as_dir in $PATH
12604do
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
12608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12611 break 2
12612 fi
12613done
12614done
12615
12616 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12617 ;;
12618esac
12619fi
12620XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12621
12622if test -n "$XFT_CONFIG"; then
12623 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12624echo "${ECHO_T}$XFT_CONFIG" >&6
12625else
12626 echo "$as_me:$LINENO: result: no" >&5
12627echo "${ECHO_T}no" >&6
12628fi
12629
12630 if test $XFT_CONFIG != no; then
12631 LIBS="$LIBS `$XFT_CONFIG --libs`"
12632 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12633 fi
12634 fi
12635
12636
12637for ac_header in X11/Xft/Xft.h
12638do
12639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12640if eval "test \"\${$as_ac_Header+set}\" = set"; then
12641 echo "$as_me:$LINENO: checking for $ac_header" >&5
12642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12643if eval "test \"\${$as_ac_Header+set}\" = set"; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645fi
12646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12648else
12649 # Is the header compilable?
12650echo "$as_me:$LINENO: checking $ac_header usability" >&5
12651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12652cat >conftest.$ac_ext <<_ACEOF
12653/* confdefs.h. */
12654_ACEOF
12655cat confdefs.h >>conftest.$ac_ext
12656cat >>conftest.$ac_ext <<_ACEOF
12657/* end confdefs.h. */
12658$ac_includes_default
12659#include <$ac_header>
12660_ACEOF
12661rm -f conftest.$ac_objext
12662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_cxx_werror_flag"
12671 || test ! -s conftest.err'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest.$ac_objext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_header_compiler=yes
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688ac_header_compiler=no
12689fi
12690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12691echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12692echo "${ECHO_T}$ac_header_compiler" >&6
12693
12694# Is the header present?
12695echo "$as_me:$LINENO: checking $ac_header presence" >&5
12696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12697cat >conftest.$ac_ext <<_ACEOF
12698/* confdefs.h. */
12699_ACEOF
12700cat confdefs.h >>conftest.$ac_ext
12701cat >>conftest.$ac_ext <<_ACEOF
12702/* end confdefs.h. */
12703#include <$ac_header>
12704_ACEOF
12705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12707 ac_status=$?
12708 grep -v '^ *+' conftest.er1 >conftest.err
12709 rm -f conftest.er1
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } >/dev/null; then
12713 if test -s conftest.err; then
12714 ac_cpp_err=$ac_cxx_preproc_warn_flag
12715 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12716 else
12717 ac_cpp_err=
12718 fi
12719else
12720 ac_cpp_err=yes
12721fi
12722if test -z "$ac_cpp_err"; then
12723 ac_header_preproc=yes
12724else
12725 echo "$as_me: failed program was:" >&5
12726sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 ac_header_preproc=no
12729fi
12730rm -f conftest.err conftest.$ac_ext
12731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12732echo "${ECHO_T}$ac_header_preproc" >&6
12733
12734# So? What about this header?
12735case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12736 yes:no: )
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12741 ac_header_preproc=yes
12742 ;;
12743 no:yes:* )
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12756 (
12757 cat <<\_ASBOX
12758## ------------------------------------------ ##
12759## Report this to the AC_PACKAGE_NAME lists. ##
12760## ------------------------------------------ ##
12761_ASBOX
12762 ) |
12763 sed "s/^/$as_me: WARNING: /" >&2
12764 ;;
12765esac
12766echo "$as_me:$LINENO: checking for $ac_header" >&5
12767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12768if eval "test \"\${$as_ac_Header+set}\" = set"; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12770else
12771 eval "$as_ac_Header=\$ac_header_preproc"
12772fi
12773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12775
12776fi
12777if test `eval echo '${'$as_ac_Header'}'` = yes; then
12778 cat >>confdefs.h <<_ACEOF
12779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12780_ACEOF
12781
16727else 12782else
16728 support_xft=no 12783 support_xft=no
16729fi 12784fi
16730 12785
16731done 12786done
16767 grep -v '^ *+' conftest.er1 >conftest.err 12822 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1 12823 rm -f conftest.er1
16769 cat conftest.err >&5 12824 cat conftest.err >&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } && 12826 (exit $ac_status); } &&
16772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12827 { ac_try='test -z "$ac_cxx_werror_flag"
12828 || test ! -s conftest.err'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5 12830 (eval $ac_try) 2>&5
16775 ac_status=$? 12831 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; } && 12833 (exit $ac_status); }; } &&
16812#define XFT 1 12868#define XFT 1
16813_ACEOF 12869_ACEOF
16814 12870
16815 fi 12871 fi
16816fi 12872fi
12873if test x$support_styles = xyes; then
16817 12874
12875cat >>confdefs.h <<\_ACEOF
12876#define ENABLE_STYLES 1
12877_ACEOF
12878
12879fi
12880if test x$support_iso14755 = xyes; then
12881
12882cat >>confdefs.h <<\_ACEOF
12883#define ISO_14755 1
12884_ACEOF
12885
12886fi
12887if test x$support_8bitctrls = xyes; then
12888
12889cat >>confdefs.h <<\_ACEOF
12890#define EIGHT_BIT_CONTROLS 1
12891_ACEOF
12892
12893fi
12894if test x$support_fading = xyes; then
12895
12896cat >>confdefs.h <<\_ACEOF
12897#define OFF_FOCUS_FADING 1
12898_ACEOF
12899
12900fi
12901if test x$support_tinting = xyes; then
12902
12903cat >>confdefs.h <<\_ACEOF
12904#define TINTING 1
12905_ACEOF
12906
12907fi
12908if test x$support_inheritpixmap = xyes; then
12909
12910cat >>confdefs.h <<\_ACEOF
12911#define TRANSPARENT 1
12912_ACEOF
12913
12914fi
12915if test x$support_keepscrolling = xno; then
12916
12917cat >>confdefs.h <<\_ACEOF
12918#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12919_ACEOF
12920
12921fi
12922if test x$support_selectionscrolling = xyes; then
12923
12924cat >>confdefs.h <<\_ACEOF
12925#define SELECTION_SCROLLING 1
12926_ACEOF
12927
12928fi
12929if test x$support_frills = xyes; then
12930
12931cat >>confdefs.h <<\_ACEOF
12932#define ENABLE_FRILLS 1
12933_ACEOF
12934
12935fi
12936if test x$support_mousewheel = xyes; then
12937
12938cat >>confdefs.h <<\_ACEOF
12939#define MOUSE_WHEEL 1
12940_ACEOF
12941
12942fi
12943if test x$support_mouseslipwheel = xyes; then
12944
12945cat >>confdefs.h <<\_ACEOF
12946#define MOUSE_SLIP_WHEELING 1
12947_ACEOF
12948
12949fi
12950if test x$support_xim = xyes -o x$multichar_set = xyes; then
12951 if test x$rxvt_cv_func_xlocale = xyes; then
12952
12953cat >>confdefs.h <<\_ACEOF
12954#define USE_XIM 1
12955_ACEOF
12956
12957 fi
12958fi
12959if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
12960
12961cat >>confdefs.h <<\_ACEOF
12962#define XPM_BACKGROUND 1
12963_ACEOF
12964
12965fi
12966
12967if test x$support_afterimage = xyes; then
12968
12969cat >>confdefs.h <<\_ACEOF
12970#define HAVE_AFTERIMAGE 1
12971_ACEOF
12972
12973fi
12974
12975if test x$support_afterstep = xyes; then
12976
12977cat >>confdefs.h <<\_ACEOF
12978#define AFTERSTEP_INTEGRATION 1
12979_ACEOF
12980
12981fi
12982
12983if test x$support_scroll_rxvt = xyes; then
12984
12985cat >>confdefs.h <<\_ACEOF
12986#define RXVT_SCROLLBAR 1
12987_ACEOF
12988
12989 scrolltypes="rxvt"
12990fi
12991if test x$support_scroll_next = xyes; then
12992
12993cat >>confdefs.h <<\_ACEOF
12994#define NEXT_SCROLLBAR 1
12995_ACEOF
12996
12997 scrolltypes="$scrolltypes next"
12998fi
12999if test x$support_scroll_xterm = xyes; then
13000
13001cat >>confdefs.h <<\_ACEOF
13002#define XTERM_SCROLLBAR 1
13003_ACEOF
13004
13005 scrolltypes="$scrolltypes xterm"
13006fi
13007if test x$support_scroll_plain = xyes; then
13008
13009cat >>confdefs.h <<\_ACEOF
13010#define PLAIN_SCROLLBAR 1
13011_ACEOF
13012
13013 scrolltypes="$scrolltypes plain"
13014fi
13015if test x$support_pointer_blank = xyes; then
13016
13017cat >>confdefs.h <<\_ACEOF
13018#define POINTER_BLANK 1
13019_ACEOF
13020
13021fi
13022if test x$support_text_blink = xyes; then
13023
13024cat >>confdefs.h <<\_ACEOF
13025#define TEXT_BLINK 1
13026_ACEOF
13027
13028fi
13029if test x$support_unicode3 = xyes; then
13030
13031cat >>confdefs.h <<\_ACEOF
13032#define UNICODE_3 1
13033_ACEOF
13034
13035fi
13036if test x$support_combining = xyes; then
13037
13038cat >>confdefs.h <<\_ACEOF
13039#define ENABLE_COMBINING 1
13040_ACEOF
13041
13042fi
13043if test x$codesets = xall; then
13044 codesets=jp,jp-ext,kr,zh,zh-ext
13045fi
13046
13047cat >>confdefs.h <<\_ACEOF
13048#define ENCODING_EU 1
13049_ACEOF
13050
13051
13052cat >>confdefs.h <<\_ACEOF
13053#define ENCODING_VN 1
13054_ACEOF
13055
13056for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13057 case "$codeset" in
13058 JP )
13059cat >>confdefs.h <<\_ACEOF
13060#define ENCODING_JP 1
13061_ACEOF
13062 ;;
13063 JP_EXT )
13064cat >>confdefs.h <<\_ACEOF
13065#define ENCODING_JP_EXT 1
13066_ACEOF
13067 ;;
13068 KR )
13069cat >>confdefs.h <<\_ACEOF
13070#define ENCODING_KR 1
13071_ACEOF
13072 ;;
13073 ZH )
13074cat >>confdefs.h <<\_ACEOF
13075#define ENCODING_ZH 1
13076_ACEOF
13077 ;;
13078 ZH_EXT )
13079cat >>confdefs.h <<\_ACEOF
13080#define ENCODING_ZH_EXT 1
13081_ACEOF
13082 ;;
13083 esac
13084done
13085
13086IF_PERL=\#
13087if test x$support_perl = xyes; then
13088 # Extract the first word of "perl5", so it can be a program name with args.
13089set dummy perl5; ac_word=$2
13090echo "$as_me:$LINENO: checking for $ac_word" >&5
13091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13092if test "${ac_cv_path_PERL+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094else
13095 case $PERL in
13096 [\\/]* | ?:[\\/]*)
13097 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13098 ;;
13099 *)
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101for as_dir in $PATH
13102do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13107 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 break 2
13110 fi
13111done
13112done
13113
13114 ;;
13115esac
13116fi
13117PERL=$ac_cv_path_PERL
13118
13119if test -n "$PERL"; then
13120 echo "$as_me:$LINENO: result: $PERL" >&5
13121echo "${ECHO_T}$PERL" >&6
13122else
13123 echo "$as_me:$LINENO: result: no" >&5
13124echo "${ECHO_T}no" >&6
13125fi
13126
13127 # Extract the first word of "perl", so it can be a program name with args.
13128set dummy perl; ac_word=$2
13129echo "$as_me:$LINENO: checking for $ac_word" >&5
13130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13131if test "${ac_cv_path_PERL+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133else
13134 case $PERL in
13135 [\\/]* | ?:[\\/]*)
13136 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13137 ;;
13138 *)
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140for as_dir in $PATH
13141do
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13146 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13148 break 2
13149 fi
13150done
13151done
13152
13153 ;;
13154esac
13155fi
13156PERL=$ac_cv_path_PERL
13157
13158if test -n "$PERL"; then
13159 echo "$as_me:$LINENO: result: $PERL" >&5
13160echo "${ECHO_T}$PERL" >&6
13161else
13162 echo "$as_me:$LINENO: result: no" >&5
13163echo "${ECHO_T}no" >&6
13164fi
13165
13166
13167 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13168echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13169 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13170
13171 save_CXXFLAGS="$CXXFLAGS"
13172 save_LIBS="$LIBS"
13173 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13174 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13175 cat >conftest.$ac_ext <<_ACEOF
13176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
13181
13182#include <EXTERN.h>
13183#include <perl.h>
13184#include <XSUB.h>
13185
13186int
13187main ()
13188{
13189
13190 PerlInterpreter *perl = perl_alloc ();
13191
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196rm -f conftest.$ac_objext conftest$ac_exeext
13197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198 (eval $ac_link) 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_cxx_werror_flag"
13206 || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest$ac_exeext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 rxvt_perl_link=yes
13219else
13220 echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
13222
13223rxvt_perl_link=no
13224fi
13225rm -f conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227 CXXFLAGS="$save_CXXFLAGS"
13228 LIBS="$save_LIBS"
13229
13230 if test x$rxvt_perl_link = xyes; then
13231 echo "$as_me:$LINENO: result: ok" >&5
13232echo "${ECHO_T}ok" >&6
13233
13234cat >>confdefs.h <<\_ACEOF
13235#define ENABLE_PERL 1
13236_ACEOF
13237
13238 IF_PERL=
13239 PERL_O=rxvtperl.o
13240 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13241 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13242 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13243 else
13244 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13245echo "$as_me: error: no, unable to link" >&2;}
13246 { (exit 1); exit 1; }; }
13247 fi
13248 else
13249 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13250echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13251 { (exit 1); exit 1; }; }
13252 fi
13253fi
13254
13255
13256
13257
13258
13259
13260
13261if test x$support_perl = xyes; then
13262 support_frills=yes
13263fi
13264
13265
13266
13267
13268
13269
13270if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13271 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13272 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13273 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13274 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13275fi
13276
13277
13278
13279
13280
13281
13282
13283test "$program_prefix" != NONE &&
13284 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13285# Use a double $ so make ignores it.
13286test "$program_suffix" != NONE &&
13287 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13288# Double any \ or $. echo might interpret backslashes.
13289# By default was `s,x,x', remove it if useless.
13290cat <<\_ACEOF >conftest.sed
13291s/[\\$]/&&/g;s/;s,x,x,$//
13292_ACEOF
13293program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13294rm conftest.sed
13295
13296
13297
13298
13299
13300if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13301 include_stdint_h="#include <stdint.h>"
13302else
13303 include_stdint_h="/* #include <stdint.h> */"
13304fi
13305if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13306 include_stdarg_h="#include <cstdarg>"
13307else
13308 include_stdarg_h="/* #include <cstdarg> */"
13309fi
13310if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13311 include_stdlib_h="#include <cstdlib>"
13312else
13313 include_stdlib_h="/* #include <cstdlib> */"
13314fi
13315if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13316 include_unistd_h="#include <unistd.h>"
13317else
13318 include_unistd_h="/* #include <unistd.h> */"
13319fi
13320if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13321 include_string_h="#include <cstring>"
13322else
13323 include_string_h="/* #include <cstring> */"
13324fi
13325if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13326 include_fcntl_h="#include <fcntl.h>"
13327else
13328 include_fcntl_h="/* #include <fcntl.h> */"
13329fi
13330if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13331 include_util_h="#include <util.h>"
13332else
13333 include_util_h="/* #include <util.h> */"
13334fi
13335if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13336 include_assert_h="#include <assert.h>"
13337else
13338 include_assert_h="/* #include <assert.h> */"
13339fi
13340if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13341 include_sys_ioctl_h="#include <sys/ioctl.h>"
13342else
13343 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13344fi
13345if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13346 include_sys_select_h="#include <sys/select.h>"
13347else
13348 include_sys_select_h="/* #include <sys/select.h> */"
13349fi
13350if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13351 include_sys_strredir_h="#include <sys/strredir.h>"
13352else
13353 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13354fi
13355if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13356 include_sys_time_h="#include <sys/time.h>"
13357else
13358 include_sys_time_h="/* #include <sys/time.h> */"
13359fi
13360if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13361 include_time_h="#include <time.h>"
13362else
13363 include_time_h="/* #include <time.h> */"
13364fi
13365
16818 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 13366 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13367
16819cat >confcache <<\_ACEOF 13368cat >confcache <<\_ACEOF
16820# This file is a shell script that caches the results of configure 13369# This file is a shell script that caches the results of configure
16821# tests run on this system so they can be shared between configure 13370# tests run on this system so they can be shared between configure
16822# scripts and configure runs, see configure's option --config-cache. 13371# scripts and configure runs, see configure's option --config-cache.
16823# It is not useful on other systems. If it contains results you don't 13372# It is not useful on other systems. If it contains results you don't
17339cat >>$CONFIG_STATUS <<\_ACEOF 13888cat >>$CONFIG_STATUS <<\_ACEOF
17340for ac_config_target in $ac_config_targets 13889for ac_config_target in $ac_config_targets
17341do 13890do
17342 case "$ac_config_target" in 13891 case "$ac_config_target" in
17343 # Handling of arguments. 13892 # Handling of arguments.
17344 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17345 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13893 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17346 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13894 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17347 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13895 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17348 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17349 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13896 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17350 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17351 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13897 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
17352 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13898 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17353echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13899echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17354 { (exit 1); exit 1; }; };; 13900 { (exit 1); exit 1; }; };;
17355 esac 13901 esac
17356done 13902done
17431s,@DEFS@,$DEFS,;t t 13977s,@DEFS@,$DEFS,;t t
17432s,@ECHO_C@,$ECHO_C,;t t 13978s,@ECHO_C@,$ECHO_C,;t t
17433s,@ECHO_N@,$ECHO_N,;t t 13979s,@ECHO_N@,$ECHO_N,;t t
17434s,@ECHO_T@,$ECHO_T,;t t 13980s,@ECHO_T@,$ECHO_T,;t t
17435s,@LIBS@,$LIBS,;t t 13981s,@LIBS@,$LIBS,;t t
13982s,@build@,$build,;t t
13983s,@build_cpu@,$build_cpu,;t t
13984s,@build_vendor@,$build_vendor,;t t
13985s,@build_os@,$build_os,;t t
13986s,@host@,$host,;t t
13987s,@host_cpu@,$host_cpu,;t t
13988s,@host_vendor@,$host_vendor,;t t
13989s,@host_os@,$host_os,;t t
17436s,@VERSION@,$VERSION,;t t 13990s,@VERSION@,$VERSION,;t t
17437s,@DATE@,$DATE,;t t 13991s,@DATE@,$DATE,;t t
17438s,@LSMDATE@,$LSMDATE,;t t 13992s,@LSMDATE@,$LSMDATE,;t t
17439s,@LIBVERSION@,$LIBVERSION,;t t 13993s,@LIBVERSION@,$LIBVERSION,;t t
17440s,@CC@,$CC,;t t 13994s,@CC@,$CC,;t t
17449s,@ac_ct_CXX@,$ac_ct_CXX,;t t 14003s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17450s,@CPP@,$CPP,;t t 14004s,@CPP@,$CPP,;t t
17451s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14005s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17452s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14006s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17453s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14007s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17454s,@AWK@,$AWK,;t t 14008s,@EGREP@,$EGREP,;t t
17455s,@LINKER@,$LINKER,;t t 14009s,@LINKER@,$LINKER,;t t
17456s,@CXXCPP@,$CXXCPP,;t t 14010s,@CXXLIB@,$CXXLIB,;t t
17457s,@EGREP@,$EGREP,;t t
17458s,@build@,$build,;t t
17459s,@build_cpu@,$build_cpu,;t t
17460s,@build_vendor@,$build_vendor,;t t
17461s,@build_os@,$build_os,;t t
17462s,@host@,$host,;t t
17463s,@host_cpu@,$host_cpu,;t t
17464s,@host_vendor@,$host_vendor,;t t
17465s,@host_os@,$host_os,;t t
17466s,@LN_S@,$LN_S,;t t
17467s,@ECHO@,$ECHO,;t t
17468s,@RANLIB@,$RANLIB,;t t
17469s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17470s,@STRIP@,$STRIP,;t t
17471s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17472s,@LIBTOOL@,$LIBTOOL,;t t
17473s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 14011s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17474s,@RXVTNAME@,$RXVTNAME,;t t 14012s,@RXVTNAME@,$RXVTNAME,;t t
17475s,@MV@,$MV,;t t
17476s,@RM@,$RM,;t t
17477s,@CP@,$CP,;t t 14013s,@TIC@,$TIC,;t t
17478s,@LN@,$LN,;t t
17479s,@SED@,$SED,;t t
17480s,@CMP@,$CMP,;t t 14014s,@CXXCPP@,$CXXCPP,;t t
17481s,@TBL@,$TBL,;t t
17482s,@X_CFLAGS@,$X_CFLAGS,;t t 14015s,@X_CFLAGS@,$X_CFLAGS,;t t
17483s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 14016s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17484s,@X_LIBS@,$X_LIBS,;t t 14017s,@X_LIBS@,$X_LIBS,;t t
17485s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 14018s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14019s,@afterimage_config@,$afterimage_config,;t t
17486s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 14020s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17487s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t 14021s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
17488s,@XPM_LIBS@,$XPM_LIBS,;t t 14022s,@XPM_LIBS@,$XPM_LIBS,;t t
17489s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t 14023s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
17490s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 14024s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17491s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 14025s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17492s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 14026s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17493s,@rxvt_intp_define@,$rxvt_intp_define,;t t 14027s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17494s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 14028s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
17495s,@DEBUG@,$DEBUG,;t t 14029s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17496s,@DINCLUDE@,$DINCLUDE,;t t 14030s,@XFT_CONFIG@,$XFT_CONFIG,;t t
14031s,@PERL@,$PERL,;t t
17497s,@DLIB@,$DLIB,;t t 14032s,@PERLLIB@,$PERLLIB,;t t
14033s,@PERLFLAGS@,$PERLFLAGS,;t t
14034s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14035s,@IF_PERL@,$IF_PERL,;t t
14036s,@PERL_O@,$PERL_O,;t t
14037s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t
14038s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t
17498s,@include_stdint_h@,$include_stdint_h,;t t 14039s,@include_stdint_h@,$include_stdint_h,;t t
17499s,@include_stdarg_h@,$include_stdarg_h,;t t 14040s,@include_stdarg_h@,$include_stdarg_h,;t t
17500s,@include_stdlib_h@,$include_stdlib_h,;t t 14041s,@include_stdlib_h@,$include_stdlib_h,;t t
17501s,@include_unistd_h@,$include_unistd_h,;t t 14042s,@include_unistd_h@,$include_unistd_h,;t t
17502s,@include_string_h@,$include_string_h,;t t 14043s,@include_string_h@,$include_string_h,;t t
17508s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 14049s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17509s,@include_sys_time_h@,$include_sys_time_h,;t t 14050s,@include_sys_time_h@,$include_sys_time_h,;t t
17510s,@include_time_h@,$include_time_h,;t t 14051s,@include_time_h@,$include_time_h,;t t
17511s,@LIBOBJS@,$LIBOBJS,;t t 14052s,@LIBOBJS@,$LIBOBJS,;t t
17512s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14053s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17513/@MCOMMON@/r $MCOMMON
17514s,@MCOMMON@,,;t t
17515CEOF 14054CEOF
17516 14055
17517_ACEOF 14056_ACEOF
17518 14057
17519 cat >>$CONFIG_STATUS <<\_ACEOF 14058 cat >>$CONFIG_STATUS <<\_ACEOF
17676 case $INSTALL in 14215 case $INSTALL in
17677 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17678 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14217 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17679 esac 14218 esac
17680 14219
14220 if test x"$ac_file" != x-; then
14221 { echo "$as_me:$LINENO: creating $ac_file" >&5
14222echo "$as_me: creating $ac_file" >&6;}
14223 rm -f "$ac_file"
14224 fi
17681 # Let's still pretend it is `configure' which instantiates (i.e., don't 14225 # Let's still pretend it is `configure' which instantiates (i.e., don't
17682 # use $as_me), people would be surprised to read: 14226 # use $as_me), people would be surprised to read:
17683 # /* config.h. Generated by config.status. */ 14227 # /* config.h. Generated by config.status. */
17684 if test x"$ac_file" = x-; then 14228 if test x"$ac_file" = x-; then
17685 configure_input= 14229 configure_input=
17714echo "$as_me: error: cannot find input file: $f" >&2;} 14258echo "$as_me: error: cannot find input file: $f" >&2;}
17715 { (exit 1); exit 1; }; } 14259 { (exit 1); exit 1; }; }
17716 fi;; 14260 fi;;
17717 esac 14261 esac
17718 done` || { (exit 1); exit 1; } 14262 done` || { (exit 1); exit 1; }
17719
17720 if test x"$ac_file" != x-; then
17721 { echo "$as_me:$LINENO: creating $ac_file" >&5
17722echo "$as_me: creating $ac_file" >&6;}
17723 rm -f "$ac_file"
17724 fi
17725_ACEOF 14263_ACEOF
17726cat >>$CONFIG_STATUS <<_ACEOF 14264cat >>$CONFIG_STATUS <<_ACEOF
17727 sed "$ac_vpsub 14265 sed "$ac_vpsub
17728$extrasub 14266$extrasub
17729_ACEOF 14267_ACEOF
18009 14547
18010 Rxvt version: $VERSION : $DATE 14548 Rxvt version: $VERSION : $DATE
18011 Source code location: $srcdir 14549 Source code location: $srcdir
18012 Install path: ${prefix}/bin 14550 Install path: ${prefix}/bin
18013 Compiler: $CXX 14551 Compiler: $CXX
18014 Compiler flags: $CFLAGS 14552 Compiler flags: $CXXFLAGS
18015 Linker: $LINKER" 14553 Linker: $LINKER"
18016
18017if test "$MALLOC_TYPE" = S; then
18018 echo " malloc support: system default"
18019fi
18020if test "$MALLOC_TYPE" = G; then
18021 echo " malloc support: Gray Watson's dmalloc"
18022fi
18023if test "$MALLOC_TYPE" = D; then
18024 echo " malloc support: Doug Lea's malloc"
18025fi
18026 14554
18027if test x$support_xpm = xyes; then 14555if test x$support_xpm = xyes; then
18028 echo " Xpm library: $XPM_LIBS" 14556 echo " Xpm library: $XPM_LIBS"
18029fi 14557fi
18030 14558
18031echo " 14559if test x$support_afterimage = xyes; then
18032The following are set in config.h 14560 echo " AfterImage support: yes"
18033" 14561fi
18034echo " pty/tty type: "$rxvt_cv_ptys 14562
18035if test x$support_utmp != xyes; then 14563if test x$support_afterstep = xyes; then
18036 echo " utmp support: disabled 14564 echo " AfterStep integration: yes"
18037"
18038else
18039 echo " utmp support: enabled
18040 utmp file: $rxvt_cv_path_utmp
18041 utmpx file: $rxvt_cv_path_utmpx
18042 wtmp file: $rxvt_cv_path_wtmp
18043 wtmpx file: $rxvt_cv_path_wtmpx
18044 lastlog file: $rxvt_cv_path_lastlog
18045 ttys/ttytab file: $rxvt_cv_path_ttytab
18046"
18047fi 14565fi
14566
18048if test x$term != x; then 14567if test x$term != x; then
18049 echo " set TERM to: $term" 14568 echo " set TERM to: $term"
18050fi 14569fi
18051if test x$terminfo != x; then 14570if test x$terminfo != x; then
18052 echo " set TERMINFO to: $terminfo" 14571 echo " set TERMINFO to: $terminfo"
18055echo " resource class: $RESCLASS" 14574echo " resource class: $RESCLASS"
18056if test x$RESFALLBACK != x; then 14575if test x$RESFALLBACK != x; then
18057 echo " resource class fallback: $RESFALLBACK" 14576 echo " resource class fallback: $RESFALLBACK"
18058fi 14577fi
18059echo 14578echo
18060if test x$rxvt_cv_ptys = xUNKNOWN; then 14579echo " embedded perl: $support_perl"
18061 echo ".----------------------------------------------------------------." 14580echo
18062 echo ". WARNING: could not determine pty/tty type. Do not build until ."
18063 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
18064 echo ".----------------------------------------------------------------."
18065fi
18066if test x$support_xpm = xneedsmanualspecification; then 14581if test x$support_xpm = xneedsmanualspecification; then
18067 echo ".----------------------------------------------------------------." 14582 echo ".----------------------------------------------------------------."
18068 echo ". WARNING: --enable-xpm-background was specified however the ." 14583 echo ". WARNING: --enable-xpm-background was specified however the ."
18069 echo ". XPM includes files and libraries could not be found. ." 14584 echo ". XPM includes files and libraries could not be found. ."
18070 echo ". XPM backgrounds are now being DISABLED! If you want ." 14585 echo ". XPM backgrounds are now being DISABLED! If you want ."
18078 echo ". WARNING: --enable-xim was specified however the locale support ." 14593 echo ". WARNING: --enable-xim was specified however the locale support ."
18079 echo ". functions could not be found. ." 14594 echo ". functions could not be found. ."
18080 echo ". XIM is now being DISABLED! ." 14595 echo ". XIM is now being DISABLED! ."
18081 echo ".----------------------------------------------------------------." 14596 echo ".----------------------------------------------------------------."
18082fi 14597fi
14598
18083echo " *** Please check src/feature.h for further options *** 14599echo "*** Optionally check src/feature.h for further, rarely used options ***"
18084" 14600echo
14601

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines