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

Comparing rxvt-unicode/configure (file contents):
Revision 1.13 by pcg, Mon Mar 1 01:06:45 2004 UTC vs.
Revision 1.100 by root, Wed Feb 8 22:49:03 2006 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 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 RXVTNAME 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 INSTALL_LIBRXVT RXVTNAME MV CP LN SED ECHO CMP TIC CXXCPP 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 PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O 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'
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
872 --enable-combining enable composition of base and combining characters
1034 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
1035 --enable-utmp enable utmp (utmpx) support 874 --enable-font-styles enable bold and italic support
1036 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1037 --enable-lastlog enable lastlog support (requires --enable-utmp)
1038 --enable-xpm-background enable XPM background pixmaps 875 --enable-xpm-background enable XPM background pixmaps
1039 --enable-transparency enable transparent backgrounds 876 --enable-transparency enable transparent backgrounds
1040 --enable-menubar enable menubar 877 --enable-tinting enable tinting of transparent bg
878 --enable-fading enable colors fading when off focus
1041 --enable-rxvt-scroll enable rxvt style scrollbar 879 --enable-rxvt-scroll enable rxvt style scrollbar
1042 --enable-next-scroll enable NeXT style scrollbar 880 --enable-next-scroll enable NeXT style scrollbar
1043 --enable-xterm-scroll enable Xterm style scrollbar 881 --enable-xterm-scroll enable Xterm style scrollbar
882 --enable-perl enable embedded perl interpreter
1044 --enable-plain-scroll enable plain style scrollbar 883 --enable-plain-scroll enable plain style scrollbar
1045 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1046 --enable-xim XIM (X Input Method) protocol support 884 --enable-xim XIM (X Input Method) protocol support
1047 --enable-ttygid enable tty setting to group named "tty"
1048 --disable-backspace-key disable handling of the backspace key 885 --disable-backspace-key disable handling of the backspace key
1049 --disable-delete-key disable handling of the delete key 886 --disable-delete-key disable handling of the delete key
1050 --disable-resources disable all resource checking 887 --disable-resources disable all resource checking
1051 --enable-xgetdefault enable resources via X instead of our small version 888 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1052 --enable-strings enable some replacement system functions 889 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1053 --disable-swapscreen disable swap screen support 890 --disable-swapscreen disable swap screen support
891 --enable-iso14755 enable support for extended ISO 14755 modes
1054 --enable-frills enable support for rarely used features 892 --enable-frills enable support for rarely used features
1055 --enable-linespace enable support for linespace
1056 --enable-24bit enable support for using 24bit visuals if available
1057 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 893 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1058 --enable-selectionscrolling enable scrolling during selections 894 --enable-selectionscrolling enable scrolling during selections
1059 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 895 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1060 --enable-slipwheeling enable slip wheel scrolling (requires previous) 896 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1061 --enable-old-selection enable v2.20 (& prior) mouse selection style support
1062 --disable-new-selection disable new mouse (xterm) selection style support
1063 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1064 --enable-dlmalloc enable Doug Lea's malloc - for production use
1065 NOTE: enable only one malloc package
1066 --enable-smart-resize enable smart growth/shrink behaviour 897 --enable-smart-resize enable smart growth/shrink behaviour
1067 --enable-256-color enable 256-color support
1068 --enable-cursor-blink enable blinking cursor
1069 --enable-text-blink enable blinking text 898 --enable-text-blink enable blinking text
1070 --enable-pointer-blank enable pointer blank when typing or inactive pointer 899 --enable-pointer-blank enable pointer blank when typing or inactive pointer
900 --enable-utmp enable utmp (utmpx) support
901 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
902 --enable-lastlog enable lastlog support (requires --enable-utmp)
1071 903
1072Optional Packages: 904Optional Packages:
1073 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 905 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1074 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 906 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1075 --with-gnu-ld assume the C compiler uses GNU ld default=no
1076 --with-pic try to use only PIC/non-PIC objects default=use both
1077 --with-codesets=NAME,... compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) 907 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
908 --with-res-name=NAME use this as default resource name (default: urxvt)
909 --with-res-class=CLASS use this as the resource class (default: URxvt)
910 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1078 --with-term=NAME set the terminal to NAME (default \"rxvt\") 911 --with-term=NAME set the terminal to NAME (default: rxvt)
1079 --with-terminfo=PATH set the path to the terminfo tree to PATH 912 --with-terminfo=PATH set the path to the terminfo tree to PATH
1080 --with-x use the X Window System 913 --with-x use the X Window System
1081 --with-xpm-includes=DIR use XPM includes in DIR 914 --with-xpm-includes=DIR use XPM includes in DIR
1082 --with-xpm-library=DIR use XPM library in DIR 915 --with-xpm-library=DIR use XPM library in DIR
1083 --with-xpm use XPM 916 --with-xpm use XPM
1530 1363
1531 1364
1532 1365
1533 1366
1534 1367
1368
1369
1370 ac_config_headers="$ac_config_headers config.h:config.h.in"
1371
1372
1535ac_aux_dir= 1373ac_aux_dir=
1536for ac_dir in autoconf $srcdir/autoconf; do 1374for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1537 if test -f $ac_dir/install-sh; then 1375 if test -f $ac_dir/install-sh; then
1538 ac_aux_dir=$ac_dir 1376 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/install-sh -c" 1377 ac_install_sh="$ac_aux_dir/install-sh -c"
1540 break 1378 break
1541 elif test -f $ac_dir/install.sh; then 1379 elif test -f $ac_dir/install.sh; then
1547 ac_install_sh="$ac_aux_dir/shtool install -c" 1385 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 break 1386 break
1549 fi 1387 fi
1550done 1388done
1551if test -z "$ac_aux_dir"; then 1389if test -z "$ac_aux_dir"; then
1552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1390 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1553echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1391echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1554 { (exit 1); exit 1; }; } 1392 { (exit 1); exit 1; }; }
1555fi 1393fi
1556ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1394ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1395ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1396ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559 1397
1560 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1398# Make sure we can run config.sub.
1399$ac_config_sub sun4 >/dev/null 2>&1 ||
1400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402 { (exit 1); exit 1; }; }
1403
1404echo "$as_me:$LINENO: checking build system type" >&5
1405echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406if test "${ac_cv_build+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 ac_cv_build_alias=$build_alias
1410test -z "$ac_cv_build_alias" &&
1411 ac_cv_build_alias=`$ac_config_guess`
1412test -z "$ac_cv_build_alias" &&
1413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415 { (exit 1); exit 1; }; }
1416ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1420
1421fi
1422echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423echo "${ECHO_T}$ac_cv_build" >&6
1424build=$ac_cv_build
1425build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430echo "$as_me:$LINENO: checking host system type" >&5
1431echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432if test "${ac_cv_host+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434else
1435 ac_cv_host_alias=$host_alias
1436test -z "$ac_cv_host_alias" &&
1437 ac_cv_host_alias=$ac_cv_build_alias
1438ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1442
1443fi
1444echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445echo "${ECHO_T}$ac_cv_host" >&6
1446host=$ac_cv_host
1447host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
1561 1451
1562 1452
1563VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1453VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1564DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1454DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1565LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1566LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1567echo "" 1455echo ""
1568echo "configuring for rxvt $VERSION" 1456echo "configuring for rxvt $VERSION"
1569echo "" 1457echo ""
1458
1459orig_CXXFLAGS="$CXXFLAGS"
1570 1460
1571 1461
1572ac_ext=c 1462ac_ext=c
1573ac_cpp='$CPP $CPPFLAGS' 1463ac_cpp='$CPP $CPPFLAGS'
1574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 3045
3156test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3046test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3157 3047
3158test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3048test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3159 3049
3160for ac_prog in gawk mawk nawk awk
3161do
3162 # Extract the first word of "$ac_prog", so it can be a program name with args.
3163set dummy $ac_prog; ac_word=$2
3164echo "$as_me:$LINENO: checking for $ac_word" >&5
3165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166if test "${ac_cv_prog_AWK+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168else
3169 if test -n "$AWK"; then
3170 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_AWK="$ac_prog"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183done
3184done
3185 3050
3186fi
3187fi
3188AWK=$ac_cv_prog_AWK
3189if test -n "$AWK"; then
3190 echo "$as_me:$LINENO: result: $AWK" >&5
3191echo "${ECHO_T}$AWK" >&6
3192else
3193 echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6
3195fi
3196
3197 test -n "$AWK" && break
3198done
3199
3200
3201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
3207
3208LINKER="$CXX"
3209if test x$GCC = xyes && test x$GXX = xyes; then
3210
3211echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3212echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3213if test "${ac_cv_lib_supcpp_main+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216 ac_check_lib_save_LIBS=$LIBS
3217LIBS="-lsupc++ $LIBS"
3218cat >conftest.$ac_ext <<_ACEOF
3219/* confdefs.h. */
3220_ACEOF
3221cat confdefs.h >>conftest.$ac_ext
3222cat >>conftest.$ac_ext <<_ACEOF
3223/* end confdefs.h. */
3224
3225
3226int
3227main ()
3228{
3229main ();
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234rm -f conftest.$ac_objext conftest$ac_exeext
3235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3236 (eval $ac_link) 2>conftest.er1
3237 ac_status=$?
3238 grep -v '^ *+' conftest.er1 >conftest.err
3239 rm -f conftest.er1
3240 cat conftest.err >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest$ac_exeext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 (eval $ac_try) 2>&5
3252 ac_status=$?
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3255 ac_cv_lib_supcpp_main=yes
3256else
3257 echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260ac_cv_lib_supcpp_main=no
3261fi
3262rm -f conftest.err conftest.$ac_objext \
3263 conftest$ac_exeext conftest.$ac_ext
3264LIBS=$ac_check_lib_save_LIBS
3265fi
3266echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3267echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3268if test $ac_cv_lib_supcpp_main = yes; then
3269
3270 LINKER="$CC"
3271 LIBS="$LIBS -lsupc++"
3272
3273fi
3274
3275fi
3276LINKER=$LINKER
3277
3278
3279CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3280
3281if test x$GXX = xyes; then
3282 CXXFLAGS="$CXXFLAGS -fno-exceptions"
3283fi
3284
3285ac_ext=cc
3286ac_cpp='$CXXCPP $CPPFLAGS'
3287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3290
3291
3292
3293ac_ext=cc
3294ac_cpp='$CXXCPP $CPPFLAGS'
3295ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3298echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3299echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3300if test -z "$CXXCPP"; then
3301 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304 # Double quotes because CXXCPP needs to be expanded
3305 for CXXCPP in "$CXX -E" "/lib/cpp"
3306 do
3307 ac_preproc_ok=false
3308for ac_cxx_preproc_warn_flag in '' yes
3309do
3310 # Use a header file that comes with gcc, so configuring glibc
3311 # with a fresh cross-compiler works.
3312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3313 # <limits.h> exists even on freestanding compilers.
3314 # On the NeXT, cc -E runs the code through the compiler's parser,
3315 # not just through cpp. "Syntax error" is here to catch this case.
3316 cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h. */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h. */
3322#ifdef __STDC__
3323# include <limits.h>
3324#else
3325# include <assert.h>
3326#endif
3327 Syntax error
3328_ACEOF
3329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } >/dev/null; then
3337 if test -s conftest.err; then
3338 ac_cpp_err=$ac_cxx_preproc_warn_flag
3339 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3340 else
3341 ac_cpp_err=
3342 fi
3343else
3344 ac_cpp_err=yes
3345fi
3346if test -z "$ac_cpp_err"; then
3347 :
3348else
3349 echo "$as_me: failed program was:" >&5
3350sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 # Broken: fails on valid input.
3353continue
3354fi
3355rm -f conftest.err conftest.$ac_ext
3356
3357 # OK, works on sane cases. Now check whether non-existent headers
3358 # can be detected and how.
3359 cat >conftest.$ac_ext <<_ACEOF
3360/* confdefs.h. */
3361_ACEOF
3362cat confdefs.h >>conftest.$ac_ext
3363cat >>conftest.$ac_ext <<_ACEOF
3364/* end confdefs.h. */
3365#include <ac_nonexistent.h>
3366_ACEOF
3367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } >/dev/null; then
3375 if test -s conftest.err; then
3376 ac_cpp_err=$ac_cxx_preproc_warn_flag
3377 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3378 else
3379 ac_cpp_err=
3380 fi
3381else
3382 ac_cpp_err=yes
3383fi
3384if test -z "$ac_cpp_err"; then
3385 # Broken: success on invalid input.
3386continue
3387else
3388 echo "$as_me: failed program was:" >&5
3389sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 # Passes both tests.
3392ac_preproc_ok=:
3393break
3394fi
3395rm -f conftest.err conftest.$ac_ext
3396
3397done
3398# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3399rm -f conftest.err conftest.$ac_ext
3400if $ac_preproc_ok; then
3401 break
3402fi
3403
3404 done
3405 ac_cv_prog_CXXCPP=$CXXCPP
3406
3407fi
3408 CXXCPP=$ac_cv_prog_CXXCPP
3409else
3410 ac_cv_prog_CXXCPP=$CXXCPP
3411fi
3412echo "$as_me:$LINENO: result: $CXXCPP" >&5
3413echo "${ECHO_T}$CXXCPP" >&6
3414ac_preproc_ok=false
3415for ac_cxx_preproc_warn_flag in '' yes
3416do
3417 # Use a header file that comes with gcc, so configuring glibc
3418 # with a fresh cross-compiler works.
3419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3420 # <limits.h> exists even on freestanding compilers.
3421 # On the NeXT, cc -E runs the code through the compiler's parser,
3422 # not just through cpp. "Syntax error" is here to catch this case.
3423 cat >conftest.$ac_ext <<_ACEOF
3424/* confdefs.h. */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h. */
3429#ifdef __STDC__
3430# include <limits.h>
3431#else
3432# include <assert.h>
3433#endif
3434 Syntax error
3435_ACEOF
3436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } >/dev/null; then
3444 if test -s conftest.err; then
3445 ac_cpp_err=$ac_cxx_preproc_warn_flag
3446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3447 else
3448 ac_cpp_err=
3449 fi
3450else
3451 ac_cpp_err=yes
3452fi
3453if test -z "$ac_cpp_err"; then
3454 :
3455else
3456 echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 # Broken: fails on valid input.
3460continue
3461fi
3462rm -f conftest.err conftest.$ac_ext
3463
3464 # OK, works on sane cases. Now check whether non-existent headers
3465 # can be detected and how.
3466 cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h. */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h. */
3472#include <ac_nonexistent.h>
3473_ACEOF
3474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3476 ac_status=$?
3477 grep -v '^ *+' conftest.er1 >conftest.err
3478 rm -f conftest.er1
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } >/dev/null; then
3482 if test -s conftest.err; then
3483 ac_cpp_err=$ac_cxx_preproc_warn_flag
3484 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3485 else
3486 ac_cpp_err=
3487 fi
3488else
3489 ac_cpp_err=yes
3490fi
3491if test -z "$ac_cpp_err"; then
3492 # Broken: success on invalid input.
3493continue
3494else
3495 echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 # Passes both tests.
3499ac_preproc_ok=:
3500break
3501fi
3502rm -f conftest.err conftest.$ac_ext
3503
3504done
3505# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3506rm -f conftest.err conftest.$ac_ext
3507if $ac_preproc_ok; then
3508 :
3509else
3510 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3511See \`config.log' for more details." >&5
3512echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3513See \`config.log' for more details." >&2;}
3514 { (exit 1); exit 1; }; }
3515fi
3516
3517ac_ext=cc
3518ac_cpp='$CXXCPP $CPPFLAGS'
3519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3522 3051
3523 3052
3524echo "$as_me:$LINENO: checking for egrep" >&5 3053echo "$as_me:$LINENO: checking for egrep" >&5
3525echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3054echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3526if test "${ac_cv_prog_egrep+set}" = set; then 3055if test "${ac_cv_prog_egrep+set}" = set; then
3601 grep -v '^ *+' conftest.er1 >conftest.err 3130 grep -v '^ *+' conftest.er1 >conftest.err
3602 rm -f conftest.er1 3131 rm -f conftest.er1
3603 cat conftest.err >&5 3132 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } && 3134 (exit $ac_status); } &&
3606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5 3137 (eval $ac_try) 2>&5
3609 ac_status=$? 3138 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } && 3140 (exit $ac_status); }; } &&
3655 grep -v '^ *+' conftest.er1 >conftest.err 3184 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1 3185 rm -f conftest.er1
3657 cat conftest.err >&5 3186 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && 3188 (exit $ac_status); } &&
3660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 (eval $ac_try) 2>&5 3191 (eval $ac_try) 2>&5
3663 ac_status=$? 3192 ac_status=$?
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; } && 3194 (exit $ac_status); }; } &&
3687if test "$ac_cv_search_strerror" != no; then 3216if test "$ac_cv_search_strerror" != no; then
3688 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3217 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3689 3218
3690fi 3219fi
3691 3220
3692
3693# Check whether --enable-shared or --disable-shared was given.
3694if test "${enable_shared+set}" = set; then
3695 enableval="$enable_shared"
3696 p=${PACKAGE-default}
3697case "$enableval" in
3698yes) enable_shared=yes ;;
3699no) enable_shared=no ;;
3700*)
3701 enable_shared=no
3702 # Look at the argument we got. We use all the common list separators.
3703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3704 for pkg in $enableval; do
3705 if test "X$pkg" = "X$p"; then
3706 enable_shared=yes
3707 fi
3708 done
3709 IFS="$ac_save_ifs"
3710 ;;
3711esac
3712else
3713 enable_shared=no
3714fi; # Check whether --enable-static or --disable-static was given.
3715if test "${enable_static+set}" = set; then
3716 enableval="$enable_static"
3717 p=${PACKAGE-default}
3718case "$enableval" in
3719yes) enable_static=yes ;;
3720no) enable_static=no ;;
3721*)
3722 enable_static=no
3723 # Look at the argument we got. We use all the common list separators.
3724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3725 for pkg in $enableval; do
3726 if test "X$pkg" = "X$p"; then
3727 enable_static=yes
3728 fi
3729 done
3730 IFS="$ac_save_ifs"
3731 ;;
3732esac
3733else
3734 enable_static=yes
3735fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3736if test "${enable_fast_install+set}" = set; then
3737 enableval="$enable_fast_install"
3738 p=${PACKAGE-default}
3739case "$enableval" in
3740yes) enable_fast_install=yes ;;
3741no) enable_fast_install=no ;;
3742*)
3743 enable_fast_install=no
3744 # Look at the argument we got. We use all the common list separators.
3745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3746 for pkg in $enableval; do
3747 if test "X$pkg" = "X$p"; then
3748 enable_fast_install=yes
3749 fi
3750 done
3751 IFS="$ac_save_ifs"
3752 ;;
3753esac
3754else
3755 enable_fast_install=yes
3756fi;
3757# Make sure we can run config.sub.
3758$ac_config_sub sun4 >/dev/null 2>&1 ||
3759 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3760echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3761 { (exit 1); exit 1; }; }
3762
3763echo "$as_me:$LINENO: checking build system type" >&5
3764echo $ECHO_N "checking build system type... $ECHO_C" >&6
3765if test "${ac_cv_build+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768 ac_cv_build_alias=$build_alias
3769test -z "$ac_cv_build_alias" &&
3770 ac_cv_build_alias=`$ac_config_guess`
3771test -z "$ac_cv_build_alias" &&
3772 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3773echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3774 { (exit 1); exit 1; }; }
3775ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3776 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3777echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3778 { (exit 1); exit 1; }; }
3779
3780fi
3781echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3782echo "${ECHO_T}$ac_cv_build" >&6
3783build=$ac_cv_build
3784build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3785build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3786build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3787
3788
3789echo "$as_me:$LINENO: checking host system type" >&5
3790echo $ECHO_N "checking host system type... $ECHO_C" >&6
3791if test "${ac_cv_host+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 ac_cv_host_alias=$host_alias
3795test -z "$ac_cv_host_alias" &&
3796 ac_cv_host_alias=$ac_cv_build_alias
3797ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3798 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3799echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3800 { (exit 1); exit 1; }; }
3801
3802fi
3803echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3804echo "${ECHO_T}$ac_cv_host" >&6
3805host=$ac_cv_host
3806host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3807host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3808host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3809
3810
3811
3812# Check whether --with-gnu-ld or --without-gnu-ld was given.
3813if test "${with_gnu_ld+set}" = set; then
3814 withval="$with_gnu_ld"
3815 test "$withval" = no || with_gnu_ld=yes
3816else
3817 with_gnu_ld=no
3818fi;
3819ac_prog=ld
3820if test "$GCC" = yes; then
3821 # Check if gcc -print-prog-name=ld gives a path.
3822 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3823echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3824 case $host in
3825 *-*-mingw*)
3826 # gcc leaves a trailing carriage return which upsets mingw
3827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3828 *)
3829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3830 esac
3831 case "$ac_prog" in
3832 # Accept absolute paths.
3833 [\\/]* | [A-Za-z]:[\\/]*)
3834 re_direlt='/[^/][^/]*/\.\./'
3835 # Canonicalize the path of ld
3836 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3837 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3838 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3839 done
3840 test -z "$LD" && LD="$ac_prog"
3841 ;;
3842 "")
3843 # If it fails, then pretend we aren't using GCC.
3844 ac_prog=ld
3845 ;;
3846 *)
3847 # If it is relative, then search for the first ld in PATH.
3848 with_gnu_ld=unknown
3849 ;;
3850 esac
3851elif test "$with_gnu_ld" = yes; then
3852 echo "$as_me:$LINENO: checking for GNU ld" >&5
3853echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3854else
3855 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3856echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3857fi
3858if test "${lt_cv_path_LD+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860else
3861 if test -z "$LD"; then
3862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3863 for ac_dir in $PATH; do
3864 test -z "$ac_dir" && ac_dir=.
3865 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3866 lt_cv_path_LD="$ac_dir/$ac_prog"
3867 # Check to see if the program is GNU ld. I'd rather use --version,
3868 # but apparently some GNU ld's only accept -v.
3869 # Break only if it was the GNU/non-GNU ld that we prefer.
3870 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3871 test "$with_gnu_ld" != no && break
3872 else
3873 test "$with_gnu_ld" != yes && break
3874 fi
3875 fi
3876 done
3877 IFS="$ac_save_ifs"
3878else
3879 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3880fi
3881fi
3882
3883LD="$lt_cv_path_LD"
3884if test -n "$LD"; then
3885 echo "$as_me:$LINENO: result: $LD" >&5
3886echo "${ECHO_T}$LD" >&6
3887else
3888 echo "$as_me:$LINENO: result: no" >&5
3889echo "${ECHO_T}no" >&6
3890fi
3891test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3892echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3893 { (exit 1); exit 1; }; }
3894echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3895echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3896if test "${lt_cv_prog_gnu_ld+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3900if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3901 lt_cv_prog_gnu_ld=yes
3902else
3903 lt_cv_prog_gnu_ld=no
3904fi
3905fi
3906echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3907echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3908with_gnu_ld=$lt_cv_prog_gnu_ld
3909
3910
3911echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3912echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3913if test "${lt_cv_ld_reload_flag+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916 lt_cv_ld_reload_flag='-r'
3917fi
3918echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3919echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3920reload_flag=$lt_cv_ld_reload_flag
3921test -n "$reload_flag" && reload_flag=" $reload_flag"
3922
3923echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3924echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3925if test "${lt_cv_path_NM+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928 if test -n "$NM"; then
3929 # Let the user override the test.
3930 lt_cv_path_NM="$NM"
3931else
3932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3933 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3934 test -z "$ac_dir" && ac_dir=.
3935 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3936 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3937 # Check to see if the nm accepts a BSD-compat flag.
3938 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3939 # nm: unknown option "B" ignored
3940 # Tru64's nm complains that /dev/null is an invalid object file
3941 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3942 lt_cv_path_NM="$tmp_nm -B"
3943 break
3944 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3945 lt_cv_path_NM="$tmp_nm -p"
3946 break
3947 else
3948 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3949 continue # so that we can try to find one that supports BSD flags
3950 fi
3951 fi
3952 done
3953 IFS="$ac_save_ifs"
3954 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3955fi
3956fi
3957
3958NM="$lt_cv_path_NM"
3959echo "$as_me:$LINENO: result: $NM" >&5
3960echo "${ECHO_T}$NM" >&6
3961
3962echo "$as_me:$LINENO: checking whether ln -s works" >&5
3963echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3964LN_S=$as_ln_s
3965if test "$LN_S" = "ln -s"; then
3966 echo "$as_me:$LINENO: result: yes" >&5
3967echo "${ECHO_T}yes" >&6
3968else
3969 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3970echo "${ECHO_T}no, using $LN_S" >&6
3971fi
3972
3973echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3974echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3975if test "${lt_cv_deplibs_check_method+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
3978 lt_cv_file_magic_cmd='$MAGIC_CMD'
3979lt_cv_file_magic_test_file=
3980lt_cv_deplibs_check_method='unknown'
3981# Need to set the preceding variable on all platforms that support
3982# interlibrary dependencies.
3983# 'none' -- dependencies not supported.
3984# `unknown' -- same as none, but documents that we really don't know.
3985# 'pass_all' -- all dependencies passed with no checks.
3986# 'test_compile' -- check by making test program.
3987# ['file_magic [regex]'] -- check by looking for files in library path
3988# which responds to the $file_magic_cmd with a given egrep regex.
3989# If you have `file' or equivalent on your system and you're not sure
3990# whether `pass_all' will *always* work, you probably want this one.
3991
3992case "$host_os" in
3993aix4*)
3994 lt_cv_deplibs_check_method=pass_all
3995 ;;
3996
3997beos*)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
4000
4001bsdi4*)
4002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4003 lt_cv_file_magic_cmd='/usr/bin/file -L'
4004 lt_cv_file_magic_test_file=/shlib/libc.so
4005 ;;
4006
4007cygwin* | mingw* | pw32*)
4008 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4009 lt_cv_file_magic_cmd='$OBJDUMP -f'
4010 ;;
4011
4012darwin*|rhapsody*)
4013 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4014 lt_cv_file_magiic_cmd=/usr/bin/file
4015 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4016 ;;
4017
4018freebsd*)
4019 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4020 case "$host_cpu" in
4021 i*86 )
4022 # Not sure whether the presence of OpenBSD here was a mistake.
4023 # Let's accept both of them until this is cleared up.
4024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4025 lt_cv_file_magic_cmd=/usr/bin/file
4026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4027 ;;
4028 esac
4029 else
4030 lt_cv_deplibs_check_method=pass_all
4031 fi
4032 ;;
4033
4034gnu*)
4035 lt_cv_deplibs_check_method=pass_all
4036 ;;
4037
4038hpux10.20*|hpux11*)
4039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4040 lt_cv_file_magic_cmd=/usr/bin/file
4041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4042 ;;
4043
4044irix5* | irix6*)
4045 case "$host_os" in
4046 irix5*)
4047 # this will be overridden with pass_all, but let us keep it just in case
4048 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4049 ;;
4050 *)
4051 case "$LD" in
4052 *-32|*"-32 ") libmagic=32-bit;;
4053 *-n32|*"-n32 ") libmagic=N32;;
4054 *-64|*"-64 ") libmagic=64-bit;;
4055 *) libmagic=never-match;;
4056 esac
4057 # this will be overridden with pass_all, but let us keep it just in case
4058 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4059 ;;
4060 esac
4061 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4062 lt_cv_deplibs_check_method=pass_all
4063 ;;
4064
4065# This must be Linux ELF.
4066linux-gnu*)
4067 case "$host_cpu" in
4068 alpha* | i*86 | powerpc* | sparc* | ia64* )
4069 lt_cv_deplibs_check_method=pass_all ;;
4070 *)
4071 # glibc up to 2.1.1 does not perform some relocations on ARM
4072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4073 esac
4074 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4075 ;;
4076
4077netbsd*)
4078 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4079 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4080 else
4081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4082 fi
4083 lt_cv_file_magic_cmd='/usr/bin/file -L'
4084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4085 ;;
4086
4087newos6*)
4088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4089 lt_cv_file_magic_cmd=/usr/bin/file
4090 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4091 ;;
4092
4093osf3* | osf4* | osf5*)
4094 # this will be overridden with pass_all, but let us keep it just in case
4095 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4096 lt_cv_file_magic_test_file=/shlib/libc.so
4097 lt_cv_deplibs_check_method=pass_all
4098 ;;
4099
4100sco3.2v5*)
4101 lt_cv_deplibs_check_method=pass_all
4102 ;;
4103
4104solaris*)
4105 lt_cv_deplibs_check_method=pass_all
4106 lt_cv_file_magic_test_file=/lib/libc.so
4107 ;;
4108
4109sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4110 case "$host_vendor" in
4111 motorola)
4112 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]'
4113 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4114 ;;
4115 ncr)
4116 lt_cv_deplibs_check_method=pass_all
4117 ;;
4118 sequent)
4119 lt_cv_file_magic_cmd='/bin/file'
4120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4121 ;;
4122 sni)
4123 lt_cv_file_magic_cmd='/bin/file'
4124 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4125 lt_cv_file_magic_test_file=/lib/libc.so
4126 ;;
4127 esac
4128 ;;
4129esac
4130
4131fi
4132echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4133echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4134file_magic_cmd=$lt_cv_file_magic_cmd
4135deplibs_check_method=$lt_cv_deplibs_check_method
4136
4137
4138
4139
4140
4141
4142
4143# Check for command to grab the raw symbol name followed by C symbol from nm.
4144echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4145echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4146if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149
4150# These are sane defaults that work on at least a few old systems.
4151# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4152
4153# Character class describing NM global symbol codes.
4154symcode='[BCDEGRST]'
4155
4156# Regexp to match symbols that can be accessed directly from C.
4157sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4158
4159# Transform the above into a raw symbol and a C symbol.
4160symxfrm='\1 \2\3 \3'
4161
4162# Transform an extracted symbol line into a proper C declaration
4163lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4164
4165# Define system-specific variables.
4166case "$host_os" in
4167aix*)
4168 symcode='[BCDT]'
4169 ;;
4170cygwin* | mingw* | pw32*)
4171 symcode='[ABCDGISTW]'
4172 ;;
4173hpux*) # Its linker distinguishes data from code symbols
4174 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4175 ;;
4176irix*)
4177 symcode='[BCDEGRST]'
4178 ;;
4179solaris* | sysv5*)
4180 symcode='[BDT]'
4181 ;;
4182sysv4)
4183 symcode='[DFNSTU]'
4184 ;;
4185esac
4186
4187# Handle CRLF in mingw tool chain
4188opt_cr=
4189case "$host_os" in
4190mingw*)
4191 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4192 ;;
4193esac
4194
4195# If we're using GNU nm, then use its standard symbol codes.
4196if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4197 symcode='[ABCDGISTW]'
4198fi
4199
4200# Try without a prefix undercore, then with it.
4201for ac_symprfx in "" "_"; do
4202
4203 # Write the raw and C identifiers.
4204lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4205
4206 # Check to see that the pipe works correctly.
4207 pipe_works=no
4208 rm -f conftest*
4209 cat > conftest.$ac_ext <<EOF
4210#ifdef __cplusplus
4211extern "C" {
4212#endif
4213char nm_test_var;
4214void nm_test_func(){}
4215#ifdef __cplusplus
4216}
4217#endif
4218main(){nm_test_var='a';nm_test_func();return(0);}
4219EOF
4220
4221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4222 (eval $ac_compile) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; then
4226 # Now try to grab the symbols.
4227 nlist=conftest.nm
4228 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4229 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } && test -s "$nlist"; then
4233 # Try sorting and uniquifying the output.
4234 if sort "$nlist" | uniq > "$nlist"T; then
4235 mv -f "$nlist"T "$nlist"
4236 else
4237 rm -f "$nlist"T
4238 fi
4239
4240 # Make sure that we snagged all the symbols we need.
4241 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4242 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4243 cat <<EOF > conftest.$ac_ext
4244#ifdef __cplusplus
4245extern "C" {
4246#endif
4247
4248EOF
4249 # Now generate the symbol file.
4250 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4251
4252 cat <<EOF >> conftest.$ac_ext
4253#if defined (__STDC__) && __STDC__
4254# define lt_ptr_t void *
4255#else
4256# define lt_ptr_t char *
4257# define const
4258#endif
4259
4260/* The mapping between symbol names and symbols. */
4261const struct {
4262 const char *name;
4263 lt_ptr_t address;
4264}
4265lt_preloaded_symbols[] =
4266{
4267EOF
4268 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4269 cat <<\EOF >> conftest.$ac_ext
4270 {0, (lt_ptr_t) 0}
4271};
4272
4273#ifdef __cplusplus
4274}
4275#endif
4276EOF
4277 # Now try linking the two files.
4278 mv conftest.$ac_objext conftstm.$ac_objext
4279 save_LIBS="$LIBS"
4280 save_CFLAGS="$CFLAGS"
4281 LIBS="conftstm.$ac_objext"
4282 CFLAGS="$CFLAGS$no_builtin_flag"
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && test -s conftest; then
4288 pipe_works=yes
4289 fi
4290 LIBS="$save_LIBS"
4291 CFLAGS="$save_CFLAGS"
4292 else
4293 echo "cannot find nm_test_func in $nlist" >&5
4294 fi
4295 else
4296 echo "cannot find nm_test_var in $nlist" >&5
4297 fi
4298 else
4299 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4300 fi
4301 else
4302 echo "$progname: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4304 fi
4305 rm -f conftest* conftst*
4306
4307 # Do not use the global_symbol_pipe unless it works.
4308 if test "$pipe_works" = yes; then
4309 break
4310 else
4311 lt_cv_sys_global_symbol_pipe=
4312 fi
4313done
4314
4315fi
4316
4317global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4318if test -z "$lt_cv_sys_global_symbol_pipe"; then
4319 global_symbol_to_cdecl=
4320else
4321 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4322fi
4323if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4324 echo "$as_me:$LINENO: result: failed" >&5
4325echo "${ECHO_T}failed" >&6
4326else
4327 echo "$as_me:$LINENO: result: ok" >&5
4328echo "${ECHO_T}ok" >&6
4329fi
4330
4331echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4332echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4333if test "${ac_cv_header_stdc+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335else
4336 cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h. */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */
4342#include <stdlib.h>
4343#include <stdarg.h>
4344#include <string.h>
4345#include <float.h>
4346
4347int
4348main ()
4349{
4350
4351 ;
4352 return 0;
4353}
4354_ACEOF
4355rm -f conftest.$ac_objext
4356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>conftest.er1
4358 ac_status=$?
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } &&
4364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_cv_header_stdc=yes
4377else
4378 echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381ac_cv_header_stdc=no
4382fi
4383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4384
4385if test $ac_cv_header_stdc = yes; then
4386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4387 cat >conftest.$ac_ext <<_ACEOF
4388/* confdefs.h. */
4389_ACEOF
4390cat confdefs.h >>conftest.$ac_ext
4391cat >>conftest.$ac_ext <<_ACEOF
4392/* end confdefs.h. */
4393#include <string.h>
4394
4395_ACEOF
4396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4397 $EGREP "memchr" >/dev/null 2>&1; then
4398 :
4399else
4400 ac_cv_header_stdc=no
4401fi
4402rm -f conftest*
4403
4404fi
4405
4406if test $ac_cv_header_stdc = yes; then
4407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4408 cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
4413/* end confdefs.h. */
4414#include <stdlib.h>
4415
4416_ACEOF
4417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4418 $EGREP "free" >/dev/null 2>&1; then
4419 :
4420else
4421 ac_cv_header_stdc=no
4422fi
4423rm -f conftest*
4424
4425fi
4426
4427if test $ac_cv_header_stdc = yes; then
4428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4429 if test "$cross_compiling" = yes; then
4430 :
4431else
4432 cat >conftest.$ac_ext <<_ACEOF
4433/* confdefs.h. */
4434_ACEOF
4435cat confdefs.h >>conftest.$ac_ext
4436cat >>conftest.$ac_ext <<_ACEOF
4437/* end confdefs.h. */
4438#include <ctype.h>
4439#if ((' ' & 0x0FF) == 0x020)
4440# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4441# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4442#else
4443# define ISLOWER(c) \
4444 (('a' <= (c) && (c) <= 'i') \
4445 || ('j' <= (c) && (c) <= 'r') \
4446 || ('s' <= (c) && (c) <= 'z'))
4447# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4448#endif
4449
4450#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4451int
4452main ()
4453{
4454 int i;
4455 for (i = 0; i < 256; i++)
4456 if (XOR (islower (i), ISLOWER (i))
4457 || toupper (i) != TOUPPER (i))
4458 exit(2);
4459 exit (0);
4460}
4461_ACEOF
4462rm -f conftest$ac_exeext
4463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4464 (eval $ac_link) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 :
4474else
4475 echo "$as_me: program exited with status $ac_status" >&5
4476echo "$as_me: failed program was:" >&5
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
4479( exit $ac_status )
4480ac_cv_header_stdc=no
4481fi
4482rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4483fi
4484fi
4485fi
4486echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4487echo "${ECHO_T}$ac_cv_header_stdc" >&6
4488if test $ac_cv_header_stdc = yes; then
4489
4490cat >>confdefs.h <<\_ACEOF
4491#define STDC_HEADERS 1
4492_ACEOF
4493
4494fi
4495
4496# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4507 inttypes.h stdint.h unistd.h
4508do
4509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4510echo "$as_me:$LINENO: checking for $ac_header" >&5
4511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4512if eval "test \"\${$as_ac_Header+set}\" = set"; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514else
4515 cat >conftest.$ac_ext <<_ACEOF
4516/* confdefs.h. */
4517_ACEOF
4518cat confdefs.h >>conftest.$ac_ext
4519cat >>conftest.$ac_ext <<_ACEOF
4520/* end confdefs.h. */
4521$ac_includes_default
4522
4523#include <$ac_header>
4524_ACEOF
4525rm -f conftest.$ac_objext
4526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>conftest.er1
4528 ac_status=$?
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 (eval $ac_try) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 eval "$as_ac_Header=yes"
4547else
4548 echo "$as_me: failed program was:" >&5
4549sed 's/^/| /' conftest.$ac_ext >&5
4550
4551eval "$as_ac_Header=no"
4552fi
4553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4554fi
4555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4557if test `eval echo '${'$as_ac_Header'}'` = yes; then
4558 cat >>confdefs.h <<_ACEOF
4559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4560_ACEOF
4561
4562fi
4563
4564done
4565
4566
4567
4568for ac_header in dlfcn.h
4569do
4570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4571if eval "test \"\${$as_ac_Header+set}\" = set"; then
4572 echo "$as_me:$LINENO: checking for $ac_header" >&5
4573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4574if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576fi
4577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4579else
4580 # Is the header compilable?
4581echo "$as_me:$LINENO: checking $ac_header usability" >&5
4582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4583cat >conftest.$ac_ext <<_ACEOF
4584/* confdefs.h. */
4585_ACEOF
4586cat confdefs.h >>conftest.$ac_ext
4587cat >>conftest.$ac_ext <<_ACEOF
4588/* end confdefs.h. */
4589$ac_includes_default
4590#include <$ac_header>
4591_ACEOF
4592rm -f conftest.$ac_objext
4593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_header_compiler=yes
4614else
4615 echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618ac_header_compiler=no
4619fi
4620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4622echo "${ECHO_T}$ac_header_compiler" >&6
4623
4624# Is the header present?
4625echo "$as_me:$LINENO: checking $ac_header presence" >&5
4626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4627cat >conftest.$ac_ext <<_ACEOF
4628/* confdefs.h. */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h. */
4633#include <$ac_header>
4634_ACEOF
4635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4637 ac_status=$?
4638 grep -v '^ *+' conftest.er1 >conftest.err
4639 rm -f conftest.er1
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } >/dev/null; then
4643 if test -s conftest.err; then
4644 ac_cpp_err=$ac_cxx_preproc_warn_flag
4645 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4646 else
4647 ac_cpp_err=
4648 fi
4649else
4650 ac_cpp_err=yes
4651fi
4652if test -z "$ac_cpp_err"; then
4653 ac_header_preproc=yes
4654else
4655 echo "$as_me: failed program was:" >&5
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 ac_header_preproc=no
4659fi
4660rm -f conftest.err conftest.$ac_ext
4661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4662echo "${ECHO_T}$ac_header_preproc" >&6
4663
4664# So? What about this header?
4665case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4666 yes:no: )
4667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4671 ac_header_preproc=yes
4672 ;;
4673 no:yes:* )
4674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4686 (
4687 cat <<\_ASBOX
4688## ------------------------------------------ ##
4689## Report this to the AC_PACKAGE_NAME lists. ##
4690## ------------------------------------------ ##
4691_ASBOX
4692 ) |
4693 sed "s/^/$as_me: WARNING: /" >&2
4694 ;;
4695esac
4696echo "$as_me:$LINENO: checking for $ac_header" >&5
4697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4698if eval "test \"\${$as_ac_Header+set}\" = set"; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701 eval "$as_ac_Header=\$ac_header_preproc"
4702fi
4703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4705
4706fi
4707if test `eval echo '${'$as_ac_Header'}'` = yes; then
4708 cat >>confdefs.h <<_ACEOF
4709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4710_ACEOF
4711
4712fi
4713
4714done
4715
4716
4717
4718
4719
4720# Only perform the check for file, if the check method requires it
4721case "$deplibs_check_method" in
4722file_magic*)
4723 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4724 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4725echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4726if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728else
4729 case "$MAGIC_CMD" in
4730 /*)
4731 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4732 ;;
4733 ?:/*)
4734 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4735 ;;
4736 *)
4737 ac_save_MAGIC_CMD="$MAGIC_CMD"
4738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4739 ac_dummy="/usr/bin:$PATH"
4740 for ac_dir in $ac_dummy; do
4741 test -z "$ac_dir" && ac_dir=.
4742 if test -f $ac_dir/${ac_tool_prefix}file; then
4743 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4744 if test -n "$file_magic_test_file"; then
4745 case "$deplibs_check_method" in
4746 "file_magic "*)
4747 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4749 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4750 egrep "$file_magic_regex" > /dev/null; then
4751 :
4752 else
4753 cat <<EOF 1>&2
4754
4755*** Warning: the command libtool uses to detect shared libraries,
4756*** $file_magic_cmd, produces output that libtool cannot recognize.
4757*** The result is that libtool may fail to recognize shared libraries
4758*** as such. This will affect the creation of libtool libraries that
4759*** depend on shared libraries, but programs linked with such libtool
4760*** libraries will work regardless of this problem. Nevertheless, you
4761*** may want to report the problem to your system manager and/or to
4762*** bug-libtool@gnu.org
4763
4764EOF
4765 fi ;;
4766 esac
4767 fi
4768 break
4769 fi
4770 done
4771 IFS="$ac_save_ifs"
4772 MAGIC_CMD="$ac_save_MAGIC_CMD"
4773 ;;
4774esac
4775fi
4776
4777MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4778if test -n "$MAGIC_CMD"; then
4779 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4780echo "${ECHO_T}$MAGIC_CMD" >&6
4781else
4782 echo "$as_me:$LINENO: result: no" >&5
4783echo "${ECHO_T}no" >&6
4784fi
4785
4786if test -z "$lt_cv_path_MAGIC_CMD"; then
4787 if test -n "$ac_tool_prefix"; then
4788 echo "$as_me:$LINENO: checking for file" >&5
4789echo $ECHO_N "checking for file... $ECHO_C" >&6
4790if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792else
4793 case "$MAGIC_CMD" in
4794 /*)
4795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4796 ;;
4797 ?:/*)
4798 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4799 ;;
4800 *)
4801 ac_save_MAGIC_CMD="$MAGIC_CMD"
4802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4803 ac_dummy="/usr/bin:$PATH"
4804 for ac_dir in $ac_dummy; do
4805 test -z "$ac_dir" && ac_dir=.
4806 if test -f $ac_dir/file; then
4807 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4808 if test -n "$file_magic_test_file"; then
4809 case "$deplibs_check_method" in
4810 "file_magic "*)
4811 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4813 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4814 egrep "$file_magic_regex" > /dev/null; then
4815 :
4816 else
4817 cat <<EOF 1>&2
4818
4819*** Warning: the command libtool uses to detect shared libraries,
4820*** $file_magic_cmd, produces output that libtool cannot recognize.
4821*** The result is that libtool may fail to recognize shared libraries
4822*** as such. This will affect the creation of libtool libraries that
4823*** depend on shared libraries, but programs linked with such libtool
4824*** libraries will work regardless of this problem. Nevertheless, you
4825*** may want to report the problem to your system manager and/or to
4826*** bug-libtool@gnu.org
4827
4828EOF
4829 fi ;;
4830 esac
4831 fi
4832 break
4833 fi
4834 done
4835 IFS="$ac_save_ifs"
4836 MAGIC_CMD="$ac_save_MAGIC_CMD"
4837 ;;
4838esac
4839fi
4840
4841MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4842if test -n "$MAGIC_CMD"; then
4843 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4844echo "${ECHO_T}$MAGIC_CMD" >&6
4845else
4846 echo "$as_me:$LINENO: result: no" >&5
4847echo "${ECHO_T}no" >&6
4848fi
4849
4850 else
4851 MAGIC_CMD=:
4852 fi
4853fi
4854
4855 fi
4856 ;;
4857esac
4858
4859if test -n "$ac_tool_prefix"; then
4860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4861set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4862echo "$as_me:$LINENO: checking for $ac_word" >&5
4863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4864if test "${ac_cv_prog_RANLIB+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866else
4867 if test -n "$RANLIB"; then
4868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4869else
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881done
4882done
4883
4884fi
4885fi
4886RANLIB=$ac_cv_prog_RANLIB
4887if test -n "$RANLIB"; then
4888 echo "$as_me:$LINENO: result: $RANLIB" >&5
4889echo "${ECHO_T}$RANLIB" >&6
4890else
4891 echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6
4893fi
4894
4895fi
4896if test -z "$ac_cv_prog_RANLIB"; then
4897 ac_ct_RANLIB=$RANLIB
4898 # Extract the first word of "ranlib", so it can be a program name with args.
4899set dummy ranlib; ac_word=$2
4900echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 if test -n "$ac_ct_RANLIB"; then
4906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4907else
4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 ac_cv_prog_ac_ct_RANLIB="ranlib"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919done
4920done
4921
4922 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4923fi
4924fi
4925ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4926if test -n "$ac_ct_RANLIB"; then
4927 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4928echo "${ECHO_T}$ac_ct_RANLIB" >&6
4929else
4930 echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6
4932fi
4933
4934 RANLIB=$ac_ct_RANLIB
4935else
4936 RANLIB="$ac_cv_prog_RANLIB"
4937fi
4938
4939if test -n "$ac_tool_prefix"; then
4940 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4941set dummy ${ac_tool_prefix}strip; ac_word=$2
4942echo "$as_me:$LINENO: checking for $ac_word" >&5
4943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4944if test "${ac_cv_prog_STRIP+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947 if test -n "$STRIP"; then
4948 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4949else
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961done
4962done
4963
4964fi
4965fi
4966STRIP=$ac_cv_prog_STRIP
4967if test -n "$STRIP"; then
4968 echo "$as_me:$LINENO: result: $STRIP" >&5
4969echo "${ECHO_T}$STRIP" >&6
4970else
4971 echo "$as_me:$LINENO: result: no" >&5
4972echo "${ECHO_T}no" >&6
4973fi
4974
4975fi
4976if test -z "$ac_cv_prog_STRIP"; then
4977 ac_ct_STRIP=$STRIP
4978 # Extract the first word of "strip", so it can be a program name with args.
4979set dummy strip; ac_word=$2
4980echo "$as_me:$LINENO: checking for $ac_word" >&5
4981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4982if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984else
4985 if test -n "$ac_ct_STRIP"; then
4986 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_prog_ac_ct_STRIP="strip"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999done
5000done
5001
5002 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5003fi
5004fi
5005ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5006if test -n "$ac_ct_STRIP"; then
5007 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5008echo "${ECHO_T}$ac_ct_STRIP" >&6
5009else
5010 echo "$as_me:$LINENO: result: no" >&5
5011echo "${ECHO_T}no" >&6
5012fi
5013
5014 STRIP=$ac_ct_STRIP
5015else
5016 STRIP="$ac_cv_prog_STRIP"
5017fi
5018
5019
5020enable_dlopen=no
5021enable_win32_dll=no
5022
5023# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5024if test "${enable_libtool_lock+set}" = set; then
5025 enableval="$enable_libtool_lock"
5026
5027fi;
5028test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5029
5030# Some flags need to be propagated to the compiler or linker for good
5031# libtool support.
5032case "$host" in
5033*-*-irix6*)
5034 # Find out which ABI we are using.
5035 echo '#line 5035 "configure"' > conftest.$ac_ext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; then
5041 case "`/usr/bin/file conftest.$ac_objext`" in
5042 *32-bit*)
5043 LD="${LD-ld} -32"
5044 ;;
5045 *N32*)
5046 LD="${LD-ld} -n32"
5047 ;;
5048 *64-bit*)
5049 LD="${LD-ld} -64"
5050 ;;
5051 esac
5052 fi
5053 rm -rf conftest*
5054 ;;
5055
5056*-*-sco3.2v5*)
5057 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5058 SAVE_CFLAGS="$CFLAGS"
5059 CFLAGS="$CFLAGS -belf"
5060 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5061echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5062if test "${lt_cv_cc_needs_belf+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065
5066
5067 ac_ext=c
5068ac_cpp='$CPP $CPPFLAGS'
5069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
5073 cat >conftest.$ac_ext <<_ACEOF
5074/* confdefs.h. */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h. */
5079
5080int
5081main ()
5082{
5083
5084 ;
5085 return 0;
5086}
5087_ACEOF
5088rm -f conftest.$ac_objext conftest$ac_exeext
5089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090 (eval $ac_link) 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try='test -s conftest$ac_exeext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 lt_cv_cc_needs_belf=yes
5110else
5111 echo "$as_me: failed program was:" >&5
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
5114lt_cv_cc_needs_belf=no
5115fi
5116rm -f conftest.err conftest.$ac_objext \
5117 conftest$ac_exeext conftest.$ac_ext
5118 ac_ext=cc 3221ac_ext=cc
5119ac_cpp='$CXXCPP $CPPFLAGS' 3222ac_cpp='$CXXCPP $CPPFLAGS'
5120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5123 3226
5124fi
5125echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5126echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5127 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5128 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5129 CFLAGS="$SAVE_CFLAGS"
5130 fi
5131 ;;
5132 3227
5133 3228if test x$GCC = xyes && test x$GXX = xyes; then
5134esac
5135
5136# Sed substitution that helps us do robust quoting. It backslashifies
5137# metacharacters that are still active within double-quoted strings.
5138Xsed='sed -e s/^X//'
5139sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5140
5141# Same as above, but do not quote variable references.
5142double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5143
5144# Sed substitution to delay expansion of an escaped shell variable in a
5145# double_quote_subst'ed string.
5146delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5147
5148# Constants:
5149rm="rm -f"
5150
5151# Global variables:
5152default_ofile=libtool
5153can_build_shared=yes
5154
5155# All known linkers require a `.a' archive for static linking (except M$VC,
5156# which needs '.lib').
5157libext=a
5158ltmain="$ac_aux_dir/ltmain.sh"
5159ofile="$default_ofile"
5160with_gnu_ld="$lt_cv_prog_gnu_ld"
5161need_locks="$enable_libtool_lock"
5162
5163old_CC="$CC"
5164old_CFLAGS="$CFLAGS"
5165
5166# Set sane defaults for various variables
5167test -z "$AR" && AR=ar
5168test -z "$AR_FLAGS" && AR_FLAGS=cru
5169test -z "$AS" && AS=as
5170test -z "$CC" && CC=cc
5171test -z "$DLLTOOL" && DLLTOOL=dlltool
5172test -z "$LD" && LD=ld
5173test -z "$LN_S" && LN_S="ln -s"
5174test -z "$MAGIC_CMD" && MAGIC_CMD=file
5175test -z "$NM" && NM=nm
5176test -z "$OBJDUMP" && OBJDUMP=objdump
5177test -z "$RANLIB" && RANLIB=:
5178test -z "$STRIP" && STRIP=:
5179test -z "$ac_objext" && ac_objext=o
5180
5181if test x"$host" != x"$build"; then
5182 ac_tool_prefix=${host_alias}-
5183else
5184 ac_tool_prefix=
5185fi
5186
5187# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5188case "$host_os" in
5189linux-gnu*) ;;
5190linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5191esac
5192
5193case "$host_os" in
5194aix3*)
5195 # AIX sometimes has problems with the GCC collect2 program. For some
5196 # reason, if we set the COLLECT_NAMES environment variable, the problems
5197 # vanish in a puff of smoke.
5198 if test "X${COLLECT_NAMES+set}" != Xset; then
5199 COLLECT_NAMES=
5200 export COLLECT_NAMES
5201 fi
5202 ;;
5203esac
5204
5205# Determine commands to create old-style static archives.
5206old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5207old_postinstall_cmds='chmod 644 $oldlib'
5208old_postuninstall_cmds=
5209
5210if test -n "$RANLIB"; then
5211 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5212 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5213fi
5214
5215# Allow CC to be a program name with arguments.
5216set dummy $CC
5217compiler="$2"
5218
5219## FIXME: this should be a separate macro
5220##
5221echo "$as_me:$LINENO: checking for objdir" >&5 3229 echo "$as_me:$LINENO: checking for working libsupc++" >&5
5222echo $ECHO_N "checking for objdir... $ECHO_C" >&6 3230echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
5223rm -f .libs 2>/dev/null 3231 save_CXX="$CXX"
5224mkdir .libs 2>/dev/null 3232 save_LIBS="$LIBS"
5225if test -d .libs; then 3233 CXX="$CC"
5226 objdir=.libs 3234 LIBS="$LIBS -lsupc++"
5227else 3235 LINKER="$CC"
5228 # MS-DOS does not allow filenames that begin with a dot.
5229 objdir=_libs
5230fi
5231rmdir .libs 2>/dev/null
5232echo "$as_me:$LINENO: result: $objdir" >&5
5233echo "${ECHO_T}$objdir" >&6
5234##
5235## END FIXME
5236 3236
5237
5238## FIXME: this should be a separate macro
5239##
5240
5241# Check whether --with-pic or --without-pic was given.
5242if test "${with_pic+set}" = set; then
5243 withval="$with_pic"
5244 pic_mode="$withval"
5245else
5246 pic_mode=default
5247fi;
5248test -z "$pic_mode" && pic_mode=default
5249
5250# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5251# in isolation, and that seeing it set (from the cache) indicates that
5252# the associated values are set (in the cache) correctly too.
5253echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5254echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5255if test "${lt_cv_prog_cc_pic+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258 lt_cv_prog_cc_pic=
5259 lt_cv_prog_cc_shlib=
5260 lt_cv_prog_cc_wl=
5261 lt_cv_prog_cc_static=
5262 lt_cv_prog_cc_no_builtin=
5263 lt_cv_prog_cc_can_build_shared=$can_build_shared
5264
5265 if test "$GCC" = yes; then
5266 lt_cv_prog_cc_wl='-Wl,'
5267 lt_cv_prog_cc_static='-static'
5268
5269 case "$host_os" in
5270 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5271 # PIC is the default for these OSes.
5272 ;;
5273 aix*)
5274 # Below there is a dirty hack to force normal static linking with -ldl
5275 # The problem is because libdl dynamically linked with both libc and
5276 # libC (AIX C++ library), which obviously doesn't included in libraries
5277 # list by gcc. This cause undefined symbols with -static flags.
5278 # This hack allows C programs to be linked with "-static -ldl", but
5279 # we not sure about C++ programs.
5280 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5281 ;;
5282 cygwin* | mingw* | pw32* | os2*)
5283 # This hack is so that the source file can tell whether it is being
5284 # built for inclusion in a dll (and should export symbols for example).
5285 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5286 ;;
5287 amigaos*)
5288 # FIXME: we need at least 68020 code to build shared libraries, but
5289 # adding the `-m68020' flag to GCC prevents building anything better,
5290 # like `-m68040'.
5291 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5292 ;;
5293 sysv4*MP*)
5294 if test -d /usr/nec; then
5295 lt_cv_prog_cc_pic=-Kconform_pic
5296 fi
5297 ;;
5298 *)
5299 lt_cv_prog_cc_pic='-fPIC'
5300 ;;
5301 esac
5302 else
5303 # PORTME Check for PIC flags for the system compiler.
5304 case "$host_os" in
5305 aix3* | aix4*)
5306 # All AIX code is PIC.
5307 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5308 ;;
5309
5310 hpux9* | hpux10* | hpux11*)
5311 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5312 lt_cv_prog_cc_wl='-Wl,'
5313 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5314 lt_cv_prog_cc_pic='+Z'
5315 ;;
5316
5317 irix5* | irix6*)
5318 lt_cv_prog_cc_wl='-Wl,'
5319 lt_cv_prog_cc_static='-non_shared'
5320 # PIC (with -KPIC) is the default.
5321 ;;
5322
5323 cygwin* | mingw* | pw32* | os2*)
5324 # This hack is so that the source file can tell whether it is being
5325 # built for inclusion in a dll (and should export symbols for example).
5326 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5327 ;;
5328
5329 newsos6)
5330 lt_cv_prog_cc_pic='-KPIC'
5331 lt_cv_prog_cc_static='-Bstatic'
5332 ;;
5333
5334 osf3* | osf4* | osf5*)
5335 # All OSF/1 code is PIC.
5336 lt_cv_prog_cc_wl='-Wl,'
5337 lt_cv_prog_cc_static='-non_shared'
5338 ;;
5339
5340 sco3.2v5*)
5341 lt_cv_prog_cc_pic='-Kpic'
5342 lt_cv_prog_cc_static='-dn'
5343 lt_cv_prog_cc_shlib='-belf'
5344 ;;
5345
5346 solaris*)
5347 lt_cv_prog_cc_pic='-KPIC'
5348 lt_cv_prog_cc_static='-Bstatic'
5349 lt_cv_prog_cc_wl='-Wl,'
5350 ;;
5351
5352 sunos4*)
5353 lt_cv_prog_cc_pic='-PIC'
5354 lt_cv_prog_cc_static='-Bstatic'
5355 lt_cv_prog_cc_wl='-Qoption ld '
5356 ;;
5357
5358 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5359 lt_cv_prog_cc_pic='-KPIC'
5360 lt_cv_prog_cc_static='-Bstatic'
5361 if test "x$host_vendor" = xsni; then
5362 lt_cv_prog_cc_wl='-LD'
5363 else
5364 lt_cv_prog_cc_wl='-Wl,'
5365 fi
5366 ;;
5367
5368 uts4*)
5369 lt_cv_prog_cc_pic='-pic'
5370 lt_cv_prog_cc_static='-Bstatic'
5371 ;;
5372
5373 sysv4*MP*)
5374 if test -d /usr/nec ;then
5375 lt_cv_prog_cc_pic='-Kconform_pic'
5376 lt_cv_prog_cc_static='-Bstatic'
5377 fi
5378 ;;
5379
5380 *)
5381 lt_cv_prog_cc_can_build_shared=no
5382 ;;
5383 esac
5384 fi
5385
5386fi
5387
5388if test -z "$lt_cv_prog_cc_pic"; then
5389 echo "$as_me:$LINENO: result: none" >&5
5390echo "${ECHO_T}none" >&6
5391else
5392 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5393echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5394
5395 # Check to make sure the pic_flag actually works.
5396 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5397echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5398 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400else
5401 save_CFLAGS="$CFLAGS"
5402 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5403 cat >conftest.$ac_ext <<_ACEOF 3237cat >conftest.$ac_ext <<_ACEOF
5404/* confdefs.h. */ 3238/* confdefs.h. */
5405_ACEOF 3239_ACEOF
5406cat confdefs.h >>conftest.$ac_ext 3240cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF 3241cat >>conftest.$ac_ext <<_ACEOF
5408/* end confdefs.h. */ 3242/* end confdefs.h. */
5409 3243struct test { }; void f() try { throw new test; } catch (...) { throw; }
5410int 3244int
5411main () 3245main ()
5412{ 3246{
5413 3247
5414 ; 3248 ;
5415 return 0; 3249 return 0;
5416} 3250}
5417_ACEOF 3251_ACEOF
3252rm -f conftest.$ac_objext conftest$ac_exeext
3253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3254 (eval $ac_link) 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 (eval $ac_try) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; } &&
3267 { ac_try='test -s conftest$ac_exeext'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 echo "$as_me:$LINENO: result: ok" >&5
3274echo "${ECHO_T}ok" >&6
3275else
3276 echo "$as_me: failed program was:" >&5
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
3279
3280 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3281echo "${ECHO_T}no, making everything bigger and slower" >&6
3282 LIBS="$save_LIBS"
3283 LINKER="$save_CXX"
3284
3285
3286fi
3287rm -f conftest.err conftest.$ac_objext \
3288 conftest$ac_exeext conftest.$ac_ext
3289 CXX="$save_CXX"
3290fi
3291LINKER=$LINKER
3292
3293
3294if test -z "$orig_CXXFLAGS"; then
3295 if test x$GCC = xyes && test "x$GXX" = xyes; then
3296 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3297 cat >conftest.$ac_ext <<_ACEOF
3298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h. */
3303
3304int
3305main ()
3306{
3307
3308 ;
3309 return 0;
3310}
3311_ACEOF
5418rm -f conftest.$ac_objext 3312rm -f conftest.$ac_objext
5419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>conftest.er1 3314 (eval $ac_compile) 2>conftest.er1
5421 ac_status=$? 3315 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err 3316 grep -v '^ *+' conftest.er1 >conftest.err
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5 3329 (eval $ac_try) 2>&5
5436 ac_status=$? 3330 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then 3332 (exit $ac_status); }; }; then
5439 case "$host_os" in 3333 :
5440 hpux9* | hpux10* | hpux11*)
5441 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5442 # they create non-PIC objects. So, if there were any warnings, we
5443 # assume that PIC is not supported.
5444 if test -s conftest.err; then
5445 lt_cv_prog_cc_pic_works=no
5446 else
5447 lt_cv_prog_cc_pic_works=yes
5448 fi
5449 ;;
5450 *)
5451 lt_cv_prog_cc_pic_works=yes
5452 ;;
5453 esac
5454
5455else 3334else
5456 echo "$as_me: failed program was:" >&5 3335 echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5 3336sed 's/^/| /' conftest.$ac_ext >&5
5458 3337
5459 lt_cv_prog_cc_pic_works=no 3338CXXFLAGS="-g -O3"
5460
5461fi 3339fi
5462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463 CFLAGS="$save_CFLAGS"
5464
5465fi
5466
5467
5468 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5469 lt_cv_prog_cc_pic=
5470 lt_cv_prog_cc_can_build_shared=no
5471 else 3341 else
5472 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 3342 CXXFLAGS="-O"
5473 fi 3343 fi
5474 3344 CFLAGS="$CXXFLAGS"
5475 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5476echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5477fi 3345fi
5478##
5479## END FIXME
5480 3346
5481# Check for any special shared library compilation flags.
5482if test -n "$lt_cv_prog_cc_shlib"; then
5483 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5484echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5485 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5486 else
5487 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5488echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5489 lt_cv_prog_cc_can_build_shared=no
5490 fi
5491fi
5492 3347
5493## FIXME: this should be a separate macro 3348cat >>confdefs.h <<\_ACEOF
5494## 3349#define _GNU_SOURCE 1
5495echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 3350_ACEOF
5496echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 3351
5497if test "${lt_cv_prog_cc_static_works+set}" = set; then 3352
3353case $host in
3354 *-*-solaris* )
3355
3356cat >>confdefs.h <<\_ACEOF
3357#define _XOPEN_SOURCE_EXTENDED 1
3358_ACEOF
3359
3360
3361cat >>confdefs.h <<\_ACEOF
3362#define _XOPEN_SOURCE 2
3363_ACEOF
3364
3365
3366cat >>confdefs.h <<\_ACEOF
3367#define __EXTENSIONS__ 1
3368_ACEOF
3369
3370 ;;
3371esac
3372
3373
3374echo "$as_me:$LINENO: checking for setlocale" >&5
3375echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3376if test "${ac_cv_func_setlocale+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6 3377 echo $ECHO_N "(cached) $ECHO_C" >&6
5499else 3378else
5500 lt_cv_prog_cc_static_works=no
5501 save_LDFLAGS="$LDFLAGS"
5502 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5503 cat >conftest.$ac_ext <<_ACEOF 3379 cat >conftest.$ac_ext <<_ACEOF
5504/* confdefs.h. */ 3380/* confdefs.h. */
5505_ACEOF 3381_ACEOF
5506cat confdefs.h >>conftest.$ac_ext 3382cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF 3383cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h. */ 3384/* end confdefs.h. */
5509
5510int
5511main ()
5512{
5513
5514 ;
5515 return 0;
5516}
5517_ACEOF
5518rm -f conftest.$ac_objext conftest$ac_exeext
5519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520 (eval $ac_link) 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; } &&
5533 { ac_try='test -s conftest$ac_exeext'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 (eval $ac_try) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 lt_cv_prog_cc_static_works=yes
5540else
5541 echo "$as_me: failed program was:" >&5
5542sed 's/^/| /' conftest.$ac_ext >&5
5543
5544fi
5545rm -f conftest.err conftest.$ac_objext \
5546 conftest$ac_exeext conftest.$ac_ext
5547 LDFLAGS="$save_LDFLAGS"
5548
5549fi
5550
5551
5552# Belt *and* braces to stop my trousers falling down:
5553test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5554echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5555echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5556
5557pic_flag="$lt_cv_prog_cc_pic"
5558special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5559wl="$lt_cv_prog_cc_wl"
5560link_static_flag="$lt_cv_prog_cc_static"
5561no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5562can_build_shared="$lt_cv_prog_cc_can_build_shared"
5563##
5564## END FIXME
5565
5566
5567## FIXME: this should be a separate macro
5568##
5569# Check to see if options -o and -c are simultaneously supported by compiler
5570echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5571echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5572$rm -r conftest 2>/dev/null
5573mkdir conftest
5574cd conftest
5575echo "int some_variable = 0;" > conftest.$ac_ext
5576mkdir out
5577# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5578# that will create temporary files in the current directory regardless of
5579# the output directory. Thus, making CWD read-only will cause this test
5580# to fail, enabling locking or at least warning the user not to do parallel
5581# builds.
5582chmod -w .
5583save_CFLAGS="$CFLAGS"
5584CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5585compiler_c_o=no
5586if { (eval echo configure:5586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5587 # The compiler can only warn and ignore the option if not recognized
5588 # So say no if there are warnings
5589 if test -s out/conftest.err; then
5590 compiler_c_o=no
5591 else
5592 compiler_c_o=yes
5593 fi
5594else
5595 # Append any errors to the config.log.
5596 cat out/conftest.err 1>&5
5597 compiler_c_o=no
5598fi
5599echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5600echo "${ECHO_T}$compiler_c_o" >&6
5601CFLAGS="$save_CFLAGS"
5602chmod u+w .
5603$rm conftest* out/*
5604rmdir out
5605cd ..
5606rmdir conftest
5607$rm -r conftest 2>/dev/null
5608
5609if test x"$compiler_c_o" = x"yes"; then
5610 # Check to see if we can write to a .lo
5611 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5612echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5613 compiler_o_lo=no
5614 save_CFLAGS="$CFLAGS"
5615 CFLAGS="$CFLAGS -c -o conftest.lo"
5616 cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h. */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h. */
5622
5623int
5624main ()
5625{
5626int some_variable = 0;
5627 ;
5628 return 0;
5629}
5630_ACEOF
5631rm -f conftest.$ac_objext
5632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 # The compiler can only warn and ignore the option if not recognized
5653 # So say no if there are warnings
5654 if test -s conftest.err; then
5655 compiler_o_lo=no
5656 else
5657 compiler_o_lo=yes
5658 fi
5659
5660else
5661 echo "$as_me: failed program was:" >&5
5662sed 's/^/| /' conftest.$ac_ext >&5
5663
5664fi
5665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5666 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5667echo "${ECHO_T}$compiler_c_o" >&6
5668 CFLAGS="$save_CFLAGS"
5669else
5670 compiler_o_lo=no
5671fi
5672##
5673## END FIXME
5674
5675## FIXME: this should be a separate macro
5676##
5677# Check to see if we can do hard links to lock some files if needed
5678hard_links="nottested"
5679if test "$compiler_c_o" = no && test "$need_locks" != no; then
5680 # do not overwrite the value of need_locks provided by the user
5681 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5682echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5683 hard_links=yes
5684 $rm conftest*
5685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5686 touch conftest.a
5687 ln conftest.a conftest.b 2>&5 || hard_links=no
5688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5689 echo "$as_me:$LINENO: result: $hard_links" >&5
5690echo "${ECHO_T}$hard_links" >&6
5691 if test "$hard_links" = no; then
5692 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5693echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5694 need_locks=warn
5695 fi
5696else
5697 need_locks=no
5698fi
5699##
5700## END FIXME
5701
5702## FIXME: this should be a separate macro
5703##
5704if test "$GCC" = yes; then
5705 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5706 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5707echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5708 echo "int some_variable = 0;" > conftest.$ac_ext
5709 save_CFLAGS="$CFLAGS"
5710 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5711 compiler_rtti_exceptions=no
5712 cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718
5719int
5720main ()
5721{
5722int some_variable = 0;
5723 ;
5724 return 0;
5725}
5726_ACEOF
5727rm -f conftest.$ac_objext
5728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 # The compiler can only warn and ignore the option if not recognized
5749 # So say no if there are warnings
5750 if test -s conftest.err; then
5751 compiler_rtti_exceptions=no
5752 else
5753 compiler_rtti_exceptions=yes
5754 fi
5755
5756else
5757 echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760fi
5761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5762 CFLAGS="$save_CFLAGS"
5763 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5764echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5765
5766 if test "$compiler_rtti_exceptions" = "yes"; then
5767 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5768 else
5769 no_builtin_flag=' -fno-builtin'
5770 fi
5771fi
5772##
5773## END FIXME
5774
5775## FIXME: this should be a separate macro
5776##
5777# See if the linker supports building shared libraries.
5778echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5779echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5780
5781allow_undefined_flag=
5782no_undefined_flag=
5783need_lib_prefix=unknown
5784need_version=unknown
5785# when you set need_version to no, make sure it does not cause -set_version
5786# flags to be left without arguments
5787archive_cmds=
5788archive_expsym_cmds=
5789old_archive_from_new_cmds=
5790old_archive_from_expsyms_cmds=
5791export_dynamic_flag_spec=
5792whole_archive_flag_spec=
5793thread_safe_flag_spec=
5794hardcode_into_libs=no
5795hardcode_libdir_flag_spec=
5796hardcode_libdir_separator=
5797hardcode_direct=no
5798hardcode_minus_L=no
5799hardcode_shlibpath_var=unsupported
5800runpath_var=
5801link_all_deplibs=unknown
5802always_export_symbols=no
5803export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5804# include_expsyms should be a list of space-separated symbols to be *always*
5805# included in the symbol list
5806include_expsyms=
5807# exclude_expsyms can be an egrep regular expression of symbols to exclude
5808# it will be wrapped by ` (' and `)$', so one must not match beginning or
5809# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5810# as well as any symbol that contains `d'.
5811exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5812# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5813# platforms (ab)use it in PIC code, but their linkers get confused if
5814# the symbol is explicitly referenced. Since portable code cannot
5815# rely on this symbol name, it's probably fine to never include it in
5816# preloaded symbol tables.
5817extract_expsyms_cmds=
5818
5819case "$host_os" in
5820cygwin* | mingw* | pw32* )
5821 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5822 # When not using gcc, we currently assume that we are using
5823 # Microsoft Visual C++.
5824 if test "$GCC" != yes; then
5825 with_gnu_ld=no
5826 fi
5827 ;;
5828
5829esac
5830
5831ld_shlibs=yes
5832if test "$with_gnu_ld" = yes; then
5833 # If archive_cmds runs LD, not CC, wlarc should be empty
5834 wlarc='${wl}'
5835
5836 # See if GNU ld supports shared libraries.
5837 case "$host_os" in
5838 aix3* | aix4*)
5839 # On AIX, the GNU linker is very broken
5840 ld_shlibs=no
5841 cat <<EOF 1>&2
5842
5843*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5844*** to be unable to reliably create shared libraries on AIX.
5845*** Therefore, libtool is disabling shared libraries support. If you
5846*** really care for shared libraries, you may want to modify your PATH
5847*** so that a non-GNU linker is found, and then restart.
5848
5849EOF
5850 ;;
5851
5852 amigaos*)
5853 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)'
5854 hardcode_libdir_flag_spec='-L$libdir'
5855 hardcode_minus_L=yes
5856
5857 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5858 # that the semantics of dynamic libraries on AmigaOS, at least up
5859 # to version 4, is to share data among multiple programs linked
5860 # with the same dynamic library. Since this doesn't match the
5861 # behavior of shared libraries on other platforms, we can use
5862 # them.
5863 ld_shlibs=no
5864 ;;
5865
5866 beos*)
5867 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5868 allow_undefined_flag=unsupported
5869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5870 # support --undefined. This deserves some investigation. FIXME
5871 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5872 else
5873 ld_shlibs=no
5874 fi
5875 ;;
5876
5877 cygwin* | mingw* | pw32*)
5878 # hardcode_libdir_flag_spec is actually meaningless, as there is
5879 # no search path for DLLs.
5880 hardcode_libdir_flag_spec='-L$libdir'
5881 allow_undefined_flag=unsupported
5882 always_export_symbols=yes
5883
5884 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5885 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5886 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5887 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5888 else $CC -o impgen impgen.c ; fi)~
5889 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
5890
5891 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5892
5893 # cygwin and mingw dlls have different entry points and sets of symbols
5894 # to exclude.
5895 # FIXME: what about values for MSVC?
5896 dll_entry=__cygwin_dll_entry@12
5897 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5898 case "$host_os" in
5899 mingw*)
5900 # mingw values
5901 dll_entry=_DllMainCRTStartup@12
5902 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5903 ;;
5904 esac
5905
5906 # mingw and cygwin differ, and it's simplest to just exclude the union
5907 # of the two symbol sets.
5908 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5909
5910 # recent cygwin and mingw systems supply a stub DllMain which the user
5911 # can override, but on older systems we have to supply one (in ltdll.c)
5912 if test "x$lt_cv_need_dllmain" = "xyes"; then
5913 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5914 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~
5915 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5916 else
5917 ltdll_obj=
5918 ltdll_cmds=
5919 fi
5920
5921 # Extract the symbol export list from an `--export-all' def file,
5922 # then regenerate the def file from the symbol export list, so that
5923 # the compiled dll only exports the symbol export list.
5924 # Be careful not to strip the DATA tag left be newer dlltools.
5925 export_symbols_cmds="$ltdll_cmds"'
5926 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5927 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5928
5929 # If DATA tags from a recent dlltool are present, honour them!
5930 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
5931 _lt_hint=1;
5932 cat $export_symbols | while read symbol; do
5933 set dummy \$symbol;
5934 case \$# in
5935 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5936 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5937 esac;
5938 _lt_hint=`expr 1 + \$_lt_hint`;
5939 done~
5940 '"$ltdll_cmds"'
5941 $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~
5942 $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~
5943 $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~
5944 $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~
5945 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5946 ;;
5947
5948 netbsd*)
5949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5950 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5951 wlarc=
5952 else
5953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5955 fi
5956 ;;
5957
5958 solaris* | sysv5*)
5959 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5960 ld_shlibs=no
5961 cat <<EOF 1>&2
5962
5963*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5964*** create shared libraries on Solaris systems. Therefore, libtool
5965*** is disabling shared libraries support. We urge you to upgrade GNU
5966*** binutils to release 2.9.1 or newer. Another option is to modify
5967*** your PATH or compiler configuration so that the native linker is
5968*** used, and then restart.
5969
5970EOF
5971 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5974 else
5975 ld_shlibs=no
5976 fi
5977 ;;
5978
5979 sunos4*)
5980 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5981 wlarc=
5982 hardcode_direct=yes
5983 hardcode_shlibpath_var=no
5984 ;;
5985
5986 *)
5987 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5990 else
5991 ld_shlibs=no
5992 fi
5993 ;;
5994 esac
5995
5996 if test "$ld_shlibs" = yes; then
5997 runpath_var=LD_RUN_PATH
5998 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5999 export_dynamic_flag_spec='${wl}--export-dynamic'
6000 case $host_os in
6001 cygwin* | mingw* | pw32*)
6002 # dlltool doesn't understand --whole-archive et. al.
6003 whole_archive_flag_spec=
6004 ;;
6005 *)
6006 # ancient GNU ld didn't support --whole-archive et. al.
6007 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6008 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6009 else
6010 whole_archive_flag_spec=
6011 fi
6012 ;;
6013 esac
6014 fi
6015else
6016 # PORTME fill in a description of your system's linker (not GNU ld)
6017 case "$host_os" in
6018 aix3*)
6019 allow_undefined_flag=unsupported
6020 always_export_symbols=yes
6021 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'
6022 # Note: this linker hardcodes the directories in LIBPATH if there
6023 # are no directories specified by -L.
6024 hardcode_minus_L=yes
6025 if test "$GCC" = yes && test -z "$link_static_flag"; then
6026 # Neither direct hardcoding nor static linking is supported with a
6027 # broken collect2.
6028 hardcode_direct=unsupported
6029 fi
6030 ;;
6031
6032 aix4*)
6033 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6034 hardcode_libdir_separator=':'
6035 if test "$GCC" = yes; then
6036 collect2name=`${CC} -print-prog-name=collect2`
6037 if test -f "$collect2name" && \
6038 strings "$collect2name" | grep resolve_lib_name >/dev/null
6039 then
6040 # We have reworked collect2
6041 hardcode_direct=yes
6042 else
6043 # We have old collect2
6044 hardcode_direct=unsupported
6045 # It fails to find uninstalled libraries when the uninstalled
6046 # path is not listed in the libpath. Setting hardcode_minus_L
6047 # to unsupported forces relinking
6048 hardcode_minus_L=yes
6049 hardcode_libdir_flag_spec='-L$libdir'
6050 hardcode_libdir_separator=
6051 fi
6052 shared_flag='-shared'
6053 else
6054 shared_flag='${wl}-bM:SRE'
6055 hardcode_direct=yes
6056 fi
6057 allow_undefined_flag=' ${wl}-berok'
6058 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6059 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6060 case "$host_os" in aix4.[01]|aix4.[01].*)
6061 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6062 always_export_symbols=yes ;;
6063 esac
6064
6065 # We don't want to build shared libraries on unknown CPU types.
6066 case $host_cpu in
6067 powerpc | rs6000) ;;
6068 *) ld_shlibs=no ;;
6069 esac
6070 ;;
6071
6072 amigaos*)
6073 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)'
6074 hardcode_libdir_flag_spec='-L$libdir'
6075 hardcode_minus_L=yes
6076 # see comment about different semantics on the GNU ld section
6077 ld_shlibs=no
6078 ;;
6079
6080 cygwin* | mingw* | pw32*)
6081 # When not using gcc, we currently assume that we are using
6082 # Microsoft Visual C++.
6083 # hardcode_libdir_flag_spec is actually meaningless, as there is
6084 # no search path for DLLs.
6085 hardcode_libdir_flag_spec=' '
6086 allow_undefined_flag=unsupported
6087 # Tell ltmain to make .lib files, not .a files.
6088 libext=lib
6089 # FIXME: Setting linknames here is a bad hack.
6090 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6091 # The linker will automatically build a .lib file if we build a DLL.
6092 old_archive_from_new_cmds='true'
6093 # FIXME: Should let the user specify the lib program.
6094 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6095 fix_srcfile_path='`cygpath -w "$srcfile"`'
6096 ;;
6097
6098 darwin* | rhapsody*)
6099 allow_undefined_flag='-undefined warning'
6100 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6101 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6102 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6103 ## What we need is to hardcode the path to the library, not the search path
6104 #hardcode_direct=yes
6105 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6106 hardcode_shlibpath_var=no
6107 whole_archive_flag_spec='-all_load'
6108 ;;
6109
6110 freebsd1*)
6111 ld_shlibs=no
6112 ;;
6113
6114 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6115 # support. Future versions do this automatically, but an explicit c++rt0.o
6116 # does not break anything, and helps significantly (at the cost of a little
6117 # extra space).
6118 freebsd2.2*)
6119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6120 hardcode_libdir_flag_spec='-R$libdir'
6121 hardcode_direct=yes
6122 hardcode_shlibpath_var=no
6123 ;;
6124
6125 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6126 freebsd2*)
6127 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6128 hardcode_direct=yes
6129 hardcode_minus_L=yes
6130 hardcode_shlibpath_var=no
6131 ;;
6132
6133 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6134 freebsd*)
6135 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6136 hardcode_libdir_flag_spec='-R$libdir'
6137 hardcode_direct=yes
6138 hardcode_shlibpath_var=no
6139 ;;
6140
6141 hpux9* | hpux10* | hpux11*)
6142 case "$host_os" in
6143 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' ;;
6144 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6145 esac
6146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6147 hardcode_libdir_separator=:
6148 hardcode_direct=yes
6149 hardcode_minus_L=yes # Not in the search PATH, but as the default
6150 # location of the library.
6151 export_dynamic_flag_spec='${wl}-E'
6152 ;;
6153
6154 irix5* | irix6*)
6155 if test "$GCC" = yes; then
6156 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'
6157 else
6158 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'
6159 fi
6160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6161 hardcode_libdir_separator=:
6162 link_all_deplibs=yes
6163 ;;
6164
6165 netbsd*)
6166 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6168 else
6169 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6170 fi
6171 hardcode_libdir_flag_spec='-R$libdir'
6172 hardcode_direct=yes
6173 hardcode_shlibpath_var=no
6174 ;;
6175
6176 newsos6)
6177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6178 hardcode_direct=yes
6179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6180 hardcode_libdir_separator=:
6181 hardcode_shlibpath_var=no
6182 ;;
6183
6184 openbsd*)
6185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6186 hardcode_libdir_flag_spec='-R$libdir'
6187 hardcode_direct=yes
6188 hardcode_shlibpath_var=no
6189 ;;
6190
6191 os2*)
6192 hardcode_libdir_flag_spec='-L$libdir'
6193 hardcode_minus_L=yes
6194 allow_undefined_flag=unsupported
6195 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'
6196 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6197 ;;
6198
6199 osf3*)
6200 if test "$GCC" = yes; then
6201 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6202 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'
6203 else
6204 allow_undefined_flag=' -expect_unresolved \*'
6205 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'
6206 fi
6207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6208 hardcode_libdir_separator=:
6209 ;;
6210
6211 osf4* | osf5*) # as osf3* with the addition of -msym flag
6212 if test "$GCC" = yes; then
6213 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6214 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'
6215 else
6216 allow_undefined_flag=' -expect_unresolved \*'
6217 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'
6218 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6219 $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'
6220 fi
6221#Both c and cxx compiler support -rpath directly
6222 hardcode_libdir_flag_spec='-rpath $libdir'
6223 hardcode_libdir_separator=:
6224 ;;
6225
6226 sco3.2v5*)
6227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6228 hardcode_shlibpath_var=no
6229 runpath_var=LD_RUN_PATH
6230 hardcode_runpath_var=yes
6231 ;;
6232
6233 solaris*)
6234 no_undefined_flag=' -z text'
6235 # $CC -shared without GNU ld will not create a library from C++
6236 # object files and a static libstdc++, better avoid it by now
6237 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6238 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6239 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6240 hardcode_libdir_flag_spec='-R$libdir'
6241 hardcode_shlibpath_var=no
6242 case "$host_os" in
6243 solaris2.[0-5] | solaris2.[0-5].*) ;;
6244 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6245 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6246 esac
6247 link_all_deplibs=yes
6248 ;;
6249
6250 sunos4*)
6251 if test "x$host_vendor" = xsequent; then
6252 # Use $CC to link under sequent, because it throws in some extra .o
6253 # files that make .init and .fini sections work.
6254 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6255 else
6256 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6257 fi
6258 hardcode_libdir_flag_spec='-L$libdir'
6259 hardcode_direct=yes
6260 hardcode_minus_L=yes
6261 hardcode_shlibpath_var=no
6262 ;;
6263
6264 sysv4)
6265 if test "x$host_vendor" = xsno; then
6266 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6267 hardcode_direct=yes # is this really true???
6268 else
6269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6271 fi
6272 runpath_var='LD_RUN_PATH'
6273 hardcode_shlibpath_var=no
6274 ;;
6275
6276 sysv4.3*)
6277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6278 hardcode_shlibpath_var=no
6279 export_dynamic_flag_spec='-Bexport'
6280 ;;
6281
6282 sysv5*)
6283 no_undefined_flag=' -z text'
6284 # $CC -shared without GNU ld will not create a library from C++
6285 # object files and a static libstdc++, better avoid it by now
6286 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6287 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6288 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6289 hardcode_libdir_flag_spec=
6290 hardcode_shlibpath_var=no
6291 runpath_var='LD_RUN_PATH'
6292 ;;
6293
6294 uts4*)
6295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6296 hardcode_libdir_flag_spec='-L$libdir'
6297 hardcode_shlibpath_var=no
6298 ;;
6299
6300 dgux*)
6301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6302 hardcode_libdir_flag_spec='-L$libdir'
6303 hardcode_shlibpath_var=no
6304 ;;
6305
6306 sysv4*MP*)
6307 if test -d /usr/nec; then
6308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6309 hardcode_shlibpath_var=no
6310 runpath_var=LD_RUN_PATH
6311 hardcode_runpath_var=yes
6312 ld_shlibs=yes
6313 fi
6314 ;;
6315
6316 sysv4.2uw2*)
6317 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6318 hardcode_direct=yes
6319 hardcode_minus_L=no
6320 hardcode_shlibpath_var=no
6321 hardcode_runpath_var=yes
6322 runpath_var=LD_RUN_PATH
6323 ;;
6324
6325 unixware7*)
6326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6327 runpath_var='LD_RUN_PATH'
6328 hardcode_shlibpath_var=no
6329 ;;
6330
6331 *)
6332 ld_shlibs=no
6333 ;;
6334 esac
6335fi
6336echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6337echo "${ECHO_T}$ld_shlibs" >&6
6338test "$ld_shlibs" = no && can_build_shared=no
6339##
6340## END FIXME
6341
6342## FIXME: this should be a separate macro
6343##
6344# Check hardcoding attributes.
6345echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6346echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6347hardcode_action=
6348if test -n "$hardcode_libdir_flag_spec" || \
6349 test -n "$runpath_var"; then
6350
6351 # We can hardcode non-existant directories.
6352 if test "$hardcode_direct" != no &&
6353 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6354 # have to relink, otherwise we might link with an installed library
6355 # when we should be linking with a yet-to-be-installed one
6356 ## test "$hardcode_shlibpath_var" != no &&
6357 test "$hardcode_minus_L" != no; then
6358 # Linking always hardcodes the temporary library directory.
6359 hardcode_action=relink
6360 else
6361 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6362 hardcode_action=immediate
6363 fi
6364else
6365 # We cannot hardcode anything, or else we can only hardcode existing
6366 # directories.
6367 hardcode_action=unsupported
6368fi
6369echo "$as_me:$LINENO: result: $hardcode_action" >&5
6370echo "${ECHO_T}$hardcode_action" >&6
6371##
6372## END FIXME
6373
6374## FIXME: this should be a separate macro
6375##
6376striplib=
6377old_striplib=
6378echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6379echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6380if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6381 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6382 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6383 echo "$as_me:$LINENO: result: yes" >&5
6384echo "${ECHO_T}yes" >&6
6385else
6386 echo "$as_me:$LINENO: result: no" >&5
6387echo "${ECHO_T}no" >&6
6388fi
6389##
6390## END FIXME
6391
6392reload_cmds='$LD$reload_flag -o $output$reload_objs'
6393test -z "$deplibs_check_method" && deplibs_check_method=unknown
6394
6395## FIXME: this should be a separate macro
6396##
6397# PORTME Fill in your ld.so characteristics
6398echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6399echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6400library_names_spec=
6401libname_spec='lib$name'
6402soname_spec=
6403postinstall_cmds=
6404postuninstall_cmds=
6405finish_cmds=
6406finish_eval=
6407shlibpath_var=
6408shlibpath_overrides_runpath=unknown
6409version_type=none
6410dynamic_linker="$host_os ld.so"
6411sys_lib_dlsearch_path_spec="/lib /usr/lib"
6412sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6413
6414case "$host_os" in
6415aix3*)
6416 version_type=linux
6417 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6418 shlibpath_var=LIBPATH
6419
6420 # AIX has no versioning support, so we append a major version to the name.
6421 soname_spec='${libname}${release}.so$major'
6422 ;;
6423
6424aix4*)
6425 version_type=linux
6426 # AIX has no versioning support, so currently we can not hardcode correct
6427 # soname into executable. Probably we can add versioning support to
6428 # collect2, so additional links can be useful in future.
6429 # We preserve .a as extension for shared libraries though AIX4.2
6430 # and later linker supports .so
6431 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6432 shlibpath_var=LIBPATH
6433 ;;
6434
6435amigaos*)
6436 library_names_spec='$libname.ixlibrary $libname.a'
6437 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6438 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'
6439 ;;
6440
6441beos*)
6442 library_names_spec='${libname}.so'
6443 dynamic_linker="$host_os ld.so"
6444 shlibpath_var=LIBRARY_PATH
6445 ;;
6446
6447bsdi4*)
6448 version_type=linux
6449 need_version=no
6450 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6451 soname_spec='${libname}${release}.so$major'
6452 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6453 shlibpath_var=LD_LIBRARY_PATH
6454 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6455 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6456 export_dynamic_flag_spec=-rdynamic
6457 # the default ld.so.conf also contains /usr/contrib/lib and
6458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6459 # libtool to hard-code these into programs
6460 ;;
6461
6462cygwin* | mingw* | pw32*)
6463 version_type=windows
6464 need_version=no
6465 need_lib_prefix=no
6466 if test "$GCC" = yes; then
6467 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6468 else
6469 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6470 fi
6471 dynamic_linker='Win32 ld.exe'
6472 # FIXME: first we should search . and the directory the executable is in
6473 shlibpath_var=PATH
6474 ;;
6475
6476darwin* | rhapsody*)
6477 need_lib_prefix=no
6478 need_version=no
6479 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6480 shlibpath_overrides_runpath=yes
6481 shlibpath_var=DYLD_LIBRARY_PATH
6482 postinstall_cmds='chmod +x $lib'
6483 ;;
6484
6485freebsd1*)
6486 dynamic_linker=no
6487 ;;
6488
6489freebsd*)
6490 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6491 version_type=freebsd-$objformat
6492 case "$version_type" in
6493 freebsd-elf*)
6494 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6495 need_version=no
6496 need_lib_prefix=no
6497 ;;
6498 freebsd-*)
6499 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6500 need_version=yes
6501 ;;
6502 esac
6503 shlibpath_var=LD_LIBRARY_PATH
6504 case "$host_os" in
6505 freebsd2*)
6506 shlibpath_overrides_runpath=yes
6507 ;;
6508 *)
6509 shlibpath_overrides_runpath=no
6510 hardcode_into_libs=yes
6511 ;;
6512 esac
6513 ;;
6514
6515gnu*)
6516 version_type=linux
6517 need_lib_prefix=no
6518 need_version=no
6519 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6520 soname_spec='${libname}${release}.so$major'
6521 shlibpath_var=LD_LIBRARY_PATH
6522 hardcode_into_libs=yes
6523 ;;
6524
6525hpux9* | hpux10* | hpux11*)
6526 # Give a soname corresponding to the major version so that dld.sl refuses to
6527 # link against other versions.
6528 dynamic_linker="$host_os dld.sl"
6529 version_type=sunos
6530 need_lib_prefix=no
6531 need_version=no
6532 shlibpath_var=SHLIB_PATH
6533 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6534 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6535 soname_spec='${libname}${release}.sl$major'
6536 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6537 postinstall_cmds='chmod 555 $lib'
6538 ;;
6539
6540irix5* | irix6*)
6541 version_type=irix
6542 need_lib_prefix=no
6543 need_version=no
6544 soname_spec='${libname}${release}.so$major'
6545 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6546 case "$host_os" in
6547 irix5*)
6548 libsuff= shlibsuff=
6549 ;;
6550 *)
6551 case "$LD" in # libtool.m4 will add one of these switches to LD
6552 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6553 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6554 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6555 *) libsuff= shlibsuff= libmagic=never-match;;
6556 esac
6557 ;;
6558 esac
6559 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6560 shlibpath_overrides_runpath=no
6561 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6562 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6563 ;;
6564
6565# No shared lib support for Linux oldld, aout, or coff.
6566linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6567 dynamic_linker=no
6568 ;;
6569
6570# This must be Linux ELF.
6571linux-gnu*)
6572 version_type=linux
6573 need_lib_prefix=no
6574 need_version=no
6575 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6576 soname_spec='${libname}${release}.so$major'
6577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6578 shlibpath_var=LD_LIBRARY_PATH
6579 shlibpath_overrides_runpath=no
6580 # This implies no fast_install, which is unacceptable.
6581 # Some rework will be needed to allow for fast_install
6582 # before this can be enabled.
6583 hardcode_into_libs=yes
6584
6585 # We used to test for /lib/ld.so.1 and disable shared libraries on
6586 # powerpc, because MkLinux only supported shared libraries with the
6587 # GNU dynamic linker. Since this was broken with cross compilers,
6588 # most powerpc-linux boxes support dynamic linking these days and
6589 # people can always --disable-shared, the test was removed, and we
6590 # assume the GNU/Linux dynamic linker is in use.
6591 dynamic_linker='GNU/Linux ld.so'
6592 ;;
6593
6594netbsd*)
6595 version_type=sunos
6596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6597 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6599 dynamic_linker='NetBSD (a.out) ld.so'
6600 else
6601 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6602 soname_spec='${libname}${release}.so$major'
6603 dynamic_linker='NetBSD ld.elf_so'
6604 fi
6605 shlibpath_var=LD_LIBRARY_PATH
6606 shlibpath_overrides_runpath=yes
6607 hardcode_into_libs=yes
6608 ;;
6609
6610newsos6)
6611 version_type=linux
6612 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6613 shlibpath_var=LD_LIBRARY_PATH
6614 shlibpath_overrides_runpath=yes
6615 ;;
6616
6617openbsd*)
6618 version_type=sunos
6619 if test "$with_gnu_ld" = yes; then
6620 need_lib_prefix=no
6621 need_version=no
6622 fi
6623 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6625 shlibpath_var=LD_LIBRARY_PATH
6626 ;;
6627
6628os2*)
6629 libname_spec='$name'
6630 need_lib_prefix=no
6631 library_names_spec='$libname.dll $libname.a'
6632 dynamic_linker='OS/2 ld.exe'
6633 shlibpath_var=LIBPATH
6634 ;;
6635
6636osf3* | osf4* | osf5*)
6637 version_type=osf
6638 need_version=no
6639 soname_spec='${libname}${release}.so'
6640 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6641 shlibpath_var=LD_LIBRARY_PATH
6642 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6643 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6644 ;;
6645
6646sco3.2v5*)
6647 version_type=osf
6648 soname_spec='${libname}${release}.so$major'
6649 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6650 shlibpath_var=LD_LIBRARY_PATH
6651 ;;
6652
6653solaris*)
6654 version_type=linux
6655 need_lib_prefix=no
6656 need_version=no
6657 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6658 soname_spec='${libname}${release}.so$major'
6659 shlibpath_var=LD_LIBRARY_PATH
6660 shlibpath_overrides_runpath=yes
6661 hardcode_into_libs=yes
6662 # ldd complains unless libraries are executable
6663 postinstall_cmds='chmod +x $lib'
6664 ;;
6665
6666sunos4*)
6667 version_type=sunos
6668 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6669 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6670 shlibpath_var=LD_LIBRARY_PATH
6671 shlibpath_overrides_runpath=yes
6672 if test "$with_gnu_ld" = yes; then
6673 need_lib_prefix=no
6674 fi
6675 need_version=yes
6676 ;;
6677
6678sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6679 version_type=linux
6680 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6681 soname_spec='${libname}${release}.so$major'
6682 shlibpath_var=LD_LIBRARY_PATH
6683 case "$host_vendor" in
6684 sni)
6685 shlibpath_overrides_runpath=no
6686 ;;
6687 motorola)
6688 need_lib_prefix=no
6689 need_version=no
6690 shlibpath_overrides_runpath=no
6691 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6692 ;;
6693 esac
6694 ;;
6695
6696uts4*)
6697 version_type=linux
6698 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6699 soname_spec='${libname}${release}.so$major'
6700 shlibpath_var=LD_LIBRARY_PATH
6701 ;;
6702
6703dgux*)
6704 version_type=linux
6705 need_lib_prefix=no
6706 need_version=no
6707 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6708 soname_spec='${libname}${release}.so$major'
6709 shlibpath_var=LD_LIBRARY_PATH
6710 ;;
6711
6712sysv4*MP*)
6713 if test -d /usr/nec ;then
6714 version_type=linux
6715 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6716 soname_spec='$libname.so.$major'
6717 shlibpath_var=LD_LIBRARY_PATH
6718 fi
6719 ;;
6720
6721*)
6722 dynamic_linker=no
6723 ;;
6724esac
6725echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6726echo "${ECHO_T}$dynamic_linker" >&6
6727test "$dynamic_linker" = no && can_build_shared=no
6728##
6729## END FIXME
6730
6731## FIXME: this should be a separate macro
6732##
6733# Report the final consequences.
6734echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6735echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6736echo "$as_me:$LINENO: result: $can_build_shared" >&5
6737echo "${ECHO_T}$can_build_shared" >&6
6738##
6739## END FIXME
6740
6741if test "$hardcode_action" = relink; then
6742 # Fast installation is not supported
6743 enable_fast_install=no
6744elif test "$shlibpath_overrides_runpath" = yes ||
6745 test "$enable_shared" = no; then
6746 # Fast installation is not necessary
6747 enable_fast_install=needless
6748fi
6749
6750variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6751if test "$GCC" = yes; then
6752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6753fi
6754
6755if test "x$enable_dlopen" != xyes; then
6756 enable_dlopen=unknown
6757 enable_dlopen_self=unknown
6758 enable_dlopen_self_static=unknown
6759else
6760 lt_cv_dlopen=no
6761 lt_cv_dlopen_libs=
6762
6763 case "$host_os" in
6764 beos*)
6765 lt_cv_dlopen="load_add_on"
6766 lt_cv_dlopen_libs=
6767 lt_cv_dlopen_self=yes
6768 ;;
6769
6770 cygwin* | mingw* | pw32*)
6771 lt_cv_dlopen="LoadLibrary"
6772 lt_cv_dlopen_libs=
6773 ;;
6774
6775 *)
6776 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6777echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6778if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781 ac_check_lib_save_LIBS=$LIBS
6782LIBS="-ldl $LIBS"
6783cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h. */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h. */
6789
6790/* Override any gcc2 internal prototype to avoid an error. */
6791#ifdef __cplusplus
6792extern "C"
6793#endif
6794/* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6796char dlopen ();
6797int
6798main ()
6799{
6800dlopen ();
6801 ;
6802 return 0;
6803}
6804_ACEOF
6805rm -f conftest.$ac_objext conftest$ac_exeext
6806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807 (eval $ac_link) 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; } &&
6820 { ac_try='test -s conftest$ac_exeext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6826 ac_cv_lib_dl_dlopen=yes
6827else
6828 echo "$as_me: failed program was:" >&5
6829sed 's/^/| /' conftest.$ac_ext >&5
6830
6831ac_cv_lib_dl_dlopen=no
6832fi
6833rm -f conftest.err conftest.$ac_objext \
6834 conftest$ac_exeext conftest.$ac_ext
6835LIBS=$ac_check_lib_save_LIBS
6836fi
6837echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6838echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6839if test $ac_cv_lib_dl_dlopen = yes; then
6840 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6841else
6842 echo "$as_me:$LINENO: checking for dlopen" >&5
6843echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6844if test "${ac_cv_func_dlopen+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846else
6847 cat >conftest.$ac_ext <<_ACEOF
6848/* confdefs.h. */
6849_ACEOF
6850cat confdefs.h >>conftest.$ac_ext
6851cat >>conftest.$ac_ext <<_ACEOF
6852/* end confdefs.h. */
6853/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 3385/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
6854 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6855#define dlopen innocuous_dlopen 3387#define setlocale innocuous_setlocale
6856 3388
6857/* System header to define __stub macros and hopefully few prototypes, 3389/* System header to define __stub macros and hopefully few prototypes,
6858 which can conflict with char dlopen (); below. 3390 which can conflict with char setlocale (); below.
6859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6860 <limits.h> exists even on freestanding compilers. */ 3392 <limits.h> exists even on freestanding compilers. */
6861 3393
6862#ifdef __STDC__ 3394#ifdef __STDC__
6863# include <limits.h> 3395# include <limits.h>
6864#else 3396#else
6865# include <assert.h> 3397# include <assert.h>
6866#endif 3398#endif
6867 3399
6868#undef dlopen 3400#undef setlocale
6869 3401
6870/* Override any gcc2 internal prototype to avoid an error. */ 3402/* Override any gcc2 internal prototype to avoid an error. */
6871#ifdef __cplusplus 3403#ifdef __cplusplus
6872extern "C" 3404extern "C"
6873{ 3405{
6874#endif 3406#endif
6875/* We use char because int might match the return type of a gcc2 3407/* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */ 3408 builtin and then its argument prototype would still apply. */
6877char dlopen (); 3409char setlocale ();
6878/* The GNU C library defines this for functions which it implements 3410/* The GNU C library defines this for functions which it implements
6879 to always fail with ENOSYS. Some functions are actually named 3411 to always fail with ENOSYS. Some functions are actually named
6880 something starting with __ and the normal name is an alias. */ 3412 something starting with __ and the normal name is an alias. */
6881#if defined (__stub_dlopen) || defined (__stub___dlopen) 3413#if defined (__stub_setlocale) || defined (__stub___setlocale)
6882choke me 3414choke me
6883#else 3415#else
6884char (*f) () = dlopen; 3416char (*f) () = setlocale;
6885#endif 3417#endif
6886#ifdef __cplusplus 3418#ifdef __cplusplus
6887} 3419}
6888#endif 3420#endif
6889 3421
6890int 3422int
6891main () 3423main ()
6892{ 3424{
6893return f != dlopen; 3425return f != setlocale;
6894 ; 3426 ;
6895 return 0; 3427 return 0;
6896} 3428}
6897_ACEOF 3429_ACEOF
6898rm -f conftest.$ac_objext conftest$ac_exeext 3430rm -f conftest.$ac_objext conftest$ac_exeext
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5 3447 (eval $ac_try) 2>&5
6916 ac_status=$? 3448 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then 3450 (exit $ac_status); }; }; then
6919 ac_cv_func_dlopen=yes 3451 ac_cv_func_setlocale=yes
6920else 3452else
6921 echo "$as_me: failed program was:" >&5 3453 echo "$as_me: failed program was:" >&5
6922sed 's/^/| /' conftest.$ac_ext >&5 3454sed 's/^/| /' conftest.$ac_ext >&5
6923 3455
6924ac_cv_func_dlopen=no 3456ac_cv_func_setlocale=no
6925fi 3457fi
6926rm -f conftest.err conftest.$ac_objext \ 3458rm -f conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext 3459 conftest$ac_exeext conftest.$ac_ext
6928fi 3460fi
6929echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 3461echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
6930echo "${ECHO_T}$ac_cv_func_dlopen" >&6 3462echo "${ECHO_T}$ac_cv_func_setlocale" >&6
6931if test $ac_cv_func_dlopen = yes; then 3463if test $ac_cv_func_setlocale = yes; then
6932 lt_cv_dlopen="dlopen" 3464 :
6933else 3465else
6934 echo "$as_me:$LINENO: checking for shl_load" >&5 3466 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
6935echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 3467echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
6936if test "${ac_cv_func_shl_load+set}" = set; then 3468if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6 3469 echo $ECHO_N "(cached) $ECHO_C" >&6
6938else 3470else
3471 ac_check_lib_save_LIBS=$LIBS
3472LIBS="-lxpg4 $LIBS"
6939 cat >conftest.$ac_ext <<_ACEOF 3473cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h. */ 3474/* confdefs.h. */
6941_ACEOF 3475_ACEOF
6942cat confdefs.h >>conftest.$ac_ext 3476cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF 3477cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h. */ 3478/* end confdefs.h. */
3479
3480/* Override any gcc2 internal prototype to avoid an error. */
3481#ifdef __cplusplus
3482extern "C"
3483#endif
3484/* We use char because int might match the return type of a gcc2
3485 builtin and then its argument prototype would still apply. */
3486char setlocale ();
3487int
3488main ()
3489{
3490setlocale ();
3491 ;
3492 return 0;
3493}
3494_ACEOF
3495rm -f conftest.$ac_objext conftest$ac_exeext
3496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3497 (eval $ac_link) 2>conftest.er1
3498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
3501 cat conftest.err >&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 (eval $ac_try) 2>&5
3507 ac_status=$?
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; } &&
3510 { ac_try='test -s conftest$ac_exeext'
3511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 (eval $ac_try) 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3516 ac_cv_lib_xpg4_setlocale=yes
3517else
3518 echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521ac_cv_lib_xpg4_setlocale=no
3522fi
3523rm -f conftest.err conftest.$ac_objext \
3524 conftest$ac_exeext conftest.$ac_ext
3525LIBS=$ac_check_lib_save_LIBS
3526fi
3527echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3528echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3529if test $ac_cv_lib_xpg4_setlocale = yes; then
3530 LIBS="$LIBS -lxpg4"
3531fi
3532
3533fi
3534
3535
3536echo "$as_me:$LINENO: checking for gethostbyname" >&5
3537echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3538if test "${ac_cv_func_gethostbyname+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540else
3541 cat >conftest.$ac_ext <<_ACEOF
3542/* confdefs.h. */
3543_ACEOF
3544cat confdefs.h >>conftest.$ac_ext
3545cat >>conftest.$ac_ext <<_ACEOF
3546/* end confdefs.h. */
6945/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 3547/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6946 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6947#define shl_load innocuous_shl_load 3549#define gethostbyname innocuous_gethostbyname
6948 3550
6949/* System header to define __stub macros and hopefully few prototypes, 3551/* System header to define __stub macros and hopefully few prototypes,
6950 which can conflict with char shl_load (); below. 3552 which can conflict with char gethostbyname (); below.
6951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6952 <limits.h> exists even on freestanding compilers. */ 3554 <limits.h> exists even on freestanding compilers. */
6953 3555
6954#ifdef __STDC__ 3556#ifdef __STDC__
6955# include <limits.h> 3557# include <limits.h>
6956#else 3558#else
6957# include <assert.h> 3559# include <assert.h>
6958#endif 3560#endif
6959 3561
6960#undef shl_load 3562#undef gethostbyname
6961 3563
6962/* Override any gcc2 internal prototype to avoid an error. */ 3564/* Override any gcc2 internal prototype to avoid an error. */
6963#ifdef __cplusplus 3565#ifdef __cplusplus
6964extern "C" 3566extern "C"
6965{ 3567{
6966#endif 3568#endif
6967/* We use char because int might match the return type of a gcc2 3569/* We use char because int might match the return type of a gcc2
6968 builtin and then its argument prototype would still apply. */ 3570 builtin and then its argument prototype would still apply. */
6969char shl_load (); 3571char gethostbyname ();
6970/* The GNU C library defines this for functions which it implements 3572/* The GNU C library defines this for functions which it implements
6971 to always fail with ENOSYS. Some functions are actually named 3573 to always fail with ENOSYS. Some functions are actually named
6972 something starting with __ and the normal name is an alias. */ 3574 something starting with __ and the normal name is an alias. */
6973#if defined (__stub_shl_load) || defined (__stub___shl_load) 3575#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6974choke me 3576choke me
6975#else 3577#else
6976char (*f) () = shl_load; 3578char (*f) () = gethostbyname;
6977#endif 3579#endif
6978#ifdef __cplusplus 3580#ifdef __cplusplus
6979} 3581}
6980#endif 3582#endif
6981 3583
6982int 3584int
6983main () 3585main ()
6984{ 3586{
6985return f != shl_load; 3587return f != gethostbyname;
6986 ; 3588 ;
6987 return 0; 3589 return 0;
6988} 3590}
6989_ACEOF 3591_ACEOF
6990rm -f conftest.$ac_objext conftest$ac_exeext 3592rm -f conftest.$ac_objext conftest$ac_exeext
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5 3609 (eval $ac_try) 2>&5
7008 ac_status=$? 3610 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then 3612 (exit $ac_status); }; }; then
7011 ac_cv_func_shl_load=yes 3613 ac_cv_func_gethostbyname=yes
7012else 3614else
7013 echo "$as_me: failed program was:" >&5 3615 echo "$as_me: failed program was:" >&5
7014sed 's/^/| /' conftest.$ac_ext >&5 3616sed 's/^/| /' conftest.$ac_ext >&5
7015 3617
7016ac_cv_func_shl_load=no 3618ac_cv_func_gethostbyname=no
7017fi 3619fi
7018rm -f conftest.err conftest.$ac_objext \ 3620rm -f conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext 3621 conftest$ac_exeext conftest.$ac_ext
7020fi 3622fi
7021echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 3623echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7022echo "${ECHO_T}$ac_cv_func_shl_load" >&6 3624echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7023if test $ac_cv_func_shl_load = yes; then 3625if test $ac_cv_func_gethostbyname = yes; then
7024 lt_cv_dlopen="shl_load" 3626 :
7025else 3627else
7026 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 3628 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7027echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 3629echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7028if test "${ac_cv_lib_svld_dlopen+set}" = set; then 3630if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6 3631 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else 3632else
7031 ac_check_lib_save_LIBS=$LIBS 3633 ac_check_lib_save_LIBS=$LIBS
7032LIBS="-lsvld $LIBS" 3634LIBS="-lnsl $LIBS"
7033cat >conftest.$ac_ext <<_ACEOF 3635cat >conftest.$ac_ext <<_ACEOF
7034/* confdefs.h. */ 3636/* confdefs.h. */
7035_ACEOF 3637_ACEOF
7036cat confdefs.h >>conftest.$ac_ext 3638cat confdefs.h >>conftest.$ac_ext
7037cat >>conftest.$ac_ext <<_ACEOF 3639cat >>conftest.$ac_ext <<_ACEOF
7041#ifdef __cplusplus 3643#ifdef __cplusplus
7042extern "C" 3644extern "C"
7043#endif 3645#endif
7044/* We use char because int might match the return type of a gcc2 3646/* We use char because int might match the return type of a gcc2
7045 builtin and then its argument prototype would still apply. */ 3647 builtin and then its argument prototype would still apply. */
7046char dlopen (); 3648char gethostbyname ();
7047int 3649int
7048main () 3650main ()
7049{ 3651{
7050dlopen (); 3652gethostbyname ();
7051 ; 3653 ;
7052 return 0; 3654 return 0;
7053} 3655}
7054_ACEOF 3656_ACEOF
7055rm -f conftest.$ac_objext conftest$ac_exeext 3657rm -f conftest.$ac_objext conftest$ac_exeext
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5 3674 (eval $ac_try) 2>&5
7073 ac_status=$? 3675 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then 3677 (exit $ac_status); }; }; then
7076 ac_cv_lib_svld_dlopen=yes 3678 ac_cv_lib_nsl_gethostbyname=yes
7077else 3679else
7078 echo "$as_me: failed program was:" >&5 3680 echo "$as_me: failed program was:" >&5
7079sed 's/^/| /' conftest.$ac_ext >&5 3681sed 's/^/| /' conftest.$ac_ext >&5
7080 3682
7081ac_cv_lib_svld_dlopen=no 3683ac_cv_lib_nsl_gethostbyname=no
7082fi 3684fi
7083rm -f conftest.err conftest.$ac_objext \ 3685rm -f conftest.err conftest.$ac_objext \
7084 conftest$ac_exeext conftest.$ac_ext 3686 conftest$ac_exeext conftest.$ac_ext
7085LIBS=$ac_check_lib_save_LIBS 3687LIBS=$ac_check_lib_save_LIBS
7086fi 3688fi
7087echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 3689echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7088echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 3690echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7089if test $ac_cv_lib_svld_dlopen = yes; then 3691if test $ac_cv_lib_nsl_gethostbyname = yes; then
7090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 3692 LIBS="$LIBS -lnsl"
7091else 3693fi
3694
3695fi
3696
7092 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 3697echo "$as_me:$LINENO: checking for socket" >&5
7093echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 3698echo $ECHO_N "checking for socket... $ECHO_C" >&6
7094if test "${ac_cv_lib_dld_shl_load+set}" = set; then 3699if test "${ac_cv_func_socket+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6 3700 echo $ECHO_N "(cached) $ECHO_C" >&6
7096else 3701else
3702 cat >conftest.$ac_ext <<_ACEOF
3703/* confdefs.h. */
3704_ACEOF
3705cat confdefs.h >>conftest.$ac_ext
3706cat >>conftest.$ac_ext <<_ACEOF
3707/* end confdefs.h. */
3708/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3710#define socket innocuous_socket
3711
3712/* System header to define __stub macros and hopefully few prototypes,
3713 which can conflict with char socket (); below.
3714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3715 <limits.h> exists even on freestanding compilers. */
3716
3717#ifdef __STDC__
3718# include <limits.h>
3719#else
3720# include <assert.h>
3721#endif
3722
3723#undef socket
3724
3725/* Override any gcc2 internal prototype to avoid an error. */
3726#ifdef __cplusplus
3727extern "C"
3728{
3729#endif
3730/* We use char because int might match the return type of a gcc2
3731 builtin and then its argument prototype would still apply. */
3732char socket ();
3733/* The GNU C library defines this for functions which it implements
3734 to always fail with ENOSYS. Some functions are actually named
3735 something starting with __ and the normal name is an alias. */
3736#if defined (__stub_socket) || defined (__stub___socket)
3737choke me
3738#else
3739char (*f) () = socket;
3740#endif
3741#ifdef __cplusplus
3742}
3743#endif
3744
3745int
3746main ()
3747{
3748return f != socket;
3749 ;
3750 return 0;
3751}
3752_ACEOF
3753rm -f conftest.$ac_objext conftest$ac_exeext
3754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3755 (eval $ac_link) 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } &&
3762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 (eval $ac_try) 2>&5
3765 ac_status=$?
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); }; } &&
3768 { ac_try='test -s conftest$ac_exeext'
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
3774 ac_cv_func_socket=yes
3775else
3776 echo "$as_me: failed program was:" >&5
3777sed 's/^/| /' conftest.$ac_ext >&5
3778
3779ac_cv_func_socket=no
3780fi
3781rm -f conftest.err conftest.$ac_objext \
3782 conftest$ac_exeext conftest.$ac_ext
3783fi
3784echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3785echo "${ECHO_T}$ac_cv_func_socket" >&6
3786if test $ac_cv_func_socket = yes; then
3787 :
3788else
3789 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3790echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3791if test "${ac_cv_lib_socket_socket+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
7097 ac_check_lib_save_LIBS=$LIBS 3794 ac_check_lib_save_LIBS=$LIBS
7098LIBS="-ldld $LIBS" 3795LIBS="-lsocket $LIBS"
7099cat >conftest.$ac_ext <<_ACEOF 3796cat >conftest.$ac_ext <<_ACEOF
7100/* confdefs.h. */ 3797/* confdefs.h. */
7101_ACEOF 3798_ACEOF
7102cat confdefs.h >>conftest.$ac_ext 3799cat confdefs.h >>conftest.$ac_ext
7103cat >>conftest.$ac_ext <<_ACEOF 3800cat >>conftest.$ac_ext <<_ACEOF
7107#ifdef __cplusplus 3804#ifdef __cplusplus
7108extern "C" 3805extern "C"
7109#endif 3806#endif
7110/* We use char because int might match the return type of a gcc2 3807/* We use char because int might match the return type of a gcc2
7111 builtin and then its argument prototype would still apply. */ 3808 builtin and then its argument prototype would still apply. */
7112char shl_load (); 3809char socket ();
7113int 3810int
7114main () 3811main ()
7115{ 3812{
7116shl_load (); 3813socket ();
7117 ; 3814 ;
7118 return 0; 3815 return 0;
7119} 3816}
7120_ACEOF 3817_ACEOF
7121rm -f conftest.$ac_objext conftest$ac_exeext 3818rm -f conftest.$ac_objext conftest$ac_exeext
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 (eval $ac_try) 2>&5 3835 (eval $ac_try) 2>&5
7139 ac_status=$? 3836 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then 3838 (exit $ac_status); }; }; then
7142 ac_cv_lib_dld_shl_load=yes 3839 ac_cv_lib_socket_socket=yes
7143else 3840else
7144 echo "$as_me: failed program was:" >&5 3841 echo "$as_me: failed program was:" >&5
7145sed 's/^/| /' conftest.$ac_ext >&5 3842sed 's/^/| /' conftest.$ac_ext >&5
7146 3843
7147ac_cv_lib_dld_shl_load=no 3844ac_cv_lib_socket_socket=no
7148fi 3845fi
7149rm -f conftest.err conftest.$ac_objext \ 3846rm -f conftest.err conftest.$ac_objext \
7150 conftest$ac_exeext conftest.$ac_ext 3847 conftest$ac_exeext conftest.$ac_ext
7151LIBS=$ac_check_lib_save_LIBS 3848LIBS=$ac_check_lib_save_LIBS
7152fi 3849fi
7153echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 3850echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7154echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 3851echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7155if test $ac_cv_lib_dld_shl_load = yes; then 3852if test $ac_cv_lib_socket_socket = yes; then
7156 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 3853 LIBS="$LIBS -lsocket"
7157fi 3854fi
7158 3855
7159
7160fi 3856fi
7161 3857
7162 3858
7163fi
7164 3859
7165
7166fi
7167
7168
7169fi
7170
7171 ;;
7172 esac
7173
7174 if test "x$lt_cv_dlopen" != xno; then
7175 enable_dlopen=yes
7176 else
7177 enable_dlopen=no
7178 fi
7179
7180 case "$lt_cv_dlopen" in
7181 dlopen)
7182 save_CPPFLAGS="$CPP_FLAGS"
7183 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7184
7185 save_LDFLAGS="$LDFLAGS"
7186 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7187
7188 save_LIBS="$LIBS"
7189 LIBS="$lt_cv_dlopen_libs $LIBS"
7190
7191 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7192echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7193if test "${lt_cv_dlopen_self+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196 if test "$cross_compiling" = yes; then :
7197 lt_cv_dlopen_self=cross
7198else
7199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7200 lt_status=$lt_dlunknown
7201 cat > conftest.$ac_ext <<EOF
7202#line 7202 "configure"
7203#include "confdefs.h"
7204
7205#if HAVE_DLFCN_H
7206#include <dlfcn.h>
7207#endif
7208
7209#include <stdio.h>
7210
7211#ifdef RTLD_GLOBAL
7212# define LT_DLGLOBAL RTLD_GLOBAL
7213#else
7214# ifdef DL_GLOBAL
7215# define LT_DLGLOBAL DL_GLOBAL
7216# else
7217# define LT_DLGLOBAL 0
7218# endif
7219#endif
7220
7221/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7222 find out it does not work in some platform. */
7223#ifndef LT_DLLAZY_OR_NOW
7224# ifdef RTLD_LAZY
7225# define LT_DLLAZY_OR_NOW RTLD_LAZY
7226# else
7227# ifdef DL_LAZY
7228# define LT_DLLAZY_OR_NOW DL_LAZY
7229# else
7230# ifdef RTLD_NOW
7231# define LT_DLLAZY_OR_NOW RTLD_NOW
7232# else
7233# ifdef DL_NOW
7234# define LT_DLLAZY_OR_NOW DL_NOW
7235# else
7236# define LT_DLLAZY_OR_NOW 0
7237# endif
7238# endif
7239# endif
7240# endif
7241#endif
7242
7243#ifdef __cplusplus
7244extern "C" void exit (int);
7245#endif
7246
7247fnord() { int i=42;}
7248main ()
7249{
7250 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7251 int status = $lt_dlunknown;
7252
7253 if (self)
7254 {
7255 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7256 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7257 /* dlclose (self); */
7258 }
7259
7260 exit (status);
7261}
7262EOF
7263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7264 (eval $ac_link) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7268 (./conftest; exit; ) 2>/dev/null
7269 lt_status=$?
7270 case x$lt_status in
7271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7273 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7274 esac
7275 else :
7276 # compilation failed
7277 lt_cv_dlopen_self=no
7278 fi
7279fi
7280rm -fr conftest*
7281
7282
7283fi
7284echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7285echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7286
7287 if test "x$lt_cv_dlopen_self" = xyes; then
7288 LDFLAGS="$LDFLAGS $link_static_flag"
7289 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7290echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7291if test "${lt_cv_dlopen_self_static+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293else
7294 if test "$cross_compiling" = yes; then :
7295 lt_cv_dlopen_self_static=cross
7296else
7297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7298 lt_status=$lt_dlunknown
7299 cat > conftest.$ac_ext <<EOF
7300#line 7300 "configure"
7301#include "confdefs.h"
7302
7303#if HAVE_DLFCN_H
7304#include <dlfcn.h>
7305#endif
7306
7307#include <stdio.h>
7308
7309#ifdef RTLD_GLOBAL
7310# define LT_DLGLOBAL RTLD_GLOBAL
7311#else
7312# ifdef DL_GLOBAL
7313# define LT_DLGLOBAL DL_GLOBAL
7314# else
7315# define LT_DLGLOBAL 0
7316# endif
7317#endif
7318
7319/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7320 find out it does not work in some platform. */
7321#ifndef LT_DLLAZY_OR_NOW
7322# ifdef RTLD_LAZY
7323# define LT_DLLAZY_OR_NOW RTLD_LAZY
7324# else
7325# ifdef DL_LAZY
7326# define LT_DLLAZY_OR_NOW DL_LAZY
7327# else
7328# ifdef RTLD_NOW
7329# define LT_DLLAZY_OR_NOW RTLD_NOW
7330# else
7331# ifdef DL_NOW
7332# define LT_DLLAZY_OR_NOW DL_NOW
7333# else
7334# define LT_DLLAZY_OR_NOW 0
7335# endif
7336# endif
7337# endif
7338# endif
7339#endif
7340
7341#ifdef __cplusplus
7342extern "C" void exit (int);
7343#endif
7344
7345fnord() { int i=42;}
7346main ()
7347{
7348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7349 int status = $lt_dlunknown;
7350
7351 if (self)
7352 {
7353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7355 /* dlclose (self); */
7356 }
7357
7358 exit (status);
7359}
7360EOF
7361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362 (eval $ac_link) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7366 (./conftest; exit; ) 2>/dev/null
7367 lt_status=$?
7368 case x$lt_status in
7369 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7370 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7371 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7372 esac
7373 else :
7374 # compilation failed
7375 lt_cv_dlopen_self_static=no
7376 fi
7377fi
7378rm -fr conftest*
7379
7380
7381fi
7382echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7383echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7384 fi
7385
7386 CPPFLAGS="$save_CPPFLAGS"
7387 LDFLAGS="$save_LDFLAGS"
7388 LIBS="$save_LIBS"
7389 ;;
7390 esac
7391
7392 case "$lt_cv_dlopen_self" in
7393 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7394 *) enable_dlopen_self=unknown ;;
7395 esac
7396
7397 case "$lt_cv_dlopen_self_static" in
7398 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7399 *) enable_dlopen_self_static=unknown ;;
7400 esac
7401fi
7402
7403
7404## FIXME: this should be a separate macro
7405##
7406if test "$enable_shared" = yes && test "$GCC" = yes; then
7407 case "$archive_cmds" in
7408 *'~'*)
7409 # FIXME: we may have to deal with multi-command sequences.
7410 ;;
7411 '$CC '*)
7412 # Test whether the compiler implicitly links with -lc since on some
7413 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7414 # to ld, don't add -lc before -lgcc.
7415 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7416echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7417 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419else
7420 $rm conftest*
7421 echo 'static int dummy;' > conftest.$ac_ext
7422
7423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7424 (eval $ac_compile) 2>&5
7425 ac_status=$?
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; then
7428 soname=conftest
7429 lib=conftest
7430 libobjs=conftest.$ac_objext
7431 deplibs=
7432 wl=$lt_cv_prog_cc_wl
7433 compiler_flags=-v
7434 linker_flags=-v
7435 verstring=
7436 output_objdir=.
7437 libname=conftest
7438 save_allow_undefined_flag=$allow_undefined_flag
7439 allow_undefined_flag=
7440 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7441 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }
7445 then
7446 lt_cv_archive_cmds_need_lc=no
7447 else
7448 lt_cv_archive_cmds_need_lc=yes
7449 fi
7450 allow_undefined_flag=$save_allow_undefined_flag
7451 else
7452 cat conftest.err 1>&5
7453 fi
7454fi
7455
7456 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7457echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7458 ;;
7459 esac
7460fi
7461need_lc=${lt_cv_archive_cmds_need_lc-yes}
7462##
7463## END FIXME
7464
7465## FIXME: this should be a separate macro
7466##
7467# The second clause should only fire when bootstrapping the
7468# libtool distribution, otherwise you forgot to ship ltmain.sh
7469# with your package, and you will get complaints that there are
7470# no rules to generate ltmain.sh.
7471if test -f "$ltmain"; then
7472 :
7473else
7474 # If there is no Makefile yet, we rely on a make rule to execute
7475 # `config.status --recheck' to rerun these tests and create the
7476 # libtool script then.
7477 test -f Makefile && make "$ltmain"
7478fi
7479
7480if test -f "$ltmain"; then
7481 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7482 $rm -f "${ofile}T"
7483
7484 echo creating $ofile
7485
7486 # Now quote all the things that may contain metacharacters while being
7487 # careful not to overquote the AC_SUBSTed values. We take copies of the
7488 # variables and quote the copies for generation of the libtool script.
7489 for var in echo old_CC old_CFLAGS \
7490 AR AR_FLAGS CC LD LN_S NM SHELL \
7491 reload_flag reload_cmds wl \
7492 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7493 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7494 library_names_spec soname_spec \
7495 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7496 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7497 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7498 old_striplib striplib file_magic_cmd export_symbols_cmds \
7499 deplibs_check_method allow_undefined_flag no_undefined_flag \
7500 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7501 hardcode_libdir_flag_spec hardcode_libdir_separator \
7502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7503 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7504
7505 case "$var" in
7506 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7507 old_postinstall_cmds | old_postuninstall_cmds | \
7508 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7509 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7510 postinstall_cmds | postuninstall_cmds | \
7511 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7512 # Double-quote double-evaled strings.
7513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7514 ;;
7515 *)
7516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7517 ;;
7518 esac
7519 done
7520
7521 cat <<__EOF__ > "${ofile}T"
7522#! $SHELL
7523
7524# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7525# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7526# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7527#
7528# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7529# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7530#
7531# This program is free software; you can redistribute it and/or modify
7532# it under the terms of the GNU General Public License as published by
7533# the Free Software Foundation; either version 2 of the License, or
7534# (at your option) any later version.
7535#
7536# This program is distributed in the hope that it will be useful, but
7537# WITHOUT ANY WARRANTY; without even the implied warranty of
7538# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7539# General Public License for more details.
7540#
7541# You should have received a copy of the GNU General Public License
7542# along with this program; if not, write to the Free Software
7543# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7544#
7545# As a special exception to the GNU General Public License, if you
7546# distribute this file as part of a program that contains a
7547# configuration script generated by Autoconf, you may include it under
7548# the same distribution terms that you use for the rest of that program.
7549
7550# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7551Xsed="sed -e s/^X//"
7552
7553# The HP-UX ksh and POSIX shell print the target directory to stdout
7554# if CDPATH is set.
7555if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7556
7557# ### BEGIN LIBTOOL CONFIG
7558
7559# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7560
7561# Shell to use when invoking shell scripts.
7562SHELL=$lt_SHELL
7563
7564# Whether or not to build shared libraries.
7565build_libtool_libs=$enable_shared
7566
7567# Whether or not to add -lc for building shared libraries.
7568build_libtool_need_lc=$need_lc
7569
7570# Whether or not to build static libraries.
7571build_old_libs=$enable_static
7572
7573# Whether or not to optimize for fast installation.
7574fast_install=$enable_fast_install
7575
7576# The host system.
7577host_alias=$host_alias
7578host=$host
7579
7580# An echo program that does not interpret backslashes.
7581echo=$lt_echo
7582
7583# The archiver.
7584AR=$lt_AR
7585AR_FLAGS=$lt_AR_FLAGS
7586
7587# The default C compiler.
7588CC=$lt_CC
7589
7590# Is the compiler the GNU C compiler?
7591with_gcc=$GCC
7592
7593# The linker used to build libraries.
7594LD=$lt_LD
7595
7596# Whether we need hard or soft links.
7597LN_S=$lt_LN_S
7598
7599# A BSD-compatible nm program.
7600NM=$lt_NM
7601
7602# A symbol stripping program
7603STRIP=$STRIP
7604
7605# Used to examine libraries when file_magic_cmd begins "file"
7606MAGIC_CMD=$MAGIC_CMD
7607
7608# Used on cygwin: DLL creation program.
7609DLLTOOL="$DLLTOOL"
7610
7611# Used on cygwin: object dumper.
7612OBJDUMP="$OBJDUMP"
7613
7614# Used on cygwin: assembler.
7615AS="$AS"
7616
7617# The name of the directory that contains temporary libtool files.
7618objdir=$objdir
7619
7620# How to create reloadable object files.
7621reload_flag=$lt_reload_flag
7622reload_cmds=$lt_reload_cmds
7623
7624# How to pass a linker flag through the compiler.
7625wl=$lt_wl
7626
7627# Object file suffix (normally "o").
7628objext="$ac_objext"
7629
7630# Old archive suffix (normally "a").
7631libext="$libext"
7632
7633# Executable file suffix (normally "").
7634exeext="$exeext"
7635
7636# Additional compiler flags for building library objects.
7637pic_flag=$lt_pic_flag
7638pic_mode=$pic_mode
7639
7640# Does compiler simultaneously support -c and -o options?
7641compiler_c_o=$lt_compiler_c_o
7642
7643# Can we write directly to a .lo ?
7644compiler_o_lo=$lt_compiler_o_lo
7645
7646# Must we lock files when doing compilation ?
7647need_locks=$lt_need_locks
7648
7649# Do we need the lib prefix for modules?
7650need_lib_prefix=$need_lib_prefix
7651
7652# Do we need a version for libraries?
7653need_version=$need_version
7654
7655# Whether dlopen is supported.
7656dlopen_support=$enable_dlopen
7657
7658# Whether dlopen of programs is supported.
7659dlopen_self=$enable_dlopen_self
7660
7661# Whether dlopen of statically linked programs is supported.
7662dlopen_self_static=$enable_dlopen_self_static
7663
7664# Compiler flag to prevent dynamic linking.
7665link_static_flag=$lt_link_static_flag
7666
7667# Compiler flag to turn off builtin functions.
7668no_builtin_flag=$lt_no_builtin_flag
7669
7670# Compiler flag to allow reflexive dlopens.
7671export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7672
7673# Compiler flag to generate shared objects directly from archives.
7674whole_archive_flag_spec=$lt_whole_archive_flag_spec
7675
7676# Compiler flag to generate thread-safe objects.
7677thread_safe_flag_spec=$lt_thread_safe_flag_spec
7678
7679# Library versioning type.
7680version_type=$version_type
7681
7682# Format of library name prefix.
7683libname_spec=$lt_libname_spec
7684
7685# List of archive names. First name is the real one, the rest are links.
7686# The last name is the one that the linker finds with -lNAME.
7687library_names_spec=$lt_library_names_spec
7688
7689# The coded name of the library, if different from the real name.
7690soname_spec=$lt_soname_spec
7691
7692# Commands used to build and install an old-style archive.
7693RANLIB=$lt_RANLIB
7694old_archive_cmds=$lt_old_archive_cmds
7695old_postinstall_cmds=$lt_old_postinstall_cmds
7696old_postuninstall_cmds=$lt_old_postuninstall_cmds
7697
7698# Create an old-style archive from a shared archive.
7699old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7700
7701# Create a temporary old-style archive to link instead of a shared archive.
7702old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7703
7704# Commands used to build and install a shared archive.
7705archive_cmds=$lt_archive_cmds
7706archive_expsym_cmds=$lt_archive_expsym_cmds
7707postinstall_cmds=$lt_postinstall_cmds
7708postuninstall_cmds=$lt_postuninstall_cmds
7709
7710# Commands to strip libraries.
7711old_striplib=$lt_old_striplib
7712striplib=$lt_striplib
7713
7714# Method to check whether dependent libraries are shared objects.
7715deplibs_check_method=$lt_deplibs_check_method
7716
7717# Command to use when deplibs_check_method == file_magic.
7718file_magic_cmd=$lt_file_magic_cmd
7719
7720# Flag that allows shared libraries with undefined symbols to be built.
7721allow_undefined_flag=$lt_allow_undefined_flag
7722
7723# Flag that forces no undefined symbols.
7724no_undefined_flag=$lt_no_undefined_flag
7725
7726# Commands used to finish a libtool library installation in a directory.
7727finish_cmds=$lt_finish_cmds
7728
7729# Same as above, but a single script fragment to be evaled but not shown.
7730finish_eval=$lt_finish_eval
7731
7732# Take the output of nm and produce a listing of raw symbols and C names.
7733global_symbol_pipe=$lt_global_symbol_pipe
7734
7735# Transform the output of nm in a proper C declaration
7736global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7737
7738# This is the shared library runtime path variable.
7739runpath_var=$runpath_var
7740
7741# This is the shared library path variable.
7742shlibpath_var=$shlibpath_var
7743
7744# Is shlibpath searched before the hard-coded library search path?
7745shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7746
7747# How to hardcode a shared library path into an executable.
7748hardcode_action=$hardcode_action
7749
7750# Whether we should hardcode library paths into libraries.
7751hardcode_into_libs=$hardcode_into_libs
7752
7753# Flag to hardcode \$libdir into a binary during linking.
7754# This must work even if \$libdir does not exist.
7755hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7756
7757# Whether we need a single -rpath flag with a separated argument.
7758hardcode_libdir_separator=$lt_hardcode_libdir_separator
7759
7760# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7761# resulting binary.
7762hardcode_direct=$hardcode_direct
7763
7764# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7765# resulting binary.
7766hardcode_minus_L=$hardcode_minus_L
7767
7768# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7769# the resulting binary.
7770hardcode_shlibpath_var=$hardcode_shlibpath_var
7771
7772# Variables whose values should be saved in libtool wrapper scripts and
7773# restored at relink time.
7774variables_saved_for_relink="$variables_saved_for_relink"
7775
7776# Whether libtool must link a program against all its dependency libraries.
7777link_all_deplibs=$link_all_deplibs
7778
7779# Compile-time system search path for libraries
7780sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7781
7782# Run-time system search path for libraries
7783sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7784
7785# Fix the shell variable \$srcfile for the compiler.
7786fix_srcfile_path="$fix_srcfile_path"
7787
7788# Set to yes if exported symbols are required.
7789always_export_symbols=$always_export_symbols
7790
7791# The commands to list exported symbols.
7792export_symbols_cmds=$lt_export_symbols_cmds
7793
7794# The commands to extract the exported symbol list from a shared archive.
7795extract_expsyms_cmds=$lt_extract_expsyms_cmds
7796
7797# Symbols that should not be listed in the preloaded symbols.
7798exclude_expsyms=$lt_exclude_expsyms
7799
7800# Symbols that must always be exported.
7801include_expsyms=$lt_include_expsyms
7802
7803# ### END LIBTOOL CONFIG
7804
7805__EOF__
7806
7807 case "$host_os" in
7808 aix3*)
7809 cat <<\EOF >> "${ofile}T"
7810
7811# AIX sometimes has problems with the GCC collect2 program. For some
7812# reason, if we set the COLLECT_NAMES environment variable, the problems
7813# vanish in a puff of smoke.
7814if test "X${COLLECT_NAMES+set}" != Xset; then
7815 COLLECT_NAMES=
7816 export COLLECT_NAMES
7817fi
7818EOF
7819 ;;
7820 esac
7821
7822 case "$host_os" in
7823 cygwin* | mingw* | pw32* | os2*)
7824 cat <<'EOF' >> "${ofile}T"
7825 # This is a source program that is used to create dlls on Windows
7826 # Don't remove nor modify the starting and closing comments
7827# /* ltdll.c starts here */
7828# #define WIN32_LEAN_AND_MEAN
7829# #include <windows.h>
7830# #undef WIN32_LEAN_AND_MEAN
7831# #include <stdio.h>
7832#
7833# #ifndef __CYGWIN__
7834# # ifdef __CYGWIN32__
7835# # define __CYGWIN__ __CYGWIN32__
7836# # endif
7837# #endif
7838#
7839# #ifdef __cplusplus
7840# extern "C" {
7841# #endif
7842# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7843# #ifdef __cplusplus
7844# }
7845# #endif
7846#
7847# #ifdef __CYGWIN__
7848# #include <cygwin/cygwin_dll.h>
7849# DECLARE_CYGWIN_DLL( DllMain );
7850# #endif
7851# HINSTANCE __hDllInstance_base;
7852#
7853# BOOL APIENTRY
7854# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7855# {
7856# __hDllInstance_base = hInst;
7857# return TRUE;
7858# }
7859# /* ltdll.c ends here */
7860 # This is a source program that is used to create import libraries
7861 # on Windows for dlls which lack them. Don't remove nor modify the
7862 # starting and closing comments
7863# /* impgen.c starts here */
7864# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7865#
7866# This file is part of GNU libtool.
7867#
7868# This program is free software; you can redistribute it and/or modify
7869# it under the terms of the GNU General Public License as published by
7870# the Free Software Foundation; either version 2 of the License, or
7871# (at your option) any later version.
7872#
7873# This program is distributed in the hope that it will be useful,
7874# but WITHOUT ANY WARRANTY; without even the implied warranty of
7875# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7876# GNU General Public License for more details.
7877#
7878# You should have received a copy of the GNU General Public License
7879# along with this program; if not, write to the Free Software
7880# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7881# */
7882#
7883# #include <stdio.h> /* for printf() */
7884# #include <unistd.h> /* for open(), lseek(), read() */
7885# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7886# #include <string.h> /* for strdup() */
7887#
7888# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7889# #ifndef O_BINARY
7890# #define O_BINARY 0
7891# #endif
7892#
7893# static unsigned int
7894# pe_get16 (fd, offset)
7895# int fd;
7896# int offset;
7897# {
7898# unsigned char b[2];
7899# lseek (fd, offset, SEEK_SET);
7900# read (fd, b, 2);
7901# return b[0] + (b[1]<<8);
7902# }
7903#
7904# static unsigned int
7905# pe_get32 (fd, offset)
7906# int fd;
7907# int offset;
7908# {
7909# unsigned char b[4];
7910# lseek (fd, offset, SEEK_SET);
7911# read (fd, b, 4);
7912# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7913# }
7914#
7915# static unsigned int
7916# pe_as32 (ptr)
7917# void *ptr;
7918# {
7919# unsigned char *b = ptr;
7920# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7921# }
7922#
7923# int
7924# main (argc, argv)
7925# int argc;
7926# char *argv[];
7927# {
7928# int dll;
7929# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7930# unsigned long export_rva, export_size, nsections, secptr, expptr;
7931# unsigned long name_rvas, nexp;
7932# unsigned char *expdata, *erva;
7933# char *filename, *dll_name;
7934#
7935# filename = argv[1];
7936#
7937# dll = open(filename, O_RDONLY|O_BINARY);
7938# if (!dll)
7939# return 1;
7940#
7941# dll_name = filename;
7942#
7943# for (i=0; filename[i]; i++)
7944# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7945# dll_name = filename + i +1;
7946#
7947# pe_header_offset = pe_get32 (dll, 0x3c);
7948# opthdr_ofs = pe_header_offset + 4 + 20;
7949# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7950#
7951# if (num_entries < 1) /* no exports */
7952# return 1;
7953#
7954# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7955# export_size = pe_get32 (dll, opthdr_ofs + 100);
7956# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7957# secptr = (pe_header_offset + 4 + 20 +
7958# pe_get16 (dll, pe_header_offset + 4 + 16));
7959#
7960# expptr = 0;
7961# for (i = 0; i < nsections; i++)
7962# {
7963# char sname[8];
7964# unsigned long secptr1 = secptr + 40 * i;
7965# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7966# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7967# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7968# lseek(dll, secptr1, SEEK_SET);
7969# read(dll, sname, 8);
7970# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7971# {
7972# expptr = fptr + (export_rva - vaddr);
7973# if (export_rva + export_size > vaddr + vsize)
7974# export_size = vsize - (export_rva - vaddr);
7975# break;
7976# }
7977# }
7978#
7979# expdata = (unsigned char*)malloc(export_size);
7980# lseek (dll, expptr, SEEK_SET);
7981# read (dll, expdata, export_size);
7982# erva = expdata - export_rva;
7983#
7984# nexp = pe_as32 (expdata+24);
7985# name_rvas = pe_as32 (expdata+32);
7986#
7987# printf ("EXPORTS\n");
7988# for (i = 0; i<nexp; i++)
7989# {
7990# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7991# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7992# }
7993#
7994# return 0;
7995# }
7996# /* impgen.c ends here */
7997
7998EOF
7999 ;;
8000 esac
8001
8002 # We use sed instead of cat because bash on DJGPP gets confused if
8003 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8004 # text mode, it properly converts lines to CR/LF. This bash problem
8005 # is reportedly fixed, but why not run on old versions too?
8006 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8007
8008 mv -f "${ofile}T" "$ofile" || \
8009 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8010 chmod +x "$ofile"
8011fi
8012##
8013## END FIXME
8014
8015
8016
8017
8018
8019# This can be used to rebuild libtool when needed
8020LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8021
8022# Always use our own libtool.
8023LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8024
8025# Prevent multiple expansion
8026
8027
8028MALLOC_TYPE=S
8029support_addstrings=no
8030support_frills=no 3860support_frills=yes
8031support_linespace=no
8032support_inheritpixmap=no 3861support_inheritpixmap=yes
3862support_tinting=yes
3863support_fading=yes
8033support_keepscrolling=no 3864support_keepscrolling=yes
8034support_selectionscrolling=no 3865support_selectionscrolling=yes
8035support_menubar=no
8036support_mousewheel=no 3866support_mousewheel=yes
8037support_mouseslipwheel=no 3867support_mouseslipwheel=yes
8038support_oldselection=no
8039support_utmp=no
8040support_wtmp=no
8041support_lastlog=no
8042support_cursor_blink=no
8043support_text_blink=no 3868support_text_blink=yes
8044support_pointer_blank=no 3869support_pointer_blank=yes
8045support_scroll_rxvt=no 3870support_scroll_rxvt=yes
8046support_scroll_next=no 3871support_scroll_next=yes
8047support_scroll_xterm=no 3872support_scroll_xterm=yes
8048support_scroll_plain=no 3873support_scroll_plain=yes
8049support_xim=no 3874support_xim=yes
8050support_xpm=no 3875support_xpm=yes
8051support_xft=no 3876support_xft=yes
8052support_unicode3=no 3877support_unicode3=no
3878support_combining=yes
3879support_8bitctrls=no
3880support_iso14755=yes
3881support_styles=yes
3882support_perl=yes
8053codesets= 3883codesets=all
8054 3884
8055 3885
8056if test "x$enable_shared" = xyes; then 3886if test "x$enable_shared" = xyes; then
8057 3887
8058cat >>confdefs.h <<\_ACEOF 3888cat >>confdefs.h <<\_ACEOF
8064 3894
8065 3895
8066# Check whether --enable-everything or --disable-everything was given. 3896# Check whether --enable-everything or --disable-everything was given.
8067if test "${enable_everything+set}" = set; then 3897if test "${enable_everything+set}" = set; then
8068 enableval="$enable_everything" 3898 enableval="$enable_everything"
3899
3900 if test x$enableval = xno; then
3901 support_frills=no
3902 support_inheritpixmap=no
3903 support_tinting=no
3904 support_fading=no
3905 support_keepscrolling=no
3906 support_selectionscrolling=no
3907 support_lastlog=no
3908 support_mousewheel=no
3909 support_mouseslipwheel=no
3910 support_text_blink=no
3911 support_pointer_blank=no
3912 support_scroll_rxvt=no
3913 support_scroll_next=no
3914 support_scroll_xterm=no
3915 support_scroll_plain=no
3916 support_utmp=no
3917 support_wtmp=no
3918 support_xim=no
3919 support_xpm=no
3920 support_xft=no
3921 support_unicode3=no
3922 support_combining=no
3923 support_8bitctrls=no
3924 support_iso14755=no
3925 support_styles=no
3926 support_perl=no
3927 codesets=
3928 fi
8069 if test x$enableval = xyes; then 3929 if test x$enableval = xyes; then
8070 support_24bit=yes
8071 support_frills=yes 3930 support_frills=yes
8072 support_linespace=yes
8073 support_inheritpixmap=yes 3931 support_inheritpixmap=yes
3932 support_tinting=yes
3933 support_fading=yes
8074 support_keepscrolling=yes 3934 support_keepscrolling=yes
8075 support_selectionscrolling=yes 3935 support_selectionscrolling=yes
8076 support_lastlog=yes 3936 support_lastlog=yes
8077 support_menubar=yes
8078 support_mousewheel=yes 3937 support_mousewheel=yes
8079 support_mouseslipwheel=yes 3938 support_mouseslipwheel=yes
8080 support_oldselection=yes
8081 support_cursor_blink=yes
8082 support_text_blink=yes 3939 support_text_blink=yes
8083 support_pointer_blank=yes 3940 support_pointer_blank=yes
8084 support_scroll_rxvt=yes 3941 support_scroll_rxvt=yes
8085 support_scroll_next=yes 3942 support_scroll_next=yes
8086 support_scroll_xterm=yes 3943 support_scroll_xterm=yes
8087 support_scroll_plain=yes 3944 support_scroll_plain=yes
8088 support_utmp=yes 3945 support_utmp=yes
8089 support_wtmp=yes 3946 support_wtmp=yes
8090 support_xim=yes 3947 support_xim=yes
8091 support_xpm=yes 3948 support_xpm=yes
8092 support_xft=yes 3949 support_xft=yes
8093 support_unicode3=yes 3950 support_unicode3=yes
3951 support_combining=yes
3952 #support_8bitctrls=yes
3953 support_iso14755=yes
3954 support_styles=yes
3955 support_perl=yes
8094 codesets=all 3956 codesets=all
8095 fi 3957 fi
3958
8096fi; 3959fi;
8097 3960
8098# Check whether --enable-unicode3 or --disable-unicode3 was given. 3961# Check whether --enable-unicode3 or --disable-unicode3 was given.
8099if test "${enable_unicode3+set}" = set; then 3962if test "${enable_unicode3+set}" = set; then
8100 enableval="$enable_unicode3" 3963 enableval="$enable_unicode3"
8101 if test x$enableval = xyes -o x$enableval = xno; then 3964 if test x$enableval = xyes -o x$enableval = xno; then
8102 support_unicode3=yes 3965 support_unicode3=$enableval
3966 fi
3967fi;
3968
3969# Check whether --enable-combining or --disable-combining was given.
3970if test "${enable_combining+set}" = set; then
3971 enableval="$enable_combining"
3972 if test x$enableval = xyes -o x$enableval = xno; then
3973 support_combining=$enableval
8103 fi 3974 fi
8104fi; 3975fi;
8105 3976
8106# Check whether --enable-xft or --disable-xft was given. 3977# Check whether --enable-xft or --disable-xft was given.
8107if test "${enable_xft+set}" = set; then 3978if test "${enable_xft+set}" = set; then
8108 enableval="$enable_xft" 3979 enableval="$enable_xft"
8109 if test x$enableval = xyes -o x$enableval = xno; then 3980 if test x$enableval = xyes -o x$enableval = xno; then
8110 support_xft=yes 3981 support_xft=$enableval
8111 fi 3982 fi
8112fi; 3983fi;
8113 3984
8114
8115# Check whether --with-codesets or --without-codesets was given.
8116if test "${with_codesets+set}" = set; then
8117 withval="$with_codesets"
8118 codesets="$withval"
8119fi;
8120
8121# Check whether --enable-utmp or --disable-utmp was given. 3985# Check whether --enable-font-styles or --disable-font-styles was given.
8122if test "${enable_utmp+set}" = set; then 3986if test "${enable_font_styles+set}" = set; then
8123 enableval="$enable_utmp" 3987 enableval="$enable_font_styles"
8124 if test x$enableval = xyes -o x$enableval = xno; then 3988 if test x$enableval = xyes -o x$enableval = xno; then
8125 support_utmp=$enableval
8126 fi
8127fi;
8128
8129# Check whether --enable-wtmp or --disable-wtmp was given.
8130if test "${enable_wtmp+set}" = set; then
8131 enableval="$enable_wtmp"
8132 if test x$enableval = xyes -o x$enableval = xno; then
8133 support_wtmp=$enableval
8134 fi
8135fi;
8136
8137# Check whether --enable-lastlog or --disable-lastlog was given.
8138if test "${enable_lastlog+set}" = set; then
8139 enableval="$enable_lastlog"
8140 if test x$enableval = xyes -o x$enableval = xno; then
8141 support_lastlog=$enableval 3989 support_styles=$enableval
8142 fi 3990 fi
8143fi; 3991fi;
8144 3992
8145# Check whether --enable-xpm-background or --disable-xpm-background was given. 3993# Check whether --enable-xpm-background or --disable-xpm-background was given.
8146if test "${enable_xpm_background+set}" = set; then 3994if test "${enable_xpm_background+set}" = set; then
8156 if test x$enableval = xyes -o x$enableval = xno; then 4004 if test x$enableval = xyes -o x$enableval = xno; then
8157 support_inheritpixmap=$enableval 4005 support_inheritpixmap=$enableval
8158 fi 4006 fi
8159fi; 4007fi;
8160 4008
8161# Check whether --enable-menubar or --disable-menubar was given. 4009# Check whether --enable-tinting or --disable-tinting was given.
8162if test "${enable_menubar+set}" = set; then 4010if test "${enable_tinting+set}" = set; then
8163 enableval="$enable_menubar" 4011 enableval="$enable_tinting"
8164 if test x$enableval = xyes -o x$enableval = xno; then 4012 if test x$enableval = xyes -o x$enableval = xno; then
4013 support_tinting=$enableval
4014 fi
4015fi;
4016
4017# Check whether --enable-fading or --disable-fading was given.
4018if test "${enable_fading+set}" = set; then
4019 enableval="$enable_fading"
4020 if test x$enableval = xyes -o x$enableval = xno; then
8165 support_menubar=$enableval 4021 support_fading=$enableval
8166 fi 4022 fi
8167fi; 4023fi;
8168 4024
8169# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4025# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8170if test "${enable_rxvt_scroll+set}" = set; then 4026if test "${enable_rxvt_scroll+set}" = set; then
8188 if test x$enableval = xyes -o x$enableval = xno; then 4044 if test x$enableval = xyes -o x$enableval = xno; then
8189 support_scroll_xterm=$enableval 4045 support_scroll_xterm=$enableval
8190 fi 4046 fi
8191fi; 4047fi;
8192 4048
4049# Check whether --enable-perl or --disable-perl was given.
4050if test "${enable_perl+set}" = set; then
4051 enableval="$enable_perl"
4052 if test x$enableval = xyes -o x$enableval = xno; then
4053 support_perl=$enableval
4054 fi
4055fi;
4056
8193# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4057# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8194if test "${enable_plain_scroll+set}" = set; then 4058if test "${enable_plain_scroll+set}" = set; then
8195 enableval="$enable_plain_scroll" 4059 enableval="$enable_plain_scroll"
8196 if test x$enableval = xyes -o x$enableval = xno; then 4060 if test x$enableval = xyes -o x$enableval = xno; then
8197 support_scroll_plain=$enableval 4061 support_scroll_plain=$enableval
8198 fi 4062 fi
8199fi; 4063fi;
8200 4064
8201# Check whether --enable-half-shadow or --disable-half-shadow was given.
8202if test "${enable_half_shadow+set}" = set; then
8203 enableval="$enable_half_shadow"
8204 if test x$enableval = xyes; then
8205 4065
8206cat >>confdefs.h <<\_ACEOF 4066# Check whether --with-codesets or --without-codesets was given.
8207#define HALFSHADOW 1 4067if test "${with_codesets+set}" = set; then
8208_ACEOF 4068 withval="$with_codesets"
8209 4069 codesets="$withval"
8210 fi
8211fi; 4070fi;
8212 4071
8213# Check whether --enable-xim or --disable-xim was given. 4072# Check whether --enable-xim or --disable-xim was given.
8214if test "${enable_xim+set}" = set; then 4073if test "${enable_xim+set}" = set; then
8215 enableval="$enable_xim" 4074 enableval="$enable_xim"
8216 if test x$enableval = xyes -o x$enableval = xno; then 4075 if test x$enableval = xyes -o x$enableval = xno; then
8217 support_xim=$enableval 4076 support_xim=$enableval
8218 fi 4077 fi
8219fi; 4078fi;
8220 4079
8221# Check whether --enable-ttygid or --disable-ttygid was given.
8222if test "${enable_ttygid+set}" = set; then
8223 enableval="$enable_ttygid"
8224 if test x$enableval = xyes; then
8225
8226cat >>confdefs.h <<\_ACEOF
8227#define TTY_GID_SUPPORT 1
8228_ACEOF
8229
8230 fi
8231fi;
8232
8233# Check whether --enable-backspace-key or --disable-backspace-key was given. 4080# Check whether --enable-backspace-key or --disable-backspace-key was given.
8234if test "${enable_backspace_key+set}" = set; then 4081if test "${enable_backspace_key+set}" = set; then
8235 enableval="$enable_backspace_key" 4082 enableval="$enable_backspace_key"
8236 if test x$enableval = xno; then 4083 if test x$enableval = xno; then
8237 4084
8264_ACEOF 4111_ACEOF
8265 4112
8266 fi 4113 fi
8267fi; 4114fi;
8268 4115
8269# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 4116# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8270if test "${enable_xgetdefault+set}" = set; then 4117if test "${enable_8bitctrls+set}" = set; then
8271 enableval="$enable_xgetdefault" 4118 enableval="$enable_8bitctrls"
8272 if test x$enableval = xyes; then 4119 if test x$enableval = xyes -o x$enableval = xno; then
8273 4120 support_8bitctrls=$enableval
8274cat >>confdefs.h <<\_ACEOF
8275#define USE_XGETDEFAULT 1
8276_ACEOF
8277
8278 fi 4121 fi
8279fi; 4122fi;
8280 4123
4124RESFALLBACK=Rxvt
8281# Check whether --enable-strings or --disable-strings was given. 4125# Check whether --enable-fallback or --disable-fallback was given.
8282if test "${enable_strings+set}" = set; then 4126if test "${enable_fallback+set}" = set; then
8283 enableval="$enable_strings" 4127 enableval="$enable_fallback"
4128
8284 if test x$enableval = xyes -o x$enableval = xno; then 4129 test x$enableval = xyes && enableval=Rxvt
8285 support_addstrings=$enableval 4130 test x$enableval = xno && enableval=
8286 fi 4131 RESFALLBACK="$enableval"
4132
8287fi; 4133fi;
4134
4135if test x$RESFALLBACK != x; then
4136
4137cat >>confdefs.h <<_ACEOF
4138#define RESFALLBACK "$RESFALLBACK"
4139_ACEOF
4140
4141fi
4142
4143RESNAME=urxvt
4144
4145# Check whether --with-res-name or --without-res-name was given.
4146if test "${with_res_name+set}" = set; then
4147 withval="$with_res_name"
4148 RESNAME="$withval"
4149fi;
4150
4151cat >>confdefs.h <<_ACEOF
4152#define RESNAME "$RESNAME"
4153_ACEOF
4154
4155
4156RESCLASS=URxvt
4157
4158# Check whether --with-res-class or --without-res-class was given.
4159if test "${with_res_class+set}" = set; then
4160 withval="$with_res_class"
4161 RESCLASS="$withval"
4162fi;
4163
4164cat >>confdefs.h <<_ACEOF
4165#define RESCLASS "$RESCLASS"
4166_ACEOF
4167
4168
4169RXVTNAME=urxvt
4170
4171# Check whether --with-name or --without-name was given.
4172if test "${with_name+set}" = set; then
4173 withval="$with_name"
4174 RXVTNAME="$withval"
4175fi;
4176
4177cat >>confdefs.h <<_ACEOF
4178#define RXVTNAME "$RXVTNAME"
4179_ACEOF
4180
4181
4182RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4183
8288 4184
8289# Check whether --enable-swapscreen or --disable-swapscreen was given. 4185# Check whether --enable-swapscreen or --disable-swapscreen was given.
8290if test "${enable_swapscreen+set}" = set; then 4186if test "${enable_swapscreen+set}" = set; then
8291 enableval="$enable_swapscreen" 4187 enableval="$enable_swapscreen"
8292 if test x$enableval = xno; then 4188 if test x$enableval = xno; then
8293 4189
8294cat >>confdefs.h <<\_ACEOF 4190cat >>confdefs.h <<\_ACEOF
8295#define NO_SECONDARY_SCREEN 1 4191#define NO_SECONDARY_SCREEN 1
8296_ACEOF 4192_ACEOF
8297 4193
4194 fi
4195fi;
4196
4197# Check whether --enable-iso14755 or --disable-iso14755 was given.
4198if test "${enable_iso14755+set}" = set; then
4199 enableval="$enable_iso14755"
4200 if test x$enableval = xyes -o x$enableval = xno; then
4201 support_iso14755=$enableval
8298 fi 4202 fi
8299fi; 4203fi;
8300 4204
8301# Check whether --enable-frills or --disable-frills was given. 4205# Check whether --enable-frills or --disable-frills was given.
8302if test "${enable_frills+set}" = set; then 4206if test "${enable_frills+set}" = set; then
8304 if test x$enableval = xyes -o x$enableval = xno; then 4208 if test x$enableval = xyes -o x$enableval = xno; then
8305 support_frills=$enableval 4209 support_frills=$enableval
8306 fi 4210 fi
8307fi; 4211fi;
8308 4212
8309# Check whether --enable-linespace or --disable-linespace was given.
8310if test "${enable_linespace+set}" = set; then
8311 enableval="$enable_linespace"
8312 if test x$enableval = xyes -o x$enableval = xno; then
8313 support_linespace=$enableval
8314 fi
8315fi;
8316
8317# Check whether --enable-24bit or --disable-24bit was given.
8318if test "${enable_24bit+set}" = set; then
8319 enableval="$enable_24bit"
8320 if test x$enableval = xyes -o x$enableval = xno; then
8321 support_24bit=$enableval
8322 fi
8323fi;
8324
8325# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 4213# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
8326if test "${enable_keepscrolling+set}" = set; then 4214if test "${enable_keepscrolling+set}" = set; then
8327 enableval="$enable_keepscrolling" 4215 enableval="$enable_keepscrolling"
8328 if test x$enableval = xyes -o x$enableval = xno; then 4216 if test x$enableval = xyes -o x$enableval = xno; then
8329 support_keepscrolling=$enableval 4217 support_keepscrolling=$enableval
8352 if test x$enableval = xyes -o x$enableval = xno; then 4240 if test x$enableval = xyes -o x$enableval = xno; then
8353 support_mouseslipwheel=$enableval 4241 support_mouseslipwheel=$enableval
8354 fi 4242 fi
8355fi; 4243fi;
8356 4244
8357# Check whether --enable-old-selection or --disable-old-selection was given.
8358if test "${enable_old_selection+set}" = set; then
8359 enableval="$enable_old_selection"
8360 if test x$enableval = xyes -o x$enableval = xno; then
8361 support_oldselection=$enableval
8362 fi
8363fi;
8364
8365# Check whether --enable-new-selection or --disable-new-selection was given.
8366if test "${enable_new_selection+set}" = set; then
8367 enableval="$enable_new_selection"
8368 if test x$enableval = xno; then
8369
8370cat >>confdefs.h <<\_ACEOF
8371#define NO_NEW_SELECTION 1
8372_ACEOF
8373
8374 fi
8375fi;
8376
8377# Check whether --enable-dmalloc or --disable-dmalloc was given.
8378if test "${enable_dmalloc+set}" = set; then
8379 enableval="$enable_dmalloc"
8380 if test x$enableval = xyes; then
8381 MALLOC_TYPE=G
8382 DEBUG=-DDEBUG_MALLOC
8383 DLIB="-L/usr/local/lib -ldmalloc"
8384 DINCLUDE=-I/usr/local/include
8385 fi
8386fi;
8387
8388# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
8389if test "${enable_dlmalloc+set}" = set; then
8390 enableval="$enable_dlmalloc"
8391 if test x$enableval = xyes; then
8392 MALLOC_TYPE=D
8393 DEBUG=
8394 DLIB="-L/usr/local/lib -ldlmalloc"
8395 DINCLUDE=
8396 fi
8397fi;
8398
8399# Check whether --enable-smart-resize or --disable-smart-resize was given. 4245# Check whether --enable-smart-resize or --disable-smart-resize was given.
8400if test "${enable_smart_resize+set}" = set; then 4246if test "${enable_smart_resize+set}" = set; then
8401 enableval="$enable_smart_resize" 4247 enableval="$enable_smart_resize"
8402 if test x$enableval = xyes; then 4248 if test x$enableval = xyes; then
8403 4249
8404cat >>confdefs.h <<\_ACEOF 4250cat >>confdefs.h <<\_ACEOF
8405#define SMART_RESIZE 1 4251#define SMART_RESIZE 1
8406_ACEOF 4252_ACEOF
8407 4253
8408 fi
8409fi;
8410
8411# Check whether --enable-256-color or --disable-256-color was given.
8412if test "${enable_256_color+set}" = set; then
8413 enableval="$enable_256_color"
8414 if test x$enableval = xyes; then
8415
8416cat >>confdefs.h <<\_ACEOF
8417#define TTY_256COLOR 1
8418_ACEOF
8419
8420 fi
8421fi;
8422
8423# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8424if test "${enable_cursor_blink+set}" = set; then
8425 enableval="$enable_cursor_blink"
8426 if test x$enableval = xyes -o x$enableval = xno; then
8427 support_cursor_blink=$enableval
8428 fi 4254 fi
8429fi; 4255fi;
8430 4256
8431# Check whether --enable-text-blink or --disable-text-blink was given. 4257# Check whether --enable-text-blink or --disable-text-blink was given.
8432if test "${enable_text_blink+set}" = set; then 4258if test "${enable_text_blink+set}" = set; then
8468_ACEOF 4294_ACEOF
8469 terminfo="$withval" 4295 terminfo="$withval"
8470 fi 4296 fi
8471fi; 4297fi;
8472 4298
8473
8474
8475cat >>confdefs.h <<\_ACEOF
8476#define PROTOTYPES 1
8477_ACEOF
8478
8479
8480if test -z "$CFLAGS"; then
8481 if test -z "$CCOPTS"; then
8482 CCOPTS='-O'
8483 fi
8484 CFLAGS="$CCOPTS"
8485fi
8486 4299
8487# Extract the first word of "mv", so it can be a program name with args. 4300# Extract the first word of "mv", so it can be a program name with args.
8488set dummy mv; ac_word=$2 4301set dummy mv; ac_word=$2
8489echo "$as_me:$LINENO: checking for $ac_word" >&5 4302echo "$as_me:$LINENO: checking for $ac_word" >&5
8490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8522else 4335else
8523 echo "$as_me:$LINENO: result: no" >&5 4336 echo "$as_me:$LINENO: result: no" >&5
8524echo "${ECHO_T}no" >&6 4337echo "${ECHO_T}no" >&6
8525fi 4338fi
8526 4339
8527# Extract the first word of "rm", so it can be a program name with args.
8528set dummy rm; ac_word=$2
8529echo "$as_me:$LINENO: checking for $ac_word" >&5
8530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8531if test "${ac_cv_path_RM+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533else
8534 case $RM in
8535 [\\/]* | ?:[\\/]*)
8536 ac_cv_path_RM="$RM" # Let the user override the test with a path.
8537 ;;
8538 *)
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540for as_dir in $PATH
8541do
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8546 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8549 fi
8550done
8551done
8552
8553 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
8554 ;;
8555esac
8556fi
8557RM=$ac_cv_path_RM
8558
8559if test -n "$RM"; then
8560 echo "$as_me:$LINENO: result: $RM" >&5
8561echo "${ECHO_T}$RM" >&6
8562else
8563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
8565fi
8566
8567# Extract the first word of "cp", so it can be a program name with args. 4340# Extract the first word of "cp", so it can be a program name with args.
8568set dummy cp; ac_word=$2 4341set dummy cp; ac_word=$2
8569echo "$as_me:$LINENO: checking for $ac_word" >&5 4342echo "$as_me:$LINENO: checking for $ac_word" >&5
8570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8571if test "${ac_cv_path_CP+set}" = set; then 4344if test "${ac_cv_path_CP+set}" = set; then
8762else 4535else
8763 echo "$as_me:$LINENO: result: no" >&5 4536 echo "$as_me:$LINENO: result: no" >&5
8764echo "${ECHO_T}no" >&6 4537echo "${ECHO_T}no" >&6
8765fi 4538fi
8766 4539
8767# Extract the first word of "tbl", so it can be a program name with args. 4540# Extract the first word of "tic", so it can be a program name with args.
8768set dummy tbl; ac_word=$2 4541set dummy tic; ac_word=$2
8769echo "$as_me:$LINENO: checking for $ac_word" >&5 4542echo "$as_me:$LINENO: checking for $ac_word" >&5
8770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8771if test "${ac_cv_path_TBL+set}" = set; then 4544if test "${ac_cv_path_TIC+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6 4545 echo $ECHO_N "(cached) $ECHO_C" >&6
8773else 4546else
8774 case $TBL in 4547 case $TIC in
8775 [\\/]* | ?:[\\/]*) 4548 [\\/]* | ?:[\\/]*)
8776 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 4549 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8777 ;; 4550 ;;
8778 *) 4551 *)
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780for as_dir in $PATH 4553for as_dir in $PATH
8781do 4554do
8782 IFS=$as_save_IFS 4555 IFS=$as_save_IFS
8783 test -z "$as_dir" && as_dir=. 4556 test -z "$as_dir" && as_dir=.
8784 for ac_exec_ext in '' $ac_executable_extensions; do 4557 for ac_exec_ext in '' $ac_executable_extensions; do
8785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8786 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" 4559 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
8787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8788 break 2 4561 break 2
8789 fi 4562 fi
8790done 4563done
8791done 4564done
8792 4565
8793 ;; 4566 ;;
8794esac 4567esac
8795fi 4568fi
8796TBL=$ac_cv_path_TBL 4569TIC=$ac_cv_path_TIC
8797 4570
8798if test -n "$TBL"; then 4571if test -n "$TIC"; then
8799 echo "$as_me:$LINENO: result: $TBL" >&5 4572 echo "$as_me:$LINENO: result: $TIC" >&5
8800echo "${ECHO_T}$TBL" >&6 4573echo "${ECHO_T}$TIC" >&6
8801else 4574else
8802 echo "$as_me:$LINENO: result: no" >&5 4575 echo "$as_me:$LINENO: result: no" >&5
8803echo "${ECHO_T}no" >&6 4576echo "${ECHO_T}no" >&6
8804fi 4577fi
8805 4578
8806 4579
8807 4580
8808 4581
4582ac_ext=cc
4583ac_cpp='$CXXCPP $CPPFLAGS'
4584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4587echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4588echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4589if test -z "$CXXCPP"; then
4590 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592else
4593 # Double quotes because CXXCPP needs to be expanded
4594 for CXXCPP in "$CXX -E" "/lib/cpp"
4595 do
4596 ac_preproc_ok=false
4597for ac_cxx_preproc_warn_flag in '' yes
4598do
4599 # Use a header file that comes with gcc, so configuring glibc
4600 # with a fresh cross-compiler works.
4601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4602 # <limits.h> exists even on freestanding compilers.
4603 # On the NeXT, cc -E runs the code through the compiler's parser,
4604 # not just through cpp. "Syntax error" is here to catch this case.
4605 cat >conftest.$ac_ext <<_ACEOF
4606/* confdefs.h. */
4607_ACEOF
4608cat confdefs.h >>conftest.$ac_ext
4609cat >>conftest.$ac_ext <<_ACEOF
4610/* end confdefs.h. */
4611#ifdef __STDC__
4612# include <limits.h>
4613#else
4614# include <assert.h>
4615#endif
4616 Syntax error
4617_ACEOF
4618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } >/dev/null; then
4626 if test -s conftest.err; then
4627 ac_cpp_err=$ac_cxx_preproc_warn_flag
4628 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4629 else
4630 ac_cpp_err=
4631 fi
4632else
4633 ac_cpp_err=yes
4634fi
4635if test -z "$ac_cpp_err"; then
4636 :
4637else
4638 echo "$as_me: failed program was:" >&5
4639sed 's/^/| /' conftest.$ac_ext >&5
4640
4641 # Broken: fails on valid input.
4642continue
4643fi
4644rm -f conftest.err conftest.$ac_ext
4645
4646 # OK, works on sane cases. Now check whether non-existent headers
4647 # can be detected and how.
4648 cat >conftest.$ac_ext <<_ACEOF
4649/* confdefs.h. */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h. */
4654#include <ac_nonexistent.h>
4655_ACEOF
4656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4658 ac_status=$?
4659 grep -v '^ *+' conftest.er1 >conftest.err
4660 rm -f conftest.er1
4661 cat conftest.err >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); } >/dev/null; then
4664 if test -s conftest.err; then
4665 ac_cpp_err=$ac_cxx_preproc_warn_flag
4666 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4667 else
4668 ac_cpp_err=
4669 fi
4670else
4671 ac_cpp_err=yes
4672fi
4673if test -z "$ac_cpp_err"; then
4674 # Broken: success on invalid input.
4675continue
4676else
4677 echo "$as_me: failed program was:" >&5
4678sed 's/^/| /' conftest.$ac_ext >&5
4679
4680 # Passes both tests.
4681ac_preproc_ok=:
4682break
4683fi
4684rm -f conftest.err conftest.$ac_ext
4685
4686done
4687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4688rm -f conftest.err conftest.$ac_ext
4689if $ac_preproc_ok; then
4690 break
4691fi
4692
4693 done
4694 ac_cv_prog_CXXCPP=$CXXCPP
4695
4696fi
4697 CXXCPP=$ac_cv_prog_CXXCPP
4698else
4699 ac_cv_prog_CXXCPP=$CXXCPP
4700fi
4701echo "$as_me:$LINENO: result: $CXXCPP" >&5
4702echo "${ECHO_T}$CXXCPP" >&6
4703ac_preproc_ok=false
4704for ac_cxx_preproc_warn_flag in '' yes
4705do
4706 # Use a header file that comes with gcc, so configuring glibc
4707 # with a fresh cross-compiler works.
4708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4709 # <limits.h> exists even on freestanding compilers.
4710 # On the NeXT, cc -E runs the code through the compiler's parser,
4711 # not just through cpp. "Syntax error" is here to catch this case.
4712 cat >conftest.$ac_ext <<_ACEOF
4713/* confdefs.h. */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h. */
4718#ifdef __STDC__
4719# include <limits.h>
4720#else
4721# include <assert.h>
4722#endif
4723 Syntax error
4724_ACEOF
4725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4727 ac_status=$?
4728 grep -v '^ *+' conftest.er1 >conftest.err
4729 rm -f conftest.er1
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } >/dev/null; then
4733 if test -s conftest.err; then
4734 ac_cpp_err=$ac_cxx_preproc_warn_flag
4735 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4736 else
4737 ac_cpp_err=
4738 fi
4739else
4740 ac_cpp_err=yes
4741fi
4742if test -z "$ac_cpp_err"; then
4743 :
4744else
4745 echo "$as_me: failed program was:" >&5
4746sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 # Broken: fails on valid input.
4749continue
4750fi
4751rm -f conftest.err conftest.$ac_ext
4752
4753 # OK, works on sane cases. Now check whether non-existent headers
4754 # can be detected and how.
4755 cat >conftest.$ac_ext <<_ACEOF
4756/* confdefs.h. */
4757_ACEOF
4758cat confdefs.h >>conftest.$ac_ext
4759cat >>conftest.$ac_ext <<_ACEOF
4760/* end confdefs.h. */
4761#include <ac_nonexistent.h>
4762_ACEOF
4763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4765 ac_status=$?
4766 grep -v '^ *+' conftest.er1 >conftest.err
4767 rm -f conftest.er1
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } >/dev/null; then
4771 if test -s conftest.err; then
4772 ac_cpp_err=$ac_cxx_preproc_warn_flag
4773 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4774 else
4775 ac_cpp_err=
4776 fi
4777else
4778 ac_cpp_err=yes
4779fi
4780if test -z "$ac_cpp_err"; then
4781 # Broken: success on invalid input.
4782continue
4783else
4784 echo "$as_me: failed program was:" >&5
4785sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 # Passes both tests.
4788ac_preproc_ok=:
4789break
4790fi
4791rm -f conftest.err conftest.$ac_ext
4792
4793done
4794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4795rm -f conftest.err conftest.$ac_ext
4796if $ac_preproc_ok; then
4797 :
4798else
4799 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4800See \`config.log' for more details." >&5
4801echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4802See \`config.log' for more details." >&2;}
4803 { (exit 1); exit 1; }; }
4804fi
4805
4806ac_ext=cc
4807ac_cpp='$CXXCPP $CPPFLAGS'
4808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4811
4812
4813
4814if test "x$ac_path_x_has_been_run" != xyes; then
8809echo "$as_me:$LINENO: checking for X" >&5 4815 echo "$as_me:$LINENO: checking for X" >&5
8810echo $ECHO_N "checking for X... $ECHO_C" >&6 4816echo $ECHO_N "checking for X... $ECHO_C" >&6
8811 4817
4818ac_path_x_has_been_run=yes
8812 4819
8813# Check whether --with-x or --without-x was given. 4820# Check whether --with-x or --without-x was given.
8814if test "${with_x+set}" = set; then 4821if test "${with_x+set}" = set; then
8815 withval="$with_x" 4822 withval="$with_x"
8816 4823
8899 4906
8900/usr/openwin/include 4907/usr/openwin/include
8901/usr/openwin/share/include' 4908/usr/openwin/share/include'
8902 4909
8903if test "$ac_x_includes" = no; then 4910if test "$ac_x_includes" = no; then
8904 # Guess where to find include files, by looking for Intrinsic.h. 4911 # Guess where to find include files, by looking for a specified header file.
8905 # First, try using that file with no special directory specified. 4912 # First, try using that file with no special directory specified.
8906 cat >conftest.$ac_ext <<_ACEOF 4913 cat >conftest.$ac_ext <<_ACEOF
8907/* confdefs.h. */ 4914/* confdefs.h. */
8908_ACEOF 4915_ACEOF
8909cat confdefs.h >>conftest.$ac_ext 4916cat confdefs.h >>conftest.$ac_ext
8910cat >>conftest.$ac_ext <<_ACEOF 4917cat >>conftest.$ac_ext <<_ACEOF
8911/* end confdefs.h. */ 4918/* end confdefs.h. */
8912#include <X11/Intrinsic.h> 4919#include <X11/Xlib.h>
8913_ACEOF 4920_ACEOF
8914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8916 ac_status=$? 4923 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err 4924 grep -v '^ *+' conftest.er1 >conftest.err
8934else 4941else
8935 echo "$as_me: failed program was:" >&5 4942 echo "$as_me: failed program was:" >&5
8936sed 's/^/| /' conftest.$ac_ext >&5 4943sed 's/^/| /' conftest.$ac_ext >&5
8937 4944
8938 for ac_dir in $ac_x_header_dirs; do 4945 for ac_dir in $ac_x_header_dirs; do
8939 if test -r "$ac_dir/X11/Intrinsic.h"; then 4946 if test -r "$ac_dir/X11/Xlib.h"; then
8940 ac_x_includes=$ac_dir 4947 ac_x_includes=$ac_dir
8941 break 4948 break
8942 fi 4949 fi
8943done 4950done
8944fi 4951fi
8948if test "$ac_x_libraries" = no; then 4955if test "$ac_x_libraries" = no; then
8949 # Check for the libraries. 4956 # Check for the libraries.
8950 # See if we find them without any special options. 4957 # See if we find them without any special options.
8951 # Don't add to $LIBS permanently. 4958 # Don't add to $LIBS permanently.
8952 ac_save_LIBS=$LIBS 4959 ac_save_LIBS=$LIBS
8953 LIBS="-lXt $LIBS" 4960 LIBS="-lX11 $LIBS"
8954 cat >conftest.$ac_ext <<_ACEOF 4961 cat >conftest.$ac_ext <<_ACEOF
8955/* confdefs.h. */ 4962/* confdefs.h. */
8956_ACEOF 4963_ACEOF
8957cat confdefs.h >>conftest.$ac_ext 4964cat confdefs.h >>conftest.$ac_ext
8958cat >>conftest.$ac_ext <<_ACEOF 4965cat >>conftest.$ac_ext <<_ACEOF
8959/* end confdefs.h. */ 4966/* end confdefs.h. */
8960#include <X11/Intrinsic.h> 4967#include <X11/Xlib.h>
8961int 4968int
8962main () 4969main ()
8963{ 4970{
8964XtMalloc (0) 4971XrmInitialize ()
8965 ; 4972 ;
8966 return 0; 4973 return 0;
8967} 4974}
8968_ACEOF 4975_ACEOF
8969rm -f conftest.$ac_objext conftest$ac_exeext 4976rm -f conftest.$ac_objext conftest$ac_exeext
8997LIBS=$ac_save_LIBS 5004LIBS=$ac_save_LIBS
8998for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5005for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8999do 5006do
9000 # Don't even attempt the hair of trying to link an X program! 5007 # Don't even attempt the hair of trying to link an X program!
9001 for ac_extension in a so sl; do 5008 for ac_extension in a so sl; do
9002 if test -r $ac_dir/libXt.$ac_extension; then 5009 if test -r $ac_dir/libX11.$ac_extension; then
9003 ac_x_libraries=$ac_dir 5010 ac_x_libraries=$ac_dir
9004 break 2 5011 break 2
9005 fi 5012 fi
9006 done 5013 done
9007done 5014done
9033 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5040 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9034 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5041 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9035 # Update the cache value to reflect the command line values. 5042 # Update the cache value to reflect the command line values.
9036 ac_cv_have_x="have_x=yes \ 5043 ac_cv_have_x="have_x=yes \
9037 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 5044 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5045 # It might be that x_includes is empty (headers are found in the
5046 # standard search path. Then output the corresponding message
5047 ac_out_x_includes=$x_includes
5048 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9038 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5049 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
9039echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 5050echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
9040fi 5051fi
9041 5052
5053fi
9042if test "$no_x" = yes; then 5054if test "$no_x" = yes; then
9043 # Not all programs may use this symbol, but it does not hurt to define it. 5055 # Not all programs may use this symbol, but it does not hurt to define it.
9044 5056
9045cat >>confdefs.h <<\_ACEOF 5057cat >>confdefs.h <<\_ACEOF
9046#define X_DISPLAY_MISSING 1 5058#define X_DISPLAY_MISSING 1
10604#define HAVE_SYS_WAIT_H 1 6616#define HAVE_SYS_WAIT_H 1
10605_ACEOF 6617_ACEOF
10606 6618
10607fi 6619fi
10608 6620
6621echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6622echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6623if test "${ac_cv_header_stdc+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625else
6626 cat >conftest.$ac_ext <<_ACEOF
6627/* confdefs.h. */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
6631/* end confdefs.h. */
6632#include <stdlib.h>
6633#include <stdarg.h>
6634#include <string.h>
6635#include <float.h>
6636
6637int
6638main ()
6639{
6640
6641 ;
6642 return 0;
6643}
6644_ACEOF
6645rm -f conftest.$ac_objext
6646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6647 (eval $ac_compile) 2>conftest.er1
6648 ac_status=$?
6649 grep -v '^ *+' conftest.er1 >conftest.err
6650 rm -f conftest.er1
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; } &&
6660 { ac_try='test -s conftest.$ac_objext'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; }; then
6666 ac_cv_header_stdc=yes
6667else
6668 echo "$as_me: failed program was:" >&5
6669sed 's/^/| /' conftest.$ac_ext >&5
6670
6671ac_cv_header_stdc=no
6672fi
6673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674
6675if test $ac_cv_header_stdc = yes; then
6676 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6677 cat >conftest.$ac_ext <<_ACEOF
6678/* confdefs.h. */
6679_ACEOF
6680cat confdefs.h >>conftest.$ac_ext
6681cat >>conftest.$ac_ext <<_ACEOF
6682/* end confdefs.h. */
6683#include <string.h>
6684
6685_ACEOF
6686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6687 $EGREP "memchr" >/dev/null 2>&1; then
6688 :
6689else
6690 ac_cv_header_stdc=no
6691fi
6692rm -f conftest*
6693
6694fi
6695
6696if test $ac_cv_header_stdc = yes; then
6697 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6698 cat >conftest.$ac_ext <<_ACEOF
6699/* confdefs.h. */
6700_ACEOF
6701cat confdefs.h >>conftest.$ac_ext
6702cat >>conftest.$ac_ext <<_ACEOF
6703/* end confdefs.h. */
6704#include <stdlib.h>
6705
6706_ACEOF
6707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6708 $EGREP "free" >/dev/null 2>&1; then
6709 :
6710else
6711 ac_cv_header_stdc=no
6712fi
6713rm -f conftest*
6714
6715fi
6716
6717if test $ac_cv_header_stdc = yes; then
6718 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6719 if test "$cross_compiling" = yes; then
6720 :
6721else
6722 cat >conftest.$ac_ext <<_ACEOF
6723/* confdefs.h. */
6724_ACEOF
6725cat confdefs.h >>conftest.$ac_ext
6726cat >>conftest.$ac_ext <<_ACEOF
6727/* end confdefs.h. */
6728#include <ctype.h>
6729#if ((' ' & 0x0FF) == 0x020)
6730# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6731# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6732#else
6733# define ISLOWER(c) \
6734 (('a' <= (c) && (c) <= 'i') \
6735 || ('j' <= (c) && (c) <= 'r') \
6736 || ('s' <= (c) && (c) <= 'z'))
6737# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6738#endif
6739
6740#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6741int
6742main ()
6743{
6744 int i;
6745 for (i = 0; i < 256; i++)
6746 if (XOR (islower (i), ISLOWER (i))
6747 || toupper (i) != TOUPPER (i))
6748 exit(2);
6749 exit (0);
6750}
6751_ACEOF
6752rm -f conftest$ac_exeext
6753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6754 (eval $ac_link) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 (eval $ac_try) 2>&5
6760 ac_status=$?
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 :
6764else
6765 echo "$as_me: program exited with status $ac_status" >&5
6766echo "$as_me: failed program was:" >&5
6767sed 's/^/| /' conftest.$ac_ext >&5
6768
6769( exit $ac_status )
6770ac_cv_header_stdc=no
6771fi
6772rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6773fi
6774fi
6775fi
6776echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6777echo "${ECHO_T}$ac_cv_header_stdc" >&6
6778if test $ac_cv_header_stdc = yes; then
6779
6780cat >>confdefs.h <<\_ACEOF
6781#define STDC_HEADERS 1
6782_ACEOF
6783
6784fi
6785
6786# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6797 inttypes.h stdint.h unistd.h
6798do
6799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6800echo "$as_me:$LINENO: checking for $ac_header" >&5
6801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6802if eval "test \"\${$as_ac_Header+set}\" = set"; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804else
6805 cat >conftest.$ac_ext <<_ACEOF
6806/* confdefs.h. */
6807_ACEOF
6808cat confdefs.h >>conftest.$ac_ext
6809cat >>conftest.$ac_ext <<_ACEOF
6810/* end confdefs.h. */
6811$ac_includes_default
6812
6813#include <$ac_header>
6814_ACEOF
6815rm -f conftest.$ac_objext
6816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817 (eval $ac_compile) 2>conftest.er1
6818 ac_status=$?
6819 grep -v '^ *+' conftest.er1 >conftest.err
6820 rm -f conftest.er1
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 (eval $ac_try) 2>&5
6827 ac_status=$?
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); }; } &&
6830 { ac_try='test -s conftest.$ac_objext'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; }; then
6836 eval "$as_ac_Header=yes"
6837else
6838 echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
6840
6841eval "$as_ac_Header=no"
6842fi
6843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6844fi
6845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6847if test `eval echo '${'$as_ac_Header'}'` = yes; then
6848 cat >>confdefs.h <<_ACEOF
6849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6850_ACEOF
6851
6852fi
6853
6854done
10609 6855
10610 6856
10611 6857
10612 6858
10613 6859
10626 6872
10627 6873
10628for ac_header in \ 6874for ac_header in \
10629 assert.h \ 6875 assert.h \
10630 fcntl.h \ 6876 fcntl.h \
10631 grp.h \
10632 libc.h \
10633 lastlog.h \
10634 stdarg.h \ 6877 stdarg.h \
10635 stdlib.h \ 6878 stdlib.h \
10636 string.h \ 6879 string.h \
10637 termios.h \ 6880 termios.h \
10638 unistd.h \ 6881 unistd.h \
10640 sys/ioctl.h \ 6883 sys/ioctl.h \
10641 sys/select.h \ 6884 sys/select.h \
10642 sys/sockio.h \ 6885 sys/sockio.h \
10643 sys/strredir.h \ 6886 sys/strredir.h \
10644 sys/time.h \ 6887 sys/time.h \
10645 utmp.h \ 6888 stdint.h \
10646 utmpx.h \ 6889 wchar.h \
10647 stdint.h \ 6890 cwchar \
6891 clocale \
10648 6892
10649do 6893do
10650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6894as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10651if eval "test \"\${$as_ac_Header+set}\" = set"; then 6895if eval "test \"\${$as_ac_Header+set}\" = set"; then
10652 echo "$as_me:$LINENO: checking for $ac_header" >&5 6896 echo "$as_me:$LINENO: checking for $ac_header" >&5
11088 7332
11089fi 7333fi
11090LIBS=$ac_save_LIBS 7334LIBS=$ac_save_LIBS
11091CFLAGS=$ac_save_CFLAGS 7335CFLAGS=$ac_save_CFLAGS
11092 7336
7337echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7338echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7339if test "${rxvt_xlib_illegal_access+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341else
7342 cat >conftest.$ac_ext <<_ACEOF
7343/* confdefs.h. */
7344_ACEOF
7345cat confdefs.h >>conftest.$ac_ext
7346cat >>conftest.$ac_ext <<_ACEOF
7347/* end confdefs.h. */
7348
7349#define XLIB_ILLEGAL_ACCESS
7350#include <X11/Xlib.h>
7351
7352int
7353main ()
7354{
7355
7356 Display *dpy;
7357 dpy->xdefaults = (char *)0;
7358
7359 ;
7360 return 0;
7361}
7362_ACEOF
7363rm -f conftest.$ac_objext
7364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7365 (eval $ac_compile) 2>conftest.er1
7366 ac_status=$?
7367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } &&
7372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; } &&
7378 { ac_try='test -s conftest.$ac_objext'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; }; then
7384 rxvt_xlib_illegal_access=yes
7385else
7386 echo "$as_me: failed program was:" >&5
7387sed 's/^/| /' conftest.$ac_ext >&5
7388
7389rxvt_xlib_illegal_access=no
7390
7391fi
7392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7393fi
7394echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7395echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7396if test x$rxvt_xlib_illegal_access = xyes; then
7397
7398cat >>confdefs.h <<\_ACEOF
7399#define XLIB_ILLEGAL_ACCESS 1
7400_ACEOF
7401
7402fi
11093 7403
11094echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7404echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11095echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 7405echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11096if test "${ac_cv_c_const+set}" = set; then 7406if test "${ac_cv_c_const+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6 7407 echo $ECHO_N "(cached) $ECHO_C" >&6
11436_ACEOF 7746_ACEOF
11437 7747
11438fi 7748fi
11439 7749
11440 7750
11441
11442echo "$as_me:$LINENO: checking for char" >&5
11443echo $ECHO_N "checking for char... $ECHO_C" >&6
11444if test "${ac_cv_type_char+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11446else
11447 cat >conftest.$ac_ext <<_ACEOF
11448/* confdefs.h. */
11449_ACEOF
11450cat confdefs.h >>conftest.$ac_ext
11451cat >>conftest.$ac_ext <<_ACEOF
11452/* end confdefs.h. */
11453$ac_includes_default
11454int
11455main ()
11456{
11457if ((char *) 0)
11458 return 0;
11459if (sizeof (char))
11460 return 0;
11461 ;
11462 return 0;
11463}
11464_ACEOF
11465rm -f conftest.$ac_objext
11466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11467 (eval $ac_compile) 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; } &&
11480 { ac_try='test -s conftest.$ac_objext'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11486 ac_cv_type_char=yes
11487else
11488 echo "$as_me: failed program was:" >&5
11489sed 's/^/| /' conftest.$ac_ext >&5
11490
11491ac_cv_type_char=no
11492fi
11493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11494fi
11495echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11496echo "${ECHO_T}$ac_cv_type_char" >&6
11497
11498echo "$as_me:$LINENO: checking size of char" >&5
11499echo $ECHO_N "checking size of char... $ECHO_C" >&6
11500if test "${ac_cv_sizeof_char+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502else
11503 if test "$ac_cv_type_char" = yes; then
11504 # The cast to unsigned long works around a bug in the HP C Compiler
11505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11507 # This bug is HP SR number 8606223364.
11508 if test "$cross_compiling" = yes; then
11509 # Depending upon the size, compute the lo and hi bounds.
11510cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h. */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h. */
11516$ac_includes_default
11517int
11518main ()
11519{
11520static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11521test_array [0] = 0
11522
11523 ;
11524 return 0;
11525}
11526_ACEOF
11527rm -f conftest.$ac_objext
11528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11529 (eval $ac_compile) 2>conftest.er1
11530 ac_status=$?
11531 grep -v '^ *+' conftest.er1 >conftest.err
11532 rm -f conftest.er1
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; } &&
11542 { ac_try='test -s conftest.$ac_objext'
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11545 ac_status=$?
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; }; then
11548 ac_lo=0 ac_mid=0
11549 while :; do
11550 cat >conftest.$ac_ext <<_ACEOF
11551/* confdefs.h. */
11552_ACEOF
11553cat confdefs.h >>conftest.$ac_ext
11554cat >>conftest.$ac_ext <<_ACEOF
11555/* end confdefs.h. */
11556$ac_includes_default
11557int
11558main ()
11559{
11560static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11561test_array [0] = 0
11562
11563 ;
11564 return 0;
11565}
11566_ACEOF
11567rm -f conftest.$ac_objext
11568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11569 (eval $ac_compile) 2>conftest.er1
11570 ac_status=$?
11571 grep -v '^ *+' conftest.er1 >conftest.err
11572 rm -f conftest.er1
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } &&
11576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; } &&
11582 { ac_try='test -s conftest.$ac_objext'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11585 ac_status=$?
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }; then
11588 ac_hi=$ac_mid; break
11589else
11590 echo "$as_me: failed program was:" >&5
11591sed 's/^/| /' conftest.$ac_ext >&5
11592
11593ac_lo=`expr $ac_mid + 1`
11594 if test $ac_lo -le $ac_mid; then
11595 ac_lo= ac_hi=
11596 break
11597 fi
11598 ac_mid=`expr 2 '*' $ac_mid + 1`
11599fi
11600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11601 done
11602else
11603 echo "$as_me: failed program was:" >&5
11604sed 's/^/| /' conftest.$ac_ext >&5
11605
11606cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h. */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h. */
11612$ac_includes_default
11613int
11614main ()
11615{
11616static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11617test_array [0] = 0
11618
11619 ;
11620 return 0;
11621}
11622_ACEOF
11623rm -f conftest.$ac_objext
11624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11625 (eval $ac_compile) 2>conftest.er1
11626 ac_status=$?
11627 grep -v '^ *+' conftest.er1 >conftest.err
11628 rm -f conftest.er1
11629 cat conftest.err >&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; } &&
11638 { ac_try='test -s conftest.$ac_objext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 ac_hi=-1 ac_mid=-1
11645 while :; do
11646 cat >conftest.$ac_ext <<_ACEOF
11647/* confdefs.h. */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h. */
11652$ac_includes_default
11653int
11654main ()
11655{
11656static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11657test_array [0] = 0
11658
11659 ;
11660 return 0;
11661}
11662_ACEOF
11663rm -f conftest.$ac_objext
11664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11665 (eval $ac_compile) 2>conftest.er1
11666 ac_status=$?
11667 grep -v '^ *+' conftest.er1 >conftest.err
11668 rm -f conftest.er1
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest.$ac_objext'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; }; then
11684 ac_lo=$ac_mid; break
11685else
11686 echo "$as_me: failed program was:" >&5
11687sed 's/^/| /' conftest.$ac_ext >&5
11688
11689ac_hi=`expr '(' $ac_mid ')' - 1`
11690 if test $ac_mid -le $ac_hi; then
11691 ac_lo= ac_hi=
11692 break
11693 fi
11694 ac_mid=`expr 2 '*' $ac_mid`
11695fi
11696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11697 done
11698else
11699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
11702ac_lo= ac_hi=
11703fi
11704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11705fi
11706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11707# Binary search between lo and hi bounds.
11708while test "x$ac_lo" != "x$ac_hi"; do
11709 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11710 cat >conftest.$ac_ext <<_ACEOF
11711/* confdefs.h. */
11712_ACEOF
11713cat confdefs.h >>conftest.$ac_ext
11714cat >>conftest.$ac_ext <<_ACEOF
11715/* end confdefs.h. */
11716$ac_includes_default
11717int
11718main ()
11719{
11720static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11721test_array [0] = 0
11722
11723 ;
11724 return 0;
11725}
11726_ACEOF
11727rm -f conftest.$ac_objext
11728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11729 (eval $ac_compile) 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest.$ac_objext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 ac_hi=$ac_mid
11749else
11750 echo "$as_me: failed program was:" >&5
11751sed 's/^/| /' conftest.$ac_ext >&5
11752
11753ac_lo=`expr '(' $ac_mid ')' + 1`
11754fi
11755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11756done
11757case $ac_lo in
11758?*) ac_cv_sizeof_char=$ac_lo;;
11759'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11760See \`config.log' for more details." >&5
11761echo "$as_me: error: cannot compute sizeof (char), 77
11762See \`config.log' for more details." >&2;}
11763 { (exit 1); exit 1; }; } ;;
11764esac
11765else
11766 if test "$cross_compiling" = yes; then
11767 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11768echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11769 { (exit 1); exit 1; }; }
11770else
11771 cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777$ac_includes_default
11778long longval () { return (long) (sizeof (char)); }
11779unsigned long ulongval () { return (long) (sizeof (char)); }
11780#include <stdio.h>
11781#include <stdlib.h>
11782int
11783main ()
11784{
11785
11786 FILE *f = fopen ("conftest.val", "w");
11787 if (! f)
11788 exit (1);
11789 if (((long) (sizeof (char))) < 0)
11790 {
11791 long i = longval ();
11792 if (i != ((long) (sizeof (char))))
11793 exit (1);
11794 fprintf (f, "%ld\n", i);
11795 }
11796 else
11797 {
11798 unsigned long i = ulongval ();
11799 if (i != ((long) (sizeof (char))))
11800 exit (1);
11801 fprintf (f, "%lu\n", i);
11802 }
11803 exit (ferror (f) || fclose (f) != 0);
11804
11805 ;
11806 return 0;
11807}
11808_ACEOF
11809rm -f conftest$ac_exeext
11810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811 (eval $ac_link) 2>&5
11812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; }; then
11820 ac_cv_sizeof_char=`cat conftest.val`
11821else
11822 echo "$as_me: program exited with status $ac_status" >&5
11823echo "$as_me: failed program was:" >&5
11824sed 's/^/| /' conftest.$ac_ext >&5
11825
11826( exit $ac_status )
11827{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11828See \`config.log' for more details." >&5
11829echo "$as_me: error: cannot compute sizeof (char), 77
11830See \`config.log' for more details." >&2;}
11831 { (exit 1); exit 1; }; }
11832fi
11833rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11834fi
11835fi
11836rm -f conftest.val
11837else
11838 ac_cv_sizeof_char=0
11839fi
11840fi
11841echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11842echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11843cat >>confdefs.h <<_ACEOF
11844#define SIZEOF_CHAR $ac_cv_sizeof_char
11845_ACEOF
11846
11847
11848echo "$as_me:$LINENO: checking for short" >&5 7751echo "$as_me:$LINENO: checking for short" >&5
11849echo $ECHO_N "checking for short... $ECHO_C" >&6 7752echo $ECHO_N "checking for short... $ECHO_C" >&6
11850if test "${ac_cv_type_short+set}" = set; then 7753if test "${ac_cv_type_short+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6 7754 echo $ECHO_N "(cached) $ECHO_C" >&6
11852else 7755else
12655cat >>confdefs.h <<_ACEOF 8558cat >>confdefs.h <<_ACEOF
12656#define SIZEOF_INT $ac_cv_sizeof_int 8559#define SIZEOF_INT $ac_cv_sizeof_int
12657_ACEOF 8560_ACEOF
12658 8561
12659 8562
12660echo "$as_me:$LINENO: checking for long" >&5
12661echo $ECHO_N "checking for long... $ECHO_C" >&6
12662if test "${ac_cv_type_long+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664else
12665 cat >conftest.$ac_ext <<_ACEOF
12666/* confdefs.h. */
12667_ACEOF
12668cat confdefs.h >>conftest.$ac_ext
12669cat >>conftest.$ac_ext <<_ACEOF
12670/* end confdefs.h. */
12671$ac_includes_default
12672int
12673main ()
12674{
12675if ((long *) 0)
12676 return 0;
12677if (sizeof (long))
12678 return 0;
12679 ;
12680 return 0;
12681}
12682_ACEOF
12683rm -f conftest.$ac_objext
12684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12695 ac_status=$?
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest.$ac_objext'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; }; then
12704 ac_cv_type_long=yes
12705else
12706 echo "$as_me: failed program was:" >&5
12707sed 's/^/| /' conftest.$ac_ext >&5
12708
12709ac_cv_type_long=no
12710fi
12711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12712fi
12713echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12714echo "${ECHO_T}$ac_cv_type_long" >&6
12715
12716echo "$as_me:$LINENO: checking size of long" >&5
12717echo $ECHO_N "checking size of long... $ECHO_C" >&6
12718if test "${ac_cv_sizeof_long+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12720else
12721 if test "$ac_cv_type_long" = yes; then
12722 # The cast to unsigned long works around a bug in the HP C Compiler
12723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12725 # This bug is HP SR number 8606223364.
12726 if test "$cross_compiling" = yes; then
12727 # Depending upon the size, compute the lo and hi bounds.
12728cat >conftest.$ac_ext <<_ACEOF
12729/* confdefs.h. */
12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
12734$ac_includes_default
12735int
12736main ()
12737{
12738static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12739test_array [0] = 0
12740
12741 ;
12742 return 0;
12743}
12744_ACEOF
12745rm -f conftest.$ac_objext
12746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12747 (eval $ac_compile) 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest.$ac_objext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 ac_lo=0 ac_mid=0
12767 while :; do
12768 cat >conftest.$ac_ext <<_ACEOF
12769/* confdefs.h. */
12770_ACEOF
12771cat confdefs.h >>conftest.$ac_ext
12772cat >>conftest.$ac_ext <<_ACEOF
12773/* end confdefs.h. */
12774$ac_includes_default
12775int
12776main ()
12777{
12778static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12779test_array [0] = 0
12780
12781 ;
12782 return 0;
12783}
12784_ACEOF
12785rm -f conftest.$ac_objext
12786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12787 (eval $ac_compile) 2>conftest.er1
12788 ac_status=$?
12789 grep -v '^ *+' conftest.er1 >conftest.err
12790 rm -f conftest.er1
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } &&
12794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest.$ac_objext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_hi=$ac_mid; break
12807else
12808 echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
12811ac_lo=`expr $ac_mid + 1`
12812 if test $ac_lo -le $ac_mid; then
12813 ac_lo= ac_hi=
12814 break
12815 fi
12816 ac_mid=`expr 2 '*' $ac_mid + 1`
12817fi
12818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12819 done
12820else
12821 echo "$as_me: failed program was:" >&5
12822sed 's/^/| /' conftest.$ac_ext >&5
12823
12824cat >conftest.$ac_ext <<_ACEOF
12825/* confdefs.h. */
12826_ACEOF
12827cat confdefs.h >>conftest.$ac_ext
12828cat >>conftest.$ac_ext <<_ACEOF
12829/* end confdefs.h. */
12830$ac_includes_default
12831int
12832main ()
12833{
12834static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12835test_array [0] = 0
12836
12837 ;
12838 return 0;
12839}
12840_ACEOF
12841rm -f conftest.$ac_objext
12842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12843 (eval $ac_compile) 2>conftest.er1
12844 ac_status=$?
12845 grep -v '^ *+' conftest.er1 >conftest.err
12846 rm -f conftest.er1
12847 cat conftest.err >&5
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); } &&
12850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest.$ac_objext'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 ac_hi=-1 ac_mid=-1
12863 while :; do
12864 cat >conftest.$ac_ext <<_ACEOF
12865/* confdefs.h. */
12866_ACEOF
12867cat confdefs.h >>conftest.$ac_ext
12868cat >>conftest.$ac_ext <<_ACEOF
12869/* end confdefs.h. */
12870$ac_includes_default
12871int
12872main ()
12873{
12874static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12875test_array [0] = 0
12876
12877 ;
12878 return 0;
12879}
12880_ACEOF
12881rm -f conftest.$ac_objext
12882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12883 (eval $ac_compile) 2>conftest.er1
12884 ac_status=$?
12885 grep -v '^ *+' conftest.er1 >conftest.err
12886 rm -f conftest.er1
12887 cat conftest.err >&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } &&
12890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; } &&
12896 { ac_try='test -s conftest.$ac_objext'
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; }; then
12902 ac_lo=$ac_mid; break
12903else
12904 echo "$as_me: failed program was:" >&5
12905sed 's/^/| /' conftest.$ac_ext >&5
12906
12907ac_hi=`expr '(' $ac_mid ')' - 1`
12908 if test $ac_mid -le $ac_hi; then
12909 ac_lo= ac_hi=
12910 break
12911 fi
12912 ac_mid=`expr 2 '*' $ac_mid`
12913fi
12914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12915 done
12916else
12917 echo "$as_me: failed program was:" >&5
12918sed 's/^/| /' conftest.$ac_ext >&5
12919
12920ac_lo= ac_hi=
12921fi
12922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12923fi
12924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925# Binary search between lo and hi bounds.
12926while test "x$ac_lo" != "x$ac_hi"; do
12927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12928 cat >conftest.$ac_ext <<_ACEOF
12929/* confdefs.h. */
12930_ACEOF
12931cat confdefs.h >>conftest.$ac_ext
12932cat >>conftest.$ac_ext <<_ACEOF
12933/* end confdefs.h. */
12934$ac_includes_default
12935int
12936main ()
12937{
12938static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12939test_array [0] = 0
12940
12941 ;
12942 return 0;
12943}
12944_ACEOF
12945rm -f conftest.$ac_objext
12946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947 (eval $ac_compile) 2>conftest.er1
12948 ac_status=$?
12949 grep -v '^ *+' conftest.er1 >conftest.err
12950 rm -f conftest.er1
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } &&
12954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12956 (eval $ac_try) 2>&5
12957 ac_status=$?
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); }; } &&
12960 { ac_try='test -s conftest.$ac_objext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 ac_hi=$ac_mid
12967else
12968 echo "$as_me: failed program was:" >&5
12969sed 's/^/| /' conftest.$ac_ext >&5
12970
12971ac_lo=`expr '(' $ac_mid ')' + 1`
12972fi
12973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12974done
12975case $ac_lo in
12976?*) ac_cv_sizeof_long=$ac_lo;;
12977'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12978See \`config.log' for more details." >&5
12979echo "$as_me: error: cannot compute sizeof (long), 77
12980See \`config.log' for more details." >&2;}
12981 { (exit 1); exit 1; }; } ;;
12982esac
12983else
12984 if test "$cross_compiling" = yes; then
12985 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12986echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12987 { (exit 1); exit 1; }; }
12988else
12989 cat >conftest.$ac_ext <<_ACEOF
12990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h. */
12995$ac_includes_default
12996long longval () { return (long) (sizeof (long)); }
12997unsigned long ulongval () { return (long) (sizeof (long)); }
12998#include <stdio.h>
12999#include <stdlib.h>
13000int
13001main ()
13002{
13003
13004 FILE *f = fopen ("conftest.val", "w");
13005 if (! f)
13006 exit (1);
13007 if (((long) (sizeof (long))) < 0)
13008 {
13009 long i = longval ();
13010 if (i != ((long) (sizeof (long))))
13011 exit (1);
13012 fprintf (f, "%ld\n", i);
13013 }
13014 else
13015 {
13016 unsigned long i = ulongval ();
13017 if (i != ((long) (sizeof (long))))
13018 exit (1);
13019 fprintf (f, "%lu\n", i);
13020 }
13021 exit (ferror (f) || fclose (f) != 0);
13022
13023 ;
13024 return 0;
13025}
13026_ACEOF
13027rm -f conftest$ac_exeext
13028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13029 (eval $ac_link) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 ac_cv_sizeof_long=`cat conftest.val`
13039else
13040 echo "$as_me: program exited with status $ac_status" >&5
13041echo "$as_me: failed program was:" >&5
13042sed 's/^/| /' conftest.$ac_ext >&5
13043
13044( exit $ac_status )
13045{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13046See \`config.log' for more details." >&5
13047echo "$as_me: error: cannot compute sizeof (long), 77
13048See \`config.log' for more details." >&2;}
13049 { (exit 1); exit 1; }; }
13050fi
13051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13052fi
13053fi
13054rm -f conftest.val
13055else
13056 ac_cv_sizeof_long=0
13057fi
13058fi
13059echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13060echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13061cat >>confdefs.h <<_ACEOF
13062#define SIZEOF_LONG $ac_cv_sizeof_long
13063_ACEOF
13064
13065
13066echo "$as_me:$LINENO: checking for long long" >&5 8563echo "$as_me:$LINENO: checking for long long" >&5
13067echo $ECHO_N "checking for long long... $ECHO_C" >&6 8564echo $ECHO_N "checking for long long... $ECHO_C" >&6
13068if test "${ac_cv_type_long_long+set}" = set; then 8565if test "${ac_cv_type_long_long+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6 8566 echo $ECHO_N "(cached) $ECHO_C" >&6
13070else 8567else
13921 rxvt_cv_int16_t=yes 9418 rxvt_cv_int16_t=yes
13922else 9419else
13923 echo "$as_me: failed program was:" >&5 9420 echo "$as_me: failed program was:" >&5
13924sed 's/^/| /' conftest.$ac_ext >&5 9421sed 's/^/| /' conftest.$ac_ext >&5
13925 9422
13926if test $ac_cv_sizeof_char -ge 2; then 9423if test "$ac_cv_sizeof_char" -ge 2; then
13927 rxvt_cv_int16_t=" char" 9424 rxvt_cv_int16_t=" char"
13928else 9425else
13929 if test $ac_cv_sizeof_short -ge 2; then 9426 if test "$ac_cv_sizeof_short" -ge 2; then
13930 rxvt_cv_int16_t=" short" 9427 rxvt_cv_int16_t=" short"
13931 else 9428 else
13932 if test $ac_cv_sizeof_int -ge 2; then 9429 if test "$ac_cv_sizeof_int" -ge 2; then
13933 rxvt_cv_int16_t=" int" 9430 rxvt_cv_int16_t=" int"
13934 else 9431 else
13935 if test $ac_cv_sizeof_long -ge 2; then 9432 if test "$ac_cv_sizeof_long" -ge 2; then
13936 rxvt_cv_int16_t=" long" 9433 rxvt_cv_int16_t=" long"
13937 else 9434 else
13938 if test $ac_cv_sizeof_long_long -ge 2; then 9435 if test "$ac_cv_sizeof_long_long" -ge 2; then
13939 rxvt_cv_int16_t=" long long" 9436 rxvt_cv_int16_t=" long long"
13940 else 9437 else
13941 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9438 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
13942 fi 9439 fi
13943 fi 9440 fi
14003 rxvt_cv_uint16_t=yes 9500 rxvt_cv_uint16_t=yes
14004else 9501else
14005 echo "$as_me: failed program was:" >&5 9502 echo "$as_me: failed program was:" >&5
14006sed 's/^/| /' conftest.$ac_ext >&5 9503sed 's/^/| /' conftest.$ac_ext >&5
14007 9504
14008if test $ac_cv_sizeof_char -ge 2; then 9505if test "$ac_cv_sizeof_char" -ge 2; then
14009 rxvt_cv_uint16_t="unsigned char" 9506 rxvt_cv_uint16_t="unsigned char"
14010else 9507else
14011 if test $ac_cv_sizeof_short -ge 2; then 9508 if test "$ac_cv_sizeof_short" -ge 2; then
14012 rxvt_cv_uint16_t="unsigned short" 9509 rxvt_cv_uint16_t="unsigned short"
14013 else 9510 else
14014 if test $ac_cv_sizeof_int -ge 2; then 9511 if test "$ac_cv_sizeof_int" -ge 2; then
14015 rxvt_cv_uint16_t="unsigned int" 9512 rxvt_cv_uint16_t="unsigned int"
14016 else 9513 else
14017 if test $ac_cv_sizeof_long -ge 2; then 9514 if test "$ac_cv_sizeof_long" -ge 2; then
14018 rxvt_cv_uint16_t="unsigned long" 9515 rxvt_cv_uint16_t="unsigned long"
14019 else 9516 else
14020 if test $ac_cv_sizeof_long_long -ge 2; then 9517 if test "$ac_cv_sizeof_long_long" -ge 2; then
14021 rxvt_cv_uint16_t="unsigned long long" 9518 rxvt_cv_uint16_t="unsigned long long"
14022 else 9519 else
14023 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9520 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14024 fi 9521 fi
14025 fi 9522 fi
14085 rxvt_cv_int32_t=yes 9582 rxvt_cv_int32_t=yes
14086else 9583else
14087 echo "$as_me: failed program was:" >&5 9584 echo "$as_me: failed program was:" >&5
14088sed 's/^/| /' conftest.$ac_ext >&5 9585sed 's/^/| /' conftest.$ac_ext >&5
14089 9586
14090if test $ac_cv_sizeof_char -ge 4; then 9587if test "$ac_cv_sizeof_char" -ge 4; then
14091 rxvt_cv_int32_t=" char" 9588 rxvt_cv_int32_t=" char"
14092else 9589else
14093 if test $ac_cv_sizeof_short -ge 4; then 9590 if test "$ac_cv_sizeof_short" -ge 4; then
14094 rxvt_cv_int32_t=" short" 9591 rxvt_cv_int32_t=" short"
14095 else 9592 else
14096 if test $ac_cv_sizeof_int -ge 4; then 9593 if test "$ac_cv_sizeof_int" -ge 4; then
14097 rxvt_cv_int32_t=" int" 9594 rxvt_cv_int32_t=" int"
14098 else 9595 else
14099 if test $ac_cv_sizeof_long -ge 4; then 9596 if test "$ac_cv_sizeof_long" -ge 4; then
14100 rxvt_cv_int32_t=" long" 9597 rxvt_cv_int32_t=" long"
14101 else 9598 else
14102 if test $ac_cv_sizeof_long_long -ge 4; then 9599 if test "$ac_cv_sizeof_long_long" -ge 4; then
14103 rxvt_cv_int32_t=" long long" 9600 rxvt_cv_int32_t=" long long"
14104 else 9601 else
14105 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9602 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14106 fi 9603 fi
14107 fi 9604 fi
14167 rxvt_cv_uint32_t=yes 9664 rxvt_cv_uint32_t=yes
14168else 9665else
14169 echo "$as_me: failed program was:" >&5 9666 echo "$as_me: failed program was:" >&5
14170sed 's/^/| /' conftest.$ac_ext >&5 9667sed 's/^/| /' conftest.$ac_ext >&5
14171 9668
14172if test $ac_cv_sizeof_char -ge 4; then 9669if test "$ac_cv_sizeof_char" -ge 4; then
14173 rxvt_cv_uint32_t="unsigned char" 9670 rxvt_cv_uint32_t="unsigned char"
14174else 9671else
14175 if test $ac_cv_sizeof_short -ge 4; then 9672 if test "$ac_cv_sizeof_short" -ge 4; then
14176 rxvt_cv_uint32_t="unsigned short" 9673 rxvt_cv_uint32_t="unsigned short"
14177 else 9674 else
14178 if test $ac_cv_sizeof_int -ge 4; then 9675 if test "$ac_cv_sizeof_int" -ge 4; then
14179 rxvt_cv_uint32_t="unsigned int" 9676 rxvt_cv_uint32_t="unsigned int"
14180 else 9677 else
14181 if test $ac_cv_sizeof_long -ge 4; then 9678 if test "$ac_cv_sizeof_long" -ge 4; then
14182 rxvt_cv_uint32_t="unsigned long" 9679 rxvt_cv_uint32_t="unsigned long"
14183 else 9680 else
14184 if test $ac_cv_sizeof_long_long -ge 4; then 9681 if test "$ac_cv_sizeof_long_long" -ge 4; then
14185 rxvt_cv_uint32_t="unsigned long long" 9682 rxvt_cv_uint32_t="unsigned long long"
14186 else 9683 else
14187 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9684 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14188 fi 9685 fi
14189 fi 9686 fi
14203 else 9700 else
14204 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9701 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14205 fi 9702 fi
14206fi 9703fi
14207 9704
14208if test $ac_cv_sizeof_int_p -eq 8; then 9705if test "$ac_cv_sizeof_int_p" -eq 8; then
14209 rxvt_intp_define="#define intp_t int64_t" 9706 rxvt_intp_define="#define intp_t int64_t"
14210 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9707 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14211else 9708else
14212 if test $ac_cv_sizeof_int_p -eq 4; then 9709 if test "$ac_cv_sizeof_int_p" -eq 4; then
14213 rxvt_intp_define="#define intp_t int32_t" 9710 rxvt_intp_define="#define intp_t int32_t"
14214 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9711 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14215 else 9712 else
14216 if test $ac_cv_sizeof_int_p -eq 2; then 9713 if test "$ac_cv_sizeof_int_p" -eq 2; then
14217 rxvt_intp_define="#define intp_t int16_t" 9714 rxvt_intp_define="#define intp_t int16_t"
14218 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9715 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14219 else 9716 else
14220 rxvt_intp_define="#error set intp_t" 9717 rxvt_intp_define="#error set intp_t"
14221 rxvt_u_intp_define="#error set u_intp_t" 9718 rxvt_u_intp_define="#error set u_intp_t"
14292#define RETSIGTYPE $ac_cv_type_signal 9789#define RETSIGTYPE $ac_cv_type_signal
14293_ACEOF 9790_ACEOF
14294 9791
14295 9792
14296 9793
14297case "$host_alias" in
14298 *ultrix) ac_cv_func_setsid='no' ;;
14299 *) break;;
14300esac
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317 9794
14318 9795
14319 9796
14320for ac_func in \ 9797for ac_func in \
14321 atexit \
14322 revoke \
14323 unsetenv \ 9798 unsetenv \
14324 setutent \ 9799 setutent \
14325 seteuid \
14326 setreuid \
14327 setsid \
14328 setpgrp \
14329 setpgid \
14330 openpty \
14331 _getpty \
14332 grantpt \
14333 unlockpt \
14334 isastream \
14335 on_exit \ 9800 on_exit \
14336 nanosleep \
14337 updwtmp \
14338 ttyslot \
14339 9801
14340do 9802do
14341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9803as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14342echo "$as_me:$LINENO: checking for $ac_func" >&5 9804echo "$as_me:$LINENO: checking for $ac_func" >&5
14343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9805echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14432 cat >>confdefs.h <<_ACEOF 9894 cat >>confdefs.h <<_ACEOF
14433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14434_ACEOF 9896_ACEOF
14435 9897
14436fi 9898fi
9899done
9900
9901
9902
9903support_utmp=yes
9904support_wtmp=yes
9905support_lastlog=yes
9906
9907# Check whether --enable-utmp or --disable-utmp was given.
9908if test "${enable_utmp+set}" = set; then
9909 enableval="$enable_utmp"
9910 if test x$enableval = xyes -o x$enableval = xno; then
9911 support_utmp=$enableval
9912 fi
9913fi;
9914
9915# Check whether --enable-wtmp or --disable-wtmp was given.
9916if test "${enable_wtmp+set}" = set; then
9917 enableval="$enable_wtmp"
9918 if test x$enableval = xyes -o x$enableval = xno; then
9919 support_wtmp=$enableval
9920 fi
9921fi;
9922
9923# Check whether --enable-lastlog or --disable-lastlog was given.
9924if test "${enable_lastlog+set}" = set; then
9925 enableval="$enable_lastlog"
9926 if test x$enableval = xyes -o x$enableval = xno; then
9927 support_lastlog=$enableval
9928 fi
9929fi;
9930
9931if test x$support_utmp = xyes; then
9932
9933cat >>confdefs.h <<\_ACEOF
9934#define UTMP_SUPPORT 1
9935_ACEOF
9936
9937fi
9938if test x$support_wtmp = xyes; then
9939
9940cat >>confdefs.h <<\_ACEOF
9941#define WTMP_SUPPORT 1
9942_ACEOF
9943
9944fi
9945if test x$support_lastlog = xyes; then
9946
9947cat >>confdefs.h <<\_ACEOF
9948#define LASTLOG_SUPPORT 1
9949_ACEOF
9950
9951fi
9952
9953
9954
9955
9956for ac_func in \
9957 ttyslot \
9958 updwtmp \
9959 updwtmpx \
9960
9961do
9962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9963echo "$as_me:$LINENO: checking for $ac_func" >&5
9964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9965if eval "test \"\${$as_ac_var+set}\" = set"; then
9966 echo $ECHO_N "(cached) $ECHO_C" >&6
9967else
9968 cat >conftest.$ac_ext <<_ACEOF
9969/* confdefs.h. */
9970_ACEOF
9971cat confdefs.h >>conftest.$ac_ext
9972cat >>conftest.$ac_ext <<_ACEOF
9973/* end confdefs.h. */
9974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9976#define $ac_func innocuous_$ac_func
9977
9978/* System header to define __stub macros and hopefully few prototypes,
9979 which can conflict with char $ac_func (); below.
9980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9981 <limits.h> exists even on freestanding compilers. */
9982
9983#ifdef __STDC__
9984# include <limits.h>
9985#else
9986# include <assert.h>
9987#endif
9988
9989#undef $ac_func
9990
9991/* Override any gcc2 internal prototype to avoid an error. */
9992#ifdef __cplusplus
9993extern "C"
9994{
9995#endif
9996/* We use char because int might match the return type of a gcc2
9997 builtin and then its argument prototype would still apply. */
9998char $ac_func ();
9999/* The GNU C library defines this for functions which it implements
10000 to always fail with ENOSYS. Some functions are actually named
10001 something starting with __ and the normal name is an alias. */
10002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10003choke me
10004#else
10005char (*f) () = $ac_func;
10006#endif
10007#ifdef __cplusplus
10008}
10009#endif
10010
10011int
10012main ()
10013{
10014return f != $ac_func;
10015 ;
10016 return 0;
10017}
10018_ACEOF
10019rm -f conftest.$ac_objext conftest$ac_exeext
10020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>conftest.er1
10022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; } &&
10034 { ac_try='test -s conftest$ac_exeext'
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; }; then
10040 eval "$as_ac_var=yes"
10041else
10042 echo "$as_me: failed program was:" >&5
10043sed 's/^/| /' conftest.$ac_ext >&5
10044
10045eval "$as_ac_var=no"
10046fi
10047rm -f conftest.err conftest.$ac_objext \
10048 conftest$ac_exeext conftest.$ac_ext
10049fi
10050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10052if test `eval echo '${'$as_ac_var'}'` = yes; then
10053 cat >>confdefs.h <<_ACEOF
10054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10055_ACEOF
10056
10057fi
10058done
10059
10060
10061
10062
10063
10064for ac_header in \
10065 utmp.h \
10066 utmpx.h \
10067 lastlog.h \
10068
10069do
10070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10071if eval "test \"\${$as_ac_Header+set}\" = set"; then
10072 echo "$as_me:$LINENO: checking for $ac_header" >&5
10073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10074if eval "test \"\${$as_ac_Header+set}\" = set"; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076fi
10077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10078echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10079else
10080 # Is the header compilable?
10081echo "$as_me:$LINENO: checking $ac_header usability" >&5
10082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10083cat >conftest.$ac_ext <<_ACEOF
10084/* confdefs.h. */
10085_ACEOF
10086cat confdefs.h >>conftest.$ac_ext
10087cat >>conftest.$ac_ext <<_ACEOF
10088/* end confdefs.h. */
10089$ac_includes_default
10090#include <$ac_header>
10091_ACEOF
10092rm -f conftest.$ac_objext
10093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10094 (eval $ac_compile) 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } &&
10101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10104 ac_status=$?
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_header_compiler=yes
10114else
10115 echo "$as_me: failed program was:" >&5
10116sed 's/^/| /' conftest.$ac_ext >&5
10117
10118ac_header_compiler=no
10119fi
10120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10122echo "${ECHO_T}$ac_header_compiler" >&6
10123
10124# Is the header present?
10125echo "$as_me:$LINENO: checking $ac_header presence" >&5
10126echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10127cat >conftest.$ac_ext <<_ACEOF
10128/* confdefs.h. */
10129_ACEOF
10130cat confdefs.h >>conftest.$ac_ext
10131cat >>conftest.$ac_ext <<_ACEOF
10132/* end confdefs.h. */
10133#include <$ac_header>
10134_ACEOF
10135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10137 ac_status=$?
10138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } >/dev/null; then
10143 if test -s conftest.err; then
10144 ac_cpp_err=$ac_cxx_preproc_warn_flag
10145 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10146 else
10147 ac_cpp_err=
10148 fi
10149else
10150 ac_cpp_err=yes
10151fi
10152if test -z "$ac_cpp_err"; then
10153 ac_header_preproc=yes
10154else
10155 echo "$as_me: failed program was:" >&5
10156sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 ac_header_preproc=no
10159fi
10160rm -f conftest.err conftest.$ac_ext
10161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10162echo "${ECHO_T}$ac_header_preproc" >&6
10163
10164# So? What about this header?
10165case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10166 yes:no: )
10167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10171 ac_header_preproc=yes
10172 ;;
10173 no:yes:* )
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10177echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10181echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10186 (
10187 cat <<\_ASBOX
10188## ------------------------------------------ ##
10189## Report this to the AC_PACKAGE_NAME lists. ##
10190## ------------------------------------------ ##
10191_ASBOX
10192 ) |
10193 sed "s/^/$as_me: WARNING: /" >&2
10194 ;;
10195esac
10196echo "$as_me:$LINENO: checking for $ac_header" >&5
10197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10198if eval "test \"\${$as_ac_Header+set}\" = set"; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10200else
10201 eval "$as_ac_Header=\$ac_header_preproc"
10202fi
10203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10204echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10205
10206fi
10207if test `eval echo '${'$as_ac_Header'}'` = yes; then
10208 cat >>confdefs.h <<_ACEOF
10209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10210_ACEOF
10211
10212fi
10213
14437done 10214done
14438 10215
14439 10216
14440 10217
14441if test "${ac_cv_header_utmp_h+set}" = set; then 10218if test "${ac_cv_header_utmp_h+set}" = set; then
14575 10352
14576fi 10353fi
14577if test $ac_cv_header_utmp_h = yes; then 10354if test $ac_cv_header_utmp_h = yes; then
14578 echo "$as_me:$LINENO: checking for struct utmp" >&5 10355 echo "$as_me:$LINENO: checking for struct utmp" >&5
14579echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10356echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14580if test "${rxvt_cv_struct_utmp+set}" = set; then 10357if test "${struct_utmp+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6 10358 echo $ECHO_N "(cached) $ECHO_C" >&6
14582else 10359else
14583 cat >conftest.$ac_ext <<_ACEOF 10360 cat >conftest.$ac_ext <<_ACEOF
14584/* confdefs.h. */ 10361/* confdefs.h. */
14585_ACEOF 10362_ACEOF
14586cat confdefs.h >>conftest.$ac_ext 10363cat confdefs.h >>conftest.$ac_ext
14587cat >>conftest.$ac_ext <<_ACEOF 10364cat >>conftest.$ac_ext <<_ACEOF
14588/* end confdefs.h. */ 10365/* end confdefs.h. */
14589#include <sys/types.h> 10366#include <sys/types.h>
14590#include <stdint.h>
14591#include <utmp.h> 10367#include <utmp.h>
14592int 10368int
14593main () 10369main ()
14594{ 10370{
14595struct utmp ut; 10371struct utmp ut;
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5 10393 (eval $ac_try) 2>&5
14618 ac_status=$? 10394 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then 10396 (exit $ac_status); }; }; then
14621 rxvt_cv_struct_utmp=yes 10397 struct_utmp=yes
14622else 10398else
14623 echo "$as_me: failed program was:" >&5 10399 echo "$as_me: failed program was:" >&5
14624sed 's/^/| /' conftest.$ac_ext >&5 10400sed 's/^/| /' conftest.$ac_ext >&5
14625 10401
14626rxvt_cv_struct_utmp=no 10402struct_utmp=no
14627fi 10403fi
14628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14629fi 10405fi
14630echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10406echo "$as_me:$LINENO: result: $struct_utmp" >&5
14631echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10407echo "${ECHO_T}$struct_utmp" >&6
14632if test x$rxvt_cv_struct_utmp = xyes; then 10408if test x$struct_utmp = xyes; then
14633 10409
14634cat >>confdefs.h <<\_ACEOF 10410cat >>confdefs.h <<\_ACEOF
14635#define HAVE_STRUCT_UTMP 1 10411#define HAVE_STRUCT_UTMP 1
14636_ACEOF 10412_ACEOF
14637 10413
14638fi 10414fi
14639 10415
14640 10416
14641echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10417echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14642echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10418echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14643if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10419if test "${struct_utmp_host+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6 10420 echo $ECHO_N "(cached) $ECHO_C" >&6
14645else 10421else
14646 cat >conftest.$ac_ext <<_ACEOF 10422 cat >conftest.$ac_ext <<_ACEOF
14647/* confdefs.h. */ 10423/* confdefs.h. */
14648_ACEOF 10424_ACEOF
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5 10455 (eval $ac_try) 2>&5
14680 ac_status=$? 10456 ac_status=$?
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }; then 10458 (exit $ac_status); }; }; then
14683 rxvt_cv_struct_utmp_host=yes 10459 struct_utmp_host=yes
14684else 10460else
14685 echo "$as_me: failed program was:" >&5 10461 echo "$as_me: failed program was:" >&5
14686sed 's/^/| /' conftest.$ac_ext >&5 10462sed 's/^/| /' conftest.$ac_ext >&5
14687 10463
14688rxvt_cv_struct_utmp_host=no 10464struct_utmp_host=no
14689fi 10465fi
14690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14691fi 10467fi
14692echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10468echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
14693echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10469echo "${ECHO_T}$struct_utmp_host" >&6
14694if test x$rxvt_cv_struct_utmp_host = xyes; then 10470if test x$struct_utmp_host = xyes; then
14695 10471
14696cat >>confdefs.h <<\_ACEOF 10472cat >>confdefs.h <<\_ACEOF
14697#define HAVE_UTMP_HOST 1 10473#define HAVE_UTMP_HOST 1
14698_ACEOF 10474_ACEOF
14699 10475
14700fi 10476fi
14701 10477
14702echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10478echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
14703echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10479echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
14704if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10480if test "${struct_utmp_pid+set}" = set; then
14705 echo $ECHO_N "(cached) $ECHO_C" >&6 10481 echo $ECHO_N "(cached) $ECHO_C" >&6
14706else 10482else
14707 cat >conftest.$ac_ext <<_ACEOF 10483 cat >conftest.$ac_ext <<_ACEOF
14708/* confdefs.h. */ 10484/* confdefs.h. */
14709_ACEOF 10485_ACEOF
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5 10516 (eval $ac_try) 2>&5
14741 ac_status=$? 10517 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then 10519 (exit $ac_status); }; }; then
14744 rxvt_cv_struct_utmp_pid=yes 10520 struct_utmp_pid=yes
14745else 10521else
14746 echo "$as_me: failed program was:" >&5 10522 echo "$as_me: failed program was:" >&5
14747sed 's/^/| /' conftest.$ac_ext >&5 10523sed 's/^/| /' conftest.$ac_ext >&5
14748 10524
14749rxvt_cv_struct_utmp_pid=no 10525struct_utmp_pid=no
14750fi 10526fi
14751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14752fi 10528fi
14753echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10529echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
14754echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10530echo "${ECHO_T}$struct_utmp_pid" >&6
14755if test x$rxvt_cv_struct_utmp_pid = xyes; then 10531if test x$struct_utmp_pid = xyes; then
14756 10532
14757cat >>confdefs.h <<\_ACEOF 10533cat >>confdefs.h <<\_ACEOF
14758#define HAVE_UTMP_PID 1 10534#define HAVE_UTMP_PID 1
14759_ACEOF 10535_ACEOF
14760 10536
14901 10677
14902fi 10678fi
14903if test $ac_cv_header_utmpx_h = yes; then 10679if test $ac_cv_header_utmpx_h = yes; then
14904 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10680 echo "$as_me:$LINENO: checking for struct utmpx" >&5
14905echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10681echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
14906if test "${rxvt_cv_struct_utmpx+set}" = set; then 10682if test "${struct_utmpx+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6 10683 echo $ECHO_N "(cached) $ECHO_C" >&6
14908else 10684else
14909 cat >conftest.$ac_ext <<_ACEOF 10685 cat >conftest.$ac_ext <<_ACEOF
14910/* confdefs.h. */ 10686/* confdefs.h. */
14911_ACEOF 10687_ACEOF
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5 10718 (eval $ac_try) 2>&5
14943 ac_status=$? 10719 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; }; then 10721 (exit $ac_status); }; }; then
14946 rxvt_cv_struct_utmpx=yes 10722 struct_utmpx=yes
14947else 10723else
14948 echo "$as_me: failed program was:" >&5 10724 echo "$as_me: failed program was:" >&5
14949sed 's/^/| /' conftest.$ac_ext >&5 10725sed 's/^/| /' conftest.$ac_ext >&5
14950 10726
14951rxvt_cv_struct_utmpx=no 10727struct_utmpx=no
14952fi 10728fi
14953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14954fi 10730fi
14955echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10731echo "$as_me:$LINENO: result: $struct_utmpx" >&5
14956echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10732echo "${ECHO_T}$struct_utmpx" >&6
14957if test x$rxvt_cv_struct_utmpx = xyes; then 10733if test x$struct_utmpx = xyes; then
14958 10734
14959cat >>confdefs.h <<\_ACEOF 10735cat >>confdefs.h <<\_ACEOF
14960#define HAVE_STRUCT_UTMPX 1 10736#define HAVE_STRUCT_UTMPX 1
14961_ACEOF 10737_ACEOF
14962 10738
14963fi 10739fi
14964 10740
14965 10741
14966echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10742echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
14967echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10743echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
14968if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10744if test "${struct_utmpx_host+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6 10745 echo $ECHO_N "(cached) $ECHO_C" >&6
14970else 10746else
14971 cat >conftest.$ac_ext <<_ACEOF 10747 cat >conftest.$ac_ext <<_ACEOF
14972/* confdefs.h. */ 10748/* confdefs.h. */
14973_ACEOF 10749_ACEOF
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5 10780 (eval $ac_try) 2>&5
15005 ac_status=$? 10781 ac_status=$?
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then 10783 (exit $ac_status); }; }; then
15008 rxvt_cv_struct_utmpx_host=yes 10784 struct_utmpx_host=yes
15009else 10785else
15010 echo "$as_me: failed program was:" >&5 10786 echo "$as_me: failed program was:" >&5
15011sed 's/^/| /' conftest.$ac_ext >&5 10787sed 's/^/| /' conftest.$ac_ext >&5
15012 10788
15013rxvt_cv_struct_utmpx_host=no 10789struct_utmpx_host=no
15014fi 10790fi
15015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15016fi 10792fi
15017echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 10793echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
15018echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 10794echo "${ECHO_T}$struct_utmpx_host" >&6
15019if test x$rxvt_cv_struct_utmpx_host = xyes; then 10795if test x$struct_utmpx_host = xyes; then
15020 10796
15021cat >>confdefs.h <<\_ACEOF 10797cat >>confdefs.h <<\_ACEOF
15022#define HAVE_UTMPX_HOST 1 10798#define HAVE_UTMPX_HOST 1
15023_ACEOF 10799_ACEOF
15024 10800
15025fi 10801fi
15026 10802
15027fi 10803echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10804echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10805if test "${struct_utmpx_session+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807else
10808 cat >conftest.$ac_ext <<_ACEOF
10809/* confdefs.h. */
10810_ACEOF
10811cat confdefs.h >>conftest.$ac_ext
10812cat >>conftest.$ac_ext <<_ACEOF
10813/* end confdefs.h. */
10814#include <sys/types.h>
10815#include <utmpx.h>
10816int
10817main ()
10818{
10819struct utmpx utx; utx.ut_session;
10820 ;
10821 return 0;
10822}
10823_ACEOF
10824rm -f conftest.$ac_objext
10825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10826 (eval $ac_compile) 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
10833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10836 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; } &&
10839 { ac_try='test -s conftest.$ac_objext'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10842 ac_status=$?
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; }; then
10845 struct_utmpx_session=yes
10846else
10847 echo "$as_me: failed program was:" >&5
10848sed 's/^/| /' conftest.$ac_ext >&5
15028 10849
10850struct_utmpx_session=no
10851fi
10852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10853fi
10854echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10855echo "${ECHO_T}$struct_utmpx_session" >&6
10856if test x$struct_utmpx_session = xyes; then
10857
10858cat >>confdefs.h <<\_ACEOF
10859#define HAVE_UTMPX_SESSION 1
10860_ACEOF
10861
10862fi
10863
10864fi
15029 10865
15030 10866
15031echo "$as_me:$LINENO: checking for struct lastlog" >&5 10867echo "$as_me:$LINENO: checking for struct lastlog" >&5
15032echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10868echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15033if test "${rxvt_cv_struct_lastlog+set}" = set; then 10869if test "${struct_lastlog+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6 10870 echo $ECHO_N "(cached) $ECHO_C" >&6
15035else 10871else
15036 cat >conftest.$ac_ext <<_ACEOF 10872 cat >conftest.$ac_ext <<_ACEOF
15037/* confdefs.h. */ 10873/* confdefs.h. */
15038_ACEOF 10874_ACEOF
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5 10909 (eval $ac_try) 2>&5
15074 ac_status=$? 10910 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; }; then 10912 (exit $ac_status); }; }; then
15077 rxvt_cv_struct_lastlog=yes 10913 struct_lastlog=yes
15078else 10914else
15079 echo "$as_me: failed program was:" >&5 10915 echo "$as_me: failed program was:" >&5
15080sed 's/^/| /' conftest.$ac_ext >&5 10916sed 's/^/| /' conftest.$ac_ext >&5
15081 10917
15082rxvt_cv_struct_lastlog=no 10918struct_lastlog=no
15083fi 10919fi
15084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15085fi 10921fi
15086echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 10922echo "$as_me:$LINENO: result: $struct_lastlog" >&5
15087echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 10923echo "${ECHO_T}$struct_lastlog" >&6
15088if test x$rxvt_cv_struct_lastlog = xyes; then 10924if test x$struct_lastlog = xyes; then
15089 10925
15090cat >>confdefs.h <<\_ACEOF 10926cat >>confdefs.h <<\_ACEOF
15091#define HAVE_STRUCT_LASTLOG 1 10927#define HAVE_STRUCT_LASTLOG 1
15092_ACEOF 10928_ACEOF
15093 10929
15094fi 10930fi
15095 10931
15096echo "$as_me:$LINENO: checking for struct lastlogx" >&5 10932echo "$as_me:$LINENO: checking for struct lastlogx" >&5
15097echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 10933echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
15098if test "${rxvt_cv_struct_lastlogx+set}" = set; then 10934if test "${struct_lastlogx+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6 10935 echo $ECHO_N "(cached) $ECHO_C" >&6
15100else 10936else
15101 cat >conftest.$ac_ext <<_ACEOF 10937 cat >conftest.$ac_ext <<_ACEOF
15102/* confdefs.h. */ 10938/* confdefs.h. */
15103_ACEOF 10939_ACEOF
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5 10974 (eval $ac_try) 2>&5
15139 ac_status=$? 10975 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then 10977 (exit $ac_status); }; }; then
15142 rxvt_cv_struct_lastlogx=yes 10978 struct_lastlogx=yes
15143else 10979else
15144 echo "$as_me: failed program was:" >&5 10980 echo "$as_me: failed program was:" >&5
15145sed 's/^/| /' conftest.$ac_ext >&5 10981sed 's/^/| /' conftest.$ac_ext >&5
15146 10982
15147rxvt_cv_struct_lastlogx=no 10983struct_lastlogx=no
15148fi 10984fi
15149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15150fi 10986fi
15151echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 10987echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
15152echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 10988echo "${ECHO_T}$struct_lastlogx" >&6
15153if test x$rxvt_cv_struct_lastlogx = xyes; then 10989if test x$struct_lastlogx = xyes; then
15154 10990
15155cat >>confdefs.h <<\_ACEOF 10991cat >>confdefs.h <<\_ACEOF
15156#define HAVE_STRUCT_LASTLOGX 1 10992#define HAVE_STRUCT_LASTLOGX 1
15157_ACEOF 10993_ACEOF
15158 10994
15159fi 10995fi
15160 10996
15161 10997
15162echo "$as_me:$LINENO: checking where utmp is located" >&5 10998echo "$as_me:$LINENO: checking where utmp is located" >&5
15163echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 10999echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
15164if test "${rxvt_cv_path_utmp+set}" = set; then 11000if test "${path_utmp+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6 11001 echo $ECHO_N "(cached) $ECHO_C" >&6
15166else 11002else
15167 if test "$cross_compiling" = yes; then 11003 if test "$cross_compiling" = yes; then
15168 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 11004 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
15169echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 11005echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
15170else 11006else
15171 cat >conftest.$ac_ext <<_ACEOF 11007 cat >conftest.$ac_ext <<_ACEOF
15172/* confdefs.h. */ 11008/* confdefs.h. */
15173_ACEOF 11009_ACEOF
15174cat confdefs.h >>conftest.$ac_ext 11010cat confdefs.h >>conftest.$ac_ext
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5 11047 (eval $ac_try) 2>&5
15212 ac_status=$? 11048 ac_status=$?
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then 11050 (exit $ac_status); }; }; then
15215 rxvt_cv_path_utmp=`cat conftestval` 11051 path_utmp=`cat conftestval`
15216else 11052else
15217 echo "$as_me: program exited with status $ac_status" >&5 11053 echo "$as_me: program exited with status $ac_status" >&5
15218echo "$as_me: failed program was:" >&5 11054echo "$as_me: failed program was:" >&5
15219sed 's/^/| /' conftest.$ac_ext >&5 11055sed 's/^/| /' conftest.$ac_ext >&5
15220 11056
15221( exit $ac_status ) 11057( exit $ac_status )
15222rxvt_cv_path_utmp= 11058path_utmp=
15223fi 11059fi
15224rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11060rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15225fi 11061fi
15226fi 11062fi
15227echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 11063echo "$as_me:$LINENO: result: $path_utmp" >&5
15228echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 11064echo "${ECHO_T}$path_utmp" >&6
15229if test x$rxvt_cv_path_utmp != x; then 11065if test x$path_utmp != x; then
15230 11066
15231cat >>confdefs.h <<_ACEOF 11067cat >>confdefs.h <<_ACEOF
15232#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 11068#define UTMP_FILE "$path_utmp"
15233_ACEOF 11069_ACEOF
15234 11070
15235fi 11071fi
15236 11072
15237 11073
15238echo "$as_me:$LINENO: checking where utmpx is located" >&5 11074echo "$as_me:$LINENO: checking where utmpx is located" >&5
15239echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 11075echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
15240if test "${rxvt_cv_path_utmpx+set}" = set; then 11076if test "${path_utmpx+set}" = set; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6 11077 echo $ECHO_N "(cached) $ECHO_C" >&6
15242else 11078else
15243 if test "$cross_compiling" = yes; then 11079 if test "$cross_compiling" = yes; then
15244 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 11080 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
15245echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 11081echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
15246else 11082else
15247 cat >conftest.$ac_ext <<_ACEOF 11083 cat >conftest.$ac_ext <<_ACEOF
15248/* confdefs.h. */ 11084/* confdefs.h. */
15249_ACEOF 11085_ACEOF
15250cat confdefs.h >>conftest.$ac_ext 11086cat confdefs.h >>conftest.$ac_ext
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5 11133 (eval $ac_try) 2>&5
15298 ac_status=$? 11134 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; }; then 11136 (exit $ac_status); }; }; then
15301 rxvt_cv_path_utmpx=`cat conftestval` 11137 path_utmpx=`cat conftestval`
15302else 11138else
15303 echo "$as_me: program exited with status $ac_status" >&5 11139 echo "$as_me: program exited with status $ac_status" >&5
15304echo "$as_me: failed program was:" >&5 11140echo "$as_me: failed program was:" >&5
15305sed 's/^/| /' conftest.$ac_ext >&5 11141sed 's/^/| /' conftest.$ac_ext >&5
15306 11142
15307( exit $ac_status ) 11143( exit $ac_status )
15308rxvt_cv_path_utmpx= 11144path_utmpx=
15309fi 11145fi
15310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15311fi 11147fi
15312fi 11148fi
15313echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 11149echo "$as_me:$LINENO: result: $path_utmpx" >&5
15314echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 11150echo "${ECHO_T}$path_utmpx" >&6
15315if test x$rxvt_cv_path_utmpx != x; then 11151if test x$path_utmpx != x; then
15316 11152
15317cat >>confdefs.h <<_ACEOF 11153cat >>confdefs.h <<_ACEOF
15318#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 11154#define UTMPX_FILE "$path_utmpx"
15319_ACEOF 11155_ACEOF
15320 11156
15321fi 11157fi
15322 11158
15323 11159
15324echo "$as_me:$LINENO: checking where wtmp is located" >&5 11160echo "$as_me:$LINENO: checking where wtmp is located" >&5
15325echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 11161echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15326if test "${rxvt_cv_path_wtmp+set}" = set; then 11162if test "${path_wtmp+set}" = set; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6 11163 echo $ECHO_N "(cached) $ECHO_C" >&6
15328else 11164else
15329 if test "$cross_compiling" = yes; then 11165 if test "$cross_compiling" = yes; then
15330 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11166 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
15331echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11167echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
15332else 11168else
15333 cat >conftest.$ac_ext <<_ACEOF 11169 cat >conftest.$ac_ext <<_ACEOF
15334/* confdefs.h. */ 11170/* confdefs.h. */
15335_ACEOF 11171_ACEOF
15336cat confdefs.h >>conftest.$ac_ext 11172cat confdefs.h >>conftest.$ac_ext
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5 11211 (eval $ac_try) 2>&5
15376 ac_status=$? 11212 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; }; then 11214 (exit $ac_status); }; }; then
15379 rxvt_cv_path_wtmp=`cat conftestval` 11215 path_wtmp=`cat conftestval`
15380else 11216else
15381 echo "$as_me: program exited with status $ac_status" >&5 11217 echo "$as_me: program exited with status $ac_status" >&5
15382echo "$as_me: failed program was:" >&5 11218echo "$as_me: failed program was:" >&5
15383sed 's/^/| /' conftest.$ac_ext >&5 11219sed 's/^/| /' conftest.$ac_ext >&5
15384 11220
15385( exit $ac_status ) 11221( exit $ac_status )
15386rxvt_cv_path_wtmp= 11222path_wtmp=
15387fi 11223fi
15388rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11224rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15389fi 11225fi
15390fi 11226fi
15391echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11227echo "$as_me:$LINENO: result: $path_wtmp" >&5
15392echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11228echo "${ECHO_T}$path_wtmp" >&6
15393if test x$rxvt_cv_path_wtmp != x; then 11229if test x$path_wtmp != x; then
15394 11230
15395cat >>confdefs.h <<_ACEOF 11231cat >>confdefs.h <<_ACEOF
15396#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11232#define WTMP_FILE "$path_wtmp"
15397_ACEOF 11233_ACEOF
15398 11234
15399fi 11235fi
15400 11236
15401echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11237echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15402echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11238echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15403if test "${rxvt_cv_path_wtmpx+set}" = set; then 11239if test "${path_wtmpx+set}" = set; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6 11240 echo $ECHO_N "(cached) $ECHO_C" >&6
15405else 11241else
15406 if test "$cross_compiling" = yes; then 11242 if test "$cross_compiling" = yes; then
15407 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11243 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
15408echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11244echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
15409else 11245else
15410 cat >conftest.$ac_ext <<_ACEOF 11246 cat >conftest.$ac_ext <<_ACEOF
15411/* confdefs.h. */ 11247/* confdefs.h. */
15412_ACEOF 11248_ACEOF
15413cat confdefs.h >>conftest.$ac_ext 11249cat confdefs.h >>conftest.$ac_ext
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5 11287 (eval $ac_try) 2>&5
15452 ac_status=$? 11288 ac_status=$?
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then 11290 (exit $ac_status); }; }; then
15455 rxvt_cv_path_wtmpx=`cat conftestval` 11291 path_wtmpx=`cat conftestval`
15456else 11292else
15457 echo "$as_me: program exited with status $ac_status" >&5 11293 echo "$as_me: program exited with status $ac_status" >&5
15458echo "$as_me: failed program was:" >&5 11294echo "$as_me: failed program was:" >&5
15459sed 's/^/| /' conftest.$ac_ext >&5 11295sed 's/^/| /' conftest.$ac_ext >&5
15460 11296
15461( exit $ac_status ) 11297( exit $ac_status )
15462rxvt_cv_path_wtmpx= 11298path_wtmpx=
15463fi 11299fi
15464rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11300rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15465fi 11301fi
15466fi 11302fi
15467echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11303echo "$as_me:$LINENO: result: $path_wtmpx" >&5
15468echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11304echo "${ECHO_T}$path_wtmpx" >&6
15469if test x$rxvt_cv_path_wtmpx != x; then 11305if test x$path_wtmpx != x; then
15470 11306
15471cat >>confdefs.h <<_ACEOF 11307cat >>confdefs.h <<_ACEOF
15472#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11308#define WTMPX_FILE "$path_wtmpx"
15473_ACEOF 11309_ACEOF
15474 11310
15475fi 11311fi
15476 11312
15477echo "$as_me:$LINENO: checking where lastlog is located" >&5 11313echo "$as_me:$LINENO: checking where lastlog is located" >&5
15478echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11314echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15479if test "${rxvt_cv_path_lastlog+set}" = set; then 11315if test "${path_lastlog+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6 11316 echo $ECHO_N "(cached) $ECHO_C" >&6
15481else 11317else
15482 if test "$cross_compiling" = yes; then 11318 if test "$cross_compiling" = yes; then
15483 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11319 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
15484echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11320echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
15485else 11321else
15486 cat >conftest.$ac_ext <<_ACEOF 11322 cat >conftest.$ac_ext <<_ACEOF
15487/* confdefs.h. */ 11323/* confdefs.h. */
15488_ACEOF 11324_ACEOF
15489cat confdefs.h >>conftest.$ac_ext 11325cat confdefs.h >>conftest.$ac_ext
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5 11368 (eval $ac_try) 2>&5
15533 ac_status=$? 11369 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then 11371 (exit $ac_status); }; }; then
15536 rxvt_cv_path_lastlog=`cat conftestval` 11372 path_lastlog=`cat conftestval`
15537else 11373else
15538 echo "$as_me: program exited with status $ac_status" >&5 11374 echo "$as_me: program exited with status $ac_status" >&5
15539echo "$as_me: failed program was:" >&5 11375echo "$as_me: failed program was:" >&5
15540sed 's/^/| /' conftest.$ac_ext >&5 11376sed 's/^/| /' conftest.$ac_ext >&5
15541 11377
15542( exit $ac_status ) 11378( exit $ac_status )
15543rxvt_cv_path_lastlog= 11379path_lastlog=
15544fi 11380fi
15545rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15546fi 11382fi
15547fi 11383fi
15548echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11384echo "$as_me:$LINENO: result: $path_lastlog" >&5
15549echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11385echo "${ECHO_T}$path_lastlog" >&6
15550if test x$rxvt_cv_path_lastlog != x; then 11386if test x$path_lastlog != x; then
15551 11387
15552cat >>confdefs.h <<_ACEOF 11388cat >>confdefs.h <<_ACEOF
15553#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11389#define LASTLOG_FILE "$path_lastlog"
15554_ACEOF 11390_ACEOF
15555 11391
15556 if test -d "$rxvt_cv_path_lastlog"; then 11392 if test -d "$path_lastlog"; then
15557 11393
15558cat >>confdefs.h <<\_ACEOF 11394cat >>confdefs.h <<\_ACEOF
15559#define LASTLOG_IS_DIR 1 11395#define LASTLOG_IS_DIR 1
15560_ACEOF 11396_ACEOF
15561 11397
15562 fi 11398 fi
15563fi 11399fi
15564 11400
15565echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11401echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15566echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11402echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15567if test "${rxvt_cv_path_lastlogx+set}" = set; then 11403if test "${path_lastlogx+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6 11404 echo $ECHO_N "(cached) $ECHO_C" >&6
15569else 11405else
15570 if test "$cross_compiling" = yes; then 11406 if test "$cross_compiling" = yes; then
15571 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11407 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
15572echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11408echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
15573else 11409else
15574 cat >conftest.$ac_ext <<_ACEOF 11410 cat >conftest.$ac_ext <<_ACEOF
15575/* confdefs.h. */ 11411/* confdefs.h. */
15576_ACEOF 11412_ACEOF
15577cat confdefs.h >>conftest.$ac_ext 11413cat confdefs.h >>conftest.$ac_ext
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5 11450 (eval $ac_try) 2>&5
15615 ac_status=$? 11451 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then 11453 (exit $ac_status); }; }; then
15618 rxvt_cv_path_lastlogx=`cat conftestval` 11454 path_lastlogx=`cat conftestval`
15619else 11455else
15620 echo "$as_me: program exited with status $ac_status" >&5 11456 echo "$as_me: program exited with status $ac_status" >&5
15621echo "$as_me: failed program was:" >&5 11457echo "$as_me: failed program was:" >&5
15622sed 's/^/| /' conftest.$ac_ext >&5 11458sed 's/^/| /' conftest.$ac_ext >&5
15623 11459
15624( exit $ac_status ) 11460( exit $ac_status )
15625rxvt_cv_path_lastlogx= 11461path_lastlogx=
15626fi 11462fi
15627rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11463rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15628fi 11464fi
15629fi 11465fi
15630echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11466echo "$as_me:$LINENO: result: $path_lastlogx" >&5
15631echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11467echo "${ECHO_T}$path_lastlogx" >&6
15632if test x$rxvt_cv_path_lastlogx != x; then 11468if test x$path_lastlogx != x; then
15633 11469
15634cat >>confdefs.h <<_ACEOF 11470cat >>confdefs.h <<_ACEOF
15635#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11471#define LASTLOGX_FILE "$path_lastlogx"
15636_ACEOF 11472_ACEOF
15637 11473
15638fi 11474fi
11475
11476if test x$support_utmp != xyes; then
11477 echo " utmp support: disabled"
11478 echo
11479else
11480 echo " utmp support: enabled
11481 utmp file: $path_utmp
11482 utmpx file: $path_utmpx
11483 wtmp file: $path_wtmp
11484 wtmpx file: $path_wtmpx
11485 lastlog file: $path_lastlog
11486 lastlogx file: $path_lastlogx"
11487fi
11488
15639 11489
15640 11490
15641echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11491echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15642echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11492echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15643if test "${rxvt_cv_path_ttytab+set}" = set; then 11493if test "${rxvt_cv_path_ttytab+set}" = set; then
15799/* confdefs.h. */ 11649/* confdefs.h. */
15800_ACEOF 11650_ACEOF
15801cat confdefs.h >>conftest.$ac_ext 11651cat confdefs.h >>conftest.$ac_ext
15802cat >>conftest.$ac_ext <<_ACEOF 11652cat >>conftest.$ac_ext <<_ACEOF
15803/* end confdefs.h. */ 11653/* end confdefs.h. */
15804#include <locale.h> 11654#include <clocale>
15805int 11655int
15806main () 11656main ()
15807{ 11657{
15808setlocale(LC_CTYPE, ""); 11658setlocale(LC_CTYPE, "");
15809 ; 11659 ;
15910#define HAVE_NL_LANGINFO 1 11760#define HAVE_NL_LANGINFO 1
15911_ACEOF 11761_ACEOF
15912 11762
15913fi 11763fi
15914 11764
15915echo "$as_me:$LINENO: checking for getpt" >&5 11765
15916echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11766echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
15917if test "${rxvt_cv_func_getpt+set}" = set; then 11767echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11768if test "${can_pass_fds+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6 11769 echo $ECHO_N "(cached) $ECHO_C" >&6
15919else 11770else
15920 cat >conftest.$ac_ext <<_ACEOF 11771 cat >conftest.$ac_ext <<_ACEOF
15921/* confdefs.h. */ 11772/* confdefs.h. */
15922_ACEOF 11773_ACEOF
15923cat confdefs.h >>conftest.$ac_ext 11774cat confdefs.h >>conftest.$ac_ext
15924cat >>conftest.$ac_ext <<_ACEOF 11775cat >>conftest.$ac_ext <<_ACEOF
15925/* end confdefs.h. */ 11776/* end confdefs.h. */
15926#define _GNU_SOURCE 11777
15927#ifdef HAVE_STDLIB_H 11778#include <cstddef> // broken bsds (is that redundant?) need this
11779#include <sys/types.h>
11780#include <sys/socket.h>
15928# include <stdlib.h> 11781#include <sys/uio.h>
15929#endif 11782
15930int 11783int
15931main () 11784main ()
15932{ 11785{
15933(void)getpt(); 11786
11787{
11788 msghdr msg;
11789 iovec iov;
11790 char buf [100];
11791 char data = 0;
11792
11793 iov.iov_base = &data;
11794 iov.iov_len = 1;
11795
11796 msg.msg_iov = &iov;
11797 msg.msg_iovlen = 1;
11798 msg.msg_control = buf;
11799 msg.msg_controllen = sizeof buf;
11800
11801 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11802 cmsg->cmsg_level = SOL_SOCKET;
11803 cmsg->cmsg_type = SCM_RIGHTS;
11804 cmsg->cmsg_len = 100;
11805
11806 *(int *)CMSG_DATA (cmsg) = 5;
11807
11808 return sendmsg (3, &msg, 0);
11809}
11810
15934 ; 11811 ;
15935 return 0; 11812 return 0;
15936} 11813}
15937_ACEOF 11814_ACEOF
15938rm -f conftest.$ac_objext conftest$ac_exeext 11815rm -f conftest.$ac_objext conftest$ac_exeext
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5 11832 (eval $ac_try) 2>&5
15956 ac_status=$? 11833 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then 11835 (exit $ac_status); }; }; then
15959 rxvt_cv_func_getpt=yes 11836 can_pass_fds=yes
15960else 11837else
15961 echo "$as_me: failed program was:" >&5 11838 echo "$as_me: failed program was:" >&5
15962sed 's/^/| /' conftest.$ac_ext >&5 11839sed 's/^/| /' conftest.$ac_ext >&5
15963 11840
15964rxvt_cv_func_getpt=no 11841can_pass_fds=no
15965fi 11842fi
15966rm -f conftest.err conftest.$ac_objext \ 11843rm -f conftest.err conftest.$ac_objext \
15967 conftest$ac_exeext conftest.$ac_ext 11844 conftest$ac_exeext conftest.$ac_ext
15968fi 11845fi
15969echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 11846echo "$as_me:$LINENO: result: $can_pass_fds" >&5
15970echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 11847echo "${ECHO_T}$can_pass_fds" >&6
15971if test x$rxvt_cv_func_getpt = xyes; then 11848if test x$can_pass_fds = xyes; then
15972 11849
15973cat >>confdefs.h <<\_ACEOF 11850cat >>confdefs.h <<\_ACEOF
15974#define HAVE_GETPT 1 11851#define HAVE_UNIX_FDPASS 1
15975_ACEOF 11852_ACEOF
15976 11853
11854else
11855 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11856echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11857 { (exit 1); exit 1; }; }
15977fi 11858fi
15978 11859
15979echo "$as_me:$LINENO: checking for pty/tty type" >&5 11860
11861echo "$as_me:$LINENO: checking for broken XIM callback" >&5
15980echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 11862echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
15981if test "${rxvt_cv_ptys+set}" = set; then 11863if test "${rxvt_broken_ximcb+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6 11864 echo $ECHO_N "(cached) $ECHO_C" >&6
15983else 11865else
15984 if test x$ac_cv_func_openpty = xyes; then
15985 rxvt_cv_ptys=OPENPTY
15986 else if test x$ac_cv_func__getpty = xyes; then
15987 rxvt_cv_ptys=SGI4
15988 else if test -c /dev/ttyp20; then
15989 rxvt_cv_ptys=SCO
15990 else if test -c /dev/ptym/clone; then
15991 rxvt_cv_ptys=HPUX
15992 else if test x$rxvt_cv_func_getpt = xyes; then
15993 rxvt_cv_ptys=GLIBC
15994 else if test -c /dev/ptc -a -c /dev/pts; then
15995 rxvt_cv_ptys=PTC
15996 else if test -c /dev/ptc -a -d /dev/pts; then
15997 rxvt_cv_ptys=PTC
15998 else if test -c /dev/ptmx -a -c /dev/pts/0; then
15999 rxvt_cv_ptys=STREAMS
16000 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
16001 rxvt_cv_ptys=STREAMS
16002 else
16003 rxvt_cv_ptys=BSD
16004fi
16005fi
16006fi
16007fi
16008fi
16009fi
16010fi
16011fi
16012fi
16013
16014fi
16015echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16016echo "${ECHO_T}$rxvt_cv_ptys" >&6
16017
16018if test x$rxvt_cv_ptys = xOPENPTY; then
16019
16020cat >>confdefs.h <<\_ACEOF
16021#define PTYS_ARE_OPENPTY 1
16022_ACEOF
16023
16024fi
16025if test x$rxvt_cv_ptys = xSCO; then
16026
16027cat >>confdefs.h <<\_ACEOF
16028#define PTYS_ARE_NUMERIC 1
16029_ACEOF
16030
16031fi
16032if test x$rxvt_cv_ptys = xSTREAMS; then
16033
16034cat >>confdefs.h <<\_ACEOF
16035#define PTYS_ARE_PTMX 1
16036_ACEOF
16037
16038fi
16039if test x$rxvt_cv_ptys = xPTC; then
16040
16041cat >>confdefs.h <<\_ACEOF
16042#define PTYS_ARE_PTC 1
16043_ACEOF
16044
16045fi
16046if test x$rxvt_cv_ptys = xSGI4; then
16047
16048cat >>confdefs.h <<\_ACEOF
16049#define PTYS_ARE__GETPTY 1
16050_ACEOF
16051
16052fi
16053if test x$rxvt_cv_ptys = xCONVEX; then
16054
16055cat >>confdefs.h <<\_ACEOF
16056#define PTYS_ARE_GETPTY 1
16057_ACEOF
16058
16059fi
16060if test x$rxvt_cv_ptys = xGLIBC; then
16061
16062cat >>confdefs.h <<\_ACEOF
16063#define PTYS_ARE_GETPT 1
16064_ACEOF
16065
16066fi
16067if test x$rxvt_cv_ptys = xHPUX; then
16068
16069cat >>confdefs.h <<\_ACEOF
16070#define PTYS_ARE_CLONE 1
16071_ACEOF
16072
16073fi
16074if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16075
16076cat >>confdefs.h <<\_ACEOF
16077#define PTYS_ARE_SEARCHED 1
16078_ACEOF
16079
16080fi
16081
16082
16083{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
16084echo "$as_me: checking for pty ranges..." >&6;}
16085ptys=`echo /dev/pty??`
16086pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
16087pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
16088if test x$pch1 != x; then
16089
16090cat >>confdefs.h <<_ACEOF
16091#define PTYCHAR1 "$pch1"
16092_ACEOF
16093
16094fi
16095if test x$pch2 != x; then
16096
16097cat >>confdefs.h <<_ACEOF
16098#define PTYCHAR2 "$pch2"
16099_ACEOF
16100
16101fi
16102
16103echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16104echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16105if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16106 echo $ECHO_N "(cached) $ECHO_C" >&6
16107else
16108 ac_check_lib_save_LIBS=$LIBS
16109LIBS="-lxpg4 $LIBS"
16110cat >conftest.$ac_ext <<_ACEOF 11866 cat >conftest.$ac_ext <<_ACEOF
16111/* confdefs.h. */
16112_ACEOF
16113cat confdefs.h >>conftest.$ac_ext
16114cat >>conftest.$ac_ext <<_ACEOF
16115/* end confdefs.h. */
16116 11867
16117/* Override any gcc2 internal prototype to avoid an error. */ 11868#include <X11/Xlib.h>
16118#ifdef __cplusplus 11869
16119extern "C" 11870void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
16120#endif 11871
16121/* We use char because int might match the return type of a gcc2 11872void f() {
16122 builtin and then its argument prototype would still apply. */ 11873 XIMCallback cb;
16123char setlocale (); 11874 cb.callback = im_destroy_cb;
16124int
16125main ()
16126{
16127setlocale ();
16128 ;
16129 return 0;
16130} 11875}
11876
16131_ACEOF 11877_ACEOF
16132rm -f conftest.$ac_objext conftest$ac_exeext 11878rm -f conftest.$ac_objext
16133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_link) 2>conftest.er1 11880 (eval $ac_compile) 2>conftest.er1
16135 ac_status=$? 11881 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err 11882 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1 11883 rm -f conftest.er1
16138 cat conftest.err >&5 11884 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143 (eval $ac_try) 2>&5 11889 (eval $ac_try) 2>&5
16144 ac_status=$? 11890 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } && 11892 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest$ac_exeext' 11893 { ac_try='test -s conftest.$ac_objext'
16148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5 11895 (eval $ac_try) 2>&5
16150 ac_status=$? 11896 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then 11898 (exit $ac_status); }; }; then
16153 ac_cv_lib_xpg4_setlocale=yes 11899 rxvt_broken_ximcb=yes
16154else 11900else
16155 echo "$as_me: failed program was:" >&5 11901 echo "$as_me: failed program was:" >&5
16156sed 's/^/| /' conftest.$ac_ext >&5 11902sed 's/^/| /' conftest.$ac_ext >&5
16157 11903
16158ac_cv_lib_xpg4_setlocale=no 11904rxvt_broken_ximcb=no
16159fi 11905fi
16160rm -f conftest.err conftest.$ac_objext \ 11906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16161 conftest$ac_exeext conftest.$ac_ext
16162LIBS=$ac_check_lib_save_LIBS
16163fi 11907fi
16164echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 11908echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
16165echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 11909echo "${ECHO_T}$rxvt_broken_ximcb" >&6
16166if test $ac_cv_lib_xpg4_setlocale = yes; then
16167 LIBS="$LIBS -lxpg4"
16168fi
16169 11910
16170 11911if test x$rxvt_broken_ximcb = xyes; then
16171if test x$support_inheritpixmap = xyes; then
16172 11912
16173cat >>confdefs.h <<\_ACEOF 11913cat >>confdefs.h <<\_ACEOF
16174#define TRANSPARENT 1 11914#define XIMCB_PROTO_BROKEN 1
16175_ACEOF 11915_ACEOF
16176 11916
16177fi 11917fi
16178if test x$support_keepscrolling = xno; then
16179 11918
16180cat >>confdefs.h <<\_ACEOF
16181#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16182_ACEOF
16183 11919
16184fi
16185if test x$support_selectionscrolling = xyes; then
16186 11920
16187cat >>confdefs.h <<\_ACEOF
16188#define SELECTION_SCROLLING 1
16189_ACEOF
16190 11921
16191fi
16192if test x$support_menubar = xyes; then
16193 11922
16194cat >>confdefs.h <<\_ACEOF
16195#define MENUBAR 1
16196_ACEOF
16197 11923
16198fi
16199if test x$support_frills = xno; then
16200 11924
16201cat >>confdefs.h <<\_ACEOF 11925for ac_header in \
16202#define NO_FRILLS 1 11926 pty.h \
16203_ACEOF 11927 util.h \
11928 libutil.h \
11929 sys/ioctl.h \
11930 sys/stropts.h \
16204 11931
16205fi
16206if test x$support_linespace = xno; then
16207
16208cat >>confdefs.h <<\_ACEOF
16209#define NO_LINESPACE 1
16210_ACEOF
16211
16212fi
16213if test x$support_24bit = xyes; then
16214
16215cat >>confdefs.h <<\_ACEOF
16216#define PREFER_24BIT 1
16217_ACEOF
16218
16219fi
16220if test x$support_mousewheel = xyes; then
16221
16222cat >>confdefs.h <<\_ACEOF
16223#define MOUSE_WHEEL 1
16224_ACEOF
16225
16226fi
16227if test x$support_mouseslipwheel = xyes; then
16228
16229cat >>confdefs.h <<\_ACEOF
16230#define MOUSE_SLIP_WHEELING 1
16231_ACEOF
16232
16233fi
16234if test x$support_oldselection = xno; then
16235
16236cat >>confdefs.h <<\_ACEOF
16237#define NO_OLD_SELECTION 1
16238_ACEOF
16239
16240fi
16241if test x$support_utmp = xyes; then
16242
16243cat >>confdefs.h <<\_ACEOF
16244#define UTMP_SUPPORT 1
16245_ACEOF
16246
16247fi
16248if test x$support_wtmp = xyes; then
16249
16250cat >>confdefs.h <<\_ACEOF
16251#define WTMP_SUPPORT 1
16252_ACEOF
16253
16254fi
16255if test x$support_lastlog = xyes; then
16256
16257cat >>confdefs.h <<\_ACEOF
16258#define LASTLOG_SUPPORT 1
16259_ACEOF
16260
16261fi
16262if test x$support_xim = xyes -o x$multichar_set = xyes; then
16263 if test x$rxvt_cv_func_xlocale = xyes; then
16264
16265cat >>confdefs.h <<\_ACEOF
16266#define USE_XIM 1
16267_ACEOF
16268
16269 fi
16270fi
16271if test x$support_xpm = xyes; then
16272
16273cat >>confdefs.h <<\_ACEOF
16274#define XPM_BACKGROUND 1
16275_ACEOF
16276
16277fi
16278if test x$support_scroll_rxvt = xyes; then
16279
16280cat >>confdefs.h <<\_ACEOF
16281#define RXVT_SCROLLBAR 1
16282_ACEOF
16283
16284 scrolltypes="rxvt"
16285fi
16286if test x$support_scroll_next = xyes; then
16287
16288cat >>confdefs.h <<\_ACEOF
16289#define NEXT_SCROLLBAR 1
16290_ACEOF
16291
16292 scrolltypes="$scrolltypes next"
16293fi
16294if test x$support_scroll_xterm = xyes; then
16295
16296cat >>confdefs.h <<\_ACEOF
16297#define XTERM_SCROLLBAR 1
16298_ACEOF
16299
16300 scrolltypes="$scrolltypes xterm"
16301fi
16302if test x$support_scroll_plain = xyes; then
16303
16304cat >>confdefs.h <<\_ACEOF
16305#define PLAIN_SCROLLBAR 1
16306_ACEOF
16307
16308 scrolltypes="$scrolltypes plain"
16309fi
16310if test x$support_pointer_blank = xyes; then
16311
16312cat >>confdefs.h <<\_ACEOF
16313#define POINTER_BLANK 1
16314_ACEOF
16315
16316fi
16317if test x$support_cursor_blink = xyes; then
16318
16319cat >>confdefs.h <<\_ACEOF
16320#define CURSOR_BLINK 1
16321_ACEOF
16322
16323fi
16324if test x$support_text_blink = xyes; then
16325
16326cat >>confdefs.h <<\_ACEOF
16327#define TEXT_BLINK 1
16328_ACEOF
16329
16330fi
16331if test x$support_unicode3 = xyes; then
16332
16333cat >>confdefs.h <<\_ACEOF
16334#define UNICODE_3 1
16335_ACEOF
16336
16337fi
16338if test x$codesets = xall; then
16339 codesets=jp,jp-ext,kr,cn,cn-ext,vn
16340fi
16341for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16342
16343cat >>confdefs.h <<\_ACEOF
16344#define ENCODING_EU 1
16345_ACEOF
16346
16347
16348cat >>confdefs.h <<\_ACEOF
16349#define ENCODING_VN 1
16350_ACEOF
16351
16352 case "$codeset" in
16353 JP )
16354cat >>confdefs.h <<\_ACEOF
16355#define ENCODING_JP 1
16356_ACEOF
16357 ;;
16358 JP_EXT )
16359cat >>confdefs.h <<\_ACEOF
16360#define ENCODING_JP_EXT 1
16361_ACEOF
16362 ;;
16363 KR )
16364cat >>confdefs.h <<\_ACEOF
16365#define ENCODING_KR 1
16366_ACEOF
16367 ;;
16368 CN )
16369cat >>confdefs.h <<\_ACEOF
16370#define ENCODING_CN 1
16371_ACEOF
16372 ;;
16373 CN_EXT )
16374cat >>confdefs.h <<\_ACEOF
16375#define ENCODING_CN_EXT 1
16376_ACEOF
16377 ;;
16378 esac
16379done
16380
16381
16382CFLAGS=${CFLAGS--O}
16383LDFLAGS=${LDFLAGS--O}
16384
16385CPPFLAGS="$CPPFLAGS"
16386
16387
16388
16389
16390
16391
16392
16393if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16394 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16395 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16396 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16397 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16398 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16399fi
16400
16401
16402
16403
16404
16405if test x$support_addstrings = xno; then
16406
16407cat >>confdefs.h <<\_ACEOF
16408#define NO_STRINGS 1
16409_ACEOF
16410
16411fi
16412
16413MCOMMON=./autoconf/Make.common
16414
16415
16416test "$program_prefix" != NONE &&
16417 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16418# Use a double $ so make ignores it.
16419test "$program_suffix" != NONE &&
16420 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16421# Double any \ or $. echo might interpret backslashes.
16422# By default was `s,x,x', remove it if useless.
16423cat <<\_ACEOF >conftest.sed
16424s/[\\$]/&&/g;s/;s,x,x,$//
16425_ACEOF
16426program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16427rm conftest.sed
16428
16429
16430RXVTNAME=`echo rxvt|sed "$program_transform_name"`
16431
16432
16433
16434
16435
16436if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16437 include_stdint_h="#include <stdint.h>"
16438else
16439 include_stdint_h="/* #include <stdint.h> */"
16440fi
16441if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16442 include_stdarg_h="#include <stdarg.h>"
16443else
16444 include_stdarg_h="/* #include <stdarg.h> */"
16445fi
16446if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16447 include_stdlib_h="#include <stdlib.h>"
16448else
16449 include_stdlib_h="/* #include <stdlib.h> */"
16450fi
16451if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16452 include_unistd_h="#include <unistd.h>"
16453else
16454 include_unistd_h="/* #include <unistd.h> */"
16455fi
16456if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16457 include_string_h="#include <string.h>"
16458else
16459 include_string_h="/* #include <string.h> */"
16460fi
16461if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16462 include_fcntl_h="#include <fcntl.h>"
16463else
16464 include_fcntl_h="/* #include <fcntl.h> */"
16465fi
16466if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16467 include_util_h="#include <util.h>"
16468else
16469 include_util_h="/* #include <util.h> */"
16470fi
16471if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16472 include_assert_h="#include <assert.h>"
16473else
16474 include_assert_h="/* #include <assert.h> */"
16475fi
16476if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16477 include_sys_ioctl_h="#include <sys/ioctl.h>"
16478else
16479 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16480fi
16481if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16482 include_sys_select_h="#include <sys/select.h>"
16483else
16484 include_sys_select_h="/* #include <sys/select.h> */"
16485fi
16486if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16487 include_sys_strredir_h="#include <sys/strredir.h>"
16488else
16489 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16490fi
16491if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16492 include_sys_time_h="#include <sys/time.h>"
16493else
16494 include_sys_time_h="/* #include <sys/time.h> */"
16495fi
16496if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16497 include_time_h="#include <time.h>"
16498else
16499 include_time_h="/* #include <time.h> */"
16500fi
16501
16502if test x$support_xft = xyes; then
16503 LIBS="$LIBS `pkg-config xft --libs`"
16504 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16505 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16506
16507
16508for ac_header in X11/Xft/Xft.h
16509do 11932do
16510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16511if eval "test \"\${$as_ac_Header+set}\" = set"; then 11934if eval "test \"\${$as_ac_Header+set}\" = set"; then
16512 echo "$as_me:$LINENO: checking for $ac_header" >&5 11935 echo "$as_me:$LINENO: checking for $ac_header" >&5
16513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16647if test `eval echo '${'$as_ac_Header'}'` = yes; then 12070if test `eval echo '${'$as_ac_Header'}'` = yes; then
16648 cat >>confdefs.h <<_ACEOF 12071 cat >>confdefs.h <<_ACEOF
16649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16650_ACEOF 12073_ACEOF
16651 12074
12075fi
12076
12077done
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089for ac_func in \
12090 revoke \
12091 _getpty \
12092 getpt \
12093 posix_openpt \
12094 isastream \
12095 setuid \
12096 seteuid \
12097 setreuid \
12098 setresuid \
12099
12100do
12101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12102echo "$as_me:$LINENO: checking for $ac_func" >&5
12103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12104if eval "test \"\${$as_ac_var+set}\" = set"; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12106else
12107 cat >conftest.$ac_ext <<_ACEOF
12108/* confdefs.h. */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h. */
12113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12115#define $ac_func innocuous_$ac_func
12116
12117/* System header to define __stub macros and hopefully few prototypes,
12118 which can conflict with char $ac_func (); below.
12119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120 <limits.h> exists even on freestanding compilers. */
12121
12122#ifdef __STDC__
12123# include <limits.h>
12124#else
12125# include <assert.h>
12126#endif
12127
12128#undef $ac_func
12129
12130/* Override any gcc2 internal prototype to avoid an error. */
12131#ifdef __cplusplus
12132extern "C"
12133{
12134#endif
12135/* We use char because int might match the return type of a gcc2
12136 builtin and then its argument prototype would still apply. */
12137char $ac_func ();
12138/* The GNU C library defines this for functions which it implements
12139 to always fail with ENOSYS. Some functions are actually named
12140 something starting with __ and the normal name is an alias. */
12141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12142choke me
12143#else
12144char (*f) () = $ac_func;
12145#endif
12146#ifdef __cplusplus
12147}
12148#endif
12149
12150int
12151main ()
12152{
12153return f != $ac_func;
12154 ;
12155 return 0;
12156}
12157_ACEOF
12158rm -f conftest.$ac_objext conftest$ac_exeext
12159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12160 (eval $ac_link) 2>conftest.er1
12161 ac_status=$?
12162 grep -v '^ *+' conftest.er1 >conftest.err
12163 rm -f conftest.er1
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest$ac_exeext'
12174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12176 ac_status=$?
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12179 eval "$as_ac_var=yes"
12180else
12181 echo "$as_me: failed program was:" >&5
12182sed 's/^/| /' conftest.$ac_ext >&5
12183
12184eval "$as_ac_var=no"
12185fi
12186rm -f conftest.err conftest.$ac_objext \
12187 conftest$ac_exeext conftest.$ac_ext
12188fi
12189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12190echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12191if test `eval echo '${'$as_ac_var'}'` = yes; then
12192 cat >>confdefs.h <<_ACEOF
12193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12194_ACEOF
12195
12196fi
12197done
12198
12199
12200have_clone=no
12201
12202echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12203echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12204if test -e /dev/ptym/clone; then
12205 echo "$as_me:$LINENO: result: yes" >&5
12206echo "${ECHO_T}yes" >&6
12207
12208cat >>confdefs.h <<\_ACEOF
12209#define HAVE_DEV_CLONE 1
12210_ACEOF
12211
12212
12213cat >>confdefs.h <<\_ACEOF
12214#define CLONE_DEVICE "/dev/ptym/clone"
12215_ACEOF
12216
12217 have_clone=yes
12218else
12219 echo "$as_me:$LINENO: result: no" >&5
12220echo "${ECHO_T}no" >&6
12221fi
12222
12223echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12224echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12225if test -e /dev/ptc; then
12226 echo "$as_me:$LINENO: result: yes" >&5
12227echo "${ECHO_T}yes" >&6
12228
12229cat >>confdefs.h <<\_ACEOF
12230#define HAVE_DEV_PTC 1
12231_ACEOF
12232
12233
12234cat >>confdefs.h <<\_ACEOF
12235#define CLONE_DEVICE "/dev/ptc"
12236_ACEOF
12237
12238 have_clone=yes
12239else
12240 echo "$as_me:$LINENO: result: no" >&5
12241echo "${ECHO_T}no" >&6
12242fi
12243
12244case $host in
12245 *-*-cygwin*)
12246 have_clone=yes
12247
12248cat >>confdefs.h <<\_ACEOF
12249#define CLONE_DEVICE "/dev/ptmx"
12250_ACEOF
12251
12252 ;;
12253 *)
12254 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12255echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12256 if test -e /dev/ptmx; then
12257 echo "$as_me:$LINENO: result: yes" >&5
12258echo "${ECHO_T}yes" >&6
12259
12260cat >>confdefs.h <<\_ACEOF
12261#define HAVE_DEV_PTMX 1
12262_ACEOF
12263
12264
12265cat >>confdefs.h <<\_ACEOF
12266#define CLONE_DEVICE "/dev/ptmx"
12267_ACEOF
12268
12269 have_clone=yes
12270 else
12271 echo "$as_me:$LINENO: result: no" >&5
12272echo "${ECHO_T}no" >&6
12273 fi
12274 ;;
12275esac
12276
12277if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12278 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12279echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12280 cat >conftest.$ac_ext <<_ACEOF
12281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
12286#include <stdlib.h>
12287int
12288main ()
12289{
12290grantpt(0);unlockpt(0);ptsname(0);
12291 ;
12292 return 0;
12293}
12294_ACEOF
12295rm -f conftest.$ac_objext conftest$ac_exeext
12296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297 (eval $ac_link) 2>conftest.er1
12298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } &&
12304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; } &&
12310 { ac_try='test -s conftest$ac_exeext'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12316 unix98_pty=yes
12317
12318cat >>confdefs.h <<\_ACEOF
12319#define UNIX98_PTY 1
12320_ACEOF
12321
12322 echo "$as_me:$LINENO: result: yes" >&5
12323echo "${ECHO_T}yes" >&6
12324else
12325 echo "$as_me: failed program was:" >&5
12326sed 's/^/| /' conftest.$ac_ext >&5
12327
12328echo "$as_me:$LINENO: result: no" >&5
12329echo "${ECHO_T}no" >&6
12330fi
12331rm -f conftest.err conftest.$ac_objext \
12332 conftest$ac_exeext conftest.$ac_ext
12333fi
12334
12335if test -z "$unix98_pty"; then
12336
12337for ac_func in openpty
12338do
12339as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12340echo "$as_me:$LINENO: checking for $ac_func" >&5
12341echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12342if eval "test \"\${$as_ac_var+set}\" = set"; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12344else
12345 cat >conftest.$ac_ext <<_ACEOF
12346/* confdefs.h. */
12347_ACEOF
12348cat confdefs.h >>conftest.$ac_ext
12349cat >>conftest.$ac_ext <<_ACEOF
12350/* end confdefs.h. */
12351/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12353#define $ac_func innocuous_$ac_func
12354
12355/* System header to define __stub macros and hopefully few prototypes,
12356 which can conflict with char $ac_func (); below.
12357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12358 <limits.h> exists even on freestanding compilers. */
12359
12360#ifdef __STDC__
12361# include <limits.h>
12362#else
12363# include <assert.h>
12364#endif
12365
12366#undef $ac_func
12367
12368/* Override any gcc2 internal prototype to avoid an error. */
12369#ifdef __cplusplus
12370extern "C"
12371{
12372#endif
12373/* We use char because int might match the return type of a gcc2
12374 builtin and then its argument prototype would still apply. */
12375char $ac_func ();
12376/* The GNU C library defines this for functions which it implements
12377 to always fail with ENOSYS. Some functions are actually named
12378 something starting with __ and the normal name is an alias. */
12379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12380choke me
12381#else
12382char (*f) () = $ac_func;
12383#endif
12384#ifdef __cplusplus
12385}
12386#endif
12387
12388int
12389main ()
12390{
12391return f != $ac_func;
12392 ;
12393 return 0;
12394}
12395_ACEOF
12396rm -f conftest.$ac_objext conftest$ac_exeext
12397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12398 (eval $ac_link) 2>conftest.er1
12399 ac_status=$?
12400 grep -v '^ *+' conftest.er1 >conftest.err
12401 rm -f conftest.er1
12402 cat conftest.err >&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest$ac_exeext'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 eval "$as_ac_var=yes"
12418else
12419 echo "$as_me: failed program was:" >&5
12420sed 's/^/| /' conftest.$ac_ext >&5
12421
12422eval "$as_ac_var=no"
12423fi
12424rm -f conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
12426fi
12427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12428echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12429if test `eval echo '${'$as_ac_var'}'` = yes; then
12430 cat >>confdefs.h <<_ACEOF
12431#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12432_ACEOF
12433
12434else
12435 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12436echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12437if test "${ac_cv_lib_util_openpty+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12439else
12440 ac_check_lib_save_LIBS=$LIBS
12441LIBS="-lutil $LIBS"
12442cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
12448
12449/* Override any gcc2 internal prototype to avoid an error. */
12450#ifdef __cplusplus
12451extern "C"
12452#endif
12453/* We use char because int might match the return type of a gcc2
12454 builtin and then its argument prototype would still apply. */
12455char openpty ();
12456int
12457main ()
12458{
12459openpty ();
12460 ;
12461 return 0;
12462}
12463_ACEOF
12464rm -f conftest.$ac_objext conftest$ac_exeext
12465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12466 (eval $ac_link) 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest$ac_exeext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 ac_cv_lib_util_openpty=yes
12486else
12487 echo "$as_me: failed program was:" >&5
12488sed 's/^/| /' conftest.$ac_ext >&5
12489
12490ac_cv_lib_util_openpty=no
12491fi
12492rm -f conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494LIBS=$ac_check_lib_save_LIBS
12495fi
12496echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12497echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12498if test $ac_cv_lib_util_openpty = yes; then
12499 cat >>confdefs.h <<\_ACEOF
12500#define HAVE_OPENPTY 1
12501_ACEOF
12502 LIBS="$LIBS -lutil"
12503fi
12504
12505fi
12506done
12507
12508fi
12509
12510
12511
12512echo "$as_me:$LINENO: checking for tty group" >&5
12513echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12514if test "${tty_group+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12516else
12517 if test "$cross_compiling" = yes; then
12518 tty_group=no
12519else
12520 cat >conftest.$ac_ext <<_ACEOF
12521/* confdefs.h. */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
12525/* end confdefs.h. */
12526
12527#include <sys/types.h>
12528#include <sys/stat.h>
12529#include <unistd.h>
12530#include <grp.h>
12531
12532main()
12533{
12534 struct stat st;
12535 struct group *gr;
12536 char *tty;
12537 gr = getgrnam("tty");
12538 tty = ttyname(0);
12539 if (gr != 0
12540 && tty != 0
12541 && (stat(tty, &st)) == 0
12542 && st.st_gid == gr->gr_gid)
12543 return 0;
12544 else
12545 return 1;
12546}
12547_ACEOF
12548rm -f conftest$ac_exeext
12549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12550 (eval $ac_link) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 tty_group=yes
12560else
12561 echo "$as_me: program exited with status $ac_status" >&5
12562echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
12565( exit $ac_status )
12566tty_group=no
12567fi
12568rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12569fi
12570fi
12571echo "$as_me:$LINENO: result: $tty_group" >&5
12572echo "${ECHO_T}$tty_group" >&6
12573if test x$tty_group = xyes; then
12574
12575cat >>confdefs.h <<\_ACEOF
12576#define TTY_GID_SUPPORT 1
12577_ACEOF
12578
12579fi
12580
12581if test x$support_xft = xyes; then
12582 # Extract the first word of "pkg-config", so it can be a program name with args.
12583set dummy pkg-config; ac_word=$2
12584echo "$as_me:$LINENO: checking for $ac_word" >&5
12585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12586if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588else
12589 case $PKG_CONFIG in
12590 [\\/]* | ?:[\\/]*)
12591 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12592 ;;
12593 *)
12594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595for as_dir in $PATH
12596do
12597 IFS=$as_save_IFS
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12601 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 break 2
12604 fi
12605done
12606done
12607
12608 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12609 ;;
12610esac
12611fi
12612PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12613
12614if test -n "$PKG_CONFIG"; then
12615 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12616echo "${ECHO_T}$PKG_CONFIG" >&6
12617else
12618 echo "$as_me:$LINENO: result: no" >&5
12619echo "${ECHO_T}no" >&6
12620fi
12621
12622 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12623 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12624 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12625 else
12626 # Extract the first word of "xft-config", so it can be a program name with args.
12627set dummy xft-config; ac_word=$2
12628echo "$as_me:$LINENO: checking for $ac_word" >&5
12629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12630if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12632else
12633 case $XFT_CONFIG in
12634 [\\/]* | ?:[\\/]*)
12635 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12636 ;;
12637 *)
12638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639for as_dir in $PATH
12640do
12641 IFS=$as_save_IFS
12642 test -z "$as_dir" && as_dir=.
12643 for ac_exec_ext in '' $ac_executable_extensions; do
12644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12645 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12647 break 2
12648 fi
12649done
12650done
12651
12652 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12653 ;;
12654esac
12655fi
12656XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12657
12658if test -n "$XFT_CONFIG"; then
12659 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12660echo "${ECHO_T}$XFT_CONFIG" >&6
12661else
12662 echo "$as_me:$LINENO: result: no" >&5
12663echo "${ECHO_T}no" >&6
12664fi
12665
12666 if test $XFT_CONFIG != no; then
12667 LIBS="$LIBS `$XFT_CONFIG --libs`"
12668 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12669 fi
12670 fi
12671
12672
12673for ac_header in X11/Xft/Xft.h
12674do
12675as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12676if eval "test \"\${$as_ac_Header+set}\" = set"; then
12677 echo "$as_me:$LINENO: checking for $ac_header" >&5
12678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12679if eval "test \"\${$as_ac_Header+set}\" = set"; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12681fi
12682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12684else
12685 # Is the header compilable?
12686echo "$as_me:$LINENO: checking $ac_header usability" >&5
12687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12688cat >conftest.$ac_ext <<_ACEOF
12689/* confdefs.h. */
12690_ACEOF
12691cat confdefs.h >>conftest.$ac_ext
12692cat >>conftest.$ac_ext <<_ACEOF
12693/* end confdefs.h. */
12694$ac_includes_default
12695#include <$ac_header>
12696_ACEOF
12697rm -f conftest.$ac_objext
12698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12699 (eval $ac_compile) 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; } &&
12712 { ac_try='test -s conftest.$ac_objext'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12718 ac_header_compiler=yes
12719else
12720 echo "$as_me: failed program was:" >&5
12721sed 's/^/| /' conftest.$ac_ext >&5
12722
12723ac_header_compiler=no
12724fi
12725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12727echo "${ECHO_T}$ac_header_compiler" >&6
12728
12729# Is the header present?
12730echo "$as_me:$LINENO: checking $ac_header presence" >&5
12731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12732cat >conftest.$ac_ext <<_ACEOF
12733/* confdefs.h. */
12734_ACEOF
12735cat confdefs.h >>conftest.$ac_ext
12736cat >>conftest.$ac_ext <<_ACEOF
12737/* end confdefs.h. */
12738#include <$ac_header>
12739_ACEOF
12740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12742 ac_status=$?
12743 grep -v '^ *+' conftest.er1 >conftest.err
12744 rm -f conftest.er1
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } >/dev/null; then
12748 if test -s conftest.err; then
12749 ac_cpp_err=$ac_cxx_preproc_warn_flag
12750 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12751 else
12752 ac_cpp_err=
12753 fi
12754else
12755 ac_cpp_err=yes
12756fi
12757if test -z "$ac_cpp_err"; then
12758 ac_header_preproc=yes
12759else
12760 echo "$as_me: failed program was:" >&5
12761sed 's/^/| /' conftest.$ac_ext >&5
12762
12763 ac_header_preproc=no
12764fi
12765rm -f conftest.err conftest.$ac_ext
12766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12767echo "${ECHO_T}$ac_header_preproc" >&6
12768
12769# So? What about this header?
12770case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12771 yes:no: )
12772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12776 ac_header_preproc=yes
12777 ;;
12778 no:yes:* )
12779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12782echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12786echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12791 (
12792 cat <<\_ASBOX
12793## ------------------------------------------ ##
12794## Report this to the AC_PACKAGE_NAME lists. ##
12795## ------------------------------------------ ##
12796_ASBOX
12797 ) |
12798 sed "s/^/$as_me: WARNING: /" >&2
12799 ;;
12800esac
12801echo "$as_me:$LINENO: checking for $ac_header" >&5
12802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12803if eval "test \"\${$as_ac_Header+set}\" = set"; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
12805else
12806 eval "$as_ac_Header=\$ac_header_preproc"
12807fi
12808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12810
12811fi
12812if test `eval echo '${'$as_ac_Header'}'` = yes; then
12813 cat >>confdefs.h <<_ACEOF
12814#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12815_ACEOF
12816
16652else 12817else
16653 support_xft=no 12818 support_xft=no
16654fi 12819fi
16655 12820
16656done 12821done
16737#define XFT 1 12902#define XFT 1
16738_ACEOF 12903_ACEOF
16739 12904
16740 fi 12905 fi
16741fi 12906fi
12907if test x$support_styles = xyes; then
16742 12908
12909cat >>confdefs.h <<\_ACEOF
12910#define ENABLE_STYLES 1
12911_ACEOF
12912
12913fi
12914if test x$support_iso14755 = xyes; then
12915
12916cat >>confdefs.h <<\_ACEOF
12917#define ISO_14755 1
12918_ACEOF
12919
12920fi
12921if test x$support_8bitctrls = xyes; then
12922
12923cat >>confdefs.h <<\_ACEOF
12924#define EIGHT_BIT_CONTROLS 1
12925_ACEOF
12926
12927fi
12928if test x$support_fading = xyes; then
12929
12930cat >>confdefs.h <<\_ACEOF
12931#define OFF_FOCUS_FADING 1
12932_ACEOF
12933
12934fi
12935if test x$support_tinting = xyes; then
12936
12937cat >>confdefs.h <<\_ACEOF
12938#define TINTING 1
12939_ACEOF
12940
12941fi
12942if test x$support_inheritpixmap = xyes; then
12943
12944cat >>confdefs.h <<\_ACEOF
12945#define TRANSPARENT 1
12946_ACEOF
12947
12948fi
12949if test x$support_keepscrolling = xno; then
12950
12951cat >>confdefs.h <<\_ACEOF
12952#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12953_ACEOF
12954
12955fi
12956if test x$support_selectionscrolling = xyes; then
12957
12958cat >>confdefs.h <<\_ACEOF
12959#define SELECTION_SCROLLING 1
12960_ACEOF
12961
12962fi
12963if test x$support_frills = xyes; then
12964
12965cat >>confdefs.h <<\_ACEOF
12966#define ENABLE_FRILLS 1
12967_ACEOF
12968
12969fi
12970if test x$support_mousewheel = xyes; then
12971
12972cat >>confdefs.h <<\_ACEOF
12973#define MOUSE_WHEEL 1
12974_ACEOF
12975
12976fi
12977if test x$support_mouseslipwheel = xyes; then
12978
12979cat >>confdefs.h <<\_ACEOF
12980#define MOUSE_SLIP_WHEELING 1
12981_ACEOF
12982
12983fi
12984if test x$support_xim = xyes -o x$multichar_set = xyes; then
12985 if test x$rxvt_cv_func_xlocale = xyes; then
12986
12987cat >>confdefs.h <<\_ACEOF
12988#define USE_XIM 1
12989_ACEOF
12990
12991 fi
12992fi
12993if test x$support_xpm = xyes; then
12994
12995cat >>confdefs.h <<\_ACEOF
12996#define XPM_BACKGROUND 1
12997_ACEOF
12998
12999fi
13000if test x$support_scroll_rxvt = xyes; then
13001
13002cat >>confdefs.h <<\_ACEOF
13003#define RXVT_SCROLLBAR 1
13004_ACEOF
13005
13006 scrolltypes="rxvt"
13007fi
13008if test x$support_scroll_next = xyes; then
13009
13010cat >>confdefs.h <<\_ACEOF
13011#define NEXT_SCROLLBAR 1
13012_ACEOF
13013
13014 scrolltypes="$scrolltypes next"
13015fi
13016if test x$support_scroll_xterm = xyes; then
13017
13018cat >>confdefs.h <<\_ACEOF
13019#define XTERM_SCROLLBAR 1
13020_ACEOF
13021
13022 scrolltypes="$scrolltypes xterm"
13023fi
13024if test x$support_scroll_plain = xyes; then
13025
13026cat >>confdefs.h <<\_ACEOF
13027#define PLAIN_SCROLLBAR 1
13028_ACEOF
13029
13030 scrolltypes="$scrolltypes plain"
13031fi
13032if test x$support_pointer_blank = xyes; then
13033
13034cat >>confdefs.h <<\_ACEOF
13035#define POINTER_BLANK 1
13036_ACEOF
13037
13038fi
13039if test x$support_text_blink = xyes; then
13040
13041cat >>confdefs.h <<\_ACEOF
13042#define TEXT_BLINK 1
13043_ACEOF
13044
13045fi
13046if test x$support_unicode3 = xyes; then
13047
13048cat >>confdefs.h <<\_ACEOF
13049#define UNICODE_3 1
13050_ACEOF
13051
13052fi
13053if test x$support_combining = xyes; then
13054
13055cat >>confdefs.h <<\_ACEOF
13056#define ENABLE_COMBINING 1
13057_ACEOF
13058
13059fi
13060if test x$codesets = xall; then
13061 codesets=jp,jp-ext,kr,zh,zh-ext
13062fi
13063
13064cat >>confdefs.h <<\_ACEOF
13065#define ENCODING_EU 1
13066_ACEOF
13067
13068
13069cat >>confdefs.h <<\_ACEOF
13070#define ENCODING_VN 1
13071_ACEOF
13072
13073for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13074 case "$codeset" in
13075 JP )
13076cat >>confdefs.h <<\_ACEOF
13077#define ENCODING_JP 1
13078_ACEOF
13079 ;;
13080 JP_EXT )
13081cat >>confdefs.h <<\_ACEOF
13082#define ENCODING_JP_EXT 1
13083_ACEOF
13084 ;;
13085 KR )
13086cat >>confdefs.h <<\_ACEOF
13087#define ENCODING_KR 1
13088_ACEOF
13089 ;;
13090 ZH )
13091cat >>confdefs.h <<\_ACEOF
13092#define ENCODING_ZH 1
13093_ACEOF
13094 ;;
13095 ZH_EXT )
13096cat >>confdefs.h <<\_ACEOF
13097#define ENCODING_ZH_EXT 1
13098_ACEOF
13099 ;;
13100 esac
13101done
13102
13103IF_PERL=\#
13104if test x$support_perl = xyes; then
13105 # Extract the first word of "perl5", so it can be a program name with args.
13106set dummy perl5; ac_word=$2
13107echo "$as_me:$LINENO: checking for $ac_word" >&5
13108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13109if test "${ac_cv_path_PERL+set}" = set; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13111else
13112 case $PERL in
13113 [\\/]* | ?:[\\/]*)
13114 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13115 ;;
13116 *)
13117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13118for as_dir in $PATH
13119do
13120 IFS=$as_save_IFS
13121 test -z "$as_dir" && as_dir=.
13122 for ac_exec_ext in '' $ac_executable_extensions; do
13123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13124 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13126 break 2
13127 fi
13128done
13129done
13130
13131 ;;
13132esac
13133fi
13134PERL=$ac_cv_path_PERL
13135
13136if test -n "$PERL"; then
13137 echo "$as_me:$LINENO: result: $PERL" >&5
13138echo "${ECHO_T}$PERL" >&6
13139else
13140 echo "$as_me:$LINENO: result: no" >&5
13141echo "${ECHO_T}no" >&6
13142fi
13143
13144 # Extract the first word of "perl", so it can be a program name with args.
13145set dummy perl; ac_word=$2
13146echo "$as_me:$LINENO: checking for $ac_word" >&5
13147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13148if test "${ac_cv_path_PERL+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13150else
13151 case $PERL in
13152 [\\/]* | ?:[\\/]*)
13153 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13154 ;;
13155 *)
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157for as_dir in $PATH
13158do
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13163 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13165 break 2
13166 fi
13167done
13168done
13169
13170 ;;
13171esac
13172fi
13173PERL=$ac_cv_path_PERL
13174
13175if test -n "$PERL"; then
13176 echo "$as_me:$LINENO: result: $PERL" >&5
13177echo "${ECHO_T}$PERL" >&6
13178else
13179 echo "$as_me:$LINENO: result: no" >&5
13180echo "${ECHO_T}no" >&6
13181fi
13182
13183
13184 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13185echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13186 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13187
13188 save_CXXFLAGS="$CXXFLAGS"
13189 save_LIBS="$LIBS"
13190 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13191 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13192 cat >conftest.$ac_ext <<_ACEOF
13193/* confdefs.h. */
13194_ACEOF
13195cat confdefs.h >>conftest.$ac_ext
13196cat >>conftest.$ac_ext <<_ACEOF
13197/* end confdefs.h. */
13198
13199#include <EXTERN.h>
13200#include <perl.h>
13201#include <XSUB.h>
13202
13203int
13204main ()
13205{
13206
13207 PerlInterpreter *perl = perl_alloc ();
13208
13209 ;
13210 return 0;
13211}
13212_ACEOF
13213rm -f conftest.$ac_objext conftest$ac_exeext
13214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13215 (eval $ac_link) 2>conftest.er1
13216 ac_status=$?
13217 grep -v '^ *+' conftest.er1 >conftest.err
13218 rm -f conftest.er1
13219 cat conftest.err >&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } &&
13222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13225 ac_status=$?
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; } &&
13228 { ac_try='test -s conftest$ac_exeext'
13229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230 (eval $ac_try) 2>&5
13231 ac_status=$?
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); }; }; then
13234 rxvt_perl_link=yes
13235else
13236 echo "$as_me: failed program was:" >&5
13237sed 's/^/| /' conftest.$ac_ext >&5
13238
13239rxvt_perl_link=no
13240fi
13241rm -f conftest.err conftest.$ac_objext \
13242 conftest$ac_exeext conftest.$ac_ext
13243 CXXFLAGS="$save_CXXFLAGS"
13244 LIBS="$save_LIBS"
13245
13246 if test x$rxvt_perl_link = xyes; then
13247 echo "$as_me:$LINENO: result: ok" >&5
13248echo "${ECHO_T}ok" >&6
13249
13250cat >>confdefs.h <<\_ACEOF
13251#define ENABLE_PERL 1
13252_ACEOF
13253
13254 IF_PERL=
13255 PERL_O=rxvtperl.o
13256 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13257 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13258 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13259 else
13260 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13261echo "$as_me: error: no, unable to link" >&2;}
13262 { (exit 1); exit 1; }; }
13263 fi
13264 else
13265 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13266echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13267 { (exit 1); exit 1; }; }
13268 fi
13269fi
13270
13271
13272
13273
13274
13275
13276
13277 cat >conftest.$ac_ext <<_ACEOF
13278/* confdefs.h. */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
13282/* end confdefs.h. */
13283
13284#include <EXTERN.h>
13285#include <perl.h>
13286#include <XSUB.h>
13287
13288int
13289main ()
13290{
13291
13292 PerlInterpreter *perl = perl_alloc ();
13293
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298rm -f conftest.$ac_objext conftest$ac_exeext
13299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13300 (eval $ac_link) 2>conftest.er1
13301 ac_status=$?
13302 grep -v '^ *+' conftest.er1 >conftest.err
13303 rm -f conftest.er1
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
13307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest$ac_exeext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 rxvt_perl_link=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324rxvt_perl_link=no
13325fi
13326rm -f conftest.err conftest.$ac_objext \
13327 conftest$ac_exeext conftest.$ac_ext
13328if test x$support_perl = xyes; then
13329 support_frills=yes
13330fi
13331
13332
13333
13334
13335
13336
13337
13338
13339if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13340 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13341 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13342 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13343 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13344 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13345fi
13346
13347
13348
13349
13350
13351test "$program_prefix" != NONE &&
13352 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13353# Use a double $ so make ignores it.
13354test "$program_suffix" != NONE &&
13355 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13356# Double any \ or $. echo might interpret backslashes.
13357# By default was `s,x,x', remove it if useless.
13358cat <<\_ACEOF >conftest.sed
13359s/[\\$]/&&/g;s/;s,x,x,$//
13360_ACEOF
13361program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13362rm conftest.sed
13363
13364
13365
13366
13367
13368if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13369 include_stdint_h="#include <stdint.h>"
13370else
13371 include_stdint_h="/* #include <stdint.h> */"
13372fi
13373if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13374 include_stdarg_h="#include <cstdarg>"
13375else
13376 include_stdarg_h="/* #include <cstdarg> */"
13377fi
13378if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13379 include_stdlib_h="#include <cstdlib>"
13380else
13381 include_stdlib_h="/* #include <cstdlib> */"
13382fi
13383if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13384 include_unistd_h="#include <unistd.h>"
13385else
13386 include_unistd_h="/* #include <unistd.h> */"
13387fi
13388if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13389 include_string_h="#include <cstring>"
13390else
13391 include_string_h="/* #include <cstring> */"
13392fi
13393if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13394 include_fcntl_h="#include <fcntl.h>"
13395else
13396 include_fcntl_h="/* #include <fcntl.h> */"
13397fi
13398if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13399 include_util_h="#include <util.h>"
13400else
13401 include_util_h="/* #include <util.h> */"
13402fi
13403if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13404 include_assert_h="#include <assert.h>"
13405else
13406 include_assert_h="/* #include <assert.h> */"
13407fi
13408if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13409 include_sys_ioctl_h="#include <sys/ioctl.h>"
13410else
13411 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13412fi
13413if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13414 include_sys_select_h="#include <sys/select.h>"
13415else
13416 include_sys_select_h="/* #include <sys/select.h> */"
13417fi
13418if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13419 include_sys_strredir_h="#include <sys/strredir.h>"
13420else
13421 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13422fi
13423if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13424 include_sys_time_h="#include <sys/time.h>"
13425else
13426 include_sys_time_h="/* #include <sys/time.h> */"
13427fi
13428if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13429 include_time_h="#include <time.h>"
13430else
13431 include_time_h="/* #include <time.h> */"
13432fi
13433
16743 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 13434 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13435
16744cat >confcache <<\_ACEOF 13436cat >confcache <<\_ACEOF
16745# This file is a shell script that caches the results of configure 13437# This file is a shell script that caches the results of configure
16746# tests run on this system so they can be shared between configure 13438# tests run on this system so they can be shared between configure
16747# scripts and configure runs, see configure's option --config-cache. 13439# scripts and configure runs, see configure's option --config-cache.
16748# It is not useful on other systems. If it contains results you don't 13440# It is not useful on other systems. If it contains results you don't
17264cat >>$CONFIG_STATUS <<\_ACEOF 13956cat >>$CONFIG_STATUS <<\_ACEOF
17265for ac_config_target in $ac_config_targets 13957for ac_config_target in $ac_config_targets
17266do 13958do
17267 case "$ac_config_target" in 13959 case "$ac_config_target" in
17268 # Handling of arguments. 13960 # Handling of arguments.
17269 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17270 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13961 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17271 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13962 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17272 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13963 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17273 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17274 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13964 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17275 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17276 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13965 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
17277 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13966 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17278echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13967echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17279 { (exit 1); exit 1; }; };; 13968 { (exit 1); exit 1; }; };;
17280 esac 13969 esac
17281done 13970done
17356s,@DEFS@,$DEFS,;t t 14045s,@DEFS@,$DEFS,;t t
17357s,@ECHO_C@,$ECHO_C,;t t 14046s,@ECHO_C@,$ECHO_C,;t t
17358s,@ECHO_N@,$ECHO_N,;t t 14047s,@ECHO_N@,$ECHO_N,;t t
17359s,@ECHO_T@,$ECHO_T,;t t 14048s,@ECHO_T@,$ECHO_T,;t t
17360s,@LIBS@,$LIBS,;t t 14049s,@LIBS@,$LIBS,;t t
14050s,@build@,$build,;t t
14051s,@build_cpu@,$build_cpu,;t t
14052s,@build_vendor@,$build_vendor,;t t
14053s,@build_os@,$build_os,;t t
14054s,@host@,$host,;t t
14055s,@host_cpu@,$host_cpu,;t t
14056s,@host_vendor@,$host_vendor,;t t
14057s,@host_os@,$host_os,;t t
17361s,@VERSION@,$VERSION,;t t 14058s,@VERSION@,$VERSION,;t t
17362s,@DATE@,$DATE,;t t 14059s,@DATE@,$DATE,;t t
17363s,@LSMDATE@,$LSMDATE,;t t 14060s,@LSMDATE@,$LSMDATE,;t t
17364s,@LIBVERSION@,$LIBVERSION,;t t 14061s,@LIBVERSION@,$LIBVERSION,;t t
17365s,@CC@,$CC,;t t 14062s,@CC@,$CC,;t t
17374s,@ac_ct_CXX@,$ac_ct_CXX,;t t 14071s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17375s,@CPP@,$CPP,;t t 14072s,@CPP@,$CPP,;t t
17376s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14073s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17377s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14074s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17378s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14075s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17379s,@AWK@,$AWK,;t t 14076s,@EGREP@,$EGREP,;t t
17380s,@LINKER@,$LINKER,;t t 14077s,@LINKER@,$LINKER,;t t
17381s,@CXXCPP@,$CXXCPP,;t t
17382s,@EGREP@,$EGREP,;t t
17383s,@build@,$build,;t t
17384s,@build_cpu@,$build_cpu,;t t
17385s,@build_vendor@,$build_vendor,;t t
17386s,@build_os@,$build_os,;t t
17387s,@host@,$host,;t t
17388s,@host_cpu@,$host_cpu,;t t
17389s,@host_vendor@,$host_vendor,;t t
17390s,@host_os@,$host_os,;t t
17391s,@LN_S@,$LN_S,;t t
17392s,@ECHO@,$ECHO,;t t
17393s,@RANLIB@,$RANLIB,;t t
17394s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17395s,@STRIP@,$STRIP,;t t
17396s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17397s,@LIBTOOL@,$LIBTOOL,;t t
17398s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 14078s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
14079s,@RXVTNAME@,$RXVTNAME,;t t
17399s,@MV@,$MV,;t t 14080s,@MV@,$MV,;t t
17400s,@RM@,$RM,;t t
17401s,@CP@,$CP,;t t 14081s,@CP@,$CP,;t t
17402s,@LN@,$LN,;t t 14082s,@LN@,$LN,;t t
17403s,@SED@,$SED,;t t 14083s,@SED@,$SED,;t t
14084s,@ECHO@,$ECHO,;t t
17404s,@CMP@,$CMP,;t t 14085s,@CMP@,$CMP,;t t
17405s,@TBL@,$TBL,;t t 14086s,@TIC@,$TIC,;t t
14087s,@CXXCPP@,$CXXCPP,;t t
17406s,@X_CFLAGS@,$X_CFLAGS,;t t 14088s,@X_CFLAGS@,$X_CFLAGS,;t t
17407s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 14089s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17408s,@X_LIBS@,$X_LIBS,;t t 14090s,@X_LIBS@,$X_LIBS,;t t
17409s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 14091s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17410s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 14092s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17414s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 14096s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17415s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 14097s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17416s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 14098s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17417s,@rxvt_intp_define@,$rxvt_intp_define,;t t 14099s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17418s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 14100s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
14101s,@PKG_CONFIG@,$PKG_CONFIG,;t t
14102s,@XFT_CONFIG@,$XFT_CONFIG,;t t
14103s,@PERL@,$PERL,;t t
14104s,@PERLLIB@,$PERLLIB,;t t
14105s,@PERLFLAGS@,$PERLFLAGS,;t t
14106s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14107s,@IF_PERL@,$IF_PERL,;t t
14108s,@PERL_O@,$PERL_O,;t t
17419s,@DEBUG@,$DEBUG,;t t 14109s,@DEBUG@,$DEBUG,;t t
17420s,@DINCLUDE@,$DINCLUDE,;t t 14110s,@DINCLUDE@,$DINCLUDE,;t t
17421s,@DLIB@,$DLIB,;t t 14111s,@DLIB@,$DLIB,;t t
17422s,@RXVTNAME@,$RXVTNAME,;t t
17423s,@include_stdint_h@,$include_stdint_h,;t t 14112s,@include_stdint_h@,$include_stdint_h,;t t
17424s,@include_stdarg_h@,$include_stdarg_h,;t t 14113s,@include_stdarg_h@,$include_stdarg_h,;t t
17425s,@include_stdlib_h@,$include_stdlib_h,;t t 14114s,@include_stdlib_h@,$include_stdlib_h,;t t
17426s,@include_unistd_h@,$include_unistd_h,;t t 14115s,@include_unistd_h@,$include_unistd_h,;t t
17427s,@include_string_h@,$include_string_h,;t t 14116s,@include_string_h@,$include_string_h,;t t
17433s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 14122s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17434s,@include_sys_time_h@,$include_sys_time_h,;t t 14123s,@include_sys_time_h@,$include_sys_time_h,;t t
17435s,@include_time_h@,$include_time_h,;t t 14124s,@include_time_h@,$include_time_h,;t t
17436s,@LIBOBJS@,$LIBOBJS,;t t 14125s,@LIBOBJS@,$LIBOBJS,;t t
17437s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14126s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17438/@MCOMMON@/r $MCOMMON
17439s,@MCOMMON@,,;t t
17440CEOF 14127CEOF
17441 14128
17442_ACEOF 14129_ACEOF
17443 14130
17444 cat >>$CONFIG_STATUS <<\_ACEOF 14131 cat >>$CONFIG_STATUS <<\_ACEOF
17934 14621
17935 Rxvt version: $VERSION : $DATE 14622 Rxvt version: $VERSION : $DATE
17936 Source code location: $srcdir 14623 Source code location: $srcdir
17937 Install path: ${prefix}/bin 14624 Install path: ${prefix}/bin
17938 Compiler: $CXX 14625 Compiler: $CXX
17939 Compiler flags: $CFLAGS 14626 Compiler flags: $CXXFLAGS
17940 Linker: $LINKER" 14627 Linker: $LINKER"
17941
17942if test "$MALLOC_TYPE" = S; then
17943 echo " malloc support: system default"
17944fi
17945if test "$MALLOC_TYPE" = G; then
17946 echo " malloc support: Gray Watson's dmalloc"
17947fi
17948if test "$MALLOC_TYPE" = D; then
17949 echo " malloc support: Doug Lea's malloc"
17950fi
17951 14628
17952if test x$support_xpm = xyes; then 14629if test x$support_xpm = xyes; then
17953 echo " Xpm library: $XPM_LIBS" 14630 echo " Xpm library: $XPM_LIBS"
17954fi 14631fi
17955 14632
17956echo "
17957The following are set in config.h
17958"
17959echo " pty/tty type: "$rxvt_cv_ptys
17960if test x$support_utmp != xyes; then
17961 echo " utmp support: disabled
17962"
17963else
17964 echo " utmp support: enabled
17965 utmp file: $rxvt_cv_path_utmp
17966 utmpx file: $rxvt_cv_path_utmpx
17967 wtmp file: $rxvt_cv_path_wtmp
17968 wtmpx file: $rxvt_cv_path_wtmpx
17969 lastlog file: $rxvt_cv_path_lastlog
17970 ttys/ttytab file: $rxvt_cv_path_ttytab
17971"
17972fi
17973if test x$term != x; then 14633if test x$term != x; then
17974 echo " set TERM to: $term 14634 echo " set TERM to: $term"
17975"
17976fi 14635fi
17977if test x$terminfo != x; then 14636if test x$terminfo != x; then
17978 echo " set TERMINFO to: $terminfo 14637 echo " set TERMINFO to: $terminfo"
17979"
17980fi 14638fi
17981if test x$rxvt_cv_ptys = xUNKNOWN; then 14639echo " default resource name: $RESNAME"
17982 echo ".----------------------------------------------------------------." 14640echo " resource class: $RESCLASS"
17983 echo ". WARNING: could not determine pty/tty type. Do not build until ." 14641if test x$RESFALLBACK != x; then
17984 echo ". the appropriate PTYS_ARE_* is defined in config.h ." 14642 echo " resource class fallback: $RESFALLBACK"
17985 echo ".----------------------------------------------------------------."
17986fi 14643fi
14644echo
14645echo " embedded perl: $support_perl"
14646echo
17987if test x$support_xpm = xneedsmanualspecification; then 14647if test x$support_xpm = xneedsmanualspecification; then
17988 echo ".----------------------------------------------------------------." 14648 echo ".----------------------------------------------------------------."
17989 echo ". WARNING: --enable-xpm-background was specified however the ." 14649 echo ". WARNING: --enable-xpm-background was specified however the ."
17990 echo ". XPM includes files and libraries could not be found. ." 14650 echo ". XPM includes files and libraries could not be found. ."
17991 echo ". XPM backgrounds are now being DISABLED! If you want ." 14651 echo ". XPM backgrounds are now being DISABLED! If you want ."
17999 echo ". WARNING: --enable-xim was specified however the locale support ." 14659 echo ". WARNING: --enable-xim was specified however the locale support ."
18000 echo ". functions could not be found. ." 14660 echo ". functions could not be found. ."
18001 echo ". XIM is now being DISABLED! ." 14661 echo ". XIM is now being DISABLED! ."
18002 echo ".----------------------------------------------------------------." 14662 echo ".----------------------------------------------------------------."
18003fi 14663fi
14664
18004echo " *** Please check src/feature.h for further options *** 14665echo "*** Optionally check src/feature.h for further, rarely used options ***"
18005" 14666echo
14667

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines