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

Comparing rxvt-unicode/configure (file contents):
Revision 1.15 by pcg, Wed Mar 3 04:07:45 2004 UTC vs.
Revision 1.92 by root, Wed Jan 25 21:04:15 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 RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER 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-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 889 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1053 --enable-strings enable some replacement system functions
1054 --disable-swapscreen disable swap screen support 890 --disable-swapscreen disable swap screen support
891 --enable-iso14755 enable support for extended ISO 14755 modes
1055 --enable-frills enable support for rarely used features 892 --enable-frills enable support for rarely used features
1056 --enable-linespace enable support for linespace
1057 --enable-24bit enable support for using 24bit visuals if available
1058 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 893 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1059 --enable-selectionscrolling enable scrolling during selections 894 --enable-selectionscrolling enable scrolling during selections
1060 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 895 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1061 --enable-slipwheeling enable slip wheel scrolling (requires previous) 896 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1062 --enable-old-selection enable v2.20 (& prior) mouse selection style support
1063 --disable-new-selection disable new mouse (xterm) selection style support
1064 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1065 --enable-dlmalloc enable Doug Lea's malloc - for production use
1066 NOTE: enable only one malloc package
1067 --enable-smart-resize enable smart growth/shrink behaviour 897 --enable-smart-resize enable smart growth/shrink behaviour
1068 --enable-256-color enable 256-color support
1069 --enable-cursor-blink enable blinking cursor
1070 --enable-text-blink enable blinking text 898 --enable-text-blink enable blinking text
1071 --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)
1072 903
1073Optional Packages: 904Optional Packages:
1074 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 905 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1075 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 906 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1076 --with-gnu-ld assume the C compiler uses GNU ld default=no
1077 --with-pic try to use only PIC/non-PIC objects default=use both
1078 --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)
1079 --with-res-name=NAME use this as default resource name (default: urxvt) 908 --with-res-name=NAME use this as default resource name (default: urxvt)
1080 --with-res-class=NAME use this as the resource class (default: URxvt) 909 --with-res-class=CLASS use this as the resource class (default: URxvt)
1081 --with-name=NAME set the basename for the installed binaries (default: urxvt) 910 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1082 --with-term=NAME set the terminal to NAME (default: rxvt) 911 --with-term=NAME set the terminal to NAME (default: rxvt)
1083 --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
1084 --with-x use the X Window System 913 --with-x use the X Window System
1085 --with-xpm-includes=DIR use XPM includes in DIR 914 --with-xpm-includes=DIR use XPM includes in DIR
1534 1363
1535 1364
1536 1365
1537 1366
1538 1367
1368
1369
1370 ac_config_headers="$ac_config_headers config.h:config.h.in"
1371
1372
1539ac_aux_dir= 1373ac_aux_dir=
1540for ac_dir in autoconf $srcdir/autoconf; do 1374for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1541 if test -f $ac_dir/install-sh; then 1375 if test -f $ac_dir/install-sh; then
1542 ac_aux_dir=$ac_dir 1376 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install-sh -c" 1377 ac_install_sh="$ac_aux_dir/install-sh -c"
1544 break 1378 break
1545 elif test -f $ac_dir/install.sh; then 1379 elif test -f $ac_dir/install.sh; then
1551 ac_install_sh="$ac_aux_dir/shtool install -c" 1385 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 break 1386 break
1553 fi 1387 fi
1554done 1388done
1555if test -z "$ac_aux_dir"; then 1389if test -z "$ac_aux_dir"; then
1556 { { 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
1557echo "$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;}
1558 { (exit 1); exit 1; }; } 1392 { (exit 1); exit 1; }; }
1559fi 1393fi
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1394ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1395ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1396ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563 1397
1564 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
1565 1451
1566 1452
1567VERSION=`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`
1568DATE=`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`
1569LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1570LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1571echo "" 1455echo ""
1572echo "configuring for rxvt $VERSION" 1456echo "configuring for rxvt $VERSION"
1573echo "" 1457echo ""
1458
1459orig_CXXFLAGS="$CXXFLAGS"
1574 1460
1575 1461
1576ac_ext=c 1462ac_ext=c
1577ac_cpp='$CPP $CPPFLAGS' 1463ac_cpp='$CPP $CPPFLAGS'
1578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 3045
3160test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3046test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3161 3047
3162test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3048test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3163 3049
3164for ac_prog in gawk mawk nawk awk
3165do
3166 # Extract the first word of "$ac_prog", so it can be a program name with args.
3167set dummy $ac_prog; ac_word=$2
3168echo "$as_me:$LINENO: checking for $ac_word" >&5
3169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3170if test "${ac_cv_prog_AWK+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173 if test -n "$AWK"; then
3174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_AWK="$ac_prog"
3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3186 fi
3187done
3188done
3189 3050
3190fi
3191fi
3192AWK=$ac_cv_prog_AWK
3193if test -n "$AWK"; then
3194 echo "$as_me:$LINENO: result: $AWK" >&5
3195echo "${ECHO_T}$AWK" >&6
3196else
3197 echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6
3199fi
3200
3201 test -n "$AWK" && break
3202done
3203
3204
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211
3212LINKER="$CXX"
3213if test x$GCC = xyes && test x$GXX = xyes; then
3214
3215echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3216echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3217if test "${ac_cv_lib_supcpp_main+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220 ac_check_lib_save_LIBS=$LIBS
3221LIBS="-lsupc++ $LIBS"
3222cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228
3229
3230int
3231main ()
3232{
3233main ();
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext conftest$ac_exeext
3239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest$ac_exeext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_lib_supcpp_main=yes
3260else
3261 echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264ac_cv_lib_supcpp_main=no
3265fi
3266rm -f conftest.err conftest.$ac_objext \
3267 conftest$ac_exeext conftest.$ac_ext
3268LIBS=$ac_check_lib_save_LIBS
3269fi
3270echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3271echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3272if test $ac_cv_lib_supcpp_main = yes; then
3273
3274 LINKER="$CC"
3275 LIBS="$LIBS -lsupc++"
3276
3277fi
3278
3279fi
3280LINKER=$LINKER
3281
3282
3283CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3284
3285if test x$GXX = xyes; then
3286 CXXFLAGS="$CXXFLAGS -fno-exceptions"
3287fi
3288
3289ac_ext=cc
3290ac_cpp='$CXXCPP $CPPFLAGS'
3291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3294
3295
3296
3297ac_ext=cc
3298ac_cpp='$CXXCPP $CPPFLAGS'
3299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3302echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3303echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3304if test -z "$CXXCPP"; then
3305 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
3308 # Double quotes because CXXCPP needs to be expanded
3309 for CXXCPP in "$CXX -E" "/lib/cpp"
3310 do
3311 ac_preproc_ok=false
3312for ac_cxx_preproc_warn_flag in '' yes
3313do
3314 # Use a header file that comes with gcc, so configuring glibc
3315 # with a fresh cross-compiler works.
3316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317 # <limits.h> exists even on freestanding compilers.
3318 # On the NeXT, cc -E runs the code through the compiler's parser,
3319 # not just through cpp. "Syntax error" is here to catch this case.
3320 cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h. */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h. */
3326#ifdef __STDC__
3327# include <limits.h>
3328#else
3329# include <assert.h>
3330#endif
3331 Syntax error
3332_ACEOF
3333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } >/dev/null; then
3341 if test -s conftest.err; then
3342 ac_cpp_err=$ac_cxx_preproc_warn_flag
3343 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3344 else
3345 ac_cpp_err=
3346 fi
3347else
3348 ac_cpp_err=yes
3349fi
3350if test -z "$ac_cpp_err"; then
3351 :
3352else
3353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 # Broken: fails on valid input.
3357continue
3358fi
3359rm -f conftest.err conftest.$ac_ext
3360
3361 # OK, works on sane cases. Now check whether non-existent headers
3362 # can be detected and how.
3363 cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h. */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h. */
3369#include <ac_nonexistent.h>
3370_ACEOF
3371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3373 ac_status=$?
3374 grep -v '^ *+' conftest.er1 >conftest.err
3375 rm -f conftest.er1
3376 cat conftest.err >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } >/dev/null; then
3379 if test -s conftest.err; then
3380 ac_cpp_err=$ac_cxx_preproc_warn_flag
3381 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3382 else
3383 ac_cpp_err=
3384 fi
3385else
3386 ac_cpp_err=yes
3387fi
3388if test -z "$ac_cpp_err"; then
3389 # Broken: success on invalid input.
3390continue
3391else
3392 echo "$as_me: failed program was:" >&5
3393sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 # Passes both tests.
3396ac_preproc_ok=:
3397break
3398fi
3399rm -f conftest.err conftest.$ac_ext
3400
3401done
3402# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3403rm -f conftest.err conftest.$ac_ext
3404if $ac_preproc_ok; then
3405 break
3406fi
3407
3408 done
3409 ac_cv_prog_CXXCPP=$CXXCPP
3410
3411fi
3412 CXXCPP=$ac_cv_prog_CXXCPP
3413else
3414 ac_cv_prog_CXXCPP=$CXXCPP
3415fi
3416echo "$as_me:$LINENO: result: $CXXCPP" >&5
3417echo "${ECHO_T}$CXXCPP" >&6
3418ac_preproc_ok=false
3419for ac_cxx_preproc_warn_flag in '' yes
3420do
3421 # Use a header file that comes with gcc, so configuring glibc
3422 # with a fresh cross-compiler works.
3423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424 # <limits.h> exists even on freestanding compilers.
3425 # On the NeXT, cc -E runs the code through the compiler's parser,
3426 # not just through cpp. "Syntax error" is here to catch this case.
3427 cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
3433#ifdef __STDC__
3434# include <limits.h>
3435#else
3436# include <assert.h>
3437#endif
3438 Syntax error
3439_ACEOF
3440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3442 ac_status=$?
3443 grep -v '^ *+' conftest.er1 >conftest.err
3444 rm -f conftest.er1
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } >/dev/null; then
3448 if test -s conftest.err; then
3449 ac_cpp_err=$ac_cxx_preproc_warn_flag
3450 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3451 else
3452 ac_cpp_err=
3453 fi
3454else
3455 ac_cpp_err=yes
3456fi
3457if test -z "$ac_cpp_err"; then
3458 :
3459else
3460 echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463 # Broken: fails on valid input.
3464continue
3465fi
3466rm -f conftest.err conftest.$ac_ext
3467
3468 # OK, works on sane cases. Now check whether non-existent headers
3469 # can be detected and how.
3470 cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h. */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h. */
3476#include <ac_nonexistent.h>
3477_ACEOF
3478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } >/dev/null; then
3486 if test -s conftest.err; then
3487 ac_cpp_err=$ac_cxx_preproc_warn_flag
3488 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3489 else
3490 ac_cpp_err=
3491 fi
3492else
3493 ac_cpp_err=yes
3494fi
3495if test -z "$ac_cpp_err"; then
3496 # Broken: success on invalid input.
3497continue
3498else
3499 echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 # Passes both tests.
3503ac_preproc_ok=:
3504break
3505fi
3506rm -f conftest.err conftest.$ac_ext
3507
3508done
3509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510rm -f conftest.err conftest.$ac_ext
3511if $ac_preproc_ok; then
3512 :
3513else
3514 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3515See \`config.log' for more details." >&5
3516echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3517See \`config.log' for more details." >&2;}
3518 { (exit 1); exit 1; }; }
3519fi
3520
3521ac_ext=cc
3522ac_cpp='$CXXCPP $CPPFLAGS'
3523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3526 3051
3527 3052
3528echo "$as_me:$LINENO: checking for egrep" >&5 3053echo "$as_me:$LINENO: checking for egrep" >&5
3529echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3054echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3530if test "${ac_cv_prog_egrep+set}" = set; then 3055if test "${ac_cv_prog_egrep+set}" = set; then
3605 grep -v '^ *+' conftest.er1 >conftest.err 3130 grep -v '^ *+' conftest.er1 >conftest.err
3606 rm -f conftest.er1 3131 rm -f conftest.er1
3607 cat conftest.err >&5 3132 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } && 3134 (exit $ac_status); } &&
3610 { 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'
3611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5 3137 (eval $ac_try) 2>&5
3613 ac_status=$? 3138 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }; } && 3140 (exit $ac_status); }; } &&
3659 grep -v '^ *+' conftest.er1 >conftest.err 3184 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1 3185 rm -f conftest.er1
3661 cat conftest.err >&5 3186 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } && 3188 (exit $ac_status); } &&
3664 { 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'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 (eval $ac_try) 2>&5 3191 (eval $ac_try) 2>&5
3667 ac_status=$? 3192 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; } && 3194 (exit $ac_status); }; } &&
3691if test "$ac_cv_search_strerror" != no; then 3216if test "$ac_cv_search_strerror" != no; then
3692 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"
3693 3218
3694fi 3219fi
3695 3220
3696
3697# Check whether --enable-shared or --disable-shared was given.
3698if test "${enable_shared+set}" = set; then
3699 enableval="$enable_shared"
3700 p=${PACKAGE-default}
3701case "$enableval" in
3702yes) enable_shared=yes ;;
3703no) enable_shared=no ;;
3704*)
3705 enable_shared=no
3706 # Look at the argument we got. We use all the common list separators.
3707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3708 for pkg in $enableval; do
3709 if test "X$pkg" = "X$p"; then
3710 enable_shared=yes
3711 fi
3712 done
3713 IFS="$ac_save_ifs"
3714 ;;
3715esac
3716else
3717 enable_shared=no
3718fi; # Check whether --enable-static or --disable-static was given.
3719if test "${enable_static+set}" = set; then
3720 enableval="$enable_static"
3721 p=${PACKAGE-default}
3722case "$enableval" in
3723yes) enable_static=yes ;;
3724no) enable_static=no ;;
3725*)
3726 enable_static=no
3727 # Look at the argument we got. We use all the common list separators.
3728 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3729 for pkg in $enableval; do
3730 if test "X$pkg" = "X$p"; then
3731 enable_static=yes
3732 fi
3733 done
3734 IFS="$ac_save_ifs"
3735 ;;
3736esac
3737else
3738 enable_static=yes
3739fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3740if test "${enable_fast_install+set}" = set; then
3741 enableval="$enable_fast_install"
3742 p=${PACKAGE-default}
3743case "$enableval" in
3744yes) enable_fast_install=yes ;;
3745no) enable_fast_install=no ;;
3746*)
3747 enable_fast_install=no
3748 # Look at the argument we got. We use all the common list separators.
3749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3750 for pkg in $enableval; do
3751 if test "X$pkg" = "X$p"; then
3752 enable_fast_install=yes
3753 fi
3754 done
3755 IFS="$ac_save_ifs"
3756 ;;
3757esac
3758else
3759 enable_fast_install=yes
3760fi;
3761# Make sure we can run config.sub.
3762$ac_config_sub sun4 >/dev/null 2>&1 ||
3763 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3764echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3765 { (exit 1); exit 1; }; }
3766
3767echo "$as_me:$LINENO: checking build system type" >&5
3768echo $ECHO_N "checking build system type... $ECHO_C" >&6
3769if test "${ac_cv_build+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772 ac_cv_build_alias=$build_alias
3773test -z "$ac_cv_build_alias" &&
3774 ac_cv_build_alias=`$ac_config_guess`
3775test -z "$ac_cv_build_alias" &&
3776 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3777echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3778 { (exit 1); exit 1; }; }
3779ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3781echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3782 { (exit 1); exit 1; }; }
3783
3784fi
3785echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3786echo "${ECHO_T}$ac_cv_build" >&6
3787build=$ac_cv_build
3788build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3789build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3790build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3791
3792
3793echo "$as_me:$LINENO: checking host system type" >&5
3794echo $ECHO_N "checking host system type... $ECHO_C" >&6
3795if test "${ac_cv_host+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 ac_cv_host_alias=$host_alias
3799test -z "$ac_cv_host_alias" &&
3800 ac_cv_host_alias=$ac_cv_build_alias
3801ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3802 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3803echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3804 { (exit 1); exit 1; }; }
3805
3806fi
3807echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3808echo "${ECHO_T}$ac_cv_host" >&6
3809host=$ac_cv_host
3810host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3811host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3812host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3813
3814
3815
3816# Check whether --with-gnu-ld or --without-gnu-ld was given.
3817if test "${with_gnu_ld+set}" = set; then
3818 withval="$with_gnu_ld"
3819 test "$withval" = no || with_gnu_ld=yes
3820else
3821 with_gnu_ld=no
3822fi;
3823ac_prog=ld
3824if test "$GCC" = yes; then
3825 # Check if gcc -print-prog-name=ld gives a path.
3826 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3827echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3828 case $host in
3829 *-*-mingw*)
3830 # gcc leaves a trailing carriage return which upsets mingw
3831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3832 *)
3833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3834 esac
3835 case "$ac_prog" in
3836 # Accept absolute paths.
3837 [\\/]* | [A-Za-z]:[\\/]*)
3838 re_direlt='/[^/][^/]*/\.\./'
3839 # Canonicalize the path of ld
3840 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3841 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3842 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3843 done
3844 test -z "$LD" && LD="$ac_prog"
3845 ;;
3846 "")
3847 # If it fails, then pretend we aren't using GCC.
3848 ac_prog=ld
3849 ;;
3850 *)
3851 # If it is relative, then search for the first ld in PATH.
3852 with_gnu_ld=unknown
3853 ;;
3854 esac
3855elif test "$with_gnu_ld" = yes; then
3856 echo "$as_me:$LINENO: checking for GNU ld" >&5
3857echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3858else
3859 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3860echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3861fi
3862if test "${lt_cv_path_LD+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864else
3865 if test -z "$LD"; then
3866 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3867 for ac_dir in $PATH; do
3868 test -z "$ac_dir" && ac_dir=.
3869 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3870 lt_cv_path_LD="$ac_dir/$ac_prog"
3871 # Check to see if the program is GNU ld. I'd rather use --version,
3872 # but apparently some GNU ld's only accept -v.
3873 # Break only if it was the GNU/non-GNU ld that we prefer.
3874 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3875 test "$with_gnu_ld" != no && break
3876 else
3877 test "$with_gnu_ld" != yes && break
3878 fi
3879 fi
3880 done
3881 IFS="$ac_save_ifs"
3882else
3883 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3884fi
3885fi
3886
3887LD="$lt_cv_path_LD"
3888if test -n "$LD"; then
3889 echo "$as_me:$LINENO: result: $LD" >&5
3890echo "${ECHO_T}$LD" >&6
3891else
3892 echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6
3894fi
3895test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3896echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3897 { (exit 1); exit 1; }; }
3898echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3899echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3900if test "${lt_cv_prog_gnu_ld+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3902else
3903 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3904if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3905 lt_cv_prog_gnu_ld=yes
3906else
3907 lt_cv_prog_gnu_ld=no
3908fi
3909fi
3910echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3911echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3912with_gnu_ld=$lt_cv_prog_gnu_ld
3913
3914
3915echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3916echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3917if test "${lt_cv_ld_reload_flag+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919else
3920 lt_cv_ld_reload_flag='-r'
3921fi
3922echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3923echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3924reload_flag=$lt_cv_ld_reload_flag
3925test -n "$reload_flag" && reload_flag=" $reload_flag"
3926
3927echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3928echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3929if test "${lt_cv_path_NM+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931else
3932 if test -n "$NM"; then
3933 # Let the user override the test.
3934 lt_cv_path_NM="$NM"
3935else
3936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3937 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3938 test -z "$ac_dir" && ac_dir=.
3939 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3940 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3941 # Check to see if the nm accepts a BSD-compat flag.
3942 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3943 # nm: unknown option "B" ignored
3944 # Tru64's nm complains that /dev/null is an invalid object file
3945 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3946 lt_cv_path_NM="$tmp_nm -B"
3947 break
3948 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3949 lt_cv_path_NM="$tmp_nm -p"
3950 break
3951 else
3952 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3953 continue # so that we can try to find one that supports BSD flags
3954 fi
3955 fi
3956 done
3957 IFS="$ac_save_ifs"
3958 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3959fi
3960fi
3961
3962NM="$lt_cv_path_NM"
3963echo "$as_me:$LINENO: result: $NM" >&5
3964echo "${ECHO_T}$NM" >&6
3965
3966echo "$as_me:$LINENO: checking whether ln -s works" >&5
3967echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3968LN_S=$as_ln_s
3969if test "$LN_S" = "ln -s"; then
3970 echo "$as_me:$LINENO: result: yes" >&5
3971echo "${ECHO_T}yes" >&6
3972else
3973 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3974echo "${ECHO_T}no, using $LN_S" >&6
3975fi
3976
3977echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3978echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3979if test "${lt_cv_deplibs_check_method+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3981else
3982 lt_cv_file_magic_cmd='$MAGIC_CMD'
3983lt_cv_file_magic_test_file=
3984lt_cv_deplibs_check_method='unknown'
3985# Need to set the preceding variable on all platforms that support
3986# interlibrary dependencies.
3987# 'none' -- dependencies not supported.
3988# `unknown' -- same as none, but documents that we really don't know.
3989# 'pass_all' -- all dependencies passed with no checks.
3990# 'test_compile' -- check by making test program.
3991# ['file_magic [regex]'] -- check by looking for files in library path
3992# which responds to the $file_magic_cmd with a given egrep regex.
3993# If you have `file' or equivalent on your system and you're not sure
3994# whether `pass_all' will *always* work, you probably want this one.
3995
3996case "$host_os" in
3997aix4*)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
4000
4001beos*)
4002 lt_cv_deplibs_check_method=pass_all
4003 ;;
4004
4005bsdi4*)
4006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4007 lt_cv_file_magic_cmd='/usr/bin/file -L'
4008 lt_cv_file_magic_test_file=/shlib/libc.so
4009 ;;
4010
4011cygwin* | mingw* | pw32*)
4012 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4013 lt_cv_file_magic_cmd='$OBJDUMP -f'
4014 ;;
4015
4016darwin*|rhapsody*)
4017 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4018 lt_cv_file_magiic_cmd=/usr/bin/file
4019 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4020 ;;
4021
4022freebsd*)
4023 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4024 case "$host_cpu" in
4025 i*86 )
4026 # Not sure whether the presence of OpenBSD here was a mistake.
4027 # Let's accept both of them until this is cleared up.
4028 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4029 lt_cv_file_magic_cmd=/usr/bin/file
4030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4031 ;;
4032 esac
4033 else
4034 lt_cv_deplibs_check_method=pass_all
4035 fi
4036 ;;
4037
4038gnu*)
4039 lt_cv_deplibs_check_method=pass_all
4040 ;;
4041
4042hpux10.20*|hpux11*)
4043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4044 lt_cv_file_magic_cmd=/usr/bin/file
4045 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4046 ;;
4047
4048irix5* | irix6*)
4049 case "$host_os" in
4050 irix5*)
4051 # this will be overridden with pass_all, but let us keep it just in case
4052 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4053 ;;
4054 *)
4055 case "$LD" in
4056 *-32|*"-32 ") libmagic=32-bit;;
4057 *-n32|*"-n32 ") libmagic=N32;;
4058 *-64|*"-64 ") libmagic=64-bit;;
4059 *) libmagic=never-match;;
4060 esac
4061 # this will be overridden with pass_all, but let us keep it just in case
4062 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4063 ;;
4064 esac
4065 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4066 lt_cv_deplibs_check_method=pass_all
4067 ;;
4068
4069# This must be Linux ELF.
4070linux-gnu*)
4071 case "$host_cpu" in
4072 alpha* | i*86 | powerpc* | sparc* | ia64* )
4073 lt_cv_deplibs_check_method=pass_all ;;
4074 *)
4075 # glibc up to 2.1.1 does not perform some relocations on ARM
4076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4077 esac
4078 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4079 ;;
4080
4081netbsd*)
4082 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4083 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4084 else
4085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4086 fi
4087 lt_cv_file_magic_cmd='/usr/bin/file -L'
4088 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4089 ;;
4090
4091newos6*)
4092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4093 lt_cv_file_magic_cmd=/usr/bin/file
4094 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4095 ;;
4096
4097osf3* | osf4* | osf5*)
4098 # this will be overridden with pass_all, but let us keep it just in case
4099 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4100 lt_cv_file_magic_test_file=/shlib/libc.so
4101 lt_cv_deplibs_check_method=pass_all
4102 ;;
4103
4104sco3.2v5*)
4105 lt_cv_deplibs_check_method=pass_all
4106 ;;
4107
4108solaris*)
4109 lt_cv_deplibs_check_method=pass_all
4110 lt_cv_file_magic_test_file=/lib/libc.so
4111 ;;
4112
4113sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4114 case "$host_vendor" in
4115 motorola)
4116 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]'
4117 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4118 ;;
4119 ncr)
4120 lt_cv_deplibs_check_method=pass_all
4121 ;;
4122 sequent)
4123 lt_cv_file_magic_cmd='/bin/file'
4124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4125 ;;
4126 sni)
4127 lt_cv_file_magic_cmd='/bin/file'
4128 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4129 lt_cv_file_magic_test_file=/lib/libc.so
4130 ;;
4131 esac
4132 ;;
4133esac
4134
4135fi
4136echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4137echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4138file_magic_cmd=$lt_cv_file_magic_cmd
4139deplibs_check_method=$lt_cv_deplibs_check_method
4140
4141
4142
4143
4144
4145
4146
4147# Check for command to grab the raw symbol name followed by C symbol from nm.
4148echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4149echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4150if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152else
4153
4154# These are sane defaults that work on at least a few old systems.
4155# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4156
4157# Character class describing NM global symbol codes.
4158symcode='[BCDEGRST]'
4159
4160# Regexp to match symbols that can be accessed directly from C.
4161sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4162
4163# Transform the above into a raw symbol and a C symbol.
4164symxfrm='\1 \2\3 \3'
4165
4166# Transform an extracted symbol line into a proper C declaration
4167lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4168
4169# Define system-specific variables.
4170case "$host_os" in
4171aix*)
4172 symcode='[BCDT]'
4173 ;;
4174cygwin* | mingw* | pw32*)
4175 symcode='[ABCDGISTW]'
4176 ;;
4177hpux*) # Its linker distinguishes data from code symbols
4178 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4179 ;;
4180irix*)
4181 symcode='[BCDEGRST]'
4182 ;;
4183solaris* | sysv5*)
4184 symcode='[BDT]'
4185 ;;
4186sysv4)
4187 symcode='[DFNSTU]'
4188 ;;
4189esac
4190
4191# Handle CRLF in mingw tool chain
4192opt_cr=
4193case "$host_os" in
4194mingw*)
4195 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4196 ;;
4197esac
4198
4199# If we're using GNU nm, then use its standard symbol codes.
4200if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4201 symcode='[ABCDGISTW]'
4202fi
4203
4204# Try without a prefix undercore, then with it.
4205for ac_symprfx in "" "_"; do
4206
4207 # Write the raw and C identifiers.
4208lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4209
4210 # Check to see that the pipe works correctly.
4211 pipe_works=no
4212 rm -f conftest*
4213 cat > conftest.$ac_ext <<EOF
4214#ifdef __cplusplus
4215extern "C" {
4216#endif
4217char nm_test_var;
4218void nm_test_func(){}
4219#ifdef __cplusplus
4220}
4221#endif
4222main(){nm_test_var='a';nm_test_func();return(0);}
4223EOF
4224
4225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226 (eval $ac_compile) 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; then
4230 # Now try to grab the symbols.
4231 nlist=conftest.nm
4232 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4233 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } && test -s "$nlist"; then
4237 # Try sorting and uniquifying the output.
4238 if sort "$nlist" | uniq > "$nlist"T; then
4239 mv -f "$nlist"T "$nlist"
4240 else
4241 rm -f "$nlist"T
4242 fi
4243
4244 # Make sure that we snagged all the symbols we need.
4245 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4246 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4247 cat <<EOF > conftest.$ac_ext
4248#ifdef __cplusplus
4249extern "C" {
4250#endif
4251
4252EOF
4253 # Now generate the symbol file.
4254 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4255
4256 cat <<EOF >> conftest.$ac_ext
4257#if defined (__STDC__) && __STDC__
4258# define lt_ptr_t void *
4259#else
4260# define lt_ptr_t char *
4261# define const
4262#endif
4263
4264/* The mapping between symbol names and symbols. */
4265const struct {
4266 const char *name;
4267 lt_ptr_t address;
4268}
4269lt_preloaded_symbols[] =
4270{
4271EOF
4272 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4273 cat <<\EOF >> conftest.$ac_ext
4274 {0, (lt_ptr_t) 0}
4275};
4276
4277#ifdef __cplusplus
4278}
4279#endif
4280EOF
4281 # Now try linking the two files.
4282 mv conftest.$ac_objext conftstm.$ac_objext
4283 save_LIBS="$LIBS"
4284 save_CFLAGS="$CFLAGS"
4285 LIBS="conftstm.$ac_objext"
4286 CFLAGS="$CFLAGS$no_builtin_flag"
4287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && test -s conftest; then
4292 pipe_works=yes
4293 fi
4294 LIBS="$save_LIBS"
4295 CFLAGS="$save_CFLAGS"
4296 else
4297 echo "cannot find nm_test_func in $nlist" >&5
4298 fi
4299 else
4300 echo "cannot find nm_test_var in $nlist" >&5
4301 fi
4302 else
4303 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4304 fi
4305 else
4306 echo "$progname: failed program was:" >&5
4307 cat conftest.$ac_ext >&5
4308 fi
4309 rm -f conftest* conftst*
4310
4311 # Do not use the global_symbol_pipe unless it works.
4312 if test "$pipe_works" = yes; then
4313 break
4314 else
4315 lt_cv_sys_global_symbol_pipe=
4316 fi
4317done
4318
4319fi
4320
4321global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4322if test -z "$lt_cv_sys_global_symbol_pipe"; then
4323 global_symbol_to_cdecl=
4324else
4325 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4326fi
4327if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4328 echo "$as_me:$LINENO: result: failed" >&5
4329echo "${ECHO_T}failed" >&6
4330else
4331 echo "$as_me:$LINENO: result: ok" >&5
4332echo "${ECHO_T}ok" >&6
4333fi
4334
4335echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4336echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4337if test "${ac_cv_header_stdc+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 cat >conftest.$ac_ext <<_ACEOF
4341/* confdefs.h. */
4342_ACEOF
4343cat confdefs.h >>conftest.$ac_ext
4344cat >>conftest.$ac_ext <<_ACEOF
4345/* end confdefs.h. */
4346#include <stdlib.h>
4347#include <stdarg.h>
4348#include <string.h>
4349#include <float.h>
4350
4351int
4352main ()
4353{
4354
4355 ;
4356 return 0;
4357}
4358_ACEOF
4359rm -f conftest.$ac_objext
4360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try='test -s conftest.$ac_objext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_header_stdc=yes
4381else
4382 echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385ac_cv_header_stdc=no
4386fi
4387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4388
4389if test $ac_cv_header_stdc = yes; then
4390 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4391 cat >conftest.$ac_ext <<_ACEOF
4392/* confdefs.h. */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h. */
4397#include <string.h>
4398
4399_ACEOF
4400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4401 $EGREP "memchr" >/dev/null 2>&1; then
4402 :
4403else
4404 ac_cv_header_stdc=no
4405fi
4406rm -f conftest*
4407
4408fi
4409
4410if test $ac_cv_header_stdc = yes; then
4411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4412 cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h. */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h. */
4418#include <stdlib.h>
4419
4420_ACEOF
4421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4422 $EGREP "free" >/dev/null 2>&1; then
4423 :
4424else
4425 ac_cv_header_stdc=no
4426fi
4427rm -f conftest*
4428
4429fi
4430
4431if test $ac_cv_header_stdc = yes; then
4432 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4433 if test "$cross_compiling" = yes; then
4434 :
4435else
4436 cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h. */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h. */
4442#include <ctype.h>
4443#if ((' ' & 0x0FF) == 0x020)
4444# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4445# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4446#else
4447# define ISLOWER(c) \
4448 (('a' <= (c) && (c) <= 'i') \
4449 || ('j' <= (c) && (c) <= 'r') \
4450 || ('s' <= (c) && (c) <= 'z'))
4451# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4452#endif
4453
4454#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4455int
4456main ()
4457{
4458 int i;
4459 for (i = 0; i < 256; i++)
4460 if (XOR (islower (i), ISLOWER (i))
4461 || toupper (i) != TOUPPER (i))
4462 exit(2);
4463 exit (0);
4464}
4465_ACEOF
4466rm -f conftest$ac_exeext
4467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468 (eval $ac_link) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 :
4478else
4479 echo "$as_me: program exited with status $ac_status" >&5
4480echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483( exit $ac_status )
4484ac_cv_header_stdc=no
4485fi
4486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4487fi
4488fi
4489fi
4490echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4491echo "${ECHO_T}$ac_cv_header_stdc" >&6
4492if test $ac_cv_header_stdc = yes; then
4493
4494cat >>confdefs.h <<\_ACEOF
4495#define STDC_HEADERS 1
4496_ACEOF
4497
4498fi
4499
4500# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4511 inttypes.h stdint.h unistd.h
4512do
4513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4514echo "$as_me:$LINENO: checking for $ac_header" >&5
4515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4516if eval "test \"\${$as_ac_Header+set}\" = set"; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
4525$ac_includes_default
4526
4527#include <$ac_header>
4528_ACEOF
4529rm -f conftest.$ac_objext
4530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 eval "$as_ac_Header=yes"
4551else
4552 echo "$as_me: failed program was:" >&5
4553sed 's/^/| /' conftest.$ac_ext >&5
4554
4555eval "$as_ac_Header=no"
4556fi
4557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4558fi
4559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4561if test `eval echo '${'$as_ac_Header'}'` = yes; then
4562 cat >>confdefs.h <<_ACEOF
4563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564_ACEOF
4565
4566fi
4567
4568done
4569
4570
4571
4572for ac_header in dlfcn.h
4573do
4574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4575if eval "test \"\${$as_ac_Header+set}\" = set"; then
4576 echo "$as_me:$LINENO: checking for $ac_header" >&5
4577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4578if eval "test \"\${$as_ac_Header+set}\" = set"; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580fi
4581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4582echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4583else
4584 # Is the header compilable?
4585echo "$as_me:$LINENO: checking $ac_header usability" >&5
4586echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4587cat >conftest.$ac_ext <<_ACEOF
4588/* confdefs.h. */
4589_ACEOF
4590cat confdefs.h >>conftest.$ac_ext
4591cat >>conftest.$ac_ext <<_ACEOF
4592/* end confdefs.h. */
4593$ac_includes_default
4594#include <$ac_header>
4595_ACEOF
4596rm -f conftest.$ac_objext
4597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_header_compiler=yes
4618else
4619 echo "$as_me: failed program was:" >&5
4620sed 's/^/| /' conftest.$ac_ext >&5
4621
4622ac_header_compiler=no
4623fi
4624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4626echo "${ECHO_T}$ac_header_compiler" >&6
4627
4628# Is the header present?
4629echo "$as_me:$LINENO: checking $ac_header presence" >&5
4630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4631cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h. */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h. */
4637#include <$ac_header>
4638_ACEOF
4639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4641 ac_status=$?
4642 grep -v '^ *+' conftest.er1 >conftest.err
4643 rm -f conftest.er1
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } >/dev/null; then
4647 if test -s conftest.err; then
4648 ac_cpp_err=$ac_cxx_preproc_warn_flag
4649 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4650 else
4651 ac_cpp_err=
4652 fi
4653else
4654 ac_cpp_err=yes
4655fi
4656if test -z "$ac_cpp_err"; then
4657 ac_header_preproc=yes
4658else
4659 echo "$as_me: failed program was:" >&5
4660sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ac_header_preproc=no
4663fi
4664rm -f conftest.err conftest.$ac_ext
4665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4666echo "${ECHO_T}$ac_header_preproc" >&6
4667
4668# So? What about this header?
4669case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4670 yes:no: )
4671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4675 ac_header_preproc=yes
4676 ;;
4677 no:yes:* )
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4690 (
4691 cat <<\_ASBOX
4692## ------------------------------------------ ##
4693## Report this to the AC_PACKAGE_NAME lists. ##
4694## ------------------------------------------ ##
4695_ASBOX
4696 ) |
4697 sed "s/^/$as_me: WARNING: /" >&2
4698 ;;
4699esac
4700echo "$as_me:$LINENO: checking for $ac_header" >&5
4701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4702if eval "test \"\${$as_ac_Header+set}\" = set"; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705 eval "$as_ac_Header=\$ac_header_preproc"
4706fi
4707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4709
4710fi
4711if test `eval echo '${'$as_ac_Header'}'` = yes; then
4712 cat >>confdefs.h <<_ACEOF
4713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4714_ACEOF
4715
4716fi
4717
4718done
4719
4720
4721
4722
4723
4724# Only perform the check for file, if the check method requires it
4725case "$deplibs_check_method" in
4726file_magic*)
4727 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4728 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4729echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4730if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 case "$MAGIC_CMD" in
4734 /*)
4735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4736 ;;
4737 ?:/*)
4738 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4739 ;;
4740 *)
4741 ac_save_MAGIC_CMD="$MAGIC_CMD"
4742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4743 ac_dummy="/usr/bin:$PATH"
4744 for ac_dir in $ac_dummy; do
4745 test -z "$ac_dir" && ac_dir=.
4746 if test -f $ac_dir/${ac_tool_prefix}file; then
4747 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4748 if test -n "$file_magic_test_file"; then
4749 case "$deplibs_check_method" in
4750 "file_magic "*)
4751 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4753 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4754 egrep "$file_magic_regex" > /dev/null; then
4755 :
4756 else
4757 cat <<EOF 1>&2
4758
4759*** Warning: the command libtool uses to detect shared libraries,
4760*** $file_magic_cmd, produces output that libtool cannot recognize.
4761*** The result is that libtool may fail to recognize shared libraries
4762*** as such. This will affect the creation of libtool libraries that
4763*** depend on shared libraries, but programs linked with such libtool
4764*** libraries will work regardless of this problem. Nevertheless, you
4765*** may want to report the problem to your system manager and/or to
4766*** bug-libtool@gnu.org
4767
4768EOF
4769 fi ;;
4770 esac
4771 fi
4772 break
4773 fi
4774 done
4775 IFS="$ac_save_ifs"
4776 MAGIC_CMD="$ac_save_MAGIC_CMD"
4777 ;;
4778esac
4779fi
4780
4781MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4782if test -n "$MAGIC_CMD"; then
4783 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4784echo "${ECHO_T}$MAGIC_CMD" >&6
4785else
4786 echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6
4788fi
4789
4790if test -z "$lt_cv_path_MAGIC_CMD"; then
4791 if test -n "$ac_tool_prefix"; then
4792 echo "$as_me:$LINENO: checking for file" >&5
4793echo $ECHO_N "checking for file... $ECHO_C" >&6
4794if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
4797 case "$MAGIC_CMD" in
4798 /*)
4799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4800 ;;
4801 ?:/*)
4802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4803 ;;
4804 *)
4805 ac_save_MAGIC_CMD="$MAGIC_CMD"
4806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4807 ac_dummy="/usr/bin:$PATH"
4808 for ac_dir in $ac_dummy; do
4809 test -z "$ac_dir" && ac_dir=.
4810 if test -f $ac_dir/file; then
4811 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4812 if test -n "$file_magic_test_file"; then
4813 case "$deplibs_check_method" in
4814 "file_magic "*)
4815 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4818 egrep "$file_magic_regex" > /dev/null; then
4819 :
4820 else
4821 cat <<EOF 1>&2
4822
4823*** Warning: the command libtool uses to detect shared libraries,
4824*** $file_magic_cmd, produces output that libtool cannot recognize.
4825*** The result is that libtool may fail to recognize shared libraries
4826*** as such. This will affect the creation of libtool libraries that
4827*** depend on shared libraries, but programs linked with such libtool
4828*** libraries will work regardless of this problem. Nevertheless, you
4829*** may want to report the problem to your system manager and/or to
4830*** bug-libtool@gnu.org
4831
4832EOF
4833 fi ;;
4834 esac
4835 fi
4836 break
4837 fi
4838 done
4839 IFS="$ac_save_ifs"
4840 MAGIC_CMD="$ac_save_MAGIC_CMD"
4841 ;;
4842esac
4843fi
4844
4845MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4846if test -n "$MAGIC_CMD"; then
4847 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4848echo "${ECHO_T}$MAGIC_CMD" >&6
4849else
4850 echo "$as_me:$LINENO: result: no" >&5
4851echo "${ECHO_T}no" >&6
4852fi
4853
4854 else
4855 MAGIC_CMD=:
4856 fi
4857fi
4858
4859 fi
4860 ;;
4861esac
4862
4863if test -n "$ac_tool_prefix"; then
4864 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4865set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4866echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868if test "${ac_cv_prog_RANLIB+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871 if test -n "$RANLIB"; then
4872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885done
4886done
4887
4888fi
4889fi
4890RANLIB=$ac_cv_prog_RANLIB
4891if test -n "$RANLIB"; then
4892 echo "$as_me:$LINENO: result: $RANLIB" >&5
4893echo "${ECHO_T}$RANLIB" >&6
4894else
4895 echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897fi
4898
4899fi
4900if test -z "$ac_cv_prog_RANLIB"; then
4901 ac_ct_RANLIB=$RANLIB
4902 # Extract the first word of "ranlib", so it can be a program name with args.
4903set dummy ranlib; ac_word=$2
4904echo "$as_me:$LINENO: checking for $ac_word" >&5
4905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909 if test -n "$ac_ct_RANLIB"; then
4910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4911else
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_ac_ct_RANLIB="ranlib"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4922 fi
4923done
4924done
4925
4926 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4927fi
4928fi
4929ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4930if test -n "$ac_ct_RANLIB"; then
4931 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4932echo "${ECHO_T}$ac_ct_RANLIB" >&6
4933else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936fi
4937
4938 RANLIB=$ac_ct_RANLIB
4939else
4940 RANLIB="$ac_cv_prog_RANLIB"
4941fi
4942
4943if test -n "$ac_tool_prefix"; then
4944 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4945set dummy ${ac_tool_prefix}strip; ac_word=$2
4946echo "$as_me:$LINENO: checking for $ac_word" >&5
4947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4948if test "${ac_cv_prog_STRIP+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950else
4951 if test -n "$STRIP"; then
4952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4953else
4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4964 fi
4965done
4966done
4967
4968fi
4969fi
4970STRIP=$ac_cv_prog_STRIP
4971if test -n "$STRIP"; then
4972 echo "$as_me:$LINENO: result: $STRIP" >&5
4973echo "${ECHO_T}$STRIP" >&6
4974else
4975 echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6
4977fi
4978
4979fi
4980if test -z "$ac_cv_prog_STRIP"; then
4981 ac_ct_STRIP=$STRIP
4982 # Extract the first word of "strip", so it can be a program name with args.
4983set dummy strip; ac_word=$2
4984echo "$as_me:$LINENO: checking for $ac_word" >&5
4985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4986if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988else
4989 if test -n "$ac_ct_STRIP"; then
4990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4991else
4992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH
4994do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_prog_ac_ct_STRIP="strip"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003done
5004done
5005
5006 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5007fi
5008fi
5009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5010if test -n "$ac_ct_STRIP"; then
5011 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5012echo "${ECHO_T}$ac_ct_STRIP" >&6
5013else
5014 echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6
5016fi
5017
5018 STRIP=$ac_ct_STRIP
5019else
5020 STRIP="$ac_cv_prog_STRIP"
5021fi
5022
5023
5024enable_dlopen=no
5025enable_win32_dll=no
5026
5027# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5028if test "${enable_libtool_lock+set}" = set; then
5029 enableval="$enable_libtool_lock"
5030
5031fi;
5032test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5033
5034# Some flags need to be propagated to the compiler or linker for good
5035# libtool support.
5036case "$host" in
5037*-*-irix6*)
5038 # Find out which ABI we are using.
5039 echo '#line 5039 "configure"' > conftest.$ac_ext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; then
5045 case "`/usr/bin/file conftest.$ac_objext`" in
5046 *32-bit*)
5047 LD="${LD-ld} -32"
5048 ;;
5049 *N32*)
5050 LD="${LD-ld} -n32"
5051 ;;
5052 *64-bit*)
5053 LD="${LD-ld} -64"
5054 ;;
5055 esac
5056 fi
5057 rm -rf conftest*
5058 ;;
5059
5060*-*-sco3.2v5*)
5061 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5062 SAVE_CFLAGS="$CFLAGS"
5063 CFLAGS="$CFLAGS -belf"
5064 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5065echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5066if test "${lt_cv_cc_needs_belf+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069
5070
5071 ac_ext=c
5072ac_cpp='$CPP $CPPFLAGS'
5073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076
5077 cat >conftest.$ac_ext <<_ACEOF
5078/* confdefs.h. */
5079_ACEOF
5080cat confdefs.h >>conftest.$ac_ext
5081cat >>conftest.$ac_ext <<_ACEOF
5082/* end confdefs.h. */
5083
5084int
5085main ()
5086{
5087
5088 ;
5089 return 0;
5090}
5091_ACEOF
5092rm -f conftest.$ac_objext conftest$ac_exeext
5093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } &&
5101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 (eval $ac_try) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; } &&
5107 { ac_try='test -s conftest$ac_exeext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 lt_cv_cc_needs_belf=yes
5114else
5115 echo "$as_me: failed program was:" >&5
5116sed 's/^/| /' conftest.$ac_ext >&5
5117
5118lt_cv_cc_needs_belf=no
5119fi
5120rm -f conftest.err conftest.$ac_objext \
5121 conftest$ac_exeext conftest.$ac_ext
5122 ac_ext=cc 3221ac_ext=cc
5123ac_cpp='$CXXCPP $CPPFLAGS' 3222ac_cpp='$CXXCPP $CPPFLAGS'
5124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125ac_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'
5126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127 3226
5128fi
5129echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5130echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5131 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5133 CFLAGS="$SAVE_CFLAGS"
5134 fi
5135 ;;
5136 3227
5137 3228if test x$GCC = xyes && test x$GXX = xyes; then
5138esac
5139
5140# Sed substitution that helps us do robust quoting. It backslashifies
5141# metacharacters that are still active within double-quoted strings.
5142Xsed='sed -e s/^X//'
5143sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5144
5145# Same as above, but do not quote variable references.
5146double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5147
5148# Sed substitution to delay expansion of an escaped shell variable in a
5149# double_quote_subst'ed string.
5150delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5151
5152# Constants:
5153rm="rm -f"
5154
5155# Global variables:
5156default_ofile=libtool
5157can_build_shared=yes
5158
5159# All known linkers require a `.a' archive for static linking (except M$VC,
5160# which needs '.lib').
5161libext=a
5162ltmain="$ac_aux_dir/ltmain.sh"
5163ofile="$default_ofile"
5164with_gnu_ld="$lt_cv_prog_gnu_ld"
5165need_locks="$enable_libtool_lock"
5166
5167old_CC="$CC"
5168old_CFLAGS="$CFLAGS"
5169
5170# Set sane defaults for various variables
5171test -z "$AR" && AR=ar
5172test -z "$AR_FLAGS" && AR_FLAGS=cru
5173test -z "$AS" && AS=as
5174test -z "$CC" && CC=cc
5175test -z "$DLLTOOL" && DLLTOOL=dlltool
5176test -z "$LD" && LD=ld
5177test -z "$LN_S" && LN_S="ln -s"
5178test -z "$MAGIC_CMD" && MAGIC_CMD=file
5179test -z "$NM" && NM=nm
5180test -z "$OBJDUMP" && OBJDUMP=objdump
5181test -z "$RANLIB" && RANLIB=:
5182test -z "$STRIP" && STRIP=:
5183test -z "$ac_objext" && ac_objext=o
5184
5185if test x"$host" != x"$build"; then
5186 ac_tool_prefix=${host_alias}-
5187else
5188 ac_tool_prefix=
5189fi
5190
5191# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5192case "$host_os" in
5193linux-gnu*) ;;
5194linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5195esac
5196
5197case "$host_os" in
5198aix3*)
5199 # AIX sometimes has problems with the GCC collect2 program. For some
5200 # reason, if we set the COLLECT_NAMES environment variable, the problems
5201 # vanish in a puff of smoke.
5202 if test "X${COLLECT_NAMES+set}" != Xset; then
5203 COLLECT_NAMES=
5204 export COLLECT_NAMES
5205 fi
5206 ;;
5207esac
5208
5209# Determine commands to create old-style static archives.
5210old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5211old_postinstall_cmds='chmod 644 $oldlib'
5212old_postuninstall_cmds=
5213
5214if test -n "$RANLIB"; then
5215 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5216 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5217fi
5218
5219# Allow CC to be a program name with arguments.
5220set dummy $CC
5221compiler="$2"
5222
5223## FIXME: this should be a separate macro
5224##
5225echo "$as_me:$LINENO: checking for objdir" >&5 3229 echo "$as_me:$LINENO: checking for working libsupc++" >&5
5226echo $ECHO_N "checking for objdir... $ECHO_C" >&6 3230echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
5227rm -f .libs 2>/dev/null 3231 save_CXX="$CXX"
5228mkdir .libs 2>/dev/null 3232 save_LIBS="$LIBS"
5229if test -d .libs; then 3233 CXX="$CC"
5230 objdir=.libs 3234 LIBS="$LIBS -lsupc++"
5231else 3235 LINKER="$CC"
5232 # MS-DOS does not allow filenames that begin with a dot.
5233 objdir=_libs
5234fi
5235rmdir .libs 2>/dev/null
5236echo "$as_me:$LINENO: result: $objdir" >&5
5237echo "${ECHO_T}$objdir" >&6
5238##
5239## END FIXME
5240 3236
5241
5242## FIXME: this should be a separate macro
5243##
5244
5245# Check whether --with-pic or --without-pic was given.
5246if test "${with_pic+set}" = set; then
5247 withval="$with_pic"
5248 pic_mode="$withval"
5249else
5250 pic_mode=default
5251fi;
5252test -z "$pic_mode" && pic_mode=default
5253
5254# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5255# in isolation, and that seeing it set (from the cache) indicates that
5256# the associated values are set (in the cache) correctly too.
5257echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5258echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5259if test "${lt_cv_prog_cc_pic+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262 lt_cv_prog_cc_pic=
5263 lt_cv_prog_cc_shlib=
5264 lt_cv_prog_cc_wl=
5265 lt_cv_prog_cc_static=
5266 lt_cv_prog_cc_no_builtin=
5267 lt_cv_prog_cc_can_build_shared=$can_build_shared
5268
5269 if test "$GCC" = yes; then
5270 lt_cv_prog_cc_wl='-Wl,'
5271 lt_cv_prog_cc_static='-static'
5272
5273 case "$host_os" in
5274 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5275 # PIC is the default for these OSes.
5276 ;;
5277 aix*)
5278 # Below there is a dirty hack to force normal static linking with -ldl
5279 # The problem is because libdl dynamically linked with both libc and
5280 # libC (AIX C++ library), which obviously doesn't included in libraries
5281 # list by gcc. This cause undefined symbols with -static flags.
5282 # This hack allows C programs to be linked with "-static -ldl", but
5283 # we not sure about C++ programs.
5284 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5285 ;;
5286 cygwin* | mingw* | pw32* | os2*)
5287 # This hack is so that the source file can tell whether it is being
5288 # built for inclusion in a dll (and should export symbols for example).
5289 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5290 ;;
5291 amigaos*)
5292 # FIXME: we need at least 68020 code to build shared libraries, but
5293 # adding the `-m68020' flag to GCC prevents building anything better,
5294 # like `-m68040'.
5295 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5296 ;;
5297 sysv4*MP*)
5298 if test -d /usr/nec; then
5299 lt_cv_prog_cc_pic=-Kconform_pic
5300 fi
5301 ;;
5302 *)
5303 lt_cv_prog_cc_pic='-fPIC'
5304 ;;
5305 esac
5306 else
5307 # PORTME Check for PIC flags for the system compiler.
5308 case "$host_os" in
5309 aix3* | aix4*)
5310 # All AIX code is PIC.
5311 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5312 ;;
5313
5314 hpux9* | hpux10* | hpux11*)
5315 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5316 lt_cv_prog_cc_wl='-Wl,'
5317 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5318 lt_cv_prog_cc_pic='+Z'
5319 ;;
5320
5321 irix5* | irix6*)
5322 lt_cv_prog_cc_wl='-Wl,'
5323 lt_cv_prog_cc_static='-non_shared'
5324 # PIC (with -KPIC) is the default.
5325 ;;
5326
5327 cygwin* | mingw* | pw32* | os2*)
5328 # This hack is so that the source file can tell whether it is being
5329 # built for inclusion in a dll (and should export symbols for example).
5330 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5331 ;;
5332
5333 newsos6)
5334 lt_cv_prog_cc_pic='-KPIC'
5335 lt_cv_prog_cc_static='-Bstatic'
5336 ;;
5337
5338 osf3* | osf4* | osf5*)
5339 # All OSF/1 code is PIC.
5340 lt_cv_prog_cc_wl='-Wl,'
5341 lt_cv_prog_cc_static='-non_shared'
5342 ;;
5343
5344 sco3.2v5*)
5345 lt_cv_prog_cc_pic='-Kpic'
5346 lt_cv_prog_cc_static='-dn'
5347 lt_cv_prog_cc_shlib='-belf'
5348 ;;
5349
5350 solaris*)
5351 lt_cv_prog_cc_pic='-KPIC'
5352 lt_cv_prog_cc_static='-Bstatic'
5353 lt_cv_prog_cc_wl='-Wl,'
5354 ;;
5355
5356 sunos4*)
5357 lt_cv_prog_cc_pic='-PIC'
5358 lt_cv_prog_cc_static='-Bstatic'
5359 lt_cv_prog_cc_wl='-Qoption ld '
5360 ;;
5361
5362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5363 lt_cv_prog_cc_pic='-KPIC'
5364 lt_cv_prog_cc_static='-Bstatic'
5365 if test "x$host_vendor" = xsni; then
5366 lt_cv_prog_cc_wl='-LD'
5367 else
5368 lt_cv_prog_cc_wl='-Wl,'
5369 fi
5370 ;;
5371
5372 uts4*)
5373 lt_cv_prog_cc_pic='-pic'
5374 lt_cv_prog_cc_static='-Bstatic'
5375 ;;
5376
5377 sysv4*MP*)
5378 if test -d /usr/nec ;then
5379 lt_cv_prog_cc_pic='-Kconform_pic'
5380 lt_cv_prog_cc_static='-Bstatic'
5381 fi
5382 ;;
5383
5384 *)
5385 lt_cv_prog_cc_can_build_shared=no
5386 ;;
5387 esac
5388 fi
5389
5390fi
5391
5392if test -z "$lt_cv_prog_cc_pic"; then
5393 echo "$as_me:$LINENO: result: none" >&5
5394echo "${ECHO_T}none" >&6
5395else
5396 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5397echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5398
5399 # Check to make sure the pic_flag actually works.
5400 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5401echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5402 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405 save_CFLAGS="$CFLAGS"
5406 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5407 cat >conftest.$ac_ext <<_ACEOF 3237cat >conftest.$ac_ext <<_ACEOF
5408/* confdefs.h. */ 3238/* confdefs.h. */
5409_ACEOF 3239_ACEOF
5410cat confdefs.h >>conftest.$ac_ext 3240cat confdefs.h >>conftest.$ac_ext
5411cat >>conftest.$ac_ext <<_ACEOF 3241cat >>conftest.$ac_ext <<_ACEOF
5412/* end confdefs.h. */ 3242/* end confdefs.h. */
5413 3243struct test { }; void f() try { throw new test; } catch (...) { throw; }
5414int 3244int
5415main () 3245main ()
5416{ 3246{
5417 3247
5418 ; 3248 ;
5419 return 0; 3249 return 0;
5420} 3250}
5421_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
3294ac_ext=cc
3295ac_cpp='$CXXCPP $CPPFLAGS'
3296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3299
3300if test -z "$orig_CXXFLAGS"; then
3301 if test x$GCC = xyes && test "x$GXX" = xyes; then
3302 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3303 cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h. */
3309
3310int
3311main ()
3312{
3313
3314 ;
3315 return 0;
3316}
3317_ACEOF
5422rm -f conftest.$ac_objext 3318rm -f conftest.$ac_objext
5423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424 (eval $ac_compile) 2>conftest.er1 3320 (eval $ac_compile) 2>conftest.er1
5425 ac_status=$? 3321 ac_status=$?
5426 grep -v '^ *+' conftest.er1 >conftest.err 3322 grep -v '^ *+' conftest.er1 >conftest.err
5438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 (eval $ac_try) 2>&5 3335 (eval $ac_try) 2>&5
5440 ac_status=$? 3336 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then 3338 (exit $ac_status); }; }; then
5443 case "$host_os" in 3339 :
5444 hpux9* | hpux10* | hpux11*)
5445 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5446 # they create non-PIC objects. So, if there were any warnings, we
5447 # assume that PIC is not supported.
5448 if test -s conftest.err; then
5449 lt_cv_prog_cc_pic_works=no
5450 else
5451 lt_cv_prog_cc_pic_works=yes
5452 fi
5453 ;;
5454 *)
5455 lt_cv_prog_cc_pic_works=yes
5456 ;;
5457 esac
5458
5459else 3340else
5460 echo "$as_me: failed program was:" >&5 3341 echo "$as_me: failed program was:" >&5
5461sed 's/^/| /' conftest.$ac_ext >&5 3342sed 's/^/| /' conftest.$ac_ext >&5
5462 3343
5463 lt_cv_prog_cc_pic_works=no 3344CXXFLAGS="-g -O3"
5464
5465fi 3345fi
5466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5467 CFLAGS="$save_CFLAGS"
5468
5469fi
5470
5471
5472 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5473 lt_cv_prog_cc_pic=
5474 lt_cv_prog_cc_can_build_shared=no
5475 else 3347 else
5476 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 3348 CXXFLAGS="-O"
5477 fi 3349 fi
5478 3350 CFLAGS="$CXXFLAGS"
5479 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5480echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5481fi 3351fi
5482##
5483## END FIXME
5484 3352
5485# Check for any special shared library compilation flags.
5486if test -n "$lt_cv_prog_cc_shlib"; then
5487 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5488echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5489 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5490 else
5491 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5492echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5493 lt_cv_prog_cc_can_build_shared=no
5494 fi
5495fi
5496 3353
5497## FIXME: this should be a separate macro 3354cat >>confdefs.h <<\_ACEOF
5498## 3355#define _GNU_SOURCE 1
5499echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 3356_ACEOF
5500echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 3357
5501if test "${lt_cv_prog_cc_static_works+set}" = set; then 3358
3359case $host in
3360 *-*-solaris* )
3361
3362cat >>confdefs.h <<\_ACEOF
3363#define _XOPEN_SOURCE_EXTENDED 1
3364_ACEOF
3365
3366
3367cat >>confdefs.h <<\_ACEOF
3368#define _XOPEN_SOURCE 2
3369_ACEOF
3370
3371
3372cat >>confdefs.h <<\_ACEOF
3373#define __EXTENSIONS__ 1
3374_ACEOF
3375
3376 ;;
3377esac
3378
3379
3380echo "$as_me:$LINENO: checking for setlocale" >&5
3381echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3382if test "${ac_cv_func_setlocale+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6 3383 echo $ECHO_N "(cached) $ECHO_C" >&6
5503else 3384else
5504 lt_cv_prog_cc_static_works=no
5505 save_LDFLAGS="$LDFLAGS"
5506 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5507 cat >conftest.$ac_ext <<_ACEOF 3385 cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h. */ 3386/* confdefs.h. */
5509_ACEOF 3387_ACEOF
5510cat confdefs.h >>conftest.$ac_ext 3388cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF 3389cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h. */ 3390/* end confdefs.h. */
5513
5514int
5515main ()
5516{
5517
5518 ;
5519 return 0;
5520}
5521_ACEOF
5522rm -f conftest.$ac_objext conftest$ac_exeext
5523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524 (eval $ac_link) 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 (eval $ac_try) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest$ac_exeext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 lt_cv_prog_cc_static_works=yes
5544else
5545 echo "$as_me: failed program was:" >&5
5546sed 's/^/| /' conftest.$ac_ext >&5
5547
5548fi
5549rm -f conftest.err conftest.$ac_objext \
5550 conftest$ac_exeext conftest.$ac_ext
5551 LDFLAGS="$save_LDFLAGS"
5552
5553fi
5554
5555
5556# Belt *and* braces to stop my trousers falling down:
5557test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5558echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5559echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5560
5561pic_flag="$lt_cv_prog_cc_pic"
5562special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5563wl="$lt_cv_prog_cc_wl"
5564link_static_flag="$lt_cv_prog_cc_static"
5565no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5566can_build_shared="$lt_cv_prog_cc_can_build_shared"
5567##
5568## END FIXME
5569
5570
5571## FIXME: this should be a separate macro
5572##
5573# Check to see if options -o and -c are simultaneously supported by compiler
5574echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5575echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5576$rm -r conftest 2>/dev/null
5577mkdir conftest
5578cd conftest
5579echo "int some_variable = 0;" > conftest.$ac_ext
5580mkdir out
5581# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5582# that will create temporary files in the current directory regardless of
5583# the output directory. Thus, making CWD read-only will cause this test
5584# to fail, enabling locking or at least warning the user not to do parallel
5585# builds.
5586chmod -w .
5587save_CFLAGS="$CFLAGS"
5588CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5589compiler_c_o=no
5590if { (eval echo configure:5590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5591 # The compiler can only warn and ignore the option if not recognized
5592 # So say no if there are warnings
5593 if test -s out/conftest.err; then
5594 compiler_c_o=no
5595 else
5596 compiler_c_o=yes
5597 fi
5598else
5599 # Append any errors to the config.log.
5600 cat out/conftest.err 1>&5
5601 compiler_c_o=no
5602fi
5603echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5604echo "${ECHO_T}$compiler_c_o" >&6
5605CFLAGS="$save_CFLAGS"
5606chmod u+w .
5607$rm conftest* out/*
5608rmdir out
5609cd ..
5610rmdir conftest
5611$rm -r conftest 2>/dev/null
5612
5613if test x"$compiler_c_o" = x"yes"; then
5614 # Check to see if we can write to a .lo
5615 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5616echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5617 compiler_o_lo=no
5618 save_CFLAGS="$CFLAGS"
5619 CFLAGS="$CFLAGS -c -o conftest.lo"
5620 cat >conftest.$ac_ext <<_ACEOF
5621/* confdefs.h. */
5622_ACEOF
5623cat confdefs.h >>conftest.$ac_ext
5624cat >>conftest.$ac_ext <<_ACEOF
5625/* end confdefs.h. */
5626
5627int
5628main ()
5629{
5630int some_variable = 0;
5631 ;
5632 return 0;
5633}
5634_ACEOF
5635rm -f conftest.$ac_objext
5636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try='test -s conftest.$ac_objext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 (eval $ac_try) 2>&5
5653 ac_status=$?
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5656 # The compiler can only warn and ignore the option if not recognized
5657 # So say no if there are warnings
5658 if test -s conftest.err; then
5659 compiler_o_lo=no
5660 else
5661 compiler_o_lo=yes
5662 fi
5663
5664else
5665 echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668fi
5669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5670 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5671echo "${ECHO_T}$compiler_c_o" >&6
5672 CFLAGS="$save_CFLAGS"
5673else
5674 compiler_o_lo=no
5675fi
5676##
5677## END FIXME
5678
5679## FIXME: this should be a separate macro
5680##
5681# Check to see if we can do hard links to lock some files if needed
5682hard_links="nottested"
5683if test "$compiler_c_o" = no && test "$need_locks" != no; then
5684 # do not overwrite the value of need_locks provided by the user
5685 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5686echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5687 hard_links=yes
5688 $rm conftest*
5689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5690 touch conftest.a
5691 ln conftest.a conftest.b 2>&5 || hard_links=no
5692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5693 echo "$as_me:$LINENO: result: $hard_links" >&5
5694echo "${ECHO_T}$hard_links" >&6
5695 if test "$hard_links" = no; then
5696 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5697echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5698 need_locks=warn
5699 fi
5700else
5701 need_locks=no
5702fi
5703##
5704## END FIXME
5705
5706## FIXME: this should be a separate macro
5707##
5708if test "$GCC" = yes; then
5709 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5710 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5711echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5712 echo "int some_variable = 0;" > conftest.$ac_ext
5713 save_CFLAGS="$CFLAGS"
5714 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5715 compiler_rtti_exceptions=no
5716 cat >conftest.$ac_ext <<_ACEOF
5717/* confdefs.h. */
5718_ACEOF
5719cat confdefs.h >>conftest.$ac_ext
5720cat >>conftest.$ac_ext <<_ACEOF
5721/* end confdefs.h. */
5722
5723int
5724main ()
5725{
5726int some_variable = 0;
5727 ;
5728 return 0;
5729}
5730_ACEOF
5731rm -f conftest.$ac_objext
5732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733 (eval $ac_compile) 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest.$ac_objext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 # The compiler can only warn and ignore the option if not recognized
5753 # So say no if there are warnings
5754 if test -s conftest.err; then
5755 compiler_rtti_exceptions=no
5756 else
5757 compiler_rtti_exceptions=yes
5758 fi
5759
5760else
5761 echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764fi
5765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5766 CFLAGS="$save_CFLAGS"
5767 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5768echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5769
5770 if test "$compiler_rtti_exceptions" = "yes"; then
5771 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5772 else
5773 no_builtin_flag=' -fno-builtin'
5774 fi
5775fi
5776##
5777## END FIXME
5778
5779## FIXME: this should be a separate macro
5780##
5781# See if the linker supports building shared libraries.
5782echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5783echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5784
5785allow_undefined_flag=
5786no_undefined_flag=
5787need_lib_prefix=unknown
5788need_version=unknown
5789# when you set need_version to no, make sure it does not cause -set_version
5790# flags to be left without arguments
5791archive_cmds=
5792archive_expsym_cmds=
5793old_archive_from_new_cmds=
5794old_archive_from_expsyms_cmds=
5795export_dynamic_flag_spec=
5796whole_archive_flag_spec=
5797thread_safe_flag_spec=
5798hardcode_into_libs=no
5799hardcode_libdir_flag_spec=
5800hardcode_libdir_separator=
5801hardcode_direct=no
5802hardcode_minus_L=no
5803hardcode_shlibpath_var=unsupported
5804runpath_var=
5805link_all_deplibs=unknown
5806always_export_symbols=no
5807export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5808# include_expsyms should be a list of space-separated symbols to be *always*
5809# included in the symbol list
5810include_expsyms=
5811# exclude_expsyms can be an egrep regular expression of symbols to exclude
5812# it will be wrapped by ` (' and `)$', so one must not match beginning or
5813# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5814# as well as any symbol that contains `d'.
5815exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5816# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5817# platforms (ab)use it in PIC code, but their linkers get confused if
5818# the symbol is explicitly referenced. Since portable code cannot
5819# rely on this symbol name, it's probably fine to never include it in
5820# preloaded symbol tables.
5821extract_expsyms_cmds=
5822
5823case "$host_os" in
5824cygwin* | mingw* | pw32* )
5825 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5826 # When not using gcc, we currently assume that we are using
5827 # Microsoft Visual C++.
5828 if test "$GCC" != yes; then
5829 with_gnu_ld=no
5830 fi
5831 ;;
5832
5833esac
5834
5835ld_shlibs=yes
5836if test "$with_gnu_ld" = yes; then
5837 # If archive_cmds runs LD, not CC, wlarc should be empty
5838 wlarc='${wl}'
5839
5840 # See if GNU ld supports shared libraries.
5841 case "$host_os" in
5842 aix3* | aix4*)
5843 # On AIX, the GNU linker is very broken
5844 ld_shlibs=no
5845 cat <<EOF 1>&2
5846
5847*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5848*** to be unable to reliably create shared libraries on AIX.
5849*** Therefore, libtool is disabling shared libraries support. If you
5850*** really care for shared libraries, you may want to modify your PATH
5851*** so that a non-GNU linker is found, and then restart.
5852
5853EOF
5854 ;;
5855
5856 amigaos*)
5857 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)'
5858 hardcode_libdir_flag_spec='-L$libdir'
5859 hardcode_minus_L=yes
5860
5861 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5862 # that the semantics of dynamic libraries on AmigaOS, at least up
5863 # to version 4, is to share data among multiple programs linked
5864 # with the same dynamic library. Since this doesn't match the
5865 # behavior of shared libraries on other platforms, we can use
5866 # them.
5867 ld_shlibs=no
5868 ;;
5869
5870 beos*)
5871 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5872 allow_undefined_flag=unsupported
5873 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5874 # support --undefined. This deserves some investigation. FIXME
5875 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5876 else
5877 ld_shlibs=no
5878 fi
5879 ;;
5880
5881 cygwin* | mingw* | pw32*)
5882 # hardcode_libdir_flag_spec is actually meaningless, as there is
5883 # no search path for DLLs.
5884 hardcode_libdir_flag_spec='-L$libdir'
5885 allow_undefined_flag=unsupported
5886 always_export_symbols=yes
5887
5888 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5889 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5890 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5891 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5892 else $CC -o impgen impgen.c ; fi)~
5893 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
5894
5895 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5896
5897 # cygwin and mingw dlls have different entry points and sets of symbols
5898 # to exclude.
5899 # FIXME: what about values for MSVC?
5900 dll_entry=__cygwin_dll_entry@12
5901 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5902 case "$host_os" in
5903 mingw*)
5904 # mingw values
5905 dll_entry=_DllMainCRTStartup@12
5906 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5907 ;;
5908 esac
5909
5910 # mingw and cygwin differ, and it's simplest to just exclude the union
5911 # of the two symbol sets.
5912 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5913
5914 # recent cygwin and mingw systems supply a stub DllMain which the user
5915 # can override, but on older systems we have to supply one (in ltdll.c)
5916 if test "x$lt_cv_need_dllmain" = "xyes"; then
5917 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5918 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~
5919 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5920 else
5921 ltdll_obj=
5922 ltdll_cmds=
5923 fi
5924
5925 # Extract the symbol export list from an `--export-all' def file,
5926 # then regenerate the def file from the symbol export list, so that
5927 # the compiled dll only exports the symbol export list.
5928 # Be careful not to strip the DATA tag left be newer dlltools.
5929 export_symbols_cmds="$ltdll_cmds"'
5930 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5931 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5932
5933 # If DATA tags from a recent dlltool are present, honour them!
5934 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
5935 _lt_hint=1;
5936 cat $export_symbols | while read symbol; do
5937 set dummy \$symbol;
5938 case \$# in
5939 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5940 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5941 esac;
5942 _lt_hint=`expr 1 + \$_lt_hint`;
5943 done~
5944 '"$ltdll_cmds"'
5945 $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~
5946 $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~
5947 $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~
5948 $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~
5949 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5950 ;;
5951
5952 netbsd*)
5953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5954 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5955 wlarc=
5956 else
5957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5958 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5959 fi
5960 ;;
5961
5962 solaris* | sysv5*)
5963 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5964 ld_shlibs=no
5965 cat <<EOF 1>&2
5966
5967*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5968*** create shared libraries on Solaris systems. Therefore, libtool
5969*** is disabling shared libraries support. We urge you to upgrade GNU
5970*** binutils to release 2.9.1 or newer. Another option is to modify
5971*** your PATH or compiler configuration so that the native linker is
5972*** used, and then restart.
5973
5974EOF
5975 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5978 else
5979 ld_shlibs=no
5980 fi
5981 ;;
5982
5983 sunos4*)
5984 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5985 wlarc=
5986 hardcode_direct=yes
5987 hardcode_shlibpath_var=no
5988 ;;
5989
5990 *)
5991 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5994 else
5995 ld_shlibs=no
5996 fi
5997 ;;
5998 esac
5999
6000 if test "$ld_shlibs" = yes; then
6001 runpath_var=LD_RUN_PATH
6002 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6003 export_dynamic_flag_spec='${wl}--export-dynamic'
6004 case $host_os in
6005 cygwin* | mingw* | pw32*)
6006 # dlltool doesn't understand --whole-archive et. al.
6007 whole_archive_flag_spec=
6008 ;;
6009 *)
6010 # ancient GNU ld didn't support --whole-archive et. al.
6011 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6012 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6013 else
6014 whole_archive_flag_spec=
6015 fi
6016 ;;
6017 esac
6018 fi
6019else
6020 # PORTME fill in a description of your system's linker (not GNU ld)
6021 case "$host_os" in
6022 aix3*)
6023 allow_undefined_flag=unsupported
6024 always_export_symbols=yes
6025 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'
6026 # Note: this linker hardcodes the directories in LIBPATH if there
6027 # are no directories specified by -L.
6028 hardcode_minus_L=yes
6029 if test "$GCC" = yes && test -z "$link_static_flag"; then
6030 # Neither direct hardcoding nor static linking is supported with a
6031 # broken collect2.
6032 hardcode_direct=unsupported
6033 fi
6034 ;;
6035
6036 aix4*)
6037 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6038 hardcode_libdir_separator=':'
6039 if test "$GCC" = yes; then
6040 collect2name=`${CC} -print-prog-name=collect2`
6041 if test -f "$collect2name" && \
6042 strings "$collect2name" | grep resolve_lib_name >/dev/null
6043 then
6044 # We have reworked collect2
6045 hardcode_direct=yes
6046 else
6047 # We have old collect2
6048 hardcode_direct=unsupported
6049 # It fails to find uninstalled libraries when the uninstalled
6050 # path is not listed in the libpath. Setting hardcode_minus_L
6051 # to unsupported forces relinking
6052 hardcode_minus_L=yes
6053 hardcode_libdir_flag_spec='-L$libdir'
6054 hardcode_libdir_separator=
6055 fi
6056 shared_flag='-shared'
6057 else
6058 shared_flag='${wl}-bM:SRE'
6059 hardcode_direct=yes
6060 fi
6061 allow_undefined_flag=' ${wl}-berok'
6062 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6063 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6064 case "$host_os" in aix4.[01]|aix4.[01].*)
6065 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6066 always_export_symbols=yes ;;
6067 esac
6068
6069 # We don't want to build shared libraries on unknown CPU types.
6070 case $host_cpu in
6071 powerpc | rs6000) ;;
6072 *) ld_shlibs=no ;;
6073 esac
6074 ;;
6075
6076 amigaos*)
6077 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)'
6078 hardcode_libdir_flag_spec='-L$libdir'
6079 hardcode_minus_L=yes
6080 # see comment about different semantics on the GNU ld section
6081 ld_shlibs=no
6082 ;;
6083
6084 cygwin* | mingw* | pw32*)
6085 # When not using gcc, we currently assume that we are using
6086 # Microsoft Visual C++.
6087 # hardcode_libdir_flag_spec is actually meaningless, as there is
6088 # no search path for DLLs.
6089 hardcode_libdir_flag_spec=' '
6090 allow_undefined_flag=unsupported
6091 # Tell ltmain to make .lib files, not .a files.
6092 libext=lib
6093 # FIXME: Setting linknames here is a bad hack.
6094 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6095 # The linker will automatically build a .lib file if we build a DLL.
6096 old_archive_from_new_cmds='true'
6097 # FIXME: Should let the user specify the lib program.
6098 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6099 fix_srcfile_path='`cygpath -w "$srcfile"`'
6100 ;;
6101
6102 darwin* | rhapsody*)
6103 allow_undefined_flag='-undefined warning'
6104 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6105 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6106 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6107 ## What we need is to hardcode the path to the library, not the search path
6108 #hardcode_direct=yes
6109 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6110 hardcode_shlibpath_var=no
6111 whole_archive_flag_spec='-all_load'
6112 ;;
6113
6114 freebsd1*)
6115 ld_shlibs=no
6116 ;;
6117
6118 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6119 # support. Future versions do this automatically, but an explicit c++rt0.o
6120 # does not break anything, and helps significantly (at the cost of a little
6121 # extra space).
6122 freebsd2.2*)
6123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6124 hardcode_libdir_flag_spec='-R$libdir'
6125 hardcode_direct=yes
6126 hardcode_shlibpath_var=no
6127 ;;
6128
6129 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6130 freebsd2*)
6131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6132 hardcode_direct=yes
6133 hardcode_minus_L=yes
6134 hardcode_shlibpath_var=no
6135 ;;
6136
6137 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6138 freebsd*)
6139 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6140 hardcode_libdir_flag_spec='-R$libdir'
6141 hardcode_direct=yes
6142 hardcode_shlibpath_var=no
6143 ;;
6144
6145 hpux9* | hpux10* | hpux11*)
6146 case "$host_os" in
6147 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' ;;
6148 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6149 esac
6150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6151 hardcode_libdir_separator=:
6152 hardcode_direct=yes
6153 hardcode_minus_L=yes # Not in the search PATH, but as the default
6154 # location of the library.
6155 export_dynamic_flag_spec='${wl}-E'
6156 ;;
6157
6158 irix5* | irix6*)
6159 if test "$GCC" = yes; then
6160 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'
6161 else
6162 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'
6163 fi
6164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6165 hardcode_libdir_separator=:
6166 link_all_deplibs=yes
6167 ;;
6168
6169 netbsd*)
6170 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6172 else
6173 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6174 fi
6175 hardcode_libdir_flag_spec='-R$libdir'
6176 hardcode_direct=yes
6177 hardcode_shlibpath_var=no
6178 ;;
6179
6180 newsos6)
6181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6182 hardcode_direct=yes
6183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6184 hardcode_libdir_separator=:
6185 hardcode_shlibpath_var=no
6186 ;;
6187
6188 openbsd*)
6189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6190 hardcode_libdir_flag_spec='-R$libdir'
6191 hardcode_direct=yes
6192 hardcode_shlibpath_var=no
6193 ;;
6194
6195 os2*)
6196 hardcode_libdir_flag_spec='-L$libdir'
6197 hardcode_minus_L=yes
6198 allow_undefined_flag=unsupported
6199 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'
6200 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6201 ;;
6202
6203 osf3*)
6204 if test "$GCC" = yes; then
6205 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6206 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'
6207 else
6208 allow_undefined_flag=' -expect_unresolved \*'
6209 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'
6210 fi
6211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6212 hardcode_libdir_separator=:
6213 ;;
6214
6215 osf4* | osf5*) # as osf3* with the addition of -msym flag
6216 if test "$GCC" = yes; then
6217 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6218 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'
6219 else
6220 allow_undefined_flag=' -expect_unresolved \*'
6221 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'
6222 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6223 $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'
6224 fi
6225#Both c and cxx compiler support -rpath directly
6226 hardcode_libdir_flag_spec='-rpath $libdir'
6227 hardcode_libdir_separator=:
6228 ;;
6229
6230 sco3.2v5*)
6231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6232 hardcode_shlibpath_var=no
6233 runpath_var=LD_RUN_PATH
6234 hardcode_runpath_var=yes
6235 ;;
6236
6237 solaris*)
6238 no_undefined_flag=' -z text'
6239 # $CC -shared without GNU ld will not create a library from C++
6240 # object files and a static libstdc++, better avoid it by now
6241 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6242 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6243 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6244 hardcode_libdir_flag_spec='-R$libdir'
6245 hardcode_shlibpath_var=no
6246 case "$host_os" in
6247 solaris2.[0-5] | solaris2.[0-5].*) ;;
6248 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6249 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6250 esac
6251 link_all_deplibs=yes
6252 ;;
6253
6254 sunos4*)
6255 if test "x$host_vendor" = xsequent; then
6256 # Use $CC to link under sequent, because it throws in some extra .o
6257 # files that make .init and .fini sections work.
6258 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6259 else
6260 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6261 fi
6262 hardcode_libdir_flag_spec='-L$libdir'
6263 hardcode_direct=yes
6264 hardcode_minus_L=yes
6265 hardcode_shlibpath_var=no
6266 ;;
6267
6268 sysv4)
6269 if test "x$host_vendor" = xsno; then
6270 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6271 hardcode_direct=yes # is this really true???
6272 else
6273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6274 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6275 fi
6276 runpath_var='LD_RUN_PATH'
6277 hardcode_shlibpath_var=no
6278 ;;
6279
6280 sysv4.3*)
6281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6282 hardcode_shlibpath_var=no
6283 export_dynamic_flag_spec='-Bexport'
6284 ;;
6285
6286 sysv5*)
6287 no_undefined_flag=' -z text'
6288 # $CC -shared without GNU ld will not create a library from C++
6289 # object files and a static libstdc++, better avoid it by now
6290 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6291 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6293 hardcode_libdir_flag_spec=
6294 hardcode_shlibpath_var=no
6295 runpath_var='LD_RUN_PATH'
6296 ;;
6297
6298 uts4*)
6299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6300 hardcode_libdir_flag_spec='-L$libdir'
6301 hardcode_shlibpath_var=no
6302 ;;
6303
6304 dgux*)
6305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6306 hardcode_libdir_flag_spec='-L$libdir'
6307 hardcode_shlibpath_var=no
6308 ;;
6309
6310 sysv4*MP*)
6311 if test -d /usr/nec; then
6312 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6313 hardcode_shlibpath_var=no
6314 runpath_var=LD_RUN_PATH
6315 hardcode_runpath_var=yes
6316 ld_shlibs=yes
6317 fi
6318 ;;
6319
6320 sysv4.2uw2*)
6321 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6322 hardcode_direct=yes
6323 hardcode_minus_L=no
6324 hardcode_shlibpath_var=no
6325 hardcode_runpath_var=yes
6326 runpath_var=LD_RUN_PATH
6327 ;;
6328
6329 unixware7*)
6330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6331 runpath_var='LD_RUN_PATH'
6332 hardcode_shlibpath_var=no
6333 ;;
6334
6335 *)
6336 ld_shlibs=no
6337 ;;
6338 esac
6339fi
6340echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6341echo "${ECHO_T}$ld_shlibs" >&6
6342test "$ld_shlibs" = no && can_build_shared=no
6343##
6344## END FIXME
6345
6346## FIXME: this should be a separate macro
6347##
6348# Check hardcoding attributes.
6349echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6350echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6351hardcode_action=
6352if test -n "$hardcode_libdir_flag_spec" || \
6353 test -n "$runpath_var"; then
6354
6355 # We can hardcode non-existant directories.
6356 if test "$hardcode_direct" != no &&
6357 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6358 # have to relink, otherwise we might link with an installed library
6359 # when we should be linking with a yet-to-be-installed one
6360 ## test "$hardcode_shlibpath_var" != no &&
6361 test "$hardcode_minus_L" != no; then
6362 # Linking always hardcodes the temporary library directory.
6363 hardcode_action=relink
6364 else
6365 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6366 hardcode_action=immediate
6367 fi
6368else
6369 # We cannot hardcode anything, or else we can only hardcode existing
6370 # directories.
6371 hardcode_action=unsupported
6372fi
6373echo "$as_me:$LINENO: result: $hardcode_action" >&5
6374echo "${ECHO_T}$hardcode_action" >&6
6375##
6376## END FIXME
6377
6378## FIXME: this should be a separate macro
6379##
6380striplib=
6381old_striplib=
6382echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6383echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6384if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6385 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6386 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6387 echo "$as_me:$LINENO: result: yes" >&5
6388echo "${ECHO_T}yes" >&6
6389else
6390 echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6
6392fi
6393##
6394## END FIXME
6395
6396reload_cmds='$LD$reload_flag -o $output$reload_objs'
6397test -z "$deplibs_check_method" && deplibs_check_method=unknown
6398
6399## FIXME: this should be a separate macro
6400##
6401# PORTME Fill in your ld.so characteristics
6402echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6403echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6404library_names_spec=
6405libname_spec='lib$name'
6406soname_spec=
6407postinstall_cmds=
6408postuninstall_cmds=
6409finish_cmds=
6410finish_eval=
6411shlibpath_var=
6412shlibpath_overrides_runpath=unknown
6413version_type=none
6414dynamic_linker="$host_os ld.so"
6415sys_lib_dlsearch_path_spec="/lib /usr/lib"
6416sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6417
6418case "$host_os" in
6419aix3*)
6420 version_type=linux
6421 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6422 shlibpath_var=LIBPATH
6423
6424 # AIX has no versioning support, so we append a major version to the name.
6425 soname_spec='${libname}${release}.so$major'
6426 ;;
6427
6428aix4*)
6429 version_type=linux
6430 # AIX has no versioning support, so currently we can not hardcode correct
6431 # soname into executable. Probably we can add versioning support to
6432 # collect2, so additional links can be useful in future.
6433 # We preserve .a as extension for shared libraries though AIX4.2
6434 # and later linker supports .so
6435 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6436 shlibpath_var=LIBPATH
6437 ;;
6438
6439amigaos*)
6440 library_names_spec='$libname.ixlibrary $libname.a'
6441 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6442 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'
6443 ;;
6444
6445beos*)
6446 library_names_spec='${libname}.so'
6447 dynamic_linker="$host_os ld.so"
6448 shlibpath_var=LIBRARY_PATH
6449 ;;
6450
6451bsdi4*)
6452 version_type=linux
6453 need_version=no
6454 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6455 soname_spec='${libname}${release}.so$major'
6456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6457 shlibpath_var=LD_LIBRARY_PATH
6458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6460 export_dynamic_flag_spec=-rdynamic
6461 # the default ld.so.conf also contains /usr/contrib/lib and
6462 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6463 # libtool to hard-code these into programs
6464 ;;
6465
6466cygwin* | mingw* | pw32*)
6467 version_type=windows
6468 need_version=no
6469 need_lib_prefix=no
6470 if test "$GCC" = yes; then
6471 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6472 else
6473 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6474 fi
6475 dynamic_linker='Win32 ld.exe'
6476 # FIXME: first we should search . and the directory the executable is in
6477 shlibpath_var=PATH
6478 ;;
6479
6480darwin* | rhapsody*)
6481 need_lib_prefix=no
6482 need_version=no
6483 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6484 shlibpath_overrides_runpath=yes
6485 shlibpath_var=DYLD_LIBRARY_PATH
6486 postinstall_cmds='chmod +x $lib'
6487 ;;
6488
6489freebsd1*)
6490 dynamic_linker=no
6491 ;;
6492
6493freebsd*)
6494 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6495 version_type=freebsd-$objformat
6496 case "$version_type" in
6497 freebsd-elf*)
6498 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6499 need_version=no
6500 need_lib_prefix=no
6501 ;;
6502 freebsd-*)
6503 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6504 need_version=yes
6505 ;;
6506 esac
6507 shlibpath_var=LD_LIBRARY_PATH
6508 case "$host_os" in
6509 freebsd2*)
6510 shlibpath_overrides_runpath=yes
6511 ;;
6512 *)
6513 shlibpath_overrides_runpath=no
6514 hardcode_into_libs=yes
6515 ;;
6516 esac
6517 ;;
6518
6519gnu*)
6520 version_type=linux
6521 need_lib_prefix=no
6522 need_version=no
6523 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6524 soname_spec='${libname}${release}.so$major'
6525 shlibpath_var=LD_LIBRARY_PATH
6526 hardcode_into_libs=yes
6527 ;;
6528
6529hpux9* | hpux10* | hpux11*)
6530 # Give a soname corresponding to the major version so that dld.sl refuses to
6531 # link against other versions.
6532 dynamic_linker="$host_os dld.sl"
6533 version_type=sunos
6534 need_lib_prefix=no
6535 need_version=no
6536 shlibpath_var=SHLIB_PATH
6537 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6538 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6539 soname_spec='${libname}${release}.sl$major'
6540 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6541 postinstall_cmds='chmod 555 $lib'
6542 ;;
6543
6544irix5* | irix6*)
6545 version_type=irix
6546 need_lib_prefix=no
6547 need_version=no
6548 soname_spec='${libname}${release}.so$major'
6549 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6550 case "$host_os" in
6551 irix5*)
6552 libsuff= shlibsuff=
6553 ;;
6554 *)
6555 case "$LD" in # libtool.m4 will add one of these switches to LD
6556 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6557 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6558 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6559 *) libsuff= shlibsuff= libmagic=never-match;;
6560 esac
6561 ;;
6562 esac
6563 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6564 shlibpath_overrides_runpath=no
6565 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6566 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6567 ;;
6568
6569# No shared lib support for Linux oldld, aout, or coff.
6570linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6571 dynamic_linker=no
6572 ;;
6573
6574# This must be Linux ELF.
6575linux-gnu*)
6576 version_type=linux
6577 need_lib_prefix=no
6578 need_version=no
6579 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6580 soname_spec='${libname}${release}.so$major'
6581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6582 shlibpath_var=LD_LIBRARY_PATH
6583 shlibpath_overrides_runpath=no
6584 # This implies no fast_install, which is unacceptable.
6585 # Some rework will be needed to allow for fast_install
6586 # before this can be enabled.
6587 hardcode_into_libs=yes
6588
6589 # We used to test for /lib/ld.so.1 and disable shared libraries on
6590 # powerpc, because MkLinux only supported shared libraries with the
6591 # GNU dynamic linker. Since this was broken with cross compilers,
6592 # most powerpc-linux boxes support dynamic linking these days and
6593 # people can always --disable-shared, the test was removed, and we
6594 # assume the GNU/Linux dynamic linker is in use.
6595 dynamic_linker='GNU/Linux ld.so'
6596 ;;
6597
6598netbsd*)
6599 version_type=sunos
6600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6601 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6603 dynamic_linker='NetBSD (a.out) ld.so'
6604 else
6605 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6606 soname_spec='${libname}${release}.so$major'
6607 dynamic_linker='NetBSD ld.elf_so'
6608 fi
6609 shlibpath_var=LD_LIBRARY_PATH
6610 shlibpath_overrides_runpath=yes
6611 hardcode_into_libs=yes
6612 ;;
6613
6614newsos6)
6615 version_type=linux
6616 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6617 shlibpath_var=LD_LIBRARY_PATH
6618 shlibpath_overrides_runpath=yes
6619 ;;
6620
6621openbsd*)
6622 version_type=sunos
6623 if test "$with_gnu_ld" = yes; then
6624 need_lib_prefix=no
6625 need_version=no
6626 fi
6627 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6629 shlibpath_var=LD_LIBRARY_PATH
6630 ;;
6631
6632os2*)
6633 libname_spec='$name'
6634 need_lib_prefix=no
6635 library_names_spec='$libname.dll $libname.a'
6636 dynamic_linker='OS/2 ld.exe'
6637 shlibpath_var=LIBPATH
6638 ;;
6639
6640osf3* | osf4* | osf5*)
6641 version_type=osf
6642 need_version=no
6643 soname_spec='${libname}${release}.so'
6644 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6645 shlibpath_var=LD_LIBRARY_PATH
6646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6648 ;;
6649
6650sco3.2v5*)
6651 version_type=osf
6652 soname_spec='${libname}${release}.so$major'
6653 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6654 shlibpath_var=LD_LIBRARY_PATH
6655 ;;
6656
6657solaris*)
6658 version_type=linux
6659 need_lib_prefix=no
6660 need_version=no
6661 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6662 soname_spec='${libname}${release}.so$major'
6663 shlibpath_var=LD_LIBRARY_PATH
6664 shlibpath_overrides_runpath=yes
6665 hardcode_into_libs=yes
6666 # ldd complains unless libraries are executable
6667 postinstall_cmds='chmod +x $lib'
6668 ;;
6669
6670sunos4*)
6671 version_type=sunos
6672 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6674 shlibpath_var=LD_LIBRARY_PATH
6675 shlibpath_overrides_runpath=yes
6676 if test "$with_gnu_ld" = yes; then
6677 need_lib_prefix=no
6678 fi
6679 need_version=yes
6680 ;;
6681
6682sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6683 version_type=linux
6684 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6685 soname_spec='${libname}${release}.so$major'
6686 shlibpath_var=LD_LIBRARY_PATH
6687 case "$host_vendor" in
6688 sni)
6689 shlibpath_overrides_runpath=no
6690 ;;
6691 motorola)
6692 need_lib_prefix=no
6693 need_version=no
6694 shlibpath_overrides_runpath=no
6695 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6696 ;;
6697 esac
6698 ;;
6699
6700uts4*)
6701 version_type=linux
6702 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6703 soname_spec='${libname}${release}.so$major'
6704 shlibpath_var=LD_LIBRARY_PATH
6705 ;;
6706
6707dgux*)
6708 version_type=linux
6709 need_lib_prefix=no
6710 need_version=no
6711 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6712 soname_spec='${libname}${release}.so$major'
6713 shlibpath_var=LD_LIBRARY_PATH
6714 ;;
6715
6716sysv4*MP*)
6717 if test -d /usr/nec ;then
6718 version_type=linux
6719 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6720 soname_spec='$libname.so.$major'
6721 shlibpath_var=LD_LIBRARY_PATH
6722 fi
6723 ;;
6724
6725*)
6726 dynamic_linker=no
6727 ;;
6728esac
6729echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6730echo "${ECHO_T}$dynamic_linker" >&6
6731test "$dynamic_linker" = no && can_build_shared=no
6732##
6733## END FIXME
6734
6735## FIXME: this should be a separate macro
6736##
6737# Report the final consequences.
6738echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6739echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6740echo "$as_me:$LINENO: result: $can_build_shared" >&5
6741echo "${ECHO_T}$can_build_shared" >&6
6742##
6743## END FIXME
6744
6745if test "$hardcode_action" = relink; then
6746 # Fast installation is not supported
6747 enable_fast_install=no
6748elif test "$shlibpath_overrides_runpath" = yes ||
6749 test "$enable_shared" = no; then
6750 # Fast installation is not necessary
6751 enable_fast_install=needless
6752fi
6753
6754variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6755if test "$GCC" = yes; then
6756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6757fi
6758
6759if test "x$enable_dlopen" != xyes; then
6760 enable_dlopen=unknown
6761 enable_dlopen_self=unknown
6762 enable_dlopen_self_static=unknown
6763else
6764 lt_cv_dlopen=no
6765 lt_cv_dlopen_libs=
6766
6767 case "$host_os" in
6768 beos*)
6769 lt_cv_dlopen="load_add_on"
6770 lt_cv_dlopen_libs=
6771 lt_cv_dlopen_self=yes
6772 ;;
6773
6774 cygwin* | mingw* | pw32*)
6775 lt_cv_dlopen="LoadLibrary"
6776 lt_cv_dlopen_libs=
6777 ;;
6778
6779 *)
6780 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6781echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6782if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785 ac_check_lib_save_LIBS=$LIBS
6786LIBS="-ldl $LIBS"
6787cat >conftest.$ac_ext <<_ACEOF
6788/* confdefs.h. */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h. */
6793
6794/* Override any gcc2 internal prototype to avoid an error. */
6795#ifdef __cplusplus
6796extern "C"
6797#endif
6798/* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6800char dlopen ();
6801int
6802main ()
6803{
6804dlopen ();
6805 ;
6806 return 0;
6807}
6808_ACEOF
6809rm -f conftest.$ac_objext conftest$ac_exeext
6810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6811 (eval $ac_link) 2>conftest.er1
6812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; } &&
6824 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6830 ac_cv_lib_dl_dlopen=yes
6831else
6832 echo "$as_me: failed program was:" >&5
6833sed 's/^/| /' conftest.$ac_ext >&5
6834
6835ac_cv_lib_dl_dlopen=no
6836fi
6837rm -f conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
6839LIBS=$ac_check_lib_save_LIBS
6840fi
6841echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6842echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6843if test $ac_cv_lib_dl_dlopen = yes; then
6844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6845else
6846 echo "$as_me:$LINENO: checking for dlopen" >&5
6847echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6848if test "${ac_cv_func_dlopen+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851 cat >conftest.$ac_ext <<_ACEOF
6852/* confdefs.h. */
6853_ACEOF
6854cat confdefs.h >>conftest.$ac_ext
6855cat >>conftest.$ac_ext <<_ACEOF
6856/* end confdefs.h. */
6857/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 3391/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
6858 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6859#define dlopen innocuous_dlopen 3393#define setlocale innocuous_setlocale
6860 3394
6861/* System header to define __stub macros and hopefully few prototypes, 3395/* System header to define __stub macros and hopefully few prototypes,
6862 which can conflict with char dlopen (); below. 3396 which can conflict with char setlocale (); below.
6863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6864 <limits.h> exists even on freestanding compilers. */ 3398 <limits.h> exists even on freestanding compilers. */
6865 3399
6866#ifdef __STDC__ 3400#ifdef __STDC__
6867# include <limits.h> 3401# include <limits.h>
6868#else 3402#else
6869# include <assert.h> 3403# include <assert.h>
6870#endif 3404#endif
6871 3405
6872#undef dlopen 3406#undef setlocale
6873 3407
6874/* Override any gcc2 internal prototype to avoid an error. */ 3408/* Override any gcc2 internal prototype to avoid an error. */
6875#ifdef __cplusplus 3409#ifdef __cplusplus
6876extern "C" 3410extern "C"
6877{ 3411{
6878#endif 3412#endif
6879/* We use char because int might match the return type of a gcc2 3413/* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */ 3414 builtin and then its argument prototype would still apply. */
6881char dlopen (); 3415char setlocale ();
6882/* The GNU C library defines this for functions which it implements 3416/* The GNU C library defines this for functions which it implements
6883 to always fail with ENOSYS. Some functions are actually named 3417 to always fail with ENOSYS. Some functions are actually named
6884 something starting with __ and the normal name is an alias. */ 3418 something starting with __ and the normal name is an alias. */
6885#if defined (__stub_dlopen) || defined (__stub___dlopen) 3419#if defined (__stub_setlocale) || defined (__stub___setlocale)
6886choke me 3420choke me
6887#else 3421#else
6888char (*f) () = dlopen; 3422char (*f) () = setlocale;
6889#endif 3423#endif
6890#ifdef __cplusplus 3424#ifdef __cplusplus
6891} 3425}
6892#endif 3426#endif
6893 3427
6894int 3428int
6895main () 3429main ()
6896{ 3430{
6897return f != dlopen; 3431return f != setlocale;
6898 ; 3432 ;
6899 return 0; 3433 return 0;
6900} 3434}
6901_ACEOF 3435_ACEOF
6902rm -f conftest.$ac_objext conftest$ac_exeext 3436rm -f conftest.$ac_objext conftest$ac_exeext
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5 3453 (eval $ac_try) 2>&5
6920 ac_status=$? 3454 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then 3456 (exit $ac_status); }; }; then
6923 ac_cv_func_dlopen=yes 3457 ac_cv_func_setlocale=yes
6924else 3458else
6925 echo "$as_me: failed program was:" >&5 3459 echo "$as_me: failed program was:" >&5
6926sed 's/^/| /' conftest.$ac_ext >&5 3460sed 's/^/| /' conftest.$ac_ext >&5
6927 3461
6928ac_cv_func_dlopen=no 3462ac_cv_func_setlocale=no
6929fi 3463fi
6930rm -f conftest.err conftest.$ac_objext \ 3464rm -f conftest.err conftest.$ac_objext \
6931 conftest$ac_exeext conftest.$ac_ext 3465 conftest$ac_exeext conftest.$ac_ext
6932fi 3466fi
6933echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 3467echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
6934echo "${ECHO_T}$ac_cv_func_dlopen" >&6 3468echo "${ECHO_T}$ac_cv_func_setlocale" >&6
6935if test $ac_cv_func_dlopen = yes; then 3469if test $ac_cv_func_setlocale = yes; then
6936 lt_cv_dlopen="dlopen" 3470 :
6937else 3471else
6938 echo "$as_me:$LINENO: checking for shl_load" >&5 3472 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
6939echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 3473echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
6940if test "${ac_cv_func_shl_load+set}" = set; then 3474if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6 3475 echo $ECHO_N "(cached) $ECHO_C" >&6
6942else 3476else
3477 ac_check_lib_save_LIBS=$LIBS
3478LIBS="-lxpg4 $LIBS"
6943 cat >conftest.$ac_ext <<_ACEOF 3479cat >conftest.$ac_ext <<_ACEOF
6944/* confdefs.h. */ 3480/* confdefs.h. */
6945_ACEOF 3481_ACEOF
6946cat confdefs.h >>conftest.$ac_ext 3482cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF 3483cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h. */ 3484/* end confdefs.h. */
3485
3486/* Override any gcc2 internal prototype to avoid an error. */
3487#ifdef __cplusplus
3488extern "C"
3489#endif
3490/* We use char because int might match the return type of a gcc2
3491 builtin and then its argument prototype would still apply. */
3492char setlocale ();
3493int
3494main ()
3495{
3496setlocale ();
3497 ;
3498 return 0;
3499}
3500_ACEOF
3501rm -f conftest.$ac_objext conftest$ac_exeext
3502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3503 (eval $ac_link) 2>conftest.er1
3504 ac_status=$?
3505 grep -v '^ *+' conftest.er1 >conftest.err
3506 rm -f conftest.er1
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3516 { ac_try='test -s conftest$ac_exeext'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 ac_cv_lib_xpg4_setlocale=yes
3523else
3524 echo "$as_me: failed program was:" >&5
3525sed 's/^/| /' conftest.$ac_ext >&5
3526
3527ac_cv_lib_xpg4_setlocale=no
3528fi
3529rm -f conftest.err conftest.$ac_objext \
3530 conftest$ac_exeext conftest.$ac_ext
3531LIBS=$ac_check_lib_save_LIBS
3532fi
3533echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3534echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3535if test $ac_cv_lib_xpg4_setlocale = yes; then
3536 LIBS="$LIBS -lxpg4"
3537fi
3538
3539fi
3540
3541
3542echo "$as_me:$LINENO: checking for gethostbyname" >&5
3543echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3544if test "${ac_cv_func_gethostbyname+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546else
3547 cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h. */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
3552/* end confdefs.h. */
6949/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 3553/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6950 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6951#define shl_load innocuous_shl_load 3555#define gethostbyname innocuous_gethostbyname
6952 3556
6953/* System header to define __stub macros and hopefully few prototypes, 3557/* System header to define __stub macros and hopefully few prototypes,
6954 which can conflict with char shl_load (); below. 3558 which can conflict with char gethostbyname (); below.
6955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6956 <limits.h> exists even on freestanding compilers. */ 3560 <limits.h> exists even on freestanding compilers. */
6957 3561
6958#ifdef __STDC__ 3562#ifdef __STDC__
6959# include <limits.h> 3563# include <limits.h>
6960#else 3564#else
6961# include <assert.h> 3565# include <assert.h>
6962#endif 3566#endif
6963 3567
6964#undef shl_load 3568#undef gethostbyname
6965 3569
6966/* Override any gcc2 internal prototype to avoid an error. */ 3570/* Override any gcc2 internal prototype to avoid an error. */
6967#ifdef __cplusplus 3571#ifdef __cplusplus
6968extern "C" 3572extern "C"
6969{ 3573{
6970#endif 3574#endif
6971/* We use char because int might match the return type of a gcc2 3575/* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */ 3576 builtin and then its argument prototype would still apply. */
6973char shl_load (); 3577char gethostbyname ();
6974/* The GNU C library defines this for functions which it implements 3578/* The GNU C library defines this for functions which it implements
6975 to always fail with ENOSYS. Some functions are actually named 3579 to always fail with ENOSYS. Some functions are actually named
6976 something starting with __ and the normal name is an alias. */ 3580 something starting with __ and the normal name is an alias. */
6977#if defined (__stub_shl_load) || defined (__stub___shl_load) 3581#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6978choke me 3582choke me
6979#else 3583#else
6980char (*f) () = shl_load; 3584char (*f) () = gethostbyname;
6981#endif 3585#endif
6982#ifdef __cplusplus 3586#ifdef __cplusplus
6983} 3587}
6984#endif 3588#endif
6985 3589
6986int 3590int
6987main () 3591main ()
6988{ 3592{
6989return f != shl_load; 3593return f != gethostbyname;
6990 ; 3594 ;
6991 return 0; 3595 return 0;
6992} 3596}
6993_ACEOF 3597_ACEOF
6994rm -f conftest.$ac_objext conftest$ac_exeext 3598rm -f conftest.$ac_objext conftest$ac_exeext
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5 3615 (eval $ac_try) 2>&5
7012 ac_status=$? 3616 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then 3618 (exit $ac_status); }; }; then
7015 ac_cv_func_shl_load=yes 3619 ac_cv_func_gethostbyname=yes
7016else 3620else
7017 echo "$as_me: failed program was:" >&5 3621 echo "$as_me: failed program was:" >&5
7018sed 's/^/| /' conftest.$ac_ext >&5 3622sed 's/^/| /' conftest.$ac_ext >&5
7019 3623
7020ac_cv_func_shl_load=no 3624ac_cv_func_gethostbyname=no
7021fi 3625fi
7022rm -f conftest.err conftest.$ac_objext \ 3626rm -f conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext 3627 conftest$ac_exeext conftest.$ac_ext
7024fi 3628fi
7025echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 3629echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7026echo "${ECHO_T}$ac_cv_func_shl_load" >&6 3630echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7027if test $ac_cv_func_shl_load = yes; then 3631if test $ac_cv_func_gethostbyname = yes; then
7028 lt_cv_dlopen="shl_load" 3632 :
7029else 3633else
7030 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 3634 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7031echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 3635echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7032if test "${ac_cv_lib_svld_dlopen+set}" = set; then 3636if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6 3637 echo $ECHO_N "(cached) $ECHO_C" >&6
7034else 3638else
7035 ac_check_lib_save_LIBS=$LIBS 3639 ac_check_lib_save_LIBS=$LIBS
7036LIBS="-lsvld $LIBS" 3640LIBS="-lnsl $LIBS"
7037cat >conftest.$ac_ext <<_ACEOF 3641cat >conftest.$ac_ext <<_ACEOF
7038/* confdefs.h. */ 3642/* confdefs.h. */
7039_ACEOF 3643_ACEOF
7040cat confdefs.h >>conftest.$ac_ext 3644cat confdefs.h >>conftest.$ac_ext
7041cat >>conftest.$ac_ext <<_ACEOF 3645cat >>conftest.$ac_ext <<_ACEOF
7045#ifdef __cplusplus 3649#ifdef __cplusplus
7046extern "C" 3650extern "C"
7047#endif 3651#endif
7048/* We use char because int might match the return type of a gcc2 3652/* We use char because int might match the return type of a gcc2
7049 builtin and then its argument prototype would still apply. */ 3653 builtin and then its argument prototype would still apply. */
7050char dlopen (); 3654char gethostbyname ();
7051int 3655int
7052main () 3656main ()
7053{ 3657{
7054dlopen (); 3658gethostbyname ();
7055 ; 3659 ;
7056 return 0; 3660 return 0;
7057} 3661}
7058_ACEOF 3662_ACEOF
7059rm -f conftest.$ac_objext conftest$ac_exeext 3663rm -f conftest.$ac_objext conftest$ac_exeext
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5 3680 (eval $ac_try) 2>&5
7077 ac_status=$? 3681 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; }; then 3683 (exit $ac_status); }; }; then
7080 ac_cv_lib_svld_dlopen=yes 3684 ac_cv_lib_nsl_gethostbyname=yes
7081else 3685else
7082 echo "$as_me: failed program was:" >&5 3686 echo "$as_me: failed program was:" >&5
7083sed 's/^/| /' conftest.$ac_ext >&5 3687sed 's/^/| /' conftest.$ac_ext >&5
7084 3688
7085ac_cv_lib_svld_dlopen=no 3689ac_cv_lib_nsl_gethostbyname=no
7086fi 3690fi
7087rm -f conftest.err conftest.$ac_objext \ 3691rm -f conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext 3692 conftest$ac_exeext conftest.$ac_ext
7089LIBS=$ac_check_lib_save_LIBS 3693LIBS=$ac_check_lib_save_LIBS
7090fi 3694fi
7091echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 3695echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7092echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 3696echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7093if test $ac_cv_lib_svld_dlopen = yes; then 3697if test $ac_cv_lib_nsl_gethostbyname = yes; then
7094 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 3698 LIBS="$LIBS -lnsl"
7095else 3699fi
3700
3701fi
3702
7096 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 3703echo "$as_me:$LINENO: checking for socket" >&5
7097echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 3704echo $ECHO_N "checking for socket... $ECHO_C" >&6
7098if test "${ac_cv_lib_dld_shl_load+set}" = set; then 3705if test "${ac_cv_func_socket+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6 3706 echo $ECHO_N "(cached) $ECHO_C" >&6
7100else 3707else
3708 cat >conftest.$ac_ext <<_ACEOF
3709/* confdefs.h. */
3710_ACEOF
3711cat confdefs.h >>conftest.$ac_ext
3712cat >>conftest.$ac_ext <<_ACEOF
3713/* end confdefs.h. */
3714/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3716#define socket innocuous_socket
3717
3718/* System header to define __stub macros and hopefully few prototypes,
3719 which can conflict with char socket (); below.
3720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3721 <limits.h> exists even on freestanding compilers. */
3722
3723#ifdef __STDC__
3724# include <limits.h>
3725#else
3726# include <assert.h>
3727#endif
3728
3729#undef socket
3730
3731/* Override any gcc2 internal prototype to avoid an error. */
3732#ifdef __cplusplus
3733extern "C"
3734{
3735#endif
3736/* We use char because int might match the return type of a gcc2
3737 builtin and then its argument prototype would still apply. */
3738char socket ();
3739/* The GNU C library defines this for functions which it implements
3740 to always fail with ENOSYS. Some functions are actually named
3741 something starting with __ and the normal name is an alias. */
3742#if defined (__stub_socket) || defined (__stub___socket)
3743choke me
3744#else
3745char (*f) () = socket;
3746#endif
3747#ifdef __cplusplus
3748}
3749#endif
3750
3751int
3752main ()
3753{
3754return f != socket;
3755 ;
3756 return 0;
3757}
3758_ACEOF
3759rm -f conftest.$ac_objext conftest$ac_exeext
3760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761 (eval $ac_link) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3774 { ac_try='test -s conftest$ac_exeext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 ac_cv_func_socket=yes
3781else
3782 echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
3784
3785ac_cv_func_socket=no
3786fi
3787rm -f conftest.err conftest.$ac_objext \
3788 conftest$ac_exeext conftest.$ac_ext
3789fi
3790echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3791echo "${ECHO_T}$ac_cv_func_socket" >&6
3792if test $ac_cv_func_socket = yes; then
3793 :
3794else
3795 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3796echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3797if test "${ac_cv_lib_socket_socket+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799else
7101 ac_check_lib_save_LIBS=$LIBS 3800 ac_check_lib_save_LIBS=$LIBS
7102LIBS="-ldld $LIBS" 3801LIBS="-lsocket $LIBS"
7103cat >conftest.$ac_ext <<_ACEOF 3802cat >conftest.$ac_ext <<_ACEOF
7104/* confdefs.h. */ 3803/* confdefs.h. */
7105_ACEOF 3804_ACEOF
7106cat confdefs.h >>conftest.$ac_ext 3805cat confdefs.h >>conftest.$ac_ext
7107cat >>conftest.$ac_ext <<_ACEOF 3806cat >>conftest.$ac_ext <<_ACEOF
7111#ifdef __cplusplus 3810#ifdef __cplusplus
7112extern "C" 3811extern "C"
7113#endif 3812#endif
7114/* We use char because int might match the return type of a gcc2 3813/* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */ 3814 builtin and then its argument prototype would still apply. */
7116char shl_load (); 3815char socket ();
7117int 3816int
7118main () 3817main ()
7119{ 3818{
7120shl_load (); 3819socket ();
7121 ; 3820 ;
7122 return 0; 3821 return 0;
7123} 3822}
7124_ACEOF 3823_ACEOF
7125rm -f conftest.$ac_objext conftest$ac_exeext 3824rm -f conftest.$ac_objext conftest$ac_exeext
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5 3841 (eval $ac_try) 2>&5
7143 ac_status=$? 3842 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then 3844 (exit $ac_status); }; }; then
7146 ac_cv_lib_dld_shl_load=yes 3845 ac_cv_lib_socket_socket=yes
7147else 3846else
7148 echo "$as_me: failed program was:" >&5 3847 echo "$as_me: failed program was:" >&5
7149sed 's/^/| /' conftest.$ac_ext >&5 3848sed 's/^/| /' conftest.$ac_ext >&5
7150 3849
7151ac_cv_lib_dld_shl_load=no 3850ac_cv_lib_socket_socket=no
7152fi 3851fi
7153rm -f conftest.err conftest.$ac_objext \ 3852rm -f conftest.err conftest.$ac_objext \
7154 conftest$ac_exeext conftest.$ac_ext 3853 conftest$ac_exeext conftest.$ac_ext
7155LIBS=$ac_check_lib_save_LIBS 3854LIBS=$ac_check_lib_save_LIBS
7156fi 3855fi
7157echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 3856echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7158echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 3857echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7159if test $ac_cv_lib_dld_shl_load = yes; then 3858if test $ac_cv_lib_socket_socket = yes; then
7160 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 3859 LIBS="$LIBS -lsocket"
7161fi 3860fi
7162 3861
7163
7164fi 3862fi
7165 3863
7166 3864
7167fi 3865echo "$as_me:$LINENO: checking for sched_yield" >&5
7168 3866echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
7169
7170fi
7171
7172
7173fi
7174
7175 ;;
7176 esac
7177
7178 if test "x$lt_cv_dlopen" != xno; then
7179 enable_dlopen=yes
7180 else
7181 enable_dlopen=no
7182 fi
7183
7184 case "$lt_cv_dlopen" in
7185 dlopen)
7186 save_CPPFLAGS="$CPP_FLAGS"
7187 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7188
7189 save_LDFLAGS="$LDFLAGS"
7190 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7191
7192 save_LIBS="$LIBS"
7193 LIBS="$lt_cv_dlopen_libs $LIBS"
7194
7195 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7196echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7197if test "${lt_cv_dlopen_self+set}" = set; then 3867if test "${ac_cv_func_sched_yield+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6 3868 echo $ECHO_N "(cached) $ECHO_C" >&6
7199else 3869else
7200 if test "$cross_compiling" = yes; then :
7201 lt_cv_dlopen_self=cross
7202else
7203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7204 lt_status=$lt_dlunknown
7205 cat > conftest.$ac_ext <<EOF 3870 cat >conftest.$ac_ext <<_ACEOF
7206#line 7206 "configure" 3871/* confdefs.h. */
7207#include "confdefs.h" 3872_ACEOF
3873cat confdefs.h >>conftest.$ac_ext
3874cat >>conftest.$ac_ext <<_ACEOF
3875/* end confdefs.h. */
3876/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
3877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3878#define sched_yield innocuous_sched_yield
7208 3879
7209#if HAVE_DLFCN_H 3880/* System header to define __stub macros and hopefully few prototypes,
7210#include <dlfcn.h> 3881 which can conflict with char sched_yield (); below.
3882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3883 <limits.h> exists even on freestanding compilers. */
3884
3885#ifdef __STDC__
3886# include <limits.h>
3887#else
3888# include <assert.h>
7211#endif 3889#endif
7212 3890
7213#include <stdio.h> 3891#undef sched_yield
7214 3892
7215#ifdef RTLD_GLOBAL 3893/* Override any gcc2 internal prototype to avoid an error. */
7216# define LT_DLGLOBAL RTLD_GLOBAL 3894#ifdef __cplusplus
3895extern "C"
3896{
3897#endif
3898/* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3900char sched_yield ();
3901/* The GNU C library defines this for functions which it implements
3902 to always fail with ENOSYS. Some functions are actually named
3903 something starting with __ and the normal name is an alias. */
3904#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
3905choke me
7217#else 3906#else
7218# ifdef DL_GLOBAL 3907char (*f) () = sched_yield;
7219# define LT_DLGLOBAL DL_GLOBAL
7220# else
7221# define LT_DLGLOBAL 0
7222# endif
7223#endif 3908#endif
7224 3909#ifdef __cplusplus
7225/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 3910}
7226 find out it does not work in some platform. */
7227#ifndef LT_DLLAZY_OR_NOW
7228# ifdef RTLD_LAZY
7229# define LT_DLLAZY_OR_NOW RTLD_LAZY
7230# else
7231# ifdef DL_LAZY
7232# define LT_DLLAZY_OR_NOW DL_LAZY
7233# else
7234# ifdef RTLD_NOW
7235# define LT_DLLAZY_OR_NOW RTLD_NOW
7236# else
7237# ifdef DL_NOW
7238# define LT_DLLAZY_OR_NOW DL_NOW
7239# else
7240# define LT_DLLAZY_OR_NOW 0
7241# endif
7242# endif
7243# endif
7244# endif
7245#endif 3911#endif
7246 3912
7247#ifdef __cplusplus 3913int
7248extern "C" void exit (int);
7249#endif
7250
7251fnord() { int i=42;}
7252main () 3914main ()
7253{ 3915{
7254 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3916return f != sched_yield;
7255 int status = $lt_dlunknown; 3917 ;
7256 3918 return 0;
7257 if (self)
7258 {
7259 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7260 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7261 /* dlclose (self); */
7262 }
7263
7264 exit (status);
7265} 3919}
7266EOF 3920_ACEOF
3921rm -f conftest.$ac_objext conftest$ac_exeext
7267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3923 (eval $ac_link) 2>conftest.er1
3924 ac_status=$?
3925 grep -v '^ *+' conftest.er1 >conftest.err
3926 rm -f conftest.er1
3927 cat conftest.err >&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } &&
3930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 (eval $ac_link) 2>&5 3932 (eval $ac_try) 2>&5
7269 ac_status=$?
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7272 (./conftest; exit; ) 2>/dev/null
7273 lt_status=$? 3933 ac_status=$?
7274 case x$lt_status in 3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 3935 (exit $ac_status); }; } &&
7276 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 3936 { ac_try='test -s conftest$ac_exeext'
7277 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 esac 3938 (eval $ac_try) 2>&5
7279 else : 3939 ac_status=$?
7280 # compilation failed 3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 lt_cv_dlopen_self=no 3941 (exit $ac_status); }; }; then
7282 fi 3942 ac_cv_func_sched_yield=yes
7283fi 3943else
7284rm -fr conftest* 3944 echo "$as_me: failed program was:" >&5
3945sed 's/^/| /' conftest.$ac_ext >&5
7285 3946
7286 3947ac_cv_func_sched_yield=no
7287fi 3948fi
3949rm -f conftest.err conftest.$ac_objext \
3950 conftest$ac_exeext conftest.$ac_ext
3951fi
7288echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 3952echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
7289echo "${ECHO_T}$lt_cv_dlopen_self" >&6 3953echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
7290 3954if test $ac_cv_func_sched_yield = yes; then
7291 if test "x$lt_cv_dlopen_self" = xyes; then 3955 :
7292 LDFLAGS="$LDFLAGS $link_static_flag" 3956else
7293 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 3957 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
7294echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 3958echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
7295if test "${lt_cv_dlopen_self_static+set}" = set; then 3959if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6 3960 echo $ECHO_N "(cached) $ECHO_C" >&6
7297else 3961else
7298 if test "$cross_compiling" = yes; then : 3962 ac_check_lib_save_LIBS=$LIBS
7299 lt_cv_dlopen_self_static=cross 3963LIBS="-lrt $LIBS"
7300else
7301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7302 lt_status=$lt_dlunknown
7303 cat > conftest.$ac_ext <<EOF 3964cat >conftest.$ac_ext <<_ACEOF
7304#line 7304 "configure" 3965/* confdefs.h. */
7305#include "confdefs.h" 3966_ACEOF
3967cat confdefs.h >>conftest.$ac_ext
3968cat >>conftest.$ac_ext <<_ACEOF
3969/* end confdefs.h. */
7306 3970
7307#if HAVE_DLFCN_H 3971/* Override any gcc2 internal prototype to avoid an error. */
7308#include <dlfcn.h> 3972#ifdef __cplusplus
3973extern "C"
7309#endif 3974#endif
7310 3975/* We use char because int might match the return type of a gcc2
7311#include <stdio.h> 3976 builtin and then its argument prototype would still apply. */
7312 3977char sched_yield ();
7313#ifdef RTLD_GLOBAL 3978int
7314# define LT_DLGLOBAL RTLD_GLOBAL
7315#else
7316# ifdef DL_GLOBAL
7317# define LT_DLGLOBAL DL_GLOBAL
7318# else
7319# define LT_DLGLOBAL 0
7320# endif
7321#endif
7322
7323/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7324 find out it does not work in some platform. */
7325#ifndef LT_DLLAZY_OR_NOW
7326# ifdef RTLD_LAZY
7327# define LT_DLLAZY_OR_NOW RTLD_LAZY
7328# else
7329# ifdef DL_LAZY
7330# define LT_DLLAZY_OR_NOW DL_LAZY
7331# else
7332# ifdef RTLD_NOW
7333# define LT_DLLAZY_OR_NOW RTLD_NOW
7334# else
7335# ifdef DL_NOW
7336# define LT_DLLAZY_OR_NOW DL_NOW
7337# else
7338# define LT_DLLAZY_OR_NOW 0
7339# endif
7340# endif
7341# endif
7342# endif
7343#endif
7344
7345#ifdef __cplusplus
7346extern "C" void exit (int);
7347#endif
7348
7349fnord() { int i=42;}
7350main () 3979main ()
7351{ 3980{
7352 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3981sched_yield ();
7353 int status = $lt_dlunknown; 3982 ;
7354 3983 return 0;
7355 if (self)
7356 {
7357 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7358 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7359 /* dlclose (self); */
7360 }
7361
7362 exit (status);
7363} 3984}
7364EOF 3985_ACEOF
3986rm -f conftest.$ac_objext conftest$ac_exeext
7365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7366 (eval $ac_link) 2>&5 3988 (eval $ac_link) 2>conftest.er1
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7370 (./conftest; exit; ) 2>/dev/null
7371 lt_status=$? 3989 ac_status=$?
7372 case x$lt_status in 3990 grep -v '^ *+' conftest.er1 >conftest.err
7373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7375 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7376 esac
7377 else :
7378 # compilation failed
7379 lt_cv_dlopen_self_static=no
7380 fi
7381fi
7382rm -fr conftest* 3991 rm -f conftest.er1
7383 3992 cat conftest.err >&5
7384 3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385fi 3994 (exit $ac_status); } &&
7386echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 3995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7387echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7388 fi
7389
7390 CPPFLAGS="$save_CPPFLAGS"
7391 LDFLAGS="$save_LDFLAGS"
7392 LIBS="$save_LIBS"
7393 ;;
7394 esac
7395
7396 case "$lt_cv_dlopen_self" in
7397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7398 *) enable_dlopen_self=unknown ;;
7399 esac
7400
7401 case "$lt_cv_dlopen_self_static" in
7402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7403 *) enable_dlopen_self_static=unknown ;;
7404 esac
7405fi
7406
7407
7408## FIXME: this should be a separate macro
7409##
7410if test "$enable_shared" = yes && test "$GCC" = yes; then
7411 case "$archive_cmds" in
7412 *'~'*)
7413 # FIXME: we may have to deal with multi-command sequences.
7414 ;;
7415 '$CC '*)
7416 # Test whether the compiler implicitly links with -lc since on some
7417 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7418 # to ld, don't add -lc before -lgcc.
7419 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7420echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7421 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423else
7424 $rm conftest*
7425 echo 'static int dummy;' > conftest.$ac_ext
7426
7427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 (eval $ac_compile) 2>&5 3997 (eval $ac_try) 2>&5
7429 ac_status=$? 3998 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }; } &&
4001 { ac_try='test -s conftest$ac_exeext'
4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 (eval $ac_try) 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; then 4006 (exit $ac_status); }; }; then
7432 soname=conftest 4007 ac_cv_lib_rt_sched_yield=yes
7433 lib=conftest 4008else
7434 libobjs=conftest.$ac_objext 4009 echo "$as_me: failed program was:" >&5
7435 deplibs= 4010sed 's/^/| /' conftest.$ac_ext >&5
7436 wl=$lt_cv_prog_cc_wl 4011
7437 compiler_flags=-v 4012ac_cv_lib_rt_sched_yield=no
7438 linker_flags=-v 4013fi
7439 verstring= 4014rm -f conftest.err conftest.$ac_objext \
7440 output_objdir=. 4015 conftest$ac_exeext conftest.$ac_ext
7441 libname=conftest 4016LIBS=$ac_check_lib_save_LIBS
7442 save_allow_undefined_flag=$allow_undefined_flag 4017fi
7443 allow_undefined_flag= 4018echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
7444 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 4019echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
7445 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 4020if test $ac_cv_lib_rt_sched_yield = yes; then
4021 LIBS="$LIBS -lrt"
4022fi
4023
4024fi
4025
4026
4027echo "$as_me:$LINENO: checking for sched_yield support" >&5
4028echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4029cat >conftest.$ac_ext <<_ACEOF
4030/* confdefs.h. */
4031_ACEOF
4032cat confdefs.h >>conftest.$ac_ext
4033cat >>conftest.$ac_ext <<_ACEOF
4034/* end confdefs.h. */
4035#include <sched.h>
4036int
4037main ()
4038{
4039sched_yield ()
4040 ;
4041 return 0;
4042}
4043_ACEOF
4044rm -f conftest.$ac_objext conftest$ac_exeext
4045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4046 (eval $ac_link) 2>conftest.er1
7446 ac_status=$? 4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } 4052 (exit $ac_status); } &&
7449 then 4053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7450 lt_cv_archive_cmds_need_lc=no 4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 else 4055 (eval $ac_try) 2>&5
7452 lt_cv_archive_cmds_need_lc=yes 4056 ac_status=$?
7453 fi 4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 allow_undefined_flag=$save_allow_undefined_flag 4058 (exit $ac_status); }; } &&
7455 else 4059 { ac_try='test -s conftest$ac_exeext'
7456 cat conftest.err 1>&5 4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 fi 4061 (eval $ac_try) 2>&5
7458fi 4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 echo "$as_me:$LINENO: result: yes" >&5
4066echo "${ECHO_T}yes" >&6
7459 4067
7460 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 4068cat >>confdefs.h <<\_ACEOF
7461echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 4069#define HAVE_SCHED_YIELD 1
7462 ;; 4070_ACEOF
7463 esac
7464fi
7465need_lc=${lt_cv_archive_cmds_need_lc-yes}
7466##
7467## END FIXME
7468 4071
7469## FIXME: this should be a separate macro
7470##
7471# The second clause should only fire when bootstrapping the
7472# libtool distribution, otherwise you forgot to ship ltmain.sh
7473# with your package, and you will get complaints that there are
7474# no rules to generate ltmain.sh.
7475if test -f "$ltmain"; then
7476 :
7477else 4072else
7478 # If there is no Makefile yet, we rely on a make rule to execute 4073 echo "$as_me: failed program was:" >&5
7479 # `config.status --recheck' to rerun these tests and create the 4074sed 's/^/| /' conftest.$ac_ext >&5
7480 # libtool script then.
7481 test -f Makefile && make "$ltmain"
7482fi
7483 4075
7484if test -f "$ltmain"; then 4076echo "$as_me:$LINENO: result: no" >&5
7485 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 4077echo "${ECHO_T}no" >&6
7486 $rm -f "${ofile}T"
7487
7488 echo creating $ofile
7489
7490 # Now quote all the things that may contain metacharacters while being
7491 # careful not to overquote the AC_SUBSTed values. We take copies of the
7492 # variables and quote the copies for generation of the libtool script.
7493 for var in echo old_CC old_CFLAGS \
7494 AR AR_FLAGS CC LD LN_S NM SHELL \
7495 reload_flag reload_cmds wl \
7496 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7497 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7498 library_names_spec soname_spec \
7499 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7500 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7501 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7502 old_striplib striplib file_magic_cmd export_symbols_cmds \
7503 deplibs_check_method allow_undefined_flag no_undefined_flag \
7504 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7505 hardcode_libdir_flag_spec hardcode_libdir_separator \
7506 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7507 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7508
7509 case "$var" in
7510 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7511 old_postinstall_cmds | old_postuninstall_cmds | \
7512 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7513 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7514 postinstall_cmds | postuninstall_cmds | \
7515 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7516 # Double-quote double-evaled strings.
7517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7518 ;;
7519 *)
7520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7521 ;;
7522 esac
7523 done
7524
7525 cat <<__EOF__ > "${ofile}T"
7526#! $SHELL
7527
7528# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7529# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7530# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7531#
7532# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7533# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7534#
7535# This program is free software; you can redistribute it and/or modify
7536# it under the terms of the GNU General Public License as published by
7537# the Free Software Foundation; either version 2 of the License, or
7538# (at your option) any later version.
7539#
7540# This program is distributed in the hope that it will be useful, but
7541# WITHOUT ANY WARRANTY; without even the implied warranty of
7542# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7543# General Public License for more details.
7544#
7545# You should have received a copy of the GNU General Public License
7546# along with this program; if not, write to the Free Software
7547# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7548#
7549# As a special exception to the GNU General Public License, if you
7550# distribute this file as part of a program that contains a
7551# configuration script generated by Autoconf, you may include it under
7552# the same distribution terms that you use for the rest of that program.
7553
7554# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7555Xsed="sed -e s/^X//"
7556
7557# The HP-UX ksh and POSIX shell print the target directory to stdout
7558# if CDPATH is set.
7559if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7560
7561# ### BEGIN LIBTOOL CONFIG
7562
7563# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7564
7565# Shell to use when invoking shell scripts.
7566SHELL=$lt_SHELL
7567
7568# Whether or not to build shared libraries.
7569build_libtool_libs=$enable_shared
7570
7571# Whether or not to add -lc for building shared libraries.
7572build_libtool_need_lc=$need_lc
7573
7574# Whether or not to build static libraries.
7575build_old_libs=$enable_static
7576
7577# Whether or not to optimize for fast installation.
7578fast_install=$enable_fast_install
7579
7580# The host system.
7581host_alias=$host_alias
7582host=$host
7583
7584# An echo program that does not interpret backslashes.
7585echo=$lt_echo
7586
7587# The archiver.
7588AR=$lt_AR
7589AR_FLAGS=$lt_AR_FLAGS
7590
7591# The default C compiler.
7592CC=$lt_CC
7593
7594# Is the compiler the GNU C compiler?
7595with_gcc=$GCC
7596
7597# The linker used to build libraries.
7598LD=$lt_LD
7599
7600# Whether we need hard or soft links.
7601LN_S=$lt_LN_S
7602
7603# A BSD-compatible nm program.
7604NM=$lt_NM
7605
7606# A symbol stripping program
7607STRIP=$STRIP
7608
7609# Used to examine libraries when file_magic_cmd begins "file"
7610MAGIC_CMD=$MAGIC_CMD
7611
7612# Used on cygwin: DLL creation program.
7613DLLTOOL="$DLLTOOL"
7614
7615# Used on cygwin: object dumper.
7616OBJDUMP="$OBJDUMP"
7617
7618# Used on cygwin: assembler.
7619AS="$AS"
7620
7621# The name of the directory that contains temporary libtool files.
7622objdir=$objdir
7623
7624# How to create reloadable object files.
7625reload_flag=$lt_reload_flag
7626reload_cmds=$lt_reload_cmds
7627
7628# How to pass a linker flag through the compiler.
7629wl=$lt_wl
7630
7631# Object file suffix (normally "o").
7632objext="$ac_objext"
7633
7634# Old archive suffix (normally "a").
7635libext="$libext"
7636
7637# Executable file suffix (normally "").
7638exeext="$exeext"
7639
7640# Additional compiler flags for building library objects.
7641pic_flag=$lt_pic_flag
7642pic_mode=$pic_mode
7643
7644# Does compiler simultaneously support -c and -o options?
7645compiler_c_o=$lt_compiler_c_o
7646
7647# Can we write directly to a .lo ?
7648compiler_o_lo=$lt_compiler_o_lo
7649
7650# Must we lock files when doing compilation ?
7651need_locks=$lt_need_locks
7652
7653# Do we need the lib prefix for modules?
7654need_lib_prefix=$need_lib_prefix
7655
7656# Do we need a version for libraries?
7657need_version=$need_version
7658
7659# Whether dlopen is supported.
7660dlopen_support=$enable_dlopen
7661
7662# Whether dlopen of programs is supported.
7663dlopen_self=$enable_dlopen_self
7664
7665# Whether dlopen of statically linked programs is supported.
7666dlopen_self_static=$enable_dlopen_self_static
7667
7668# Compiler flag to prevent dynamic linking.
7669link_static_flag=$lt_link_static_flag
7670
7671# Compiler flag to turn off builtin functions.
7672no_builtin_flag=$lt_no_builtin_flag
7673
7674# Compiler flag to allow reflexive dlopens.
7675export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7676
7677# Compiler flag to generate shared objects directly from archives.
7678whole_archive_flag_spec=$lt_whole_archive_flag_spec
7679
7680# Compiler flag to generate thread-safe objects.
7681thread_safe_flag_spec=$lt_thread_safe_flag_spec
7682
7683# Library versioning type.
7684version_type=$version_type
7685
7686# Format of library name prefix.
7687libname_spec=$lt_libname_spec
7688
7689# List of archive names. First name is the real one, the rest are links.
7690# The last name is the one that the linker finds with -lNAME.
7691library_names_spec=$lt_library_names_spec
7692
7693# The coded name of the library, if different from the real name.
7694soname_spec=$lt_soname_spec
7695
7696# Commands used to build and install an old-style archive.
7697RANLIB=$lt_RANLIB
7698old_archive_cmds=$lt_old_archive_cmds
7699old_postinstall_cmds=$lt_old_postinstall_cmds
7700old_postuninstall_cmds=$lt_old_postuninstall_cmds
7701
7702# Create an old-style archive from a shared archive.
7703old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7704
7705# Create a temporary old-style archive to link instead of a shared archive.
7706old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7707
7708# Commands used to build and install a shared archive.
7709archive_cmds=$lt_archive_cmds
7710archive_expsym_cmds=$lt_archive_expsym_cmds
7711postinstall_cmds=$lt_postinstall_cmds
7712postuninstall_cmds=$lt_postuninstall_cmds
7713
7714# Commands to strip libraries.
7715old_striplib=$lt_old_striplib
7716striplib=$lt_striplib
7717
7718# Method to check whether dependent libraries are shared objects.
7719deplibs_check_method=$lt_deplibs_check_method
7720
7721# Command to use when deplibs_check_method == file_magic.
7722file_magic_cmd=$lt_file_magic_cmd
7723
7724# Flag that allows shared libraries with undefined symbols to be built.
7725allow_undefined_flag=$lt_allow_undefined_flag
7726
7727# Flag that forces no undefined symbols.
7728no_undefined_flag=$lt_no_undefined_flag
7729
7730# Commands used to finish a libtool library installation in a directory.
7731finish_cmds=$lt_finish_cmds
7732
7733# Same as above, but a single script fragment to be evaled but not shown.
7734finish_eval=$lt_finish_eval
7735
7736# Take the output of nm and produce a listing of raw symbols and C names.
7737global_symbol_pipe=$lt_global_symbol_pipe
7738
7739# Transform the output of nm in a proper C declaration
7740global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7741
7742# This is the shared library runtime path variable.
7743runpath_var=$runpath_var
7744
7745# This is the shared library path variable.
7746shlibpath_var=$shlibpath_var
7747
7748# Is shlibpath searched before the hard-coded library search path?
7749shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7750
7751# How to hardcode a shared library path into an executable.
7752hardcode_action=$hardcode_action
7753
7754# Whether we should hardcode library paths into libraries.
7755hardcode_into_libs=$hardcode_into_libs
7756
7757# Flag to hardcode \$libdir into a binary during linking.
7758# This must work even if \$libdir does not exist.
7759hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7760
7761# Whether we need a single -rpath flag with a separated argument.
7762hardcode_libdir_separator=$lt_hardcode_libdir_separator
7763
7764# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7765# resulting binary.
7766hardcode_direct=$hardcode_direct
7767
7768# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7769# resulting binary.
7770hardcode_minus_L=$hardcode_minus_L
7771
7772# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7773# the resulting binary.
7774hardcode_shlibpath_var=$hardcode_shlibpath_var
7775
7776# Variables whose values should be saved in libtool wrapper scripts and
7777# restored at relink time.
7778variables_saved_for_relink="$variables_saved_for_relink"
7779
7780# Whether libtool must link a program against all its dependency libraries.
7781link_all_deplibs=$link_all_deplibs
7782
7783# Compile-time system search path for libraries
7784sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7785
7786# Run-time system search path for libraries
7787sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7788
7789# Fix the shell variable \$srcfile for the compiler.
7790fix_srcfile_path="$fix_srcfile_path"
7791
7792# Set to yes if exported symbols are required.
7793always_export_symbols=$always_export_symbols
7794
7795# The commands to list exported symbols.
7796export_symbols_cmds=$lt_export_symbols_cmds
7797
7798# The commands to extract the exported symbol list from a shared archive.
7799extract_expsyms_cmds=$lt_extract_expsyms_cmds
7800
7801# Symbols that should not be listed in the preloaded symbols.
7802exclude_expsyms=$lt_exclude_expsyms
7803
7804# Symbols that must always be exported.
7805include_expsyms=$lt_include_expsyms
7806
7807# ### END LIBTOOL CONFIG
7808
7809__EOF__
7810
7811 case "$host_os" in
7812 aix3*)
7813 cat <<\EOF >> "${ofile}T"
7814
7815# AIX sometimes has problems with the GCC collect2 program. For some
7816# reason, if we set the COLLECT_NAMES environment variable, the problems
7817# vanish in a puff of smoke.
7818if test "X${COLLECT_NAMES+set}" != Xset; then
7819 COLLECT_NAMES=
7820 export COLLECT_NAMES
7821fi 4078fi
7822EOF 4079rm -f conftest.err conftest.$ac_objext \
7823 ;; 4080 conftest$ac_exeext conftest.$ac_ext
7824 esac
7825 4081
7826 case "$host_os" in
7827 cygwin* | mingw* | pw32* | os2*)
7828 cat <<'EOF' >> "${ofile}T"
7829 # This is a source program that is used to create dlls on Windows
7830 # Don't remove nor modify the starting and closing comments
7831# /* ltdll.c starts here */
7832# #define WIN32_LEAN_AND_MEAN
7833# #include <windows.h>
7834# #undef WIN32_LEAN_AND_MEAN
7835# #include <stdio.h>
7836#
7837# #ifndef __CYGWIN__
7838# # ifdef __CYGWIN32__
7839# # define __CYGWIN__ __CYGWIN32__
7840# # endif
7841# #endif
7842#
7843# #ifdef __cplusplus
7844# extern "C" {
7845# #endif
7846# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7847# #ifdef __cplusplus
7848# }
7849# #endif
7850#
7851# #ifdef __CYGWIN__
7852# #include <cygwin/cygwin_dll.h>
7853# DECLARE_CYGWIN_DLL( DllMain );
7854# #endif
7855# HINSTANCE __hDllInstance_base;
7856#
7857# BOOL APIENTRY
7858# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7859# {
7860# __hDllInstance_base = hInst;
7861# return TRUE;
7862# }
7863# /* ltdll.c ends here */
7864 # This is a source program that is used to create import libraries
7865 # on Windows for dlls which lack them. Don't remove nor modify the
7866 # starting and closing comments
7867# /* impgen.c starts here */
7868# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7869#
7870# This file is part of GNU libtool.
7871#
7872# This program is free software; you can redistribute it and/or modify
7873# it under the terms of the GNU General Public License as published by
7874# the Free Software Foundation; either version 2 of the License, or
7875# (at your option) any later version.
7876#
7877# This program is distributed in the hope that it will be useful,
7878# but WITHOUT ANY WARRANTY; without even the implied warranty of
7879# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7880# GNU General Public License for more details.
7881#
7882# You should have received a copy of the GNU General Public License
7883# along with this program; if not, write to the Free Software
7884# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7885# */
7886#
7887# #include <stdio.h> /* for printf() */
7888# #include <unistd.h> /* for open(), lseek(), read() */
7889# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7890# #include <string.h> /* for strdup() */
7891#
7892# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7893# #ifndef O_BINARY
7894# #define O_BINARY 0
7895# #endif
7896#
7897# static unsigned int
7898# pe_get16 (fd, offset)
7899# int fd;
7900# int offset;
7901# {
7902# unsigned char b[2];
7903# lseek (fd, offset, SEEK_SET);
7904# read (fd, b, 2);
7905# return b[0] + (b[1]<<8);
7906# }
7907#
7908# static unsigned int
7909# pe_get32 (fd, offset)
7910# int fd;
7911# int offset;
7912# {
7913# unsigned char b[4];
7914# lseek (fd, offset, SEEK_SET);
7915# read (fd, b, 4);
7916# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7917# }
7918#
7919# static unsigned int
7920# pe_as32 (ptr)
7921# void *ptr;
7922# {
7923# unsigned char *b = ptr;
7924# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7925# }
7926#
7927# int
7928# main (argc, argv)
7929# int argc;
7930# char *argv[];
7931# {
7932# int dll;
7933# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7934# unsigned long export_rva, export_size, nsections, secptr, expptr;
7935# unsigned long name_rvas, nexp;
7936# unsigned char *expdata, *erva;
7937# char *filename, *dll_name;
7938#
7939# filename = argv[1];
7940#
7941# dll = open(filename, O_RDONLY|O_BINARY);
7942# if (!dll)
7943# return 1;
7944#
7945# dll_name = filename;
7946#
7947# for (i=0; filename[i]; i++)
7948# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7949# dll_name = filename + i +1;
7950#
7951# pe_header_offset = pe_get32 (dll, 0x3c);
7952# opthdr_ofs = pe_header_offset + 4 + 20;
7953# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7954#
7955# if (num_entries < 1) /* no exports */
7956# return 1;
7957#
7958# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7959# export_size = pe_get32 (dll, opthdr_ofs + 100);
7960# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7961# secptr = (pe_header_offset + 4 + 20 +
7962# pe_get16 (dll, pe_header_offset + 4 + 16));
7963#
7964# expptr = 0;
7965# for (i = 0; i < nsections; i++)
7966# {
7967# char sname[8];
7968# unsigned long secptr1 = secptr + 40 * i;
7969# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7970# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7971# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7972# lseek(dll, secptr1, SEEK_SET);
7973# read(dll, sname, 8);
7974# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7975# {
7976# expptr = fptr + (export_rva - vaddr);
7977# if (export_rva + export_size > vaddr + vsize)
7978# export_size = vsize - (export_rva - vaddr);
7979# break;
7980# }
7981# }
7982#
7983# expdata = (unsigned char*)malloc(export_size);
7984# lseek (dll, expptr, SEEK_SET);
7985# read (dll, expdata, export_size);
7986# erva = expdata - export_rva;
7987#
7988# nexp = pe_as32 (expdata+24);
7989# name_rvas = pe_as32 (expdata+32);
7990#
7991# printf ("EXPORTS\n");
7992# for (i = 0; i<nexp; i++)
7993# {
7994# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7995# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7996# }
7997#
7998# return 0;
7999# }
8000# /* impgen.c ends here */
8001 4082
8002EOF
8003 ;;
8004 esac
8005
8006 # We use sed instead of cat because bash on DJGPP gets confused if
8007 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8008 # text mode, it properly converts lines to CR/LF. This bash problem
8009 # is reportedly fixed, but why not run on old versions too?
8010 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8011
8012 mv -f "${ofile}T" "$ofile" || \
8013 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8014 chmod +x "$ofile"
8015fi
8016##
8017## END FIXME
8018
8019
8020
8021
8022
8023# This can be used to rebuild libtool when needed
8024LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8025
8026# Always use our own libtool.
8027LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8028
8029# Prevent multiple expansion
8030
8031
8032MALLOC_TYPE=S
8033support_addstrings=no
8034support_frills=no 4083support_frills=yes
8035support_linespace=no
8036support_inheritpixmap=no 4084support_inheritpixmap=yes
4085support_tinting=yes
4086support_fading=yes
8037support_keepscrolling=no 4087support_keepscrolling=yes
8038support_selectionscrolling=no 4088support_selectionscrolling=yes
8039support_menubar=no
8040support_mousewheel=no 4089support_mousewheel=yes
8041support_mouseslipwheel=no 4090support_mouseslipwheel=yes
8042support_oldselection=no
8043support_utmp=no
8044support_wtmp=no
8045support_lastlog=no
8046support_cursor_blink=no
8047support_text_blink=no 4091support_text_blink=yes
8048support_pointer_blank=no 4092support_pointer_blank=yes
8049support_scroll_rxvt=no 4093support_scroll_rxvt=yes
8050support_scroll_next=no 4094support_scroll_next=yes
8051support_scroll_xterm=no 4095support_scroll_xterm=yes
8052support_scroll_plain=no 4096support_scroll_plain=yes
8053support_xim=no 4097support_xim=yes
8054support_xpm=no 4098support_xpm=yes
8055support_xft=no 4099support_xft=yes
8056support_unicode3=no 4100support_unicode3=no
4101support_combining=yes
4102support_8bitctrls=no
4103support_iso14755=yes
4104support_styles=yes
4105support_perl=yes
8057codesets= 4106codesets=all
8058 4107
8059 4108
8060if test "x$enable_shared" = xyes; then 4109if test "x$enable_shared" = xyes; then
8061 4110
8062cat >>confdefs.h <<\_ACEOF 4111cat >>confdefs.h <<\_ACEOF
8068 4117
8069 4118
8070# Check whether --enable-everything or --disable-everything was given. 4119# Check whether --enable-everything or --disable-everything was given.
8071if test "${enable_everything+set}" = set; then 4120if test "${enable_everything+set}" = set; then
8072 enableval="$enable_everything" 4121 enableval="$enable_everything"
4122
4123 if test x$enableval = xno; then
4124 support_frills=no
4125 support_inheritpixmap=no
4126 support_tinting=no
4127 support_fading=no
4128 support_keepscrolling=no
4129 support_selectionscrolling=no
4130 support_lastlog=no
4131 support_mousewheel=no
4132 support_mouseslipwheel=no
4133 support_text_blink=no
4134 support_pointer_blank=no
4135 support_scroll_rxvt=no
4136 support_scroll_next=no
4137 support_scroll_xterm=no
4138 support_scroll_plain=no
4139 support_utmp=no
4140 support_wtmp=no
4141 support_xim=no
4142 support_xpm=no
4143 support_xft=no
4144 support_unicode3=no
4145 support_combining=no
4146 support_8bitctrls=no
4147 support_iso14755=no
4148 support_styles=no
4149 support_perl=no
4150 codesets=
4151 fi
8073 if test x$enableval = xyes; then 4152 if test x$enableval = xyes; then
8074 support_24bit=yes
8075 support_frills=yes 4153 support_frills=yes
8076 support_linespace=yes
8077 support_inheritpixmap=yes 4154 support_inheritpixmap=yes
4155 support_tinting=yes
4156 support_fading=yes
8078 support_keepscrolling=yes 4157 support_keepscrolling=yes
8079 support_selectionscrolling=yes 4158 support_selectionscrolling=yes
8080 support_lastlog=yes 4159 support_lastlog=yes
8081 support_menubar=yes
8082 support_mousewheel=yes 4160 support_mousewheel=yes
8083 support_mouseslipwheel=yes 4161 support_mouseslipwheel=yes
8084 support_oldselection=yes
8085 support_cursor_blink=yes
8086 support_text_blink=yes 4162 support_text_blink=yes
8087 support_pointer_blank=yes 4163 support_pointer_blank=yes
8088 support_scroll_rxvt=yes 4164 support_scroll_rxvt=yes
8089 support_scroll_next=yes 4165 support_scroll_next=yes
8090 support_scroll_xterm=yes 4166 support_scroll_xterm=yes
8091 support_scroll_plain=yes 4167 support_scroll_plain=yes
8092 support_utmp=yes 4168 support_utmp=yes
8093 support_wtmp=yes 4169 support_wtmp=yes
8094 support_xim=yes 4170 support_xim=yes
8095 support_xpm=yes 4171 support_xpm=yes
8096 support_xft=yes 4172 support_xft=yes
8097 support_unicode3=yes 4173 support_unicode3=yes
4174 support_combining=yes
4175 #support_8bitctrls=yes
4176 support_iso14755=yes
4177 support_styles=yes
4178 support_perl=yes
8098 codesets=all 4179 codesets=all
8099 fi 4180 fi
4181
8100fi; 4182fi;
8101 4183
8102# Check whether --enable-unicode3 or --disable-unicode3 was given. 4184# Check whether --enable-unicode3 or --disable-unicode3 was given.
8103if test "${enable_unicode3+set}" = set; then 4185if test "${enable_unicode3+set}" = set; then
8104 enableval="$enable_unicode3" 4186 enableval="$enable_unicode3"
8105 if test x$enableval = xyes -o x$enableval = xno; then 4187 if test x$enableval = xyes -o x$enableval = xno; then
8106 support_unicode3=yes 4188 support_unicode3=$enableval
4189 fi
4190fi;
4191
4192# Check whether --enable-combining or --disable-combining was given.
4193if test "${enable_combining+set}" = set; then
4194 enableval="$enable_combining"
4195 if test x$enableval = xyes -o x$enableval = xno; then
4196 support_combining=$enableval
8107 fi 4197 fi
8108fi; 4198fi;
8109 4199
8110# Check whether --enable-xft or --disable-xft was given. 4200# Check whether --enable-xft or --disable-xft was given.
8111if test "${enable_xft+set}" = set; then 4201if test "${enable_xft+set}" = set; then
8112 enableval="$enable_xft" 4202 enableval="$enable_xft"
8113 if test x$enableval = xyes -o x$enableval = xno; then 4203 if test x$enableval = xyes -o x$enableval = xno; then
8114 support_xft=yes 4204 support_xft=$enableval
8115 fi 4205 fi
8116fi; 4206fi;
8117 4207
8118# Check whether --enable-utmp or --disable-utmp was given. 4208# Check whether --enable-font-styles or --disable-font-styles was given.
8119if test "${enable_utmp+set}" = set; then 4209if test "${enable_font_styles+set}" = set; then
8120 enableval="$enable_utmp" 4210 enableval="$enable_font_styles"
8121 if test x$enableval = xyes -o x$enableval = xno; then 4211 if test x$enableval = xyes -o x$enableval = xno; then
8122 support_utmp=$enableval
8123 fi
8124fi;
8125
8126# Check whether --enable-wtmp or --disable-wtmp was given.
8127if test "${enable_wtmp+set}" = set; then
8128 enableval="$enable_wtmp"
8129 if test x$enableval = xyes -o x$enableval = xno; then
8130 support_wtmp=$enableval
8131 fi
8132fi;
8133
8134# Check whether --enable-lastlog or --disable-lastlog was given.
8135if test "${enable_lastlog+set}" = set; then
8136 enableval="$enable_lastlog"
8137 if test x$enableval = xyes -o x$enableval = xno; then
8138 support_lastlog=$enableval 4212 support_styles=$enableval
8139 fi 4213 fi
8140fi; 4214fi;
8141 4215
8142# Check whether --enable-xpm-background or --disable-xpm-background was given. 4216# Check whether --enable-xpm-background or --disable-xpm-background was given.
8143if test "${enable_xpm_background+set}" = set; then 4217if test "${enable_xpm_background+set}" = set; then
8153 if test x$enableval = xyes -o x$enableval = xno; then 4227 if test x$enableval = xyes -o x$enableval = xno; then
8154 support_inheritpixmap=$enableval 4228 support_inheritpixmap=$enableval
8155 fi 4229 fi
8156fi; 4230fi;
8157 4231
8158# Check whether --enable-menubar or --disable-menubar was given. 4232# Check whether --enable-tinting or --disable-tinting was given.
8159if test "${enable_menubar+set}" = set; then 4233if test "${enable_tinting+set}" = set; then
8160 enableval="$enable_menubar" 4234 enableval="$enable_tinting"
8161 if test x$enableval = xyes -o x$enableval = xno; then 4235 if test x$enableval = xyes -o x$enableval = xno; then
4236 support_tinting=$enableval
4237 fi
4238fi;
4239
4240# Check whether --enable-fading or --disable-fading was given.
4241if test "${enable_fading+set}" = set; then
4242 enableval="$enable_fading"
4243 if test x$enableval = xyes -o x$enableval = xno; then
8162 support_menubar=$enableval 4244 support_fading=$enableval
8163 fi 4245 fi
8164fi; 4246fi;
8165 4247
8166# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4248# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8167if test "${enable_rxvt_scroll+set}" = set; then 4249if test "${enable_rxvt_scroll+set}" = set; then
8185 if test x$enableval = xyes -o x$enableval = xno; then 4267 if test x$enableval = xyes -o x$enableval = xno; then
8186 support_scroll_xterm=$enableval 4268 support_scroll_xterm=$enableval
8187 fi 4269 fi
8188fi; 4270fi;
8189 4271
4272# Check whether --enable-perl or --disable-perl was given.
4273if test "${enable_perl+set}" = set; then
4274 enableval="$enable_perl"
4275 if test x$enableval = xyes -o x$enableval = xno; then
4276 support_perl=$enableval
4277 fi
4278fi;
4279
8190# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4280# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8191if test "${enable_plain_scroll+set}" = set; then 4281if test "${enable_plain_scroll+set}" = set; then
8192 enableval="$enable_plain_scroll" 4282 enableval="$enable_plain_scroll"
8193 if test x$enableval = xyes -o x$enableval = xno; then 4283 if test x$enableval = xyes -o x$enableval = xno; then
8194 support_scroll_plain=$enableval 4284 support_scroll_plain=$enableval
8195 fi 4285 fi
8196fi; 4286fi;
8197 4287
8198# Check whether --enable-half-shadow or --disable-half-shadow was given.
8199if test "${enable_half_shadow+set}" = set; then
8200 enableval="$enable_half_shadow"
8201 if test x$enableval = xyes; then
8202
8203cat >>confdefs.h <<\_ACEOF
8204#define HALFSHADOW 1
8205_ACEOF
8206
8207 fi
8208fi;
8209 4288
8210 4289
8211# Check whether --with-codesets or --without-codesets was given. 4290# Check whether --with-codesets or --without-codesets was given.
8212if test "${with_codesets+set}" = set; then 4291if test "${with_codesets+set}" = set; then
8213 withval="$with_codesets" 4292 withval="$with_codesets"
8220 if test x$enableval = xyes -o x$enableval = xno; then 4299 if test x$enableval = xyes -o x$enableval = xno; then
8221 support_xim=$enableval 4300 support_xim=$enableval
8222 fi 4301 fi
8223fi; 4302fi;
8224 4303
8225# Check whether --enable-ttygid or --disable-ttygid was given.
8226if test "${enable_ttygid+set}" = set; then
8227 enableval="$enable_ttygid"
8228 if test x$enableval = xyes; then
8229
8230cat >>confdefs.h <<\_ACEOF
8231#define TTY_GID_SUPPORT 1
8232_ACEOF
8233
8234 fi
8235fi;
8236
8237# Check whether --enable-backspace-key or --disable-backspace-key was given. 4304# Check whether --enable-backspace-key or --disable-backspace-key was given.
8238if test "${enable_backspace_key+set}" = set; then 4305if test "${enable_backspace_key+set}" = set; then
8239 enableval="$enable_backspace_key" 4306 enableval="$enable_backspace_key"
8240 if test x$enableval = xno; then 4307 if test x$enableval = xno; then
8241 4308
8268_ACEOF 4335_ACEOF
8269 4336
8270 fi 4337 fi
8271fi; 4338fi;
8272 4339
8273# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 4340# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8274if test "${enable_xgetdefault+set}" = set; then 4341if test "${enable_8bitctrls+set}" = set; then
8275 enableval="$enable_xgetdefault" 4342 enableval="$enable_8bitctrls"
8276 if test x$enableval = xyes; then 4343 if test x$enableval = xyes -o x$enableval = xno; then
8277 4344 support_8bitctrls=$enableval
8278cat >>confdefs.h <<\_ACEOF
8279#define USE_XGETDEFAULT 1
8280_ACEOF
8281
8282 fi 4345 fi
8283fi; 4346fi;
8284 4347
8285RESFALLBACK=Rxvt 4348RESFALLBACK=Rxvt
8286# Check whether --enable-fallback or --disable-fallback was given. 4349# Check whether --enable-fallback or --disable-fallback was given.
8333if test "${with_name+set}" = set; then 4396if test "${with_name+set}" = set; then
8334 withval="$with_name" 4397 withval="$with_name"
8335 RXVTNAME="$withval" 4398 RXVTNAME="$withval"
8336fi; 4399fi;
8337 4400
4401cat >>confdefs.h <<_ACEOF
4402#define RXVTNAME "$RXVTNAME"
4403_ACEOF
4404
4405
8338RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4406RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8339 4407
8340
8341# Check whether --enable-strings or --disable-strings was given.
8342if test "${enable_strings+set}" = set; then
8343 enableval="$enable_strings"
8344 if test x$enableval = xyes -o x$enableval = xno; then
8345 support_addstrings=$enableval
8346 fi
8347fi;
8348 4408
8349# Check whether --enable-swapscreen or --disable-swapscreen was given. 4409# Check whether --enable-swapscreen or --disable-swapscreen was given.
8350if test "${enable_swapscreen+set}" = set; then 4410if test "${enable_swapscreen+set}" = set; then
8351 enableval="$enable_swapscreen" 4411 enableval="$enable_swapscreen"
8352 if test x$enableval = xno; then 4412 if test x$enableval = xno; then
8353 4413
8354cat >>confdefs.h <<\_ACEOF 4414cat >>confdefs.h <<\_ACEOF
8355#define NO_SECONDARY_SCREEN 1 4415#define NO_SECONDARY_SCREEN 1
8356_ACEOF 4416_ACEOF
8357 4417
4418 fi
4419fi;
4420
4421# Check whether --enable-iso14755 or --disable-iso14755 was given.
4422if test "${enable_iso14755+set}" = set; then
4423 enableval="$enable_iso14755"
4424 if test x$enableval = xyes -o x$enableval = xno; then
4425 support_iso14755=$enableval
8358 fi 4426 fi
8359fi; 4427fi;
8360 4428
8361# Check whether --enable-frills or --disable-frills was given. 4429# Check whether --enable-frills or --disable-frills was given.
8362if test "${enable_frills+set}" = set; then 4430if test "${enable_frills+set}" = set; then
8364 if test x$enableval = xyes -o x$enableval = xno; then 4432 if test x$enableval = xyes -o x$enableval = xno; then
8365 support_frills=$enableval 4433 support_frills=$enableval
8366 fi 4434 fi
8367fi; 4435fi;
8368 4436
8369# Check whether --enable-linespace or --disable-linespace was given.
8370if test "${enable_linespace+set}" = set; then
8371 enableval="$enable_linespace"
8372 if test x$enableval = xyes -o x$enableval = xno; then
8373 support_linespace=$enableval
8374 fi
8375fi;
8376
8377# Check whether --enable-24bit or --disable-24bit was given.
8378if test "${enable_24bit+set}" = set; then
8379 enableval="$enable_24bit"
8380 if test x$enableval = xyes -o x$enableval = xno; then
8381 support_24bit=$enableval
8382 fi
8383fi;
8384
8385# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 4437# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
8386if test "${enable_keepscrolling+set}" = set; then 4438if test "${enable_keepscrolling+set}" = set; then
8387 enableval="$enable_keepscrolling" 4439 enableval="$enable_keepscrolling"
8388 if test x$enableval = xyes -o x$enableval = xno; then 4440 if test x$enableval = xyes -o x$enableval = xno; then
8389 support_keepscrolling=$enableval 4441 support_keepscrolling=$enableval
8412 if test x$enableval = xyes -o x$enableval = xno; then 4464 if test x$enableval = xyes -o x$enableval = xno; then
8413 support_mouseslipwheel=$enableval 4465 support_mouseslipwheel=$enableval
8414 fi 4466 fi
8415fi; 4467fi;
8416 4468
8417# Check whether --enable-old-selection or --disable-old-selection was given.
8418if test "${enable_old_selection+set}" = set; then
8419 enableval="$enable_old_selection"
8420 if test x$enableval = xyes -o x$enableval = xno; then
8421 support_oldselection=$enableval
8422 fi
8423fi;
8424
8425# Check whether --enable-new-selection or --disable-new-selection was given.
8426if test "${enable_new_selection+set}" = set; then
8427 enableval="$enable_new_selection"
8428 if test x$enableval = xno; then
8429
8430cat >>confdefs.h <<\_ACEOF
8431#define NO_NEW_SELECTION 1
8432_ACEOF
8433
8434 fi
8435fi;
8436
8437# Check whether --enable-dmalloc or --disable-dmalloc was given.
8438if test "${enable_dmalloc+set}" = set; then
8439 enableval="$enable_dmalloc"
8440 if test x$enableval = xyes; then
8441 MALLOC_TYPE=G
8442 DEBUG=-DDEBUG_MALLOC
8443 DLIB="-L/usr/local/lib -ldmalloc"
8444 DINCLUDE=-I/usr/local/include
8445 fi
8446fi;
8447
8448# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
8449if test "${enable_dlmalloc+set}" = set; then
8450 enableval="$enable_dlmalloc"
8451 if test x$enableval = xyes; then
8452 MALLOC_TYPE=D
8453 DEBUG=
8454 DLIB="-L/usr/local/lib -ldlmalloc"
8455 DINCLUDE=
8456 fi
8457fi;
8458
8459# Check whether --enable-smart-resize or --disable-smart-resize was given. 4469# Check whether --enable-smart-resize or --disable-smart-resize was given.
8460if test "${enable_smart_resize+set}" = set; then 4470if test "${enable_smart_resize+set}" = set; then
8461 enableval="$enable_smart_resize" 4471 enableval="$enable_smart_resize"
8462 if test x$enableval = xyes; then 4472 if test x$enableval = xyes; then
8463 4473
8464cat >>confdefs.h <<\_ACEOF 4474cat >>confdefs.h <<\_ACEOF
8465#define SMART_RESIZE 1 4475#define SMART_RESIZE 1
8466_ACEOF 4476_ACEOF
8467 4477
8468 fi
8469fi;
8470
8471# Check whether --enable-256-color or --disable-256-color was given.
8472if test "${enable_256_color+set}" = set; then
8473 enableval="$enable_256_color"
8474 if test x$enableval = xyes; then
8475
8476cat >>confdefs.h <<\_ACEOF
8477#define TTY_256COLOR 1
8478_ACEOF
8479
8480 fi
8481fi;
8482
8483# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8484if test "${enable_cursor_blink+set}" = set; then
8485 enableval="$enable_cursor_blink"
8486 if test x$enableval = xyes -o x$enableval = xno; then
8487 support_cursor_blink=$enableval
8488 fi 4478 fi
8489fi; 4479fi;
8490 4480
8491# Check whether --enable-text-blink or --disable-text-blink was given. 4481# Check whether --enable-text-blink or --disable-text-blink was given.
8492if test "${enable_text_blink+set}" = set; then 4482if test "${enable_text_blink+set}" = set; then
8528_ACEOF 4518_ACEOF
8529 terminfo="$withval" 4519 terminfo="$withval"
8530 fi 4520 fi
8531fi; 4521fi;
8532 4522
8533
8534
8535cat >>confdefs.h <<\_ACEOF
8536#define PROTOTYPES 1
8537_ACEOF
8538
8539
8540if test -z "$CFLAGS"; then
8541 if test -z "$CCOPTS"; then
8542 CCOPTS='-O'
8543 fi
8544 CFLAGS="$CCOPTS"
8545fi
8546 4523
8547# Extract the first word of "mv", so it can be a program name with args. 4524# Extract the first word of "mv", so it can be a program name with args.
8548set dummy mv; ac_word=$2 4525set dummy mv; ac_word=$2
8549echo "$as_me:$LINENO: checking for $ac_word" >&5 4526echo "$as_me:$LINENO: checking for $ac_word" >&5
8550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8582else 4559else
8583 echo "$as_me:$LINENO: result: no" >&5 4560 echo "$as_me:$LINENO: result: no" >&5
8584echo "${ECHO_T}no" >&6 4561echo "${ECHO_T}no" >&6
8585fi 4562fi
8586 4563
8587# Extract the first word of "rm", so it can be a program name with args.
8588set dummy rm; ac_word=$2
8589echo "$as_me:$LINENO: checking for $ac_word" >&5
8590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8591if test "${ac_cv_path_RM+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8593else
8594 case $RM in
8595 [\\/]* | ?:[\\/]*)
8596 ac_cv_path_RM="$RM" # Let the user override the test with a path.
8597 ;;
8598 *)
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600for as_dir in $PATH
8601do
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8606 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 break 2
8609 fi
8610done
8611done
8612
8613 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
8614 ;;
8615esac
8616fi
8617RM=$ac_cv_path_RM
8618
8619if test -n "$RM"; then
8620 echo "$as_me:$LINENO: result: $RM" >&5
8621echo "${ECHO_T}$RM" >&6
8622else
8623 echo "$as_me:$LINENO: result: no" >&5
8624echo "${ECHO_T}no" >&6
8625fi
8626
8627# Extract the first word of "cp", so it can be a program name with args. 4564# Extract the first word of "cp", so it can be a program name with args.
8628set dummy cp; ac_word=$2 4565set dummy cp; ac_word=$2
8629echo "$as_me:$LINENO: checking for $ac_word" >&5 4566echo "$as_me:$LINENO: checking for $ac_word" >&5
8630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8631if test "${ac_cv_path_CP+set}" = set; then 4568if test "${ac_cv_path_CP+set}" = set; then
8822else 4759else
8823 echo "$as_me:$LINENO: result: no" >&5 4760 echo "$as_me:$LINENO: result: no" >&5
8824echo "${ECHO_T}no" >&6 4761echo "${ECHO_T}no" >&6
8825fi 4762fi
8826 4763
8827# Extract the first word of "tbl", so it can be a program name with args. 4764# Extract the first word of "tic", so it can be a program name with args.
8828set dummy tbl; ac_word=$2 4765set dummy tic; ac_word=$2
8829echo "$as_me:$LINENO: checking for $ac_word" >&5 4766echo "$as_me:$LINENO: checking for $ac_word" >&5
8830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8831if test "${ac_cv_path_TBL+set}" = set; then 4768if test "${ac_cv_path_TIC+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6 4769 echo $ECHO_N "(cached) $ECHO_C" >&6
8833else 4770else
8834 case $TBL in 4771 case $TIC in
8835 [\\/]* | ?:[\\/]*) 4772 [\\/]* | ?:[\\/]*)
8836 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 4773 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8837 ;; 4774 ;;
8838 *) 4775 *)
8839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840for as_dir in $PATH 4777for as_dir in $PATH
8841do 4778do
8842 IFS=$as_save_IFS 4779 IFS=$as_save_IFS
8843 test -z "$as_dir" && as_dir=. 4780 test -z "$as_dir" && as_dir=.
8844 for ac_exec_ext in '' $ac_executable_extensions; do 4781 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8846 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" 4783 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
8847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8848 break 2 4785 break 2
8849 fi 4786 fi
8850done 4787done
8851done 4788done
8852 4789
8853 ;; 4790 ;;
8854esac 4791esac
8855fi 4792fi
8856TBL=$ac_cv_path_TBL 4793TIC=$ac_cv_path_TIC
8857 4794
8858if test -n "$TBL"; then 4795if test -n "$TIC"; then
8859 echo "$as_me:$LINENO: result: $TBL" >&5 4796 echo "$as_me:$LINENO: result: $TIC" >&5
8860echo "${ECHO_T}$TBL" >&6 4797echo "${ECHO_T}$TIC" >&6
8861else 4798else
8862 echo "$as_me:$LINENO: result: no" >&5 4799 echo "$as_me:$LINENO: result: no" >&5
8863echo "${ECHO_T}no" >&6 4800echo "${ECHO_T}no" >&6
8864fi 4801fi
8865 4802
8866 4803
8867 4804
8868 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
4811echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4812echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4813if test -z "$CXXCPP"; then
4814 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816else
4817 # Double quotes because CXXCPP needs to be expanded
4818 for CXXCPP in "$CXX -E" "/lib/cpp"
4819 do
4820 ac_preproc_ok=false
4821for ac_cxx_preproc_warn_flag in '' yes
4822do
4823 # Use a header file that comes with gcc, so configuring glibc
4824 # with a fresh cross-compiler works.
4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 # <limits.h> exists even on freestanding compilers.
4827 # On the NeXT, cc -E runs the code through the compiler's parser,
4828 # not just through cpp. "Syntax error" is here to catch this case.
4829 cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h. */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h. */
4835#ifdef __STDC__
4836# include <limits.h>
4837#else
4838# include <assert.h>
4839#endif
4840 Syntax error
4841_ACEOF
4842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null; then
4850 if test -s conftest.err; then
4851 ac_cpp_err=$ac_cxx_preproc_warn_flag
4852 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4853 else
4854 ac_cpp_err=
4855 fi
4856else
4857 ac_cpp_err=yes
4858fi
4859if test -z "$ac_cpp_err"; then
4860 :
4861else
4862 echo "$as_me: failed program was:" >&5
4863sed 's/^/| /' conftest.$ac_ext >&5
4864
4865 # Broken: fails on valid input.
4866continue
4867fi
4868rm -f conftest.err conftest.$ac_ext
4869
4870 # OK, works on sane cases. Now check whether non-existent headers
4871 # can be detected and how.
4872 cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h. */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h. */
4878#include <ac_nonexistent.h>
4879_ACEOF
4880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } >/dev/null; then
4888 if test -s conftest.err; then
4889 ac_cpp_err=$ac_cxx_preproc_warn_flag
4890 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4891 else
4892 ac_cpp_err=
4893 fi
4894else
4895 ac_cpp_err=yes
4896fi
4897if test -z "$ac_cpp_err"; then
4898 # Broken: success on invalid input.
4899continue
4900else
4901 echo "$as_me: failed program was:" >&5
4902sed 's/^/| /' conftest.$ac_ext >&5
4903
4904 # Passes both tests.
4905ac_preproc_ok=:
4906break
4907fi
4908rm -f conftest.err conftest.$ac_ext
4909
4910done
4911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4912rm -f conftest.err conftest.$ac_ext
4913if $ac_preproc_ok; then
4914 break
4915fi
4916
4917 done
4918 ac_cv_prog_CXXCPP=$CXXCPP
4919
4920fi
4921 CXXCPP=$ac_cv_prog_CXXCPP
4922else
4923 ac_cv_prog_CXXCPP=$CXXCPP
4924fi
4925echo "$as_me:$LINENO: result: $CXXCPP" >&5
4926echo "${ECHO_T}$CXXCPP" >&6
4927ac_preproc_ok=false
4928for ac_cxx_preproc_warn_flag in '' yes
4929do
4930 # Use a header file that comes with gcc, so configuring glibc
4931 # with a fresh cross-compiler works.
4932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933 # <limits.h> exists even on freestanding compilers.
4934 # On the NeXT, cc -E runs the code through the compiler's parser,
4935 # not just through cpp. "Syntax error" is here to catch this case.
4936 cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h. */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h. */
4942#ifdef __STDC__
4943# include <limits.h>
4944#else
4945# include <assert.h>
4946#endif
4947 Syntax error
4948_ACEOF
4949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null; then
4957 if test -s conftest.err; then
4958 ac_cpp_err=$ac_cxx_preproc_warn_flag
4959 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4960 else
4961 ac_cpp_err=
4962 fi
4963else
4964 ac_cpp_err=yes
4965fi
4966if test -z "$ac_cpp_err"; then
4967 :
4968else
4969 echo "$as_me: failed program was:" >&5
4970sed 's/^/| /' conftest.$ac_ext >&5
4971
4972 # Broken: fails on valid input.
4973continue
4974fi
4975rm -f conftest.err conftest.$ac_ext
4976
4977 # OK, works on sane cases. Now check whether non-existent headers
4978 # can be detected and how.
4979 cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#include <ac_nonexistent.h>
4986_ACEOF
4987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null; then
4995 if test -s conftest.err; then
4996 ac_cpp_err=$ac_cxx_preproc_warn_flag
4997 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4998 else
4999 ac_cpp_err=
5000 fi
5001else
5002 ac_cpp_err=yes
5003fi
5004if test -z "$ac_cpp_err"; then
5005 # Broken: success on invalid input.
5006continue
5007else
5008 echo "$as_me: failed program was:" >&5
5009sed 's/^/| /' conftest.$ac_ext >&5
5010
5011 # Passes both tests.
5012ac_preproc_ok=:
5013break
5014fi
5015rm -f conftest.err conftest.$ac_ext
5016
5017done
5018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019rm -f conftest.err conftest.$ac_ext
5020if $ac_preproc_ok; then
5021 :
5022else
5023 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5024See \`config.log' for more details." >&5
5025echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5026See \`config.log' for more details." >&2;}
5027 { (exit 1); exit 1; }; }
5028fi
5029
5030ac_ext=cc
5031ac_cpp='$CXXCPP $CPPFLAGS'
5032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5035
5036
5037
5038if test "x$ac_path_x_has_been_run" != xyes; then
8869echo "$as_me:$LINENO: checking for X" >&5 5039 echo "$as_me:$LINENO: checking for X" >&5
8870echo $ECHO_N "checking for X... $ECHO_C" >&6 5040echo $ECHO_N "checking for X... $ECHO_C" >&6
8871 5041
5042ac_path_x_has_been_run=yes
8872 5043
8873# Check whether --with-x or --without-x was given. 5044# Check whether --with-x or --without-x was given.
8874if test "${with_x+set}" = set; then 5045if test "${with_x+set}" = set; then
8875 withval="$with_x" 5046 withval="$with_x"
8876 5047
8959 5130
8960/usr/openwin/include 5131/usr/openwin/include
8961/usr/openwin/share/include' 5132/usr/openwin/share/include'
8962 5133
8963if test "$ac_x_includes" = no; then 5134if test "$ac_x_includes" = no; then
8964 # Guess where to find include files, by looking for Intrinsic.h. 5135 # Guess where to find include files, by looking for a specified header file.
8965 # First, try using that file with no special directory specified. 5136 # First, try using that file with no special directory specified.
8966 cat >conftest.$ac_ext <<_ACEOF 5137 cat >conftest.$ac_ext <<_ACEOF
8967/* confdefs.h. */ 5138/* confdefs.h. */
8968_ACEOF 5139_ACEOF
8969cat confdefs.h >>conftest.$ac_ext 5140cat confdefs.h >>conftest.$ac_ext
8970cat >>conftest.$ac_ext <<_ACEOF 5141cat >>conftest.$ac_ext <<_ACEOF
8971/* end confdefs.h. */ 5142/* end confdefs.h. */
8972#include <X11/Intrinsic.h> 5143#include <X11/Xlib.h>
8973_ACEOF 5144_ACEOF
8974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8976 ac_status=$? 5147 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err 5148 grep -v '^ *+' conftest.er1 >conftest.err
8994else 5165else
8995 echo "$as_me: failed program was:" >&5 5166 echo "$as_me: failed program was:" >&5
8996sed 's/^/| /' conftest.$ac_ext >&5 5167sed 's/^/| /' conftest.$ac_ext >&5
8997 5168
8998 for ac_dir in $ac_x_header_dirs; do 5169 for ac_dir in $ac_x_header_dirs; do
8999 if test -r "$ac_dir/X11/Intrinsic.h"; then 5170 if test -r "$ac_dir/X11/Xlib.h"; then
9000 ac_x_includes=$ac_dir 5171 ac_x_includes=$ac_dir
9001 break 5172 break
9002 fi 5173 fi
9003done 5174done
9004fi 5175fi
9008if test "$ac_x_libraries" = no; then 5179if test "$ac_x_libraries" = no; then
9009 # Check for the libraries. 5180 # Check for the libraries.
9010 # See if we find them without any special options. 5181 # See if we find them without any special options.
9011 # Don't add to $LIBS permanently. 5182 # Don't add to $LIBS permanently.
9012 ac_save_LIBS=$LIBS 5183 ac_save_LIBS=$LIBS
9013 LIBS="-lXt $LIBS" 5184 LIBS="-lX11 $LIBS"
9014 cat >conftest.$ac_ext <<_ACEOF 5185 cat >conftest.$ac_ext <<_ACEOF
9015/* confdefs.h. */ 5186/* confdefs.h. */
9016_ACEOF 5187_ACEOF
9017cat confdefs.h >>conftest.$ac_ext 5188cat confdefs.h >>conftest.$ac_ext
9018cat >>conftest.$ac_ext <<_ACEOF 5189cat >>conftest.$ac_ext <<_ACEOF
9019/* end confdefs.h. */ 5190/* end confdefs.h. */
9020#include <X11/Intrinsic.h> 5191#include <X11/Xlib.h>
9021int 5192int
9022main () 5193main ()
9023{ 5194{
9024XtMalloc (0) 5195XrmInitialize ()
9025 ; 5196 ;
9026 return 0; 5197 return 0;
9027} 5198}
9028_ACEOF 5199_ACEOF
9029rm -f conftest.$ac_objext conftest$ac_exeext 5200rm -f conftest.$ac_objext conftest$ac_exeext
9057LIBS=$ac_save_LIBS 5228LIBS=$ac_save_LIBS
9058for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5229for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9059do 5230do
9060 # Don't even attempt the hair of trying to link an X program! 5231 # Don't even attempt the hair of trying to link an X program!
9061 for ac_extension in a so sl; do 5232 for ac_extension in a so sl; do
9062 if test -r $ac_dir/libXt.$ac_extension; then 5233 if test -r $ac_dir/libX11.$ac_extension; then
9063 ac_x_libraries=$ac_dir 5234 ac_x_libraries=$ac_dir
9064 break 2 5235 break 2
9065 fi 5236 fi
9066 done 5237 done
9067done 5238done
9093 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5264 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9094 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5265 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9095 # Update the cache value to reflect the command line values. 5266 # Update the cache value to reflect the command line values.
9096 ac_cv_have_x="have_x=yes \ 5267 ac_cv_have_x="have_x=yes \
9097 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 5268 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5269 # It might be that x_includes is empty (headers are found in the
5270 # standard search path. Then output the corresponding message
5271 ac_out_x_includes=$x_includes
5272 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9098 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5273 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
9099echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 5274echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
9100fi 5275fi
9101 5276
5277fi
9102if test "$no_x" = yes; then 5278if test "$no_x" = yes; then
9103 # Not all programs may use this symbol, but it does not hurt to define it. 5279 # Not all programs may use this symbol, but it does not hurt to define it.
9104 5280
9105cat >>confdefs.h <<\_ACEOF 5281cat >>confdefs.h <<\_ACEOF
9106#define X_DISPLAY_MISSING 1 5282#define X_DISPLAY_MISSING 1
10664#define HAVE_SYS_WAIT_H 1 6840#define HAVE_SYS_WAIT_H 1
10665_ACEOF 6841_ACEOF
10666 6842
10667fi 6843fi
10668 6844
6845echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6846echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6847if test "${ac_cv_header_stdc+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850 cat >conftest.$ac_ext <<_ACEOF
6851/* confdefs.h. */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h. */
6856#include <stdlib.h>
6857#include <stdarg.h>
6858#include <string.h>
6859#include <float.h>
6860
6861int
6862main ()
6863{
6864
6865 ;
6866 return 0;
6867}
6868_ACEOF
6869rm -f conftest.$ac_objext
6870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>conftest.er1
6872 ac_status=$?
6873 grep -v '^ *+' conftest.er1 >conftest.err
6874 rm -f conftest.er1
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 (eval $ac_try) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; } &&
6884 { ac_try='test -s conftest.$ac_objext'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 (eval $ac_try) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6890 ac_cv_header_stdc=yes
6891else
6892 echo "$as_me: failed program was:" >&5
6893sed 's/^/| /' conftest.$ac_ext >&5
6894
6895ac_cv_header_stdc=no
6896fi
6897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6898
6899if test $ac_cv_header_stdc = yes; then
6900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6901 cat >conftest.$ac_ext <<_ACEOF
6902/* confdefs.h. */
6903_ACEOF
6904cat confdefs.h >>conftest.$ac_ext
6905cat >>conftest.$ac_ext <<_ACEOF
6906/* end confdefs.h. */
6907#include <string.h>
6908
6909_ACEOF
6910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911 $EGREP "memchr" >/dev/null 2>&1; then
6912 :
6913else
6914 ac_cv_header_stdc=no
6915fi
6916rm -f conftest*
6917
6918fi
6919
6920if test $ac_cv_header_stdc = yes; then
6921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6922 cat >conftest.$ac_ext <<_ACEOF
6923/* confdefs.h. */
6924_ACEOF
6925cat confdefs.h >>conftest.$ac_ext
6926cat >>conftest.$ac_ext <<_ACEOF
6927/* end confdefs.h. */
6928#include <stdlib.h>
6929
6930_ACEOF
6931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6932 $EGREP "free" >/dev/null 2>&1; then
6933 :
6934else
6935 ac_cv_header_stdc=no
6936fi
6937rm -f conftest*
6938
6939fi
6940
6941if test $ac_cv_header_stdc = yes; then
6942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6943 if test "$cross_compiling" = yes; then
6944 :
6945else
6946 cat >conftest.$ac_ext <<_ACEOF
6947/* confdefs.h. */
6948_ACEOF
6949cat confdefs.h >>conftest.$ac_ext
6950cat >>conftest.$ac_ext <<_ACEOF
6951/* end confdefs.h. */
6952#include <ctype.h>
6953#if ((' ' & 0x0FF) == 0x020)
6954# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6955# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6956#else
6957# define ISLOWER(c) \
6958 (('a' <= (c) && (c) <= 'i') \
6959 || ('j' <= (c) && (c) <= 'r') \
6960 || ('s' <= (c) && (c) <= 'z'))
6961# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6962#endif
6963
6964#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6965int
6966main ()
6967{
6968 int i;
6969 for (i = 0; i < 256; i++)
6970 if (XOR (islower (i), ISLOWER (i))
6971 || toupper (i) != TOUPPER (i))
6972 exit(2);
6973 exit (0);
6974}
6975_ACEOF
6976rm -f conftest$ac_exeext
6977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6978 (eval $ac_link) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 :
6988else
6989 echo "$as_me: program exited with status $ac_status" >&5
6990echo "$as_me: failed program was:" >&5
6991sed 's/^/| /' conftest.$ac_ext >&5
6992
6993( exit $ac_status )
6994ac_cv_header_stdc=no
6995fi
6996rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6997fi
6998fi
6999fi
7000echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7001echo "${ECHO_T}$ac_cv_header_stdc" >&6
7002if test $ac_cv_header_stdc = yes; then
7003
7004cat >>confdefs.h <<\_ACEOF
7005#define STDC_HEADERS 1
7006_ACEOF
7007
7008fi
7009
7010# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7021 inttypes.h stdint.h unistd.h
7022do
7023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024echo "$as_me:$LINENO: checking for $ac_header" >&5
7025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7026if eval "test \"\${$as_ac_Header+set}\" = set"; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028else
7029 cat >conftest.$ac_ext <<_ACEOF
7030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
7034/* end confdefs.h. */
7035$ac_includes_default
7036
7037#include <$ac_header>
7038_ACEOF
7039rm -f conftest.$ac_objext
7040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7041 (eval $ac_compile) 2>conftest.er1
7042 ac_status=$?
7043 grep -v '^ *+' conftest.er1 >conftest.err
7044 rm -f conftest.er1
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5
7051 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } &&
7054 { ac_try='test -s conftest.$ac_objext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 eval "$as_ac_Header=yes"
7061else
7062 echo "$as_me: failed program was:" >&5
7063sed 's/^/| /' conftest.$ac_ext >&5
7064
7065eval "$as_ac_Header=no"
7066fi
7067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7068fi
7069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7071if test `eval echo '${'$as_ac_Header'}'` = yes; then
7072 cat >>confdefs.h <<_ACEOF
7073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7074_ACEOF
7075
7076fi
7077
7078done
10669 7079
10670 7080
10671 7081
10672 7082
10673 7083
10686 7096
10687 7097
10688for ac_header in \ 7098for ac_header in \
10689 assert.h \ 7099 assert.h \
10690 fcntl.h \ 7100 fcntl.h \
10691 grp.h \
10692 libc.h \
10693 lastlog.h \
10694 stdarg.h \ 7101 stdarg.h \
10695 stdlib.h \ 7102 stdlib.h \
10696 string.h \ 7103 string.h \
10697 termios.h \ 7104 termios.h \
10698 unistd.h \ 7105 unistd.h \
10700 sys/ioctl.h \ 7107 sys/ioctl.h \
10701 sys/select.h \ 7108 sys/select.h \
10702 sys/sockio.h \ 7109 sys/sockio.h \
10703 sys/strredir.h \ 7110 sys/strredir.h \
10704 sys/time.h \ 7111 sys/time.h \
10705 utmp.h \ 7112 stdint.h \
10706 utmpx.h \ 7113 wchar.h \
10707 stdint.h \ 7114 cwchar \
7115 clocale \
10708 7116
10709do 7117do
10710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10711if eval "test \"\${$as_ac_Header+set}\" = set"; then 7119if eval "test \"\${$as_ac_Header+set}\" = set"; then
10712 echo "$as_me:$LINENO: checking for $ac_header" >&5 7120 echo "$as_me:$LINENO: checking for $ac_header" >&5
11496_ACEOF 7904_ACEOF
11497 7905
11498fi 7906fi
11499 7907
11500 7908
11501
11502echo "$as_me:$LINENO: checking for char" >&5
11503echo $ECHO_N "checking for char... $ECHO_C" >&6
11504if test "${ac_cv_type_char+set}" = set; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11506else
11507 cat >conftest.$ac_ext <<_ACEOF
11508/* confdefs.h. */
11509_ACEOF
11510cat confdefs.h >>conftest.$ac_ext
11511cat >>conftest.$ac_ext <<_ACEOF
11512/* end confdefs.h. */
11513$ac_includes_default
11514int
11515main ()
11516{
11517if ((char *) 0)
11518 return 0;
11519if (sizeof (char))
11520 return 0;
11521 ;
11522 return 0;
11523}
11524_ACEOF
11525rm -f conftest.$ac_objext
11526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11527 (eval $ac_compile) 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest.$ac_objext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 ac_cv_type_char=yes
11547else
11548 echo "$as_me: failed program was:" >&5
11549sed 's/^/| /' conftest.$ac_ext >&5
11550
11551ac_cv_type_char=no
11552fi
11553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11554fi
11555echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11556echo "${ECHO_T}$ac_cv_type_char" >&6
11557
11558echo "$as_me:$LINENO: checking size of char" >&5
11559echo $ECHO_N "checking size of char... $ECHO_C" >&6
11560if test "${ac_cv_sizeof_char+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562else
11563 if test "$ac_cv_type_char" = yes; then
11564 # The cast to unsigned long works around a bug in the HP C Compiler
11565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11567 # This bug is HP SR number 8606223364.
11568 if test "$cross_compiling" = yes; then
11569 # Depending upon the size, compute the lo and hi bounds.
11570cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576$ac_includes_default
11577int
11578main ()
11579{
11580static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11581test_array [0] = 0
11582
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587rm -f conftest.$ac_objext
11588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest.$ac_objext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_lo=0 ac_mid=0
11609 while :; do
11610 cat >conftest.$ac_ext <<_ACEOF
11611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
11616$ac_includes_default
11617int
11618main ()
11619{
11620static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11621test_array [0] = 0
11622
11623 ;
11624 return 0;
11625}
11626_ACEOF
11627rm -f conftest.$ac_objext
11628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_hi=$ac_mid; break
11649else
11650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653ac_lo=`expr $ac_mid + 1`
11654 if test $ac_lo -le $ac_mid; then
11655 ac_lo= ac_hi=
11656 break
11657 fi
11658 ac_mid=`expr 2 '*' $ac_mid + 1`
11659fi
11660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11661 done
11662else
11663 echo "$as_me: failed program was:" >&5
11664sed 's/^/| /' conftest.$ac_ext >&5
11665
11666cat >conftest.$ac_ext <<_ACEOF
11667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
11672$ac_includes_default
11673int
11674main ()
11675{
11676static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11677test_array [0] = 0
11678
11679 ;
11680 return 0;
11681}
11682_ACEOF
11683rm -f conftest.$ac_objext
11684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11685 (eval $ac_compile) 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
11692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest.$ac_objext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_hi=-1 ac_mid=-1
11705 while :; do
11706 cat >conftest.$ac_ext <<_ACEOF
11707/* confdefs.h. */
11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h. */
11712$ac_includes_default
11713int
11714main ()
11715{
11716static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11717test_array [0] = 0
11718
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723rm -f conftest.$ac_objext
11724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_lo=$ac_mid; break
11745else
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
11749ac_hi=`expr '(' $ac_mid ')' - 1`
11750 if test $ac_mid -le $ac_hi; then
11751 ac_lo= ac_hi=
11752 break
11753 fi
11754 ac_mid=`expr 2 '*' $ac_mid`
11755fi
11756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11757 done
11758else
11759 echo "$as_me: failed program was:" >&5
11760sed 's/^/| /' conftest.$ac_ext >&5
11761
11762ac_lo= ac_hi=
11763fi
11764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11765fi
11766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11767# Binary search between lo and hi bounds.
11768while test "x$ac_lo" != "x$ac_hi"; do
11769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11770 cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
11776$ac_includes_default
11777int
11778main ()
11779{
11780static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11781test_array [0] = 0
11782
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_hi=$ac_mid
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813ac_lo=`expr '(' $ac_mid ')' + 1`
11814fi
11815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11816done
11817case $ac_lo in
11818?*) ac_cv_sizeof_char=$ac_lo;;
11819'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11820See \`config.log' for more details." >&5
11821echo "$as_me: error: cannot compute sizeof (char), 77
11822See \`config.log' for more details." >&2;}
11823 { (exit 1); exit 1; }; } ;;
11824esac
11825else
11826 if test "$cross_compiling" = yes; then
11827 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11828echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11829 { (exit 1); exit 1; }; }
11830else
11831 cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837$ac_includes_default
11838long longval () { return (long) (sizeof (char)); }
11839unsigned long ulongval () { return (long) (sizeof (char)); }
11840#include <stdio.h>
11841#include <stdlib.h>
11842int
11843main ()
11844{
11845
11846 FILE *f = fopen ("conftest.val", "w");
11847 if (! f)
11848 exit (1);
11849 if (((long) (sizeof (char))) < 0)
11850 {
11851 long i = longval ();
11852 if (i != ((long) (sizeof (char))))
11853 exit (1);
11854 fprintf (f, "%ld\n", i);
11855 }
11856 else
11857 {
11858 unsigned long i = ulongval ();
11859 if (i != ((long) (sizeof (char))))
11860 exit (1);
11861 fprintf (f, "%lu\n", i);
11862 }
11863 exit (ferror (f) || fclose (f) != 0);
11864
11865 ;
11866 return 0;
11867}
11868_ACEOF
11869rm -f conftest$ac_exeext
11870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871 (eval $ac_link) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_cv_sizeof_char=`cat conftest.val`
11881else
11882 echo "$as_me: program exited with status $ac_status" >&5
11883echo "$as_me: failed program was:" >&5
11884sed 's/^/| /' conftest.$ac_ext >&5
11885
11886( exit $ac_status )
11887{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11888See \`config.log' for more details." >&5
11889echo "$as_me: error: cannot compute sizeof (char), 77
11890See \`config.log' for more details." >&2;}
11891 { (exit 1); exit 1; }; }
11892fi
11893rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11894fi
11895fi
11896rm -f conftest.val
11897else
11898 ac_cv_sizeof_char=0
11899fi
11900fi
11901echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11902echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11903cat >>confdefs.h <<_ACEOF
11904#define SIZEOF_CHAR $ac_cv_sizeof_char
11905_ACEOF
11906
11907
11908echo "$as_me:$LINENO: checking for short" >&5 7909echo "$as_me:$LINENO: checking for short" >&5
11909echo $ECHO_N "checking for short... $ECHO_C" >&6 7910echo $ECHO_N "checking for short... $ECHO_C" >&6
11910if test "${ac_cv_type_short+set}" = set; then 7911if test "${ac_cv_type_short+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6 7912 echo $ECHO_N "(cached) $ECHO_C" >&6
11912else 7913else
12715cat >>confdefs.h <<_ACEOF 8716cat >>confdefs.h <<_ACEOF
12716#define SIZEOF_INT $ac_cv_sizeof_int 8717#define SIZEOF_INT $ac_cv_sizeof_int
12717_ACEOF 8718_ACEOF
12718 8719
12719 8720
12720echo "$as_me:$LINENO: checking for long" >&5
12721echo $ECHO_N "checking for long... $ECHO_C" >&6
12722if test "${ac_cv_type_long+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12724else
12725 cat >conftest.$ac_ext <<_ACEOF
12726/* confdefs.h. */
12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h. */
12731$ac_includes_default
12732int
12733main ()
12734{
12735if ((long *) 0)
12736 return 0;
12737if (sizeof (long))
12738 return 0;
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743rm -f conftest.$ac_objext
12744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 ac_cv_type_long=yes
12765else
12766 echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
12769ac_cv_type_long=no
12770fi
12771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12772fi
12773echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12774echo "${ECHO_T}$ac_cv_type_long" >&6
12775
12776echo "$as_me:$LINENO: checking size of long" >&5
12777echo $ECHO_N "checking size of long... $ECHO_C" >&6
12778if test "${ac_cv_sizeof_long+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780else
12781 if test "$ac_cv_type_long" = yes; then
12782 # The cast to unsigned long works around a bug in the HP C Compiler
12783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12785 # This bug is HP SR number 8606223364.
12786 if test "$cross_compiling" = yes; then
12787 # Depending upon the size, compute the lo and hi bounds.
12788cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
12794$ac_includes_default
12795int
12796main ()
12797{
12798static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12799test_array [0] = 0
12800
12801 ;
12802 return 0;
12803}
12804_ACEOF
12805rm -f conftest.$ac_objext
12806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>conftest.er1
12808 ac_status=$?
12809 grep -v '^ *+' conftest.er1 >conftest.err
12810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; } &&
12820 { ac_try='test -s conftest.$ac_objext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_lo=0 ac_mid=0
12827 while :; do
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834$ac_includes_default
12835int
12836main ()
12837{
12838static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12839test_array [0] = 0
12840
12841 ;
12842 return 0;
12843}
12844_ACEOF
12845rm -f conftest.$ac_objext
12846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
12854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest.$ac_objext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 ac_hi=$ac_mid; break
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871ac_lo=`expr $ac_mid + 1`
12872 if test $ac_lo -le $ac_mid; then
12873 ac_lo= ac_hi=
12874 break
12875 fi
12876 ac_mid=`expr 2 '*' $ac_mid + 1`
12877fi
12878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12879 done
12880else
12881 echo "$as_me: failed program was:" >&5
12882sed 's/^/| /' conftest.$ac_ext >&5
12883
12884cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
12890$ac_includes_default
12891int
12892main ()
12893{
12894static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12895test_array [0] = 0
12896
12897 ;
12898 return 0;
12899}
12900_ACEOF
12901rm -f conftest.$ac_objext
12902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903 (eval $ac_compile) 2>conftest.er1
12904 ac_status=$?
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest.$ac_objext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_hi=-1 ac_mid=-1
12923 while :; do
12924 cat >conftest.$ac_ext <<_ACEOF
12925/* confdefs.h. */
12926_ACEOF
12927cat confdefs.h >>conftest.$ac_ext
12928cat >>conftest.$ac_ext <<_ACEOF
12929/* end confdefs.h. */
12930$ac_includes_default
12931int
12932main ()
12933{
12934static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12935test_array [0] = 0
12936
12937 ;
12938 return 0;
12939}
12940_ACEOF
12941rm -f conftest.$ac_objext
12942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12943 (eval $ac_compile) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest.$ac_objext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_lo=$ac_mid; break
12963else
12964 echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967ac_hi=`expr '(' $ac_mid ')' - 1`
12968 if test $ac_mid -le $ac_hi; then
12969 ac_lo= ac_hi=
12970 break
12971 fi
12972 ac_mid=`expr 2 '*' $ac_mid`
12973fi
12974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12975 done
12976else
12977 echo "$as_me: failed program was:" >&5
12978sed 's/^/| /' conftest.$ac_ext >&5
12979
12980ac_lo= ac_hi=
12981fi
12982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12983fi
12984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12985# Binary search between lo and hi bounds.
12986while test "x$ac_lo" != "x$ac_hi"; do
12987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12988 cat >conftest.$ac_ext <<_ACEOF
12989/* confdefs.h. */
12990_ACEOF
12991cat confdefs.h >>conftest.$ac_ext
12992cat >>conftest.$ac_ext <<_ACEOF
12993/* end confdefs.h. */
12994$ac_includes_default
12995int
12996main ()
12997{
12998static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12999test_array [0] = 0
13000
13001 ;
13002 return 0;
13003}
13004_ACEOF
13005rm -f conftest.$ac_objext
13006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13007 (eval $ac_compile) 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest.$ac_objext'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 ac_hi=$ac_mid
13027else
13028 echo "$as_me: failed program was:" >&5
13029sed 's/^/| /' conftest.$ac_ext >&5
13030
13031ac_lo=`expr '(' $ac_mid ')' + 1`
13032fi
13033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13034done
13035case $ac_lo in
13036?*) ac_cv_sizeof_long=$ac_lo;;
13037'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13038See \`config.log' for more details." >&5
13039echo "$as_me: error: cannot compute sizeof (long), 77
13040See \`config.log' for more details." >&2;}
13041 { (exit 1); exit 1; }; } ;;
13042esac
13043else
13044 if test "$cross_compiling" = yes; then
13045 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13046echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13047 { (exit 1); exit 1; }; }
13048else
13049 cat >conftest.$ac_ext <<_ACEOF
13050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
13055$ac_includes_default
13056long longval () { return (long) (sizeof (long)); }
13057unsigned long ulongval () { return (long) (sizeof (long)); }
13058#include <stdio.h>
13059#include <stdlib.h>
13060int
13061main ()
13062{
13063
13064 FILE *f = fopen ("conftest.val", "w");
13065 if (! f)
13066 exit (1);
13067 if (((long) (sizeof (long))) < 0)
13068 {
13069 long i = longval ();
13070 if (i != ((long) (sizeof (long))))
13071 exit (1);
13072 fprintf (f, "%ld\n", i);
13073 }
13074 else
13075 {
13076 unsigned long i = ulongval ();
13077 if (i != ((long) (sizeof (long))))
13078 exit (1);
13079 fprintf (f, "%lu\n", i);
13080 }
13081 exit (ferror (f) || fclose (f) != 0);
13082
13083 ;
13084 return 0;
13085}
13086_ACEOF
13087rm -f conftest$ac_exeext
13088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_cv_sizeof_long=`cat conftest.val`
13099else
13100 echo "$as_me: program exited with status $ac_status" >&5
13101echo "$as_me: failed program was:" >&5
13102sed 's/^/| /' conftest.$ac_ext >&5
13103
13104( exit $ac_status )
13105{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13106See \`config.log' for more details." >&5
13107echo "$as_me: error: cannot compute sizeof (long), 77
13108See \`config.log' for more details." >&2;}
13109 { (exit 1); exit 1; }; }
13110fi
13111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13112fi
13113fi
13114rm -f conftest.val
13115else
13116 ac_cv_sizeof_long=0
13117fi
13118fi
13119echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13120echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13121cat >>confdefs.h <<_ACEOF
13122#define SIZEOF_LONG $ac_cv_sizeof_long
13123_ACEOF
13124
13125
13126echo "$as_me:$LINENO: checking for long long" >&5 8721echo "$as_me:$LINENO: checking for long long" >&5
13127echo $ECHO_N "checking for long long... $ECHO_C" >&6 8722echo $ECHO_N "checking for long long... $ECHO_C" >&6
13128if test "${ac_cv_type_long_long+set}" = set; then 8723if test "${ac_cv_type_long_long+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6 8724 echo $ECHO_N "(cached) $ECHO_C" >&6
13130else 8725else
13981 rxvt_cv_int16_t=yes 9576 rxvt_cv_int16_t=yes
13982else 9577else
13983 echo "$as_me: failed program was:" >&5 9578 echo "$as_me: failed program was:" >&5
13984sed 's/^/| /' conftest.$ac_ext >&5 9579sed 's/^/| /' conftest.$ac_ext >&5
13985 9580
13986if test $ac_cv_sizeof_char -ge 2; then 9581if test "$ac_cv_sizeof_char" -ge 2; then
13987 rxvt_cv_int16_t=" char" 9582 rxvt_cv_int16_t=" char"
13988else 9583else
13989 if test $ac_cv_sizeof_short -ge 2; then 9584 if test "$ac_cv_sizeof_short" -ge 2; then
13990 rxvt_cv_int16_t=" short" 9585 rxvt_cv_int16_t=" short"
13991 else 9586 else
13992 if test $ac_cv_sizeof_int -ge 2; then 9587 if test "$ac_cv_sizeof_int" -ge 2; then
13993 rxvt_cv_int16_t=" int" 9588 rxvt_cv_int16_t=" int"
13994 else 9589 else
13995 if test $ac_cv_sizeof_long -ge 2; then 9590 if test "$ac_cv_sizeof_long" -ge 2; then
13996 rxvt_cv_int16_t=" long" 9591 rxvt_cv_int16_t=" long"
13997 else 9592 else
13998 if test $ac_cv_sizeof_long_long -ge 2; then 9593 if test "$ac_cv_sizeof_long_long" -ge 2; then
13999 rxvt_cv_int16_t=" long long" 9594 rxvt_cv_int16_t=" long long"
14000 else 9595 else
14001 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9596 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14002 fi 9597 fi
14003 fi 9598 fi
14063 rxvt_cv_uint16_t=yes 9658 rxvt_cv_uint16_t=yes
14064else 9659else
14065 echo "$as_me: failed program was:" >&5 9660 echo "$as_me: failed program was:" >&5
14066sed 's/^/| /' conftest.$ac_ext >&5 9661sed 's/^/| /' conftest.$ac_ext >&5
14067 9662
14068if test $ac_cv_sizeof_char -ge 2; then 9663if test "$ac_cv_sizeof_char" -ge 2; then
14069 rxvt_cv_uint16_t="unsigned char" 9664 rxvt_cv_uint16_t="unsigned char"
14070else 9665else
14071 if test $ac_cv_sizeof_short -ge 2; then 9666 if test "$ac_cv_sizeof_short" -ge 2; then
14072 rxvt_cv_uint16_t="unsigned short" 9667 rxvt_cv_uint16_t="unsigned short"
14073 else 9668 else
14074 if test $ac_cv_sizeof_int -ge 2; then 9669 if test "$ac_cv_sizeof_int" -ge 2; then
14075 rxvt_cv_uint16_t="unsigned int" 9670 rxvt_cv_uint16_t="unsigned int"
14076 else 9671 else
14077 if test $ac_cv_sizeof_long -ge 2; then 9672 if test "$ac_cv_sizeof_long" -ge 2; then
14078 rxvt_cv_uint16_t="unsigned long" 9673 rxvt_cv_uint16_t="unsigned long"
14079 else 9674 else
14080 if test $ac_cv_sizeof_long_long -ge 2; then 9675 if test "$ac_cv_sizeof_long_long" -ge 2; then
14081 rxvt_cv_uint16_t="unsigned long long" 9676 rxvt_cv_uint16_t="unsigned long long"
14082 else 9677 else
14083 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9678 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14084 fi 9679 fi
14085 fi 9680 fi
14145 rxvt_cv_int32_t=yes 9740 rxvt_cv_int32_t=yes
14146else 9741else
14147 echo "$as_me: failed program was:" >&5 9742 echo "$as_me: failed program was:" >&5
14148sed 's/^/| /' conftest.$ac_ext >&5 9743sed 's/^/| /' conftest.$ac_ext >&5
14149 9744
14150if test $ac_cv_sizeof_char -ge 4; then 9745if test "$ac_cv_sizeof_char" -ge 4; then
14151 rxvt_cv_int32_t=" char" 9746 rxvt_cv_int32_t=" char"
14152else 9747else
14153 if test $ac_cv_sizeof_short -ge 4; then 9748 if test "$ac_cv_sizeof_short" -ge 4; then
14154 rxvt_cv_int32_t=" short" 9749 rxvt_cv_int32_t=" short"
14155 else 9750 else
14156 if test $ac_cv_sizeof_int -ge 4; then 9751 if test "$ac_cv_sizeof_int" -ge 4; then
14157 rxvt_cv_int32_t=" int" 9752 rxvt_cv_int32_t=" int"
14158 else 9753 else
14159 if test $ac_cv_sizeof_long -ge 4; then 9754 if test "$ac_cv_sizeof_long" -ge 4; then
14160 rxvt_cv_int32_t=" long" 9755 rxvt_cv_int32_t=" long"
14161 else 9756 else
14162 if test $ac_cv_sizeof_long_long -ge 4; then 9757 if test "$ac_cv_sizeof_long_long" -ge 4; then
14163 rxvt_cv_int32_t=" long long" 9758 rxvt_cv_int32_t=" long long"
14164 else 9759 else
14165 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9760 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14166 fi 9761 fi
14167 fi 9762 fi
14227 rxvt_cv_uint32_t=yes 9822 rxvt_cv_uint32_t=yes
14228else 9823else
14229 echo "$as_me: failed program was:" >&5 9824 echo "$as_me: failed program was:" >&5
14230sed 's/^/| /' conftest.$ac_ext >&5 9825sed 's/^/| /' conftest.$ac_ext >&5
14231 9826
14232if test $ac_cv_sizeof_char -ge 4; then 9827if test "$ac_cv_sizeof_char" -ge 4; then
14233 rxvt_cv_uint32_t="unsigned char" 9828 rxvt_cv_uint32_t="unsigned char"
14234else 9829else
14235 if test $ac_cv_sizeof_short -ge 4; then 9830 if test "$ac_cv_sizeof_short" -ge 4; then
14236 rxvt_cv_uint32_t="unsigned short" 9831 rxvt_cv_uint32_t="unsigned short"
14237 else 9832 else
14238 if test $ac_cv_sizeof_int -ge 4; then 9833 if test "$ac_cv_sizeof_int" -ge 4; then
14239 rxvt_cv_uint32_t="unsigned int" 9834 rxvt_cv_uint32_t="unsigned int"
14240 else 9835 else
14241 if test $ac_cv_sizeof_long -ge 4; then 9836 if test "$ac_cv_sizeof_long" -ge 4; then
14242 rxvt_cv_uint32_t="unsigned long" 9837 rxvt_cv_uint32_t="unsigned long"
14243 else 9838 else
14244 if test $ac_cv_sizeof_long_long -ge 4; then 9839 if test "$ac_cv_sizeof_long_long" -ge 4; then
14245 rxvt_cv_uint32_t="unsigned long long" 9840 rxvt_cv_uint32_t="unsigned long long"
14246 else 9841 else
14247 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9842 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14248 fi 9843 fi
14249 fi 9844 fi
14263 else 9858 else
14264 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9859 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14265 fi 9860 fi
14266fi 9861fi
14267 9862
14268if test $ac_cv_sizeof_int_p -eq 8; then 9863if test "$ac_cv_sizeof_int_p" -eq 8; then
14269 rxvt_intp_define="#define intp_t int64_t" 9864 rxvt_intp_define="#define intp_t int64_t"
14270 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9865 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14271else 9866else
14272 if test $ac_cv_sizeof_int_p -eq 4; then 9867 if test "$ac_cv_sizeof_int_p" -eq 4; then
14273 rxvt_intp_define="#define intp_t int32_t" 9868 rxvt_intp_define="#define intp_t int32_t"
14274 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9869 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14275 else 9870 else
14276 if test $ac_cv_sizeof_int_p -eq 2; then 9871 if test "$ac_cv_sizeof_int_p" -eq 2; then
14277 rxvt_intp_define="#define intp_t int16_t" 9872 rxvt_intp_define="#define intp_t int16_t"
14278 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9873 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14279 else 9874 else
14280 rxvt_intp_define="#error set intp_t" 9875 rxvt_intp_define="#error set intp_t"
14281 rxvt_u_intp_define="#error set u_intp_t" 9876 rxvt_u_intp_define="#error set u_intp_t"
14352#define RETSIGTYPE $ac_cv_type_signal 9947#define RETSIGTYPE $ac_cv_type_signal
14353_ACEOF 9948_ACEOF
14354 9949
14355 9950
14356 9951
14357case "$host_alias" in
14358 *ultrix) ac_cv_func_setsid='no' ;;
14359 *) break;;
14360esac
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374 9952
14375 9953
14376 9954
14377 9955
14378 9956
14379 9957
14380for ac_func in \ 9958for ac_func in \
14381 atexit \
14382 revoke \
14383 unsetenv \ 9959 unsetenv \
14384 setutent \ 9960 setutent \
14385 seteuid \ 9961 seteuid \
9962 setresuid \
14386 setreuid \ 9963 setreuid \
14387 setsid \
14388 setpgrp \
14389 setpgid \
14390 openpty \
14391 _getpty \
14392 grantpt \
14393 unlockpt \
14394 isastream \
14395 on_exit \ 9964 on_exit \
14396 nanosleep \
14397 updwtmp \
14398 ttyslot \
14399 9965
14400do 9966do
14401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14402echo "$as_me:$LINENO: checking for $ac_func" >&5 9968echo "$as_me:$LINENO: checking for $ac_func" >&5
14403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14492 cat >>confdefs.h <<_ACEOF 10058 cat >>confdefs.h <<_ACEOF
14493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14494_ACEOF 10060_ACEOF
14495 10061
14496fi 10062fi
10063done
10064
10065
10066
10067support_utmp=yes
10068support_wtmp=yes
10069support_lastlog=yes
10070
10071# Check whether --enable-utmp or --disable-utmp was given.
10072if test "${enable_utmp+set}" = set; then
10073 enableval="$enable_utmp"
10074 if test x$enableval = xyes -o x$enableval = xno; then
10075 support_utmp=$enableval
10076 fi
10077fi;
10078
10079# Check whether --enable-wtmp or --disable-wtmp was given.
10080if test "${enable_wtmp+set}" = set; then
10081 enableval="$enable_wtmp"
10082 if test x$enableval = xyes -o x$enableval = xno; then
10083 support_wtmp=$enableval
10084 fi
10085fi;
10086
10087# Check whether --enable-lastlog or --disable-lastlog was given.
10088if test "${enable_lastlog+set}" = set; then
10089 enableval="$enable_lastlog"
10090 if test x$enableval = xyes -o x$enableval = xno; then
10091 support_lastlog=$enableval
10092 fi
10093fi;
10094
10095if test x$support_utmp = xyes; then
10096
10097cat >>confdefs.h <<\_ACEOF
10098#define UTMP_SUPPORT 1
10099_ACEOF
10100
10101fi
10102if test x$support_wtmp = xyes; then
10103
10104cat >>confdefs.h <<\_ACEOF
10105#define WTMP_SUPPORT 1
10106_ACEOF
10107
10108fi
10109if test x$support_lastlog = xyes; then
10110
10111cat >>confdefs.h <<\_ACEOF
10112#define LASTLOG_SUPPORT 1
10113_ACEOF
10114
10115fi
10116
10117
10118
10119
10120for ac_func in \
10121 ttyslot \
10122 updwtmp \
10123 updwtmpx \
10124
10125do
10126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10127echo "$as_me:$LINENO: checking for $ac_func" >&5
10128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10129if eval "test \"\${$as_ac_var+set}\" = set"; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131else
10132 cat >conftest.$ac_ext <<_ACEOF
10133/* confdefs.h. */
10134_ACEOF
10135cat confdefs.h >>conftest.$ac_ext
10136cat >>conftest.$ac_ext <<_ACEOF
10137/* end confdefs.h. */
10138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10140#define $ac_func innocuous_$ac_func
10141
10142/* System header to define __stub macros and hopefully few prototypes,
10143 which can conflict with char $ac_func (); below.
10144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10145 <limits.h> exists even on freestanding compilers. */
10146
10147#ifdef __STDC__
10148# include <limits.h>
10149#else
10150# include <assert.h>
10151#endif
10152
10153#undef $ac_func
10154
10155/* Override any gcc2 internal prototype to avoid an error. */
10156#ifdef __cplusplus
10157extern "C"
10158{
10159#endif
10160/* We use char because int might match the return type of a gcc2
10161 builtin and then its argument prototype would still apply. */
10162char $ac_func ();
10163/* The GNU C library defines this for functions which it implements
10164 to always fail with ENOSYS. Some functions are actually named
10165 something starting with __ and the normal name is an alias. */
10166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10167choke me
10168#else
10169char (*f) () = $ac_func;
10170#endif
10171#ifdef __cplusplus
10172}
10173#endif
10174
10175int
10176main ()
10177{
10178return f != $ac_func;
10179 ;
10180 return 0;
10181}
10182_ACEOF
10183rm -f conftest.$ac_objext conftest$ac_exeext
10184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185 (eval $ac_link) 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; } &&
10198 { ac_try='test -s conftest$ac_exeext'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }; then
10204 eval "$as_ac_var=yes"
10205else
10206 echo "$as_me: failed program was:" >&5
10207sed 's/^/| /' conftest.$ac_ext >&5
10208
10209eval "$as_ac_var=no"
10210fi
10211rm -f conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213fi
10214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10216if test `eval echo '${'$as_ac_var'}'` = yes; then
10217 cat >>confdefs.h <<_ACEOF
10218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10219_ACEOF
10220
10221fi
10222done
10223
10224
10225
10226
10227
10228for ac_header in \
10229 utmp.h \
10230 utmpx.h \
10231 lastlog.h \
10232
10233do
10234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10235if eval "test \"\${$as_ac_Header+set}\" = set"; then
10236 echo "$as_me:$LINENO: checking for $ac_header" >&5
10237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10238if eval "test \"\${$as_ac_Header+set}\" = set"; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240fi
10241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10243else
10244 # Is the header compilable?
10245echo "$as_me:$LINENO: checking $ac_header usability" >&5
10246echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10247cat >conftest.$ac_ext <<_ACEOF
10248/* confdefs.h. */
10249_ACEOF
10250cat confdefs.h >>conftest.$ac_ext
10251cat >>conftest.$ac_ext <<_ACEOF
10252/* end confdefs.h. */
10253$ac_includes_default
10254#include <$ac_header>
10255_ACEOF
10256rm -f conftest.$ac_objext
10257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>conftest.er1
10259 ac_status=$?
10260 grep -v '^ *+' conftest.er1 >conftest.err
10261 rm -f conftest.er1
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; } &&
10271 { ac_try='test -s conftest.$ac_objext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_header_compiler=yes
10278else
10279 echo "$as_me: failed program was:" >&5
10280sed 's/^/| /' conftest.$ac_ext >&5
10281
10282ac_header_compiler=no
10283fi
10284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10286echo "${ECHO_T}$ac_header_compiler" >&6
10287
10288# Is the header present?
10289echo "$as_me:$LINENO: checking $ac_header presence" >&5
10290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10291cat >conftest.$ac_ext <<_ACEOF
10292/* confdefs.h. */
10293_ACEOF
10294cat confdefs.h >>conftest.$ac_ext
10295cat >>conftest.$ac_ext <<_ACEOF
10296/* end confdefs.h. */
10297#include <$ac_header>
10298_ACEOF
10299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } >/dev/null; then
10307 if test -s conftest.err; then
10308 ac_cpp_err=$ac_cxx_preproc_warn_flag
10309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10310 else
10311 ac_cpp_err=
10312 fi
10313else
10314 ac_cpp_err=yes
10315fi
10316if test -z "$ac_cpp_err"; then
10317 ac_header_preproc=yes
10318else
10319 echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 ac_header_preproc=no
10323fi
10324rm -f conftest.err conftest.$ac_ext
10325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10326echo "${ECHO_T}$ac_header_preproc" >&6
10327
10328# So? What about this header?
10329case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10330 yes:no: )
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10332echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10334echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10335 ac_header_preproc=yes
10336 ;;
10337 no:yes:* )
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10339echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10341echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10343echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10345echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10347echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10349echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10350 (
10351 cat <<\_ASBOX
10352## ------------------------------------------ ##
10353## Report this to the AC_PACKAGE_NAME lists. ##
10354## ------------------------------------------ ##
10355_ASBOX
10356 ) |
10357 sed "s/^/$as_me: WARNING: /" >&2
10358 ;;
10359esac
10360echo "$as_me:$LINENO: checking for $ac_header" >&5
10361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10362if eval "test \"\${$as_ac_Header+set}\" = set"; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10364else
10365 eval "$as_ac_Header=\$ac_header_preproc"
10366fi
10367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10369
10370fi
10371if test `eval echo '${'$as_ac_Header'}'` = yes; then
10372 cat >>confdefs.h <<_ACEOF
10373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10374_ACEOF
10375
10376fi
10377
14497done 10378done
14498 10379
14499 10380
14500 10381
14501if test "${ac_cv_header_utmp_h+set}" = set; then 10382if test "${ac_cv_header_utmp_h+set}" = set; then
14635 10516
14636fi 10517fi
14637if test $ac_cv_header_utmp_h = yes; then 10518if test $ac_cv_header_utmp_h = yes; then
14638 echo "$as_me:$LINENO: checking for struct utmp" >&5 10519 echo "$as_me:$LINENO: checking for struct utmp" >&5
14639echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10520echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14640if test "${rxvt_cv_struct_utmp+set}" = set; then 10521if test "${struct_utmp+set}" = set; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6 10522 echo $ECHO_N "(cached) $ECHO_C" >&6
14642else 10523else
14643 cat >conftest.$ac_ext <<_ACEOF 10524 cat >conftest.$ac_ext <<_ACEOF
14644/* confdefs.h. */ 10525/* confdefs.h. */
14645_ACEOF 10526_ACEOF
14646cat confdefs.h >>conftest.$ac_ext 10527cat confdefs.h >>conftest.$ac_ext
14647cat >>conftest.$ac_ext <<_ACEOF 10528cat >>conftest.$ac_ext <<_ACEOF
14648/* end confdefs.h. */ 10529/* end confdefs.h. */
14649#include <sys/types.h> 10530#include <sys/types.h>
14650#include <stdint.h>
14651#include <utmp.h> 10531#include <utmp.h>
14652int 10532int
14653main () 10533main ()
14654{ 10534{
14655struct utmp ut; 10535struct utmp ut;
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5 10557 (eval $ac_try) 2>&5
14678 ac_status=$? 10558 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then 10560 (exit $ac_status); }; }; then
14681 rxvt_cv_struct_utmp=yes 10561 struct_utmp=yes
14682else 10562else
14683 echo "$as_me: failed program was:" >&5 10563 echo "$as_me: failed program was:" >&5
14684sed 's/^/| /' conftest.$ac_ext >&5 10564sed 's/^/| /' conftest.$ac_ext >&5
14685 10565
14686rxvt_cv_struct_utmp=no 10566struct_utmp=no
14687fi 10567fi
14688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14689fi 10569fi
14690echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10570echo "$as_me:$LINENO: result: $struct_utmp" >&5
14691echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10571echo "${ECHO_T}$struct_utmp" >&6
14692if test x$rxvt_cv_struct_utmp = xyes; then 10572if test x$struct_utmp = xyes; then
14693 10573
14694cat >>confdefs.h <<\_ACEOF 10574cat >>confdefs.h <<\_ACEOF
14695#define HAVE_STRUCT_UTMP 1 10575#define HAVE_STRUCT_UTMP 1
14696_ACEOF 10576_ACEOF
14697 10577
14698fi 10578fi
14699 10579
14700 10580
14701echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10581echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14702echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10582echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14703if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10583if test "${struct_utmp_host+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6 10584 echo $ECHO_N "(cached) $ECHO_C" >&6
14705else 10585else
14706 cat >conftest.$ac_ext <<_ACEOF 10586 cat >conftest.$ac_ext <<_ACEOF
14707/* confdefs.h. */ 10587/* confdefs.h. */
14708_ACEOF 10588_ACEOF
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5 10619 (eval $ac_try) 2>&5
14740 ac_status=$? 10620 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then 10622 (exit $ac_status); }; }; then
14743 rxvt_cv_struct_utmp_host=yes 10623 struct_utmp_host=yes
14744else 10624else
14745 echo "$as_me: failed program was:" >&5 10625 echo "$as_me: failed program was:" >&5
14746sed 's/^/| /' conftest.$ac_ext >&5 10626sed 's/^/| /' conftest.$ac_ext >&5
14747 10627
14748rxvt_cv_struct_utmp_host=no 10628struct_utmp_host=no
14749fi 10629fi
14750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751fi 10631fi
14752echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10632echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
14753echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10633echo "${ECHO_T}$struct_utmp_host" >&6
14754if test x$rxvt_cv_struct_utmp_host = xyes; then 10634if test x$struct_utmp_host = xyes; then
14755 10635
14756cat >>confdefs.h <<\_ACEOF 10636cat >>confdefs.h <<\_ACEOF
14757#define HAVE_UTMP_HOST 1 10637#define HAVE_UTMP_HOST 1
14758_ACEOF 10638_ACEOF
14759 10639
14760fi 10640fi
14761 10641
14762echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10642echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
14763echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10643echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
14764if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10644if test "${struct_utmp_pid+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6 10645 echo $ECHO_N "(cached) $ECHO_C" >&6
14766else 10646else
14767 cat >conftest.$ac_ext <<_ACEOF 10647 cat >conftest.$ac_ext <<_ACEOF
14768/* confdefs.h. */ 10648/* confdefs.h. */
14769_ACEOF 10649_ACEOF
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5 10680 (eval $ac_try) 2>&5
14801 ac_status=$? 10681 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then 10683 (exit $ac_status); }; }; then
14804 rxvt_cv_struct_utmp_pid=yes 10684 struct_utmp_pid=yes
14805else 10685else
14806 echo "$as_me: failed program was:" >&5 10686 echo "$as_me: failed program was:" >&5
14807sed 's/^/| /' conftest.$ac_ext >&5 10687sed 's/^/| /' conftest.$ac_ext >&5
14808 10688
14809rxvt_cv_struct_utmp_pid=no 10689struct_utmp_pid=no
14810fi 10690fi
14811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14812fi 10692fi
14813echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10693echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
14814echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10694echo "${ECHO_T}$struct_utmp_pid" >&6
14815if test x$rxvt_cv_struct_utmp_pid = xyes; then 10695if test x$struct_utmp_pid = xyes; then
14816 10696
14817cat >>confdefs.h <<\_ACEOF 10697cat >>confdefs.h <<\_ACEOF
14818#define HAVE_UTMP_PID 1 10698#define HAVE_UTMP_PID 1
14819_ACEOF 10699_ACEOF
14820 10700
14961 10841
14962fi 10842fi
14963if test $ac_cv_header_utmpx_h = yes; then 10843if test $ac_cv_header_utmpx_h = yes; then
14964 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10844 echo "$as_me:$LINENO: checking for struct utmpx" >&5
14965echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10845echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
14966if test "${rxvt_cv_struct_utmpx+set}" = set; then 10846if test "${struct_utmpx+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6 10847 echo $ECHO_N "(cached) $ECHO_C" >&6
14968else 10848else
14969 cat >conftest.$ac_ext <<_ACEOF 10849 cat >conftest.$ac_ext <<_ACEOF
14970/* confdefs.h. */ 10850/* confdefs.h. */
14971_ACEOF 10851_ACEOF
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5 10882 (eval $ac_try) 2>&5
15003 ac_status=$? 10883 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then 10885 (exit $ac_status); }; }; then
15006 rxvt_cv_struct_utmpx=yes 10886 struct_utmpx=yes
15007else 10887else
15008 echo "$as_me: failed program was:" >&5 10888 echo "$as_me: failed program was:" >&5
15009sed 's/^/| /' conftest.$ac_ext >&5 10889sed 's/^/| /' conftest.$ac_ext >&5
15010 10890
15011rxvt_cv_struct_utmpx=no 10891struct_utmpx=no
15012fi 10892fi
15013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15014fi 10894fi
15015echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10895echo "$as_me:$LINENO: result: $struct_utmpx" >&5
15016echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10896echo "${ECHO_T}$struct_utmpx" >&6
15017if test x$rxvt_cv_struct_utmpx = xyes; then 10897if test x$struct_utmpx = xyes; then
15018 10898
15019cat >>confdefs.h <<\_ACEOF 10899cat >>confdefs.h <<\_ACEOF
15020#define HAVE_STRUCT_UTMPX 1 10900#define HAVE_STRUCT_UTMPX 1
15021_ACEOF 10901_ACEOF
15022 10902
15023fi 10903fi
15024 10904
15025 10905
15026echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10906echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
15027echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10907echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
15028if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10908if test "${struct_utmpx_host+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6 10909 echo $ECHO_N "(cached) $ECHO_C" >&6
15030else 10910else
15031 cat >conftest.$ac_ext <<_ACEOF 10911 cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */ 10912/* confdefs.h. */
15033_ACEOF 10913_ACEOF
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5 10944 (eval $ac_try) 2>&5
15065 ac_status=$? 10945 ac_status=$?
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then 10947 (exit $ac_status); }; }; then
15068 rxvt_cv_struct_utmpx_host=yes 10948 struct_utmpx_host=yes
15069else 10949else
15070 echo "$as_me: failed program was:" >&5 10950 echo "$as_me: failed program was:" >&5
15071sed 's/^/| /' conftest.$ac_ext >&5 10951sed 's/^/| /' conftest.$ac_ext >&5
15072 10952
15073rxvt_cv_struct_utmpx_host=no 10953struct_utmpx_host=no
15074fi 10954fi
15075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15076fi 10956fi
15077echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 10957echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
15078echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 10958echo "${ECHO_T}$struct_utmpx_host" >&6
15079if test x$rxvt_cv_struct_utmpx_host = xyes; then 10959if test x$struct_utmpx_host = xyes; then
15080 10960
15081cat >>confdefs.h <<\_ACEOF 10961cat >>confdefs.h <<\_ACEOF
15082#define HAVE_UTMPX_HOST 1 10962#define HAVE_UTMPX_HOST 1
15083_ACEOF 10963_ACEOF
15084 10964
15085fi 10965fi
15086 10966
15087fi 10967echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10968echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10969if test "${struct_utmpx_session+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971else
10972 cat >conftest.$ac_ext <<_ACEOF
10973/* confdefs.h. */
10974_ACEOF
10975cat confdefs.h >>conftest.$ac_ext
10976cat >>conftest.$ac_ext <<_ACEOF
10977/* end confdefs.h. */
10978#include <sys/types.h>
10979#include <utmpx.h>
10980int
10981main ()
10982{
10983struct utmpx utx; utx.ut_session;
10984 ;
10985 return 0;
10986}
10987_ACEOF
10988rm -f conftest.$ac_objext
10989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10990 (eval $ac_compile) 2>conftest.er1
10991 ac_status=$?
10992 grep -v '^ *+' conftest.er1 >conftest.err
10993 rm -f conftest.er1
10994 cat conftest.err >&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; } &&
11003 { ac_try='test -s conftest.$ac_objext'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 struct_utmpx_session=yes
11010else
11011 echo "$as_me: failed program was:" >&5
11012sed 's/^/| /' conftest.$ac_ext >&5
15088 11013
11014struct_utmpx_session=no
11015fi
11016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11017fi
11018echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
11019echo "${ECHO_T}$struct_utmpx_session" >&6
11020if test x$struct_utmpx_session = xyes; then
11021
11022cat >>confdefs.h <<\_ACEOF
11023#define HAVE_UTMPX_SESSION 1
11024_ACEOF
11025
11026fi
11027
11028fi
15089 11029
15090 11030
15091echo "$as_me:$LINENO: checking for struct lastlog" >&5 11031echo "$as_me:$LINENO: checking for struct lastlog" >&5
15092echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 11032echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15093if test "${rxvt_cv_struct_lastlog+set}" = set; then 11033if test "${struct_lastlog+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6 11034 echo $ECHO_N "(cached) $ECHO_C" >&6
15095else 11035else
15096 cat >conftest.$ac_ext <<_ACEOF 11036 cat >conftest.$ac_ext <<_ACEOF
15097/* confdefs.h. */ 11037/* confdefs.h. */
15098_ACEOF 11038_ACEOF
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5 11073 (eval $ac_try) 2>&5
15134 ac_status=$? 11074 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then 11076 (exit $ac_status); }; }; then
15137 rxvt_cv_struct_lastlog=yes 11077 struct_lastlog=yes
15138else 11078else
15139 echo "$as_me: failed program was:" >&5 11079 echo "$as_me: failed program was:" >&5
15140sed 's/^/| /' conftest.$ac_ext >&5 11080sed 's/^/| /' conftest.$ac_ext >&5
15141 11081
15142rxvt_cv_struct_lastlog=no 11082struct_lastlog=no
15143fi 11083fi
15144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15145fi 11085fi
15146echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 11086echo "$as_me:$LINENO: result: $struct_lastlog" >&5
15147echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 11087echo "${ECHO_T}$struct_lastlog" >&6
15148if test x$rxvt_cv_struct_lastlog = xyes; then 11088if test x$struct_lastlog = xyes; then
15149 11089
15150cat >>confdefs.h <<\_ACEOF 11090cat >>confdefs.h <<\_ACEOF
15151#define HAVE_STRUCT_LASTLOG 1 11091#define HAVE_STRUCT_LASTLOG 1
15152_ACEOF 11092_ACEOF
15153 11093
15154fi 11094fi
15155 11095
15156echo "$as_me:$LINENO: checking for struct lastlogx" >&5 11096echo "$as_me:$LINENO: checking for struct lastlogx" >&5
15157echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 11097echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
15158if test "${rxvt_cv_struct_lastlogx+set}" = set; then 11098if test "${struct_lastlogx+set}" = set; then
15159 echo $ECHO_N "(cached) $ECHO_C" >&6 11099 echo $ECHO_N "(cached) $ECHO_C" >&6
15160else 11100else
15161 cat >conftest.$ac_ext <<_ACEOF 11101 cat >conftest.$ac_ext <<_ACEOF
15162/* confdefs.h. */ 11102/* confdefs.h. */
15163_ACEOF 11103_ACEOF
15197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198 (eval $ac_try) 2>&5 11138 (eval $ac_try) 2>&5
15199 ac_status=$? 11139 ac_status=$?
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); }; }; then 11141 (exit $ac_status); }; }; then
15202 rxvt_cv_struct_lastlogx=yes 11142 struct_lastlogx=yes
15203else 11143else
15204 echo "$as_me: failed program was:" >&5 11144 echo "$as_me: failed program was:" >&5
15205sed 's/^/| /' conftest.$ac_ext >&5 11145sed 's/^/| /' conftest.$ac_ext >&5
15206 11146
15207rxvt_cv_struct_lastlogx=no 11147struct_lastlogx=no
15208fi 11148fi
15209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15210fi 11150fi
15211echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 11151echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
15212echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 11152echo "${ECHO_T}$struct_lastlogx" >&6
15213if test x$rxvt_cv_struct_lastlogx = xyes; then 11153if test x$struct_lastlogx = xyes; then
15214 11154
15215cat >>confdefs.h <<\_ACEOF 11155cat >>confdefs.h <<\_ACEOF
15216#define HAVE_STRUCT_LASTLOGX 1 11156#define HAVE_STRUCT_LASTLOGX 1
15217_ACEOF 11157_ACEOF
15218 11158
15219fi 11159fi
15220 11160
15221 11161
15222echo "$as_me:$LINENO: checking where utmp is located" >&5 11162echo "$as_me:$LINENO: checking where utmp is located" >&5
15223echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 11163echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
15224if test "${rxvt_cv_path_utmp+set}" = set; then 11164if test "${path_utmp+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6 11165 echo $ECHO_N "(cached) $ECHO_C" >&6
15226else 11166else
15227 if test "$cross_compiling" = yes; then 11167 if test "$cross_compiling" = yes; then
15228 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 11168 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
15229echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 11169echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
15230else 11170else
15231 cat >conftest.$ac_ext <<_ACEOF 11171 cat >conftest.$ac_ext <<_ACEOF
15232/* confdefs.h. */ 11172/* confdefs.h. */
15233_ACEOF 11173_ACEOF
15234cat confdefs.h >>conftest.$ac_ext 11174cat confdefs.h >>conftest.$ac_ext
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5 11211 (eval $ac_try) 2>&5
15272 ac_status=$? 11212 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then 11214 (exit $ac_status); }; }; then
15275 rxvt_cv_path_utmp=`cat conftestval` 11215 path_utmp=`cat conftestval`
15276else 11216else
15277 echo "$as_me: program exited with status $ac_status" >&5 11217 echo "$as_me: program exited with status $ac_status" >&5
15278echo "$as_me: failed program was:" >&5 11218echo "$as_me: failed program was:" >&5
15279sed 's/^/| /' conftest.$ac_ext >&5 11219sed 's/^/| /' conftest.$ac_ext >&5
15280 11220
15281( exit $ac_status ) 11221( exit $ac_status )
15282rxvt_cv_path_utmp= 11222path_utmp=
15283fi 11223fi
15284rm -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
15285fi 11225fi
15286fi 11226fi
15287echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 11227echo "$as_me:$LINENO: result: $path_utmp" >&5
15288echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 11228echo "${ECHO_T}$path_utmp" >&6
15289if test x$rxvt_cv_path_utmp != x; then 11229if test x$path_utmp != x; then
15290 11230
15291cat >>confdefs.h <<_ACEOF 11231cat >>confdefs.h <<_ACEOF
15292#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 11232#define UTMP_FILE "$path_utmp"
15293_ACEOF 11233_ACEOF
15294 11234
15295fi 11235fi
15296 11236
15297 11237
15298echo "$as_me:$LINENO: checking where utmpx is located" >&5 11238echo "$as_me:$LINENO: checking where utmpx is located" >&5
15299echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 11239echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
15300if test "${rxvt_cv_path_utmpx+set}" = set; then 11240if test "${path_utmpx+set}" = set; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6 11241 echo $ECHO_N "(cached) $ECHO_C" >&6
15302else 11242else
15303 if test "$cross_compiling" = yes; then 11243 if test "$cross_compiling" = yes; then
15304 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 11244 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
15305echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 11245echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
15306else 11246else
15307 cat >conftest.$ac_ext <<_ACEOF 11247 cat >conftest.$ac_ext <<_ACEOF
15308/* confdefs.h. */ 11248/* confdefs.h. */
15309_ACEOF 11249_ACEOF
15310cat confdefs.h >>conftest.$ac_ext 11250cat confdefs.h >>conftest.$ac_ext
15356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357 (eval $ac_try) 2>&5 11297 (eval $ac_try) 2>&5
15358 ac_status=$? 11298 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; }; then 11300 (exit $ac_status); }; }; then
15361 rxvt_cv_path_utmpx=`cat conftestval` 11301 path_utmpx=`cat conftestval`
15362else 11302else
15363 echo "$as_me: program exited with status $ac_status" >&5 11303 echo "$as_me: program exited with status $ac_status" >&5
15364echo "$as_me: failed program was:" >&5 11304echo "$as_me: failed program was:" >&5
15365sed 's/^/| /' conftest.$ac_ext >&5 11305sed 's/^/| /' conftest.$ac_ext >&5
15366 11306
15367( exit $ac_status ) 11307( exit $ac_status )
15368rxvt_cv_path_utmpx= 11308path_utmpx=
15369fi 11309fi
15370rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15371fi 11311fi
15372fi 11312fi
15373echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 11313echo "$as_me:$LINENO: result: $path_utmpx" >&5
15374echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 11314echo "${ECHO_T}$path_utmpx" >&6
15375if test x$rxvt_cv_path_utmpx != x; then 11315if test x$path_utmpx != x; then
15376 11316
15377cat >>confdefs.h <<_ACEOF 11317cat >>confdefs.h <<_ACEOF
15378#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 11318#define UTMPX_FILE "$path_utmpx"
15379_ACEOF 11319_ACEOF
15380 11320
15381fi 11321fi
15382 11322
15383 11323
15384echo "$as_me:$LINENO: checking where wtmp is located" >&5 11324echo "$as_me:$LINENO: checking where wtmp is located" >&5
15385echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 11325echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15386if test "${rxvt_cv_path_wtmp+set}" = set; then 11326if test "${path_wtmp+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6 11327 echo $ECHO_N "(cached) $ECHO_C" >&6
15388else 11328else
15389 if test "$cross_compiling" = yes; then 11329 if test "$cross_compiling" = yes; then
15390 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11330 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
15391echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11331echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
15392else 11332else
15393 cat >conftest.$ac_ext <<_ACEOF 11333 cat >conftest.$ac_ext <<_ACEOF
15394/* confdefs.h. */ 11334/* confdefs.h. */
15395_ACEOF 11335_ACEOF
15396cat confdefs.h >>conftest.$ac_ext 11336cat confdefs.h >>conftest.$ac_ext
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5 11375 (eval $ac_try) 2>&5
15436 ac_status=$? 11376 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then 11378 (exit $ac_status); }; }; then
15439 rxvt_cv_path_wtmp=`cat conftestval` 11379 path_wtmp=`cat conftestval`
15440else 11380else
15441 echo "$as_me: program exited with status $ac_status" >&5 11381 echo "$as_me: program exited with status $ac_status" >&5
15442echo "$as_me: failed program was:" >&5 11382echo "$as_me: failed program was:" >&5
15443sed 's/^/| /' conftest.$ac_ext >&5 11383sed 's/^/| /' conftest.$ac_ext >&5
15444 11384
15445( exit $ac_status ) 11385( exit $ac_status )
15446rxvt_cv_path_wtmp= 11386path_wtmp=
15447fi 11387fi
15448rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11388rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15449fi 11389fi
15450fi 11390fi
15451echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11391echo "$as_me:$LINENO: result: $path_wtmp" >&5
15452echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11392echo "${ECHO_T}$path_wtmp" >&6
15453if test x$rxvt_cv_path_wtmp != x; then 11393if test x$path_wtmp != x; then
15454 11394
15455cat >>confdefs.h <<_ACEOF 11395cat >>confdefs.h <<_ACEOF
15456#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11396#define WTMP_FILE "$path_wtmp"
15457_ACEOF 11397_ACEOF
15458 11398
15459fi 11399fi
15460 11400
15461echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11401echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15462echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11402echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15463if test "${rxvt_cv_path_wtmpx+set}" = set; then 11403if test "${path_wtmpx+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6 11404 echo $ECHO_N "(cached) $ECHO_C" >&6
15465else 11405else
15466 if test "$cross_compiling" = yes; then 11406 if test "$cross_compiling" = yes; then
15467 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11407 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
15468echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11408echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
15469else 11409else
15470 cat >conftest.$ac_ext <<_ACEOF 11410 cat >conftest.$ac_ext <<_ACEOF
15471/* confdefs.h. */ 11411/* confdefs.h. */
15472_ACEOF 11412_ACEOF
15473cat confdefs.h >>conftest.$ac_ext 11413cat confdefs.h >>conftest.$ac_ext
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5 11451 (eval $ac_try) 2>&5
15512 ac_status=$? 11452 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then 11454 (exit $ac_status); }; }; then
15515 rxvt_cv_path_wtmpx=`cat conftestval` 11455 path_wtmpx=`cat conftestval`
15516else 11456else
15517 echo "$as_me: program exited with status $ac_status" >&5 11457 echo "$as_me: program exited with status $ac_status" >&5
15518echo "$as_me: failed program was:" >&5 11458echo "$as_me: failed program was:" >&5
15519sed 's/^/| /' conftest.$ac_ext >&5 11459sed 's/^/| /' conftest.$ac_ext >&5
15520 11460
15521( exit $ac_status ) 11461( exit $ac_status )
15522rxvt_cv_path_wtmpx= 11462path_wtmpx=
15523fi 11463fi
15524rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11464rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15525fi 11465fi
15526fi 11466fi
15527echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11467echo "$as_me:$LINENO: result: $path_wtmpx" >&5
15528echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11468echo "${ECHO_T}$path_wtmpx" >&6
15529if test x$rxvt_cv_path_wtmpx != x; then 11469if test x$path_wtmpx != x; then
15530 11470
15531cat >>confdefs.h <<_ACEOF 11471cat >>confdefs.h <<_ACEOF
15532#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11472#define WTMPX_FILE "$path_wtmpx"
15533_ACEOF 11473_ACEOF
15534 11474
15535fi 11475fi
15536 11476
15537echo "$as_me:$LINENO: checking where lastlog is located" >&5 11477echo "$as_me:$LINENO: checking where lastlog is located" >&5
15538echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11478echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15539if test "${rxvt_cv_path_lastlog+set}" = set; then 11479if test "${path_lastlog+set}" = set; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6 11480 echo $ECHO_N "(cached) $ECHO_C" >&6
15541else 11481else
15542 if test "$cross_compiling" = yes; then 11482 if test "$cross_compiling" = yes; then
15543 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11483 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
15544echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11484echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
15545else 11485else
15546 cat >conftest.$ac_ext <<_ACEOF 11486 cat >conftest.$ac_ext <<_ACEOF
15547/* confdefs.h. */ 11487/* confdefs.h. */
15548_ACEOF 11488_ACEOF
15549cat confdefs.h >>conftest.$ac_ext 11489cat confdefs.h >>conftest.$ac_ext
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5 11532 (eval $ac_try) 2>&5
15593 ac_status=$? 11533 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then 11535 (exit $ac_status); }; }; then
15596 rxvt_cv_path_lastlog=`cat conftestval` 11536 path_lastlog=`cat conftestval`
15597else 11537else
15598 echo "$as_me: program exited with status $ac_status" >&5 11538 echo "$as_me: program exited with status $ac_status" >&5
15599echo "$as_me: failed program was:" >&5 11539echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5 11540sed 's/^/| /' conftest.$ac_ext >&5
15601 11541
15602( exit $ac_status ) 11542( exit $ac_status )
15603rxvt_cv_path_lastlog= 11543path_lastlog=
15604fi 11544fi
15605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11545rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15606fi 11546fi
15607fi 11547fi
15608echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11548echo "$as_me:$LINENO: result: $path_lastlog" >&5
15609echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11549echo "${ECHO_T}$path_lastlog" >&6
15610if test x$rxvt_cv_path_lastlog != x; then 11550if test x$path_lastlog != x; then
15611 11551
15612cat >>confdefs.h <<_ACEOF 11552cat >>confdefs.h <<_ACEOF
15613#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11553#define LASTLOG_FILE "$path_lastlog"
15614_ACEOF 11554_ACEOF
15615 11555
15616 if test -d "$rxvt_cv_path_lastlog"; then 11556 if test -d "$path_lastlog"; then
15617 11557
15618cat >>confdefs.h <<\_ACEOF 11558cat >>confdefs.h <<\_ACEOF
15619#define LASTLOG_IS_DIR 1 11559#define LASTLOG_IS_DIR 1
15620_ACEOF 11560_ACEOF
15621 11561
15622 fi 11562 fi
15623fi 11563fi
15624 11564
15625echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11565echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15626echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11566echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15627if test "${rxvt_cv_path_lastlogx+set}" = set; then 11567if test "${path_lastlogx+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6 11568 echo $ECHO_N "(cached) $ECHO_C" >&6
15629else 11569else
15630 if test "$cross_compiling" = yes; then 11570 if test "$cross_compiling" = yes; then
15631 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11571 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
15632echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11572echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
15633else 11573else
15634 cat >conftest.$ac_ext <<_ACEOF 11574 cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h. */ 11575/* confdefs.h. */
15636_ACEOF 11576_ACEOF
15637cat confdefs.h >>conftest.$ac_ext 11577cat confdefs.h >>conftest.$ac_ext
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5 11614 (eval $ac_try) 2>&5
15675 ac_status=$? 11615 ac_status=$?
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then 11617 (exit $ac_status); }; }; then
15678 rxvt_cv_path_lastlogx=`cat conftestval` 11618 path_lastlogx=`cat conftestval`
15679else 11619else
15680 echo "$as_me: program exited with status $ac_status" >&5 11620 echo "$as_me: program exited with status $ac_status" >&5
15681echo "$as_me: failed program was:" >&5 11621echo "$as_me: failed program was:" >&5
15682sed 's/^/| /' conftest.$ac_ext >&5 11622sed 's/^/| /' conftest.$ac_ext >&5
15683 11623
15684( exit $ac_status ) 11624( exit $ac_status )
15685rxvt_cv_path_lastlogx= 11625path_lastlogx=
15686fi 11626fi
15687rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11627rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15688fi 11628fi
15689fi 11629fi
15690echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11630echo "$as_me:$LINENO: result: $path_lastlogx" >&5
15691echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11631echo "${ECHO_T}$path_lastlogx" >&6
15692if test x$rxvt_cv_path_lastlogx != x; then 11632if test x$path_lastlogx != x; then
15693 11633
15694cat >>confdefs.h <<_ACEOF 11634cat >>confdefs.h <<_ACEOF
15695#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11635#define LASTLOGX_FILE "$path_lastlogx"
15696_ACEOF 11636_ACEOF
15697 11637
15698fi 11638fi
11639
11640if test x$support_utmp != xyes; then
11641 echo " utmp support: disabled"
11642 echo
11643else
11644 echo " utmp support: enabled
11645 utmp file: $path_utmp
11646 utmpx file: $path_utmpx
11647 wtmp file: $path_wtmp
11648 wtmpx file: $path_wtmpx
11649 lastlog file: $path_lastlog
11650 lastlogx file: $path_lastlogx"
11651fi
11652
15699 11653
15700 11654
15701echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11655echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15702echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11656echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15703if test "${rxvt_cv_path_ttytab+set}" = set; then 11657if test "${rxvt_cv_path_ttytab+set}" = set; then
15859/* confdefs.h. */ 11813/* confdefs.h. */
15860_ACEOF 11814_ACEOF
15861cat confdefs.h >>conftest.$ac_ext 11815cat confdefs.h >>conftest.$ac_ext
15862cat >>conftest.$ac_ext <<_ACEOF 11816cat >>conftest.$ac_ext <<_ACEOF
15863/* end confdefs.h. */ 11817/* end confdefs.h. */
15864#include <locale.h> 11818#include <clocale>
15865int 11819int
15866main () 11820main ()
15867{ 11821{
15868setlocale(LC_CTYPE, ""); 11822setlocale(LC_CTYPE, "");
15869 ; 11823 ;
15970#define HAVE_NL_LANGINFO 1 11924#define HAVE_NL_LANGINFO 1
15971_ACEOF 11925_ACEOF
15972 11926
15973fi 11927fi
15974 11928
15975echo "$as_me:$LINENO: checking for getpt" >&5 11929
15976echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11930echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
15977if test "${rxvt_cv_func_getpt+set}" = set; then 11931echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11932if test "${can_pass_fds+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6 11933 echo $ECHO_N "(cached) $ECHO_C" >&6
15979else 11934else
15980 cat >conftest.$ac_ext <<_ACEOF 11935 cat >conftest.$ac_ext <<_ACEOF
15981/* confdefs.h. */ 11936/* confdefs.h. */
15982_ACEOF 11937_ACEOF
15983cat confdefs.h >>conftest.$ac_ext 11938cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF 11939cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h. */ 11940/* end confdefs.h. */
15986#define _GNU_SOURCE 11941
15987#ifdef HAVE_STDLIB_H 11942#include <cstddef> // broken bsds (is that redundant) need this
11943#include <sys/types.h>
11944#include <sys/socket.h>
15988# include <stdlib.h> 11945#include <sys/uio.h>
15989#endif 11946
15990int 11947int
15991main () 11948main ()
15992{ 11949{
15993(void)getpt(); 11950
11951{
11952 msghdr msg;
11953 iovec iov;
11954 char buf [100];
11955 char data = 0;
11956
11957 iov.iov_base = &data;
11958 iov.iov_len = 1;
11959
11960 msg.msg_iov = &iov;
11961 msg.msg_iovlen = 1;
11962 msg.msg_control = buf;
11963 msg.msg_controllen = sizeof buf;
11964
11965 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11966 cmsg->cmsg_level = SOL_SOCKET;
11967 cmsg->cmsg_type = SCM_RIGHTS;
11968 cmsg->cmsg_len = 100;
11969
11970 *(int *)CMSG_DATA (cmsg) = 5;
11971
11972 return sendmsg (3, &msg, 0);
11973}
11974
15994 ; 11975 ;
15995 return 0; 11976 return 0;
15996} 11977}
15997_ACEOF 11978_ACEOF
15998rm -f conftest.$ac_objext conftest$ac_exeext 11979rm -f conftest.$ac_objext conftest$ac_exeext
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5 11996 (eval $ac_try) 2>&5
16016 ac_status=$? 11997 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then 11999 (exit $ac_status); }; }; then
16019 rxvt_cv_func_getpt=yes 12000 can_pass_fds=yes
16020else 12001else
16021 echo "$as_me: failed program was:" >&5 12002 echo "$as_me: failed program was:" >&5
16022sed 's/^/| /' conftest.$ac_ext >&5 12003sed 's/^/| /' conftest.$ac_ext >&5
16023 12004
16024rxvt_cv_func_getpt=no 12005can_pass_fds=no
16025fi 12006fi
16026rm -f conftest.err conftest.$ac_objext \ 12007rm -f conftest.err conftest.$ac_objext \
16027 conftest$ac_exeext conftest.$ac_ext 12008 conftest$ac_exeext conftest.$ac_ext
16028fi 12009fi
16029echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 12010echo "$as_me:$LINENO: result: $can_pass_fds" >&5
16030echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 12011echo "${ECHO_T}$can_pass_fds" >&6
16031if test x$rxvt_cv_func_getpt = xyes; then 12012if test x$can_pass_fds = xyes; then
16032 12013
16033cat >>confdefs.h <<\_ACEOF 12014cat >>confdefs.h <<\_ACEOF
16034#define HAVE_GETPT 1 12015#define HAVE_UNIX_FDPASS 1
16035_ACEOF 12016_ACEOF
16036 12017
12018else
12019 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12020echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12021 { (exit 1); exit 1; }; }
16037fi 12022fi
16038 12023
16039echo "$as_me:$LINENO: checking for pty/tty type" >&5 12024
12025echo "$as_me:$LINENO: checking for broken XIM callback" >&5
16040echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 12026echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
16041if test "${rxvt_cv_ptys+set}" = set; then 12027if test "${rxvt_broken_ximcb+set}" = set; then
16042 echo $ECHO_N "(cached) $ECHO_C" >&6 12028 echo $ECHO_N "(cached) $ECHO_C" >&6
16043else 12029else
16044 if test x$ac_cv_func_openpty = xyes; then
16045 rxvt_cv_ptys=OPENPTY
16046 else if test x$ac_cv_func__getpty = xyes; then
16047 rxvt_cv_ptys=SGI4
16048 else if test -c /dev/ttyp20; then
16049 rxvt_cv_ptys=SCO
16050 else if test -c /dev/ptym/clone; then
16051 rxvt_cv_ptys=HPUX
16052 else if test x$rxvt_cv_func_getpt = xyes; then
16053 rxvt_cv_ptys=GLIBC
16054 else if test -c /dev/ptc -a -c /dev/pts; then
16055 rxvt_cv_ptys=PTC
16056 else if test -c /dev/ptc -a -d /dev/pts; then
16057 rxvt_cv_ptys=PTC
16058 else if test -c /dev/ptmx -a -c /dev/pts/0; then
16059 rxvt_cv_ptys=STREAMS
16060 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
16061 rxvt_cv_ptys=STREAMS
16062 else
16063 rxvt_cv_ptys=BSD
16064fi
16065fi
16066fi
16067fi
16068fi
16069fi
16070fi
16071fi
16072fi
16073
16074fi
16075echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16076echo "${ECHO_T}$rxvt_cv_ptys" >&6
16077
16078if test x$rxvt_cv_ptys = xOPENPTY; then
16079
16080cat >>confdefs.h <<\_ACEOF
16081#define PTYS_ARE_OPENPTY 1
16082_ACEOF
16083
16084fi
16085if test x$rxvt_cv_ptys = xSCO; then
16086
16087cat >>confdefs.h <<\_ACEOF
16088#define PTYS_ARE_NUMERIC 1
16089_ACEOF
16090
16091fi
16092if test x$rxvt_cv_ptys = xSTREAMS; then
16093
16094cat >>confdefs.h <<\_ACEOF
16095#define PTYS_ARE_PTMX 1
16096_ACEOF
16097
16098fi
16099if test x$rxvt_cv_ptys = xPTC; then
16100
16101cat >>confdefs.h <<\_ACEOF
16102#define PTYS_ARE_PTC 1
16103_ACEOF
16104
16105fi
16106if test x$rxvt_cv_ptys = xSGI4; then
16107
16108cat >>confdefs.h <<\_ACEOF
16109#define PTYS_ARE__GETPTY 1
16110_ACEOF
16111
16112fi
16113if test x$rxvt_cv_ptys = xCONVEX; then
16114
16115cat >>confdefs.h <<\_ACEOF
16116#define PTYS_ARE_GETPTY 1
16117_ACEOF
16118
16119fi
16120if test x$rxvt_cv_ptys = xGLIBC; then
16121
16122cat >>confdefs.h <<\_ACEOF
16123#define PTYS_ARE_GETPT 1
16124_ACEOF
16125
16126fi
16127if test x$rxvt_cv_ptys = xHPUX; then
16128
16129cat >>confdefs.h <<\_ACEOF
16130#define PTYS_ARE_CLONE 1
16131_ACEOF
16132
16133fi
16134if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16135
16136cat >>confdefs.h <<\_ACEOF
16137#define PTYS_ARE_SEARCHED 1
16138_ACEOF
16139
16140fi
16141
16142
16143{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
16144echo "$as_me: checking for pty ranges..." >&6;}
16145ptys=`echo /dev/pty??`
16146pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
16147pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
16148if test x$pch1 != x; then
16149
16150cat >>confdefs.h <<_ACEOF
16151#define PTYCHAR1 "$pch1"
16152_ACEOF
16153
16154fi
16155if test x$pch2 != x; then
16156
16157cat >>confdefs.h <<_ACEOF
16158#define PTYCHAR2 "$pch2"
16159_ACEOF
16160
16161fi
16162
16163echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16164echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16165if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16167else
16168 ac_check_lib_save_LIBS=$LIBS
16169LIBS="-lxpg4 $LIBS"
16170cat >conftest.$ac_ext <<_ACEOF 12030 cat >conftest.$ac_ext <<_ACEOF
16171/* confdefs.h. */
16172_ACEOF
16173cat confdefs.h >>conftest.$ac_ext
16174cat >>conftest.$ac_ext <<_ACEOF
16175/* end confdefs.h. */
16176 12031
16177/* Override any gcc2 internal prototype to avoid an error. */ 12032#include <X11/Xlib.h>
16178#ifdef __cplusplus 12033
16179extern "C" 12034void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
16180#endif 12035
16181/* We use char because int might match the return type of a gcc2 12036void f() {
16182 builtin and then its argument prototype would still apply. */ 12037 XIMCallback cb;
16183char setlocale (); 12038 cb.callback = im_destroy_cb;
16184int
16185main ()
16186{
16187setlocale ();
16188 ;
16189 return 0;
16190} 12039}
12040
16191_ACEOF 12041_ACEOF
16192rm -f conftest.$ac_objext conftest$ac_exeext 12042rm -f conftest.$ac_objext
16193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16194 (eval $ac_link) 2>conftest.er1 12044 (eval $ac_compile) 2>conftest.er1
16195 ac_status=$? 12045 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err 12046 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1 12047 rm -f conftest.er1
16198 cat conftest.err >&5 12048 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5 12053 (eval $ac_try) 2>&5
16204 ac_status=$? 12054 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; } && 12056 (exit $ac_status); }; } &&
16207 { ac_try='test -s conftest$ac_exeext' 12057 { ac_try='test -s conftest.$ac_objext'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5 12059 (eval $ac_try) 2>&5
16210 ac_status=$? 12060 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then 12062 (exit $ac_status); }; }; then
16213 ac_cv_lib_xpg4_setlocale=yes 12063 rxvt_broken_ximcb=yes
16214else 12064else
16215 echo "$as_me: failed program was:" >&5 12065 echo "$as_me: failed program was:" >&5
16216sed 's/^/| /' conftest.$ac_ext >&5 12066sed 's/^/| /' conftest.$ac_ext >&5
16217 12067
16218ac_cv_lib_xpg4_setlocale=no 12068rxvt_broken_ximcb=no
16219fi 12069fi
16220rm -f conftest.err conftest.$ac_objext \ 12070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16221 conftest$ac_exeext conftest.$ac_ext
16222LIBS=$ac_check_lib_save_LIBS
16223fi 12071fi
16224echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 12072echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
16225echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 12073echo "${ECHO_T}$rxvt_broken_ximcb" >&6
16226if test $ac_cv_lib_xpg4_setlocale = yes; then
16227 LIBS="$LIBS -lxpg4"
16228fi
16229 12074
16230 12075if test x$rxvt_broken_ximcb = xyes; then
16231if test x$support_inheritpixmap = xyes; then
16232 12076
16233cat >>confdefs.h <<\_ACEOF 12077cat >>confdefs.h <<\_ACEOF
16234#define TRANSPARENT 1 12078#define XIMCB_PROTO_BROKEN 1
16235_ACEOF 12079_ACEOF
16236 12080
16237fi 12081fi
16238if test x$support_keepscrolling = xno; then
16239 12082
16240cat >>confdefs.h <<\_ACEOF
16241#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16242_ACEOF
16243 12083
16244fi
16245if test x$support_selectionscrolling = xyes; then
16246 12084
16247cat >>confdefs.h <<\_ACEOF
16248#define SELECTION_SCROLLING 1
16249_ACEOF
16250 12085
16251fi
16252if test x$support_menubar = xyes; then
16253 12086
16254cat >>confdefs.h <<\_ACEOF
16255#define MENUBAR 1
16256_ACEOF
16257 12087
16258fi
16259if test x$support_frills = xno; then
16260 12088
16261cat >>confdefs.h <<\_ACEOF 12089for ac_header in \
16262#define NO_FRILLS 1 12090 pty.h \
16263_ACEOF 12091 util.h \
12092 libutil.h \
12093 sys/ioctl.h \
12094 sys/stropts.h \
16264 12095
16265fi
16266if test x$support_linespace = xno; then
16267
16268cat >>confdefs.h <<\_ACEOF
16269#define NO_LINESPACE 1
16270_ACEOF
16271
16272fi
16273if test x$support_24bit = xyes; then
16274
16275cat >>confdefs.h <<\_ACEOF
16276#define PREFER_24BIT 1
16277_ACEOF
16278
16279fi
16280if test x$support_mousewheel = xyes; then
16281
16282cat >>confdefs.h <<\_ACEOF
16283#define MOUSE_WHEEL 1
16284_ACEOF
16285
16286fi
16287if test x$support_mouseslipwheel = xyes; then
16288
16289cat >>confdefs.h <<\_ACEOF
16290#define MOUSE_SLIP_WHEELING 1
16291_ACEOF
16292
16293fi
16294if test x$support_oldselection = xno; then
16295
16296cat >>confdefs.h <<\_ACEOF
16297#define NO_OLD_SELECTION 1
16298_ACEOF
16299
16300fi
16301if test x$support_utmp = xyes; then
16302
16303cat >>confdefs.h <<\_ACEOF
16304#define UTMP_SUPPORT 1
16305_ACEOF
16306
16307fi
16308if test x$support_wtmp = xyes; then
16309
16310cat >>confdefs.h <<\_ACEOF
16311#define WTMP_SUPPORT 1
16312_ACEOF
16313
16314fi
16315if test x$support_lastlog = xyes; then
16316
16317cat >>confdefs.h <<\_ACEOF
16318#define LASTLOG_SUPPORT 1
16319_ACEOF
16320
16321fi
16322if test x$support_xim = xyes -o x$multichar_set = xyes; then
16323 if test x$rxvt_cv_func_xlocale = xyes; then
16324
16325cat >>confdefs.h <<\_ACEOF
16326#define USE_XIM 1
16327_ACEOF
16328
16329 fi
16330fi
16331if test x$support_xpm = xyes; then
16332
16333cat >>confdefs.h <<\_ACEOF
16334#define XPM_BACKGROUND 1
16335_ACEOF
16336
16337fi
16338if test x$support_scroll_rxvt = xyes; then
16339
16340cat >>confdefs.h <<\_ACEOF
16341#define RXVT_SCROLLBAR 1
16342_ACEOF
16343
16344 scrolltypes="rxvt"
16345fi
16346if test x$support_scroll_next = xyes; then
16347
16348cat >>confdefs.h <<\_ACEOF
16349#define NEXT_SCROLLBAR 1
16350_ACEOF
16351
16352 scrolltypes="$scrolltypes next"
16353fi
16354if test x$support_scroll_xterm = xyes; then
16355
16356cat >>confdefs.h <<\_ACEOF
16357#define XTERM_SCROLLBAR 1
16358_ACEOF
16359
16360 scrolltypes="$scrolltypes xterm"
16361fi
16362if test x$support_scroll_plain = xyes; then
16363
16364cat >>confdefs.h <<\_ACEOF
16365#define PLAIN_SCROLLBAR 1
16366_ACEOF
16367
16368 scrolltypes="$scrolltypes plain"
16369fi
16370if test x$support_pointer_blank = xyes; then
16371
16372cat >>confdefs.h <<\_ACEOF
16373#define POINTER_BLANK 1
16374_ACEOF
16375
16376fi
16377if test x$support_cursor_blink = xyes; then
16378
16379cat >>confdefs.h <<\_ACEOF
16380#define CURSOR_BLINK 1
16381_ACEOF
16382
16383fi
16384if test x$support_text_blink = xyes; then
16385
16386cat >>confdefs.h <<\_ACEOF
16387#define TEXT_BLINK 1
16388_ACEOF
16389
16390fi
16391if test x$support_unicode3 = xyes; then
16392
16393cat >>confdefs.h <<\_ACEOF
16394#define UNICODE_3 1
16395_ACEOF
16396
16397fi
16398if test x$codesets = xall; then
16399 codesets=jp,jp-ext,kr,cn,cn-ext,vn
16400fi
16401for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16402
16403cat >>confdefs.h <<\_ACEOF
16404#define ENCODING_EU 1
16405_ACEOF
16406
16407
16408cat >>confdefs.h <<\_ACEOF
16409#define ENCODING_VN 1
16410_ACEOF
16411
16412 case "$codeset" in
16413 JP )
16414cat >>confdefs.h <<\_ACEOF
16415#define ENCODING_JP 1
16416_ACEOF
16417 ;;
16418 JP_EXT )
16419cat >>confdefs.h <<\_ACEOF
16420#define ENCODING_JP_EXT 1
16421_ACEOF
16422 ;;
16423 KR )
16424cat >>confdefs.h <<\_ACEOF
16425#define ENCODING_KR 1
16426_ACEOF
16427 ;;
16428 CN )
16429cat >>confdefs.h <<\_ACEOF
16430#define ENCODING_CN 1
16431_ACEOF
16432 ;;
16433 CN_EXT )
16434cat >>confdefs.h <<\_ACEOF
16435#define ENCODING_CN_EXT 1
16436_ACEOF
16437 ;;
16438 esac
16439done
16440
16441
16442CFLAGS=${CFLAGS--O}
16443LDFLAGS=${LDFLAGS--O}
16444
16445CPPFLAGS="$CPPFLAGS"
16446
16447
16448
16449
16450
16451
16452
16453if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16454 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16455 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16456 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16457 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16458 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16459fi
16460
16461
16462
16463
16464
16465if test x$support_addstrings = xno; then
16466
16467cat >>confdefs.h <<\_ACEOF
16468#define NO_STRINGS 1
16469_ACEOF
16470
16471fi
16472
16473MCOMMON=./autoconf/Make.common
16474
16475
16476test "$program_prefix" != NONE &&
16477 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16478# Use a double $ so make ignores it.
16479test "$program_suffix" != NONE &&
16480 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16481# Double any \ or $. echo might interpret backslashes.
16482# By default was `s,x,x', remove it if useless.
16483cat <<\_ACEOF >conftest.sed
16484s/[\\$]/&&/g;s/;s,x,x,$//
16485_ACEOF
16486program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16487rm conftest.sed
16488
16489
16490
16491
16492
16493if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16494 include_stdint_h="#include <stdint.h>"
16495else
16496 include_stdint_h="/* #include <stdint.h> */"
16497fi
16498if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16499 include_stdarg_h="#include <stdarg.h>"
16500else
16501 include_stdarg_h="/* #include <stdarg.h> */"
16502fi
16503if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16504 include_stdlib_h="#include <stdlib.h>"
16505else
16506 include_stdlib_h="/* #include <stdlib.h> */"
16507fi
16508if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16509 include_unistd_h="#include <unistd.h>"
16510else
16511 include_unistd_h="/* #include <unistd.h> */"
16512fi
16513if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16514 include_string_h="#include <string.h>"
16515else
16516 include_string_h="/* #include <string.h> */"
16517fi
16518if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16519 include_fcntl_h="#include <fcntl.h>"
16520else
16521 include_fcntl_h="/* #include <fcntl.h> */"
16522fi
16523if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16524 include_util_h="#include <util.h>"
16525else
16526 include_util_h="/* #include <util.h> */"
16527fi
16528if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16529 include_assert_h="#include <assert.h>"
16530else
16531 include_assert_h="/* #include <assert.h> */"
16532fi
16533if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16534 include_sys_ioctl_h="#include <sys/ioctl.h>"
16535else
16536 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16537fi
16538if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16539 include_sys_select_h="#include <sys/select.h>"
16540else
16541 include_sys_select_h="/* #include <sys/select.h> */"
16542fi
16543if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16544 include_sys_strredir_h="#include <sys/strredir.h>"
16545else
16546 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16547fi
16548if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16549 include_sys_time_h="#include <sys/time.h>"
16550else
16551 include_sys_time_h="/* #include <sys/time.h> */"
16552fi
16553if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16554 include_time_h="#include <time.h>"
16555else
16556 include_time_h="/* #include <time.h> */"
16557fi
16558
16559if test x$support_xft = xyes; then
16560 LIBS="$LIBS `pkg-config xft --libs`"
16561 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16562 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16563
16564
16565for ac_header in X11/Xft/Xft.h
16566do 12096do
16567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16568if eval "test \"\${$as_ac_Header+set}\" = set"; then 12098if eval "test \"\${$as_ac_Header+set}\" = set"; then
16569 echo "$as_me:$LINENO: checking for $ac_header" >&5 12099 echo "$as_me:$LINENO: checking for $ac_header" >&5
16570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16704if test `eval echo '${'$as_ac_Header'}'` = yes; then 12234if test `eval echo '${'$as_ac_Header'}'` = yes; then
16705 cat >>confdefs.h <<_ACEOF 12235 cat >>confdefs.h <<_ACEOF
16706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16707_ACEOF 12237_ACEOF
16708 12238
12239fi
12240
12241done
12242
12243
12244
12245
12246
12247
12248
12249for ac_func in \
12250 revoke \
12251 _getpty \
12252 getpt \
12253 posix_openpt \
12254 isastream \
12255
12256do
12257as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12258echo "$as_me:$LINENO: checking for $ac_func" >&5
12259echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12260if eval "test \"\${$as_ac_var+set}\" = set"; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262else
12263 cat >conftest.$ac_ext <<_ACEOF
12264/* confdefs.h. */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
12268/* end confdefs.h. */
12269/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12271#define $ac_func innocuous_$ac_func
12272
12273/* System header to define __stub macros and hopefully few prototypes,
12274 which can conflict with char $ac_func (); below.
12275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12276 <limits.h> exists even on freestanding compilers. */
12277
12278#ifdef __STDC__
12279# include <limits.h>
12280#else
12281# include <assert.h>
12282#endif
12283
12284#undef $ac_func
12285
12286/* Override any gcc2 internal prototype to avoid an error. */
12287#ifdef __cplusplus
12288extern "C"
12289{
12290#endif
12291/* We use char because int might match the return type of a gcc2
12292 builtin and then its argument prototype would still apply. */
12293char $ac_func ();
12294/* The GNU C library defines this for functions which it implements
12295 to always fail with ENOSYS. Some functions are actually named
12296 something starting with __ and the normal name is an alias. */
12297#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12298choke me
12299#else
12300char (*f) () = $ac_func;
12301#endif
12302#ifdef __cplusplus
12303}
12304#endif
12305
12306int
12307main ()
12308{
12309return f != $ac_func;
12310 ;
12311 return 0;
12312}
12313_ACEOF
12314rm -f conftest.$ac_objext conftest$ac_exeext
12315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316 (eval $ac_link) 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest$ac_exeext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 eval "$as_ac_var=yes"
12336else
12337 echo "$as_me: failed program was:" >&5
12338sed 's/^/| /' conftest.$ac_ext >&5
12339
12340eval "$as_ac_var=no"
12341fi
12342rm -f conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344fi
12345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12346echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12347if test `eval echo '${'$as_ac_var'}'` = yes; then
12348 cat >>confdefs.h <<_ACEOF
12349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12350_ACEOF
12351
12352fi
12353done
12354
12355
12356have_clone=no
12357
12358echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12359echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12360if test -e /dev/ptym/clone; then
12361 echo "$as_me:$LINENO: result: yes" >&5
12362echo "${ECHO_T}yes" >&6
12363
12364cat >>confdefs.h <<\_ACEOF
12365#define HAVE_DEV_CLONE 1
12366_ACEOF
12367
12368
12369cat >>confdefs.h <<\_ACEOF
12370#define CLONE_DEVICE "/dev/ptym/clone"
12371_ACEOF
12372
12373 have_clone=yes
12374else
12375 echo "$as_me:$LINENO: result: no" >&5
12376echo "${ECHO_T}no" >&6
12377fi
12378
12379echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12380echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12381if test -e /dev/ptc; then
12382 echo "$as_me:$LINENO: result: yes" >&5
12383echo "${ECHO_T}yes" >&6
12384
12385cat >>confdefs.h <<\_ACEOF
12386#define HAVE_DEV_PTC 1
12387_ACEOF
12388
12389
12390cat >>confdefs.h <<\_ACEOF
12391#define CLONE_DEVICE "/dev/ptc"
12392_ACEOF
12393
12394 have_clone=yes
12395else
12396 echo "$as_me:$LINENO: result: no" >&5
12397echo "${ECHO_T}no" >&6
12398fi
12399
12400case $host in
12401 *-*-cygwin*)
12402 have_clone=yes
12403
12404cat >>confdefs.h <<\_ACEOF
12405#define CLONE_DEVICE "/dev/ptmx"
12406_ACEOF
12407
12408 ;;
12409 *)
12410 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12411echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12412 if test -e /dev/ptmx; then
12413 echo "$as_me:$LINENO: result: yes" >&5
12414echo "${ECHO_T}yes" >&6
12415
12416cat >>confdefs.h <<\_ACEOF
12417#define HAVE_DEV_PTMX 1
12418_ACEOF
12419
12420
12421cat >>confdefs.h <<\_ACEOF
12422#define CLONE_DEVICE "/dev/ptmx"
12423_ACEOF
12424
12425 have_clone=yes
12426 else
12427 echo "$as_me:$LINENO: result: no" >&5
12428echo "${ECHO_T}no" >&6
12429 fi
12430 ;;
12431esac
12432
12433if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12434 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12435echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12436 cat >conftest.$ac_ext <<_ACEOF
12437/* confdefs.h. */
12438_ACEOF
12439cat confdefs.h >>conftest.$ac_ext
12440cat >>conftest.$ac_ext <<_ACEOF
12441/* end confdefs.h. */
12442#include <stdlib.h>
12443int
12444main ()
12445{
12446grantpt(0);unlockpt(0);ptsname(0);
12447 ;
12448 return 0;
12449}
12450_ACEOF
12451rm -f conftest.$ac_objext conftest$ac_exeext
12452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 (eval $ac_link) 2>conftest.er1
12454 ac_status=$?
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
12460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; } &&
12466 { ac_try='test -s conftest$ac_exeext'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; }; then
12472 unix98_pty=yes
12473
12474cat >>confdefs.h <<\_ACEOF
12475#define UNIX98_PTY 1
12476_ACEOF
12477
12478 echo "$as_me:$LINENO: result: yes" >&5
12479echo "${ECHO_T}yes" >&6
12480else
12481 echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
12484echo "$as_me:$LINENO: result: no" >&5
12485echo "${ECHO_T}no" >&6
12486fi
12487rm -f conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489fi
12490
12491if test -z "$unix98_pty"; then
12492
12493for ac_func in openpty
12494do
12495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12496echo "$as_me:$LINENO: checking for $ac_func" >&5
12497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12498if eval "test \"\${$as_ac_var+set}\" = set"; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500else
12501 cat >conftest.$ac_ext <<_ACEOF
12502/* confdefs.h. */
12503_ACEOF
12504cat confdefs.h >>conftest.$ac_ext
12505cat >>conftest.$ac_ext <<_ACEOF
12506/* end confdefs.h. */
12507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12509#define $ac_func innocuous_$ac_func
12510
12511/* System header to define __stub macros and hopefully few prototypes,
12512 which can conflict with char $ac_func (); below.
12513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12514 <limits.h> exists even on freestanding compilers. */
12515
12516#ifdef __STDC__
12517# include <limits.h>
12518#else
12519# include <assert.h>
12520#endif
12521
12522#undef $ac_func
12523
12524/* Override any gcc2 internal prototype to avoid an error. */
12525#ifdef __cplusplus
12526extern "C"
12527{
12528#endif
12529/* We use char because int might match the return type of a gcc2
12530 builtin and then its argument prototype would still apply. */
12531char $ac_func ();
12532/* The GNU C library defines this for functions which it implements
12533 to always fail with ENOSYS. Some functions are actually named
12534 something starting with __ and the normal name is an alias. */
12535#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12536choke me
12537#else
12538char (*f) () = $ac_func;
12539#endif
12540#ifdef __cplusplus
12541}
12542#endif
12543
12544int
12545main ()
12546{
12547return f != $ac_func;
12548 ;
12549 return 0;
12550}
12551_ACEOF
12552rm -f conftest.$ac_objext conftest$ac_exeext
12553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12554 (eval $ac_link) 2>conftest.er1
12555 ac_status=$?
12556 grep -v '^ *+' conftest.er1 >conftest.err
12557 rm -f conftest.er1
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest$ac_exeext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 eval "$as_ac_var=yes"
12574else
12575 echo "$as_me: failed program was:" >&5
12576sed 's/^/| /' conftest.$ac_ext >&5
12577
12578eval "$as_ac_var=no"
12579fi
12580rm -f conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582fi
12583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12585if test `eval echo '${'$as_ac_var'}'` = yes; then
12586 cat >>confdefs.h <<_ACEOF
12587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12588_ACEOF
12589
12590else
12591 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12592echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12593if test "${ac_cv_lib_util_openpty+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595else
12596 ac_check_lib_save_LIBS=$LIBS
12597LIBS="-lutil $LIBS"
12598cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h. */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h. */
12604
12605/* Override any gcc2 internal prototype to avoid an error. */
12606#ifdef __cplusplus
12607extern "C"
12608#endif
12609/* We use char because int might match the return type of a gcc2
12610 builtin and then its argument prototype would still apply. */
12611char openpty ();
12612int
12613main ()
12614{
12615openpty ();
12616 ;
12617 return 0;
12618}
12619_ACEOF
12620rm -f conftest.$ac_objext conftest$ac_exeext
12621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12622 (eval $ac_link) 2>conftest.er1
12623 ac_status=$?
12624 grep -v '^ *+' conftest.er1 >conftest.err
12625 rm -f conftest.er1
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest$ac_exeext'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12638 ac_status=$?
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; }; then
12641 ac_cv_lib_util_openpty=yes
12642else
12643 echo "$as_me: failed program was:" >&5
12644sed 's/^/| /' conftest.$ac_ext >&5
12645
12646ac_cv_lib_util_openpty=no
12647fi
12648rm -f conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650LIBS=$ac_check_lib_save_LIBS
12651fi
12652echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12653echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12654if test $ac_cv_lib_util_openpty = yes; then
12655 cat >>confdefs.h <<\_ACEOF
12656#define HAVE_OPENPTY 1
12657_ACEOF
12658 LIBS="$LIBS -lutil"
12659fi
12660
12661fi
12662done
12663
12664fi
12665
12666
12667
12668echo "$as_me:$LINENO: checking for tty group" >&5
12669echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12670if test "${tty_group+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672else
12673 if test "$cross_compiling" = yes; then
12674 tty_group=no
12675else
12676 cat >conftest.$ac_ext <<_ACEOF
12677/* confdefs.h. */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h. */
12682
12683#include <sys/types.h>
12684#include <sys/stat.h>
12685#include <unistd.h>
12686#include <grp.h>
12687
12688main()
12689{
12690 struct stat st;
12691 struct group *gr;
12692 char *tty;
12693 gr = getgrnam("tty");
12694 tty = ttyname(0);
12695 if (gr != 0
12696 && tty != 0
12697 && (stat(tty, &st)) == 0
12698 && st.st_gid == gr->gr_gid)
12699 return 0;
12700 else
12701 return 1;
12702}
12703_ACEOF
12704rm -f conftest$ac_exeext
12705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12706 (eval $ac_link) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 tty_group=yes
12716else
12717 echo "$as_me: program exited with status $ac_status" >&5
12718echo "$as_me: failed program was:" >&5
12719sed 's/^/| /' conftest.$ac_ext >&5
12720
12721( exit $ac_status )
12722tty_group=no
12723fi
12724rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12725fi
12726fi
12727echo "$as_me:$LINENO: result: $tty_group" >&5
12728echo "${ECHO_T}$tty_group" >&6
12729if test x$tty_group = xyes; then
12730
12731cat >>confdefs.h <<\_ACEOF
12732#define TTY_GID_SUPPORT 1
12733_ACEOF
12734
12735fi
12736
12737if test x$support_xft = xyes; then
12738 # Extract the first word of "pkg-config", so it can be a program name with args.
12739set dummy pkg-config; ac_word=$2
12740echo "$as_me:$LINENO: checking for $ac_word" >&5
12741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12742if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744else
12745 case $PKG_CONFIG in
12746 [\\/]* | ?:[\\/]*)
12747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12748 ;;
12749 *)
12750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751for as_dir in $PATH
12752do
12753 IFS=$as_save_IFS
12754 test -z "$as_dir" && as_dir=.
12755 for ac_exec_ext in '' $ac_executable_extensions; do
12756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12759 break 2
12760 fi
12761done
12762done
12763
12764 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12765 ;;
12766esac
12767fi
12768PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12769
12770if test -n "$PKG_CONFIG"; then
12771 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12772echo "${ECHO_T}$PKG_CONFIG" >&6
12773else
12774 echo "$as_me:$LINENO: result: no" >&5
12775echo "${ECHO_T}no" >&6
12776fi
12777
12778 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12779 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12780 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12781 else
12782 # Extract the first word of "xft-config", so it can be a program name with args.
12783set dummy xft-config; ac_word=$2
12784echo "$as_me:$LINENO: checking for $ac_word" >&5
12785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12786if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788else
12789 case $XFT_CONFIG in
12790 [\\/]* | ?:[\\/]*)
12791 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12792 ;;
12793 *)
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795for as_dir in $PATH
12796do
12797 IFS=$as_save_IFS
12798 test -z "$as_dir" && as_dir=.
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12801 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 break 2
12804 fi
12805done
12806done
12807
12808 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12809 ;;
12810esac
12811fi
12812XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12813
12814if test -n "$XFT_CONFIG"; then
12815 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12816echo "${ECHO_T}$XFT_CONFIG" >&6
12817else
12818 echo "$as_me:$LINENO: result: no" >&5
12819echo "${ECHO_T}no" >&6
12820fi
12821
12822 if test $XFT_CONFIG != no; then
12823 LIBS="$LIBS `$XFT_CONFIG --libs`"
12824 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12825 fi
12826 fi
12827
12828
12829for ac_header in X11/Xft/Xft.h
12830do
12831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12832if eval "test \"\${$as_ac_Header+set}\" = set"; then
12833 echo "$as_me:$LINENO: checking for $ac_header" >&5
12834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12835if eval "test \"\${$as_ac_Header+set}\" = set"; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837fi
12838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12840else
12841 # Is the header compilable?
12842echo "$as_me:$LINENO: checking $ac_header usability" >&5
12843echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12844cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h. */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h. */
12850$ac_includes_default
12851#include <$ac_header>
12852_ACEOF
12853rm -f conftest.$ac_objext
12854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855 (eval $ac_compile) 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; } &&
12868 { ac_try='test -s conftest.$ac_objext'
12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; }; then
12874 ac_header_compiler=yes
12875else
12876 echo "$as_me: failed program was:" >&5
12877sed 's/^/| /' conftest.$ac_ext >&5
12878
12879ac_header_compiler=no
12880fi
12881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12882echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12883echo "${ECHO_T}$ac_header_compiler" >&6
12884
12885# Is the header present?
12886echo "$as_me:$LINENO: checking $ac_header presence" >&5
12887echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12888cat >conftest.$ac_ext <<_ACEOF
12889/* confdefs.h. */
12890_ACEOF
12891cat confdefs.h >>conftest.$ac_ext
12892cat >>conftest.$ac_ext <<_ACEOF
12893/* end confdefs.h. */
12894#include <$ac_header>
12895_ACEOF
12896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } >/dev/null; then
12904 if test -s conftest.err; then
12905 ac_cpp_err=$ac_cxx_preproc_warn_flag
12906 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12907 else
12908 ac_cpp_err=
12909 fi
12910else
12911 ac_cpp_err=yes
12912fi
12913if test -z "$ac_cpp_err"; then
12914 ac_header_preproc=yes
12915else
12916 echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919 ac_header_preproc=no
12920fi
12921rm -f conftest.err conftest.$ac_ext
12922echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12923echo "${ECHO_T}$ac_header_preproc" >&6
12924
12925# So? What about this header?
12926case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12927 yes:no: )
12928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12929echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12931echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12932 ac_header_preproc=yes
12933 ;;
12934 no:yes:* )
12935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12936echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12938echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12940echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12942echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12944echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12946echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12947 (
12948 cat <<\_ASBOX
12949## ------------------------------------------ ##
12950## Report this to the AC_PACKAGE_NAME lists. ##
12951## ------------------------------------------ ##
12952_ASBOX
12953 ) |
12954 sed "s/^/$as_me: WARNING: /" >&2
12955 ;;
12956esac
12957echo "$as_me:$LINENO: checking for $ac_header" >&5
12958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12959if eval "test \"\${$as_ac_Header+set}\" = set"; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961else
12962 eval "$as_ac_Header=\$ac_header_preproc"
12963fi
12964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12966
12967fi
12968if test `eval echo '${'$as_ac_Header'}'` = yes; then
12969 cat >>confdefs.h <<_ACEOF
12970#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12971_ACEOF
12972
16709else 12973else
16710 support_xft=no 12974 support_xft=no
16711fi 12975fi
16712 12976
16713done 12977done
16794#define XFT 1 13058#define XFT 1
16795_ACEOF 13059_ACEOF
16796 13060
16797 fi 13061 fi
16798fi 13062fi
13063if test x$support_styles = xyes; then
16799 13064
13065cat >>confdefs.h <<\_ACEOF
13066#define ENABLE_STYLES 1
13067_ACEOF
13068
13069fi
13070if test x$support_iso14755 = xyes; then
13071
13072cat >>confdefs.h <<\_ACEOF
13073#define ISO_14755 1
13074_ACEOF
13075
13076fi
13077if test x$support_8bitctrls = xyes; then
13078
13079cat >>confdefs.h <<\_ACEOF
13080#define EIGHT_BIT_CONTROLS 1
13081_ACEOF
13082
13083fi
13084if test x$support_fading = xyes; then
13085
13086cat >>confdefs.h <<\_ACEOF
13087#define OFF_FOCUS_FADING 1
13088_ACEOF
13089
13090fi
13091if test x$support_tinting = xyes; then
13092
13093cat >>confdefs.h <<\_ACEOF
13094#define TINTING 1
13095_ACEOF
13096
13097fi
13098if test x$support_inheritpixmap = xyes; then
13099
13100cat >>confdefs.h <<\_ACEOF
13101#define TRANSPARENT 1
13102_ACEOF
13103
13104fi
13105if test x$support_keepscrolling = xno; then
13106
13107cat >>confdefs.h <<\_ACEOF
13108#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
13109_ACEOF
13110
13111fi
13112if test x$support_selectionscrolling = xyes; then
13113
13114cat >>confdefs.h <<\_ACEOF
13115#define SELECTION_SCROLLING 1
13116_ACEOF
13117
13118fi
13119if test x$support_frills = xyes; then
13120
13121cat >>confdefs.h <<\_ACEOF
13122#define ENABLE_FRILLS 1
13123_ACEOF
13124
13125fi
13126if test x$support_mousewheel = xyes; then
13127
13128cat >>confdefs.h <<\_ACEOF
13129#define MOUSE_WHEEL 1
13130_ACEOF
13131
13132fi
13133if test x$support_mouseslipwheel = xyes; then
13134
13135cat >>confdefs.h <<\_ACEOF
13136#define MOUSE_SLIP_WHEELING 1
13137_ACEOF
13138
13139fi
13140if test x$support_xim = xyes -o x$multichar_set = xyes; then
13141 if test x$rxvt_cv_func_xlocale = xyes; then
13142
13143cat >>confdefs.h <<\_ACEOF
13144#define USE_XIM 1
13145_ACEOF
13146
13147 fi
13148fi
13149if test x$support_xpm = xyes; then
13150
13151cat >>confdefs.h <<\_ACEOF
13152#define XPM_BACKGROUND 1
13153_ACEOF
13154
13155fi
13156if test x$support_scroll_rxvt = xyes; then
13157
13158cat >>confdefs.h <<\_ACEOF
13159#define RXVT_SCROLLBAR 1
13160_ACEOF
13161
13162 scrolltypes="rxvt"
13163fi
13164if test x$support_scroll_next = xyes; then
13165
13166cat >>confdefs.h <<\_ACEOF
13167#define NEXT_SCROLLBAR 1
13168_ACEOF
13169
13170 scrolltypes="$scrolltypes next"
13171fi
13172if test x$support_scroll_xterm = xyes; then
13173
13174cat >>confdefs.h <<\_ACEOF
13175#define XTERM_SCROLLBAR 1
13176_ACEOF
13177
13178 scrolltypes="$scrolltypes xterm"
13179fi
13180if test x$support_scroll_plain = xyes; then
13181
13182cat >>confdefs.h <<\_ACEOF
13183#define PLAIN_SCROLLBAR 1
13184_ACEOF
13185
13186 scrolltypes="$scrolltypes plain"
13187fi
13188if test x$support_pointer_blank = xyes; then
13189
13190cat >>confdefs.h <<\_ACEOF
13191#define POINTER_BLANK 1
13192_ACEOF
13193
13194fi
13195if test x$support_text_blink = xyes; then
13196
13197cat >>confdefs.h <<\_ACEOF
13198#define TEXT_BLINK 1
13199_ACEOF
13200
13201fi
13202if test x$support_unicode3 = xyes; then
13203
13204cat >>confdefs.h <<\_ACEOF
13205#define UNICODE_3 1
13206_ACEOF
13207
13208fi
13209if test x$support_combining = xyes; then
13210
13211cat >>confdefs.h <<\_ACEOF
13212#define ENABLE_COMBINING 1
13213_ACEOF
13214
13215fi
13216if test x$codesets = xall; then
13217 codesets=jp,jp-ext,kr,zh,zh-ext
13218fi
13219
13220cat >>confdefs.h <<\_ACEOF
13221#define ENCODING_EU 1
13222_ACEOF
13223
13224
13225cat >>confdefs.h <<\_ACEOF
13226#define ENCODING_VN 1
13227_ACEOF
13228
13229for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13230 case "$codeset" in
13231 JP )
13232cat >>confdefs.h <<\_ACEOF
13233#define ENCODING_JP 1
13234_ACEOF
13235 ;;
13236 JP_EXT )
13237cat >>confdefs.h <<\_ACEOF
13238#define ENCODING_JP_EXT 1
13239_ACEOF
13240 ;;
13241 KR )
13242cat >>confdefs.h <<\_ACEOF
13243#define ENCODING_KR 1
13244_ACEOF
13245 ;;
13246 ZH )
13247cat >>confdefs.h <<\_ACEOF
13248#define ENCODING_ZH 1
13249_ACEOF
13250 ;;
13251 ZH_EXT )
13252cat >>confdefs.h <<\_ACEOF
13253#define ENCODING_ZH_EXT 1
13254_ACEOF
13255 ;;
13256 esac
13257done
13258
13259IF_PERL=\#
13260if test x$support_perl = xyes; then
13261 # Extract the first word of "perl5", so it can be a program name with args.
13262set dummy perl5; ac_word=$2
13263echo "$as_me:$LINENO: checking for $ac_word" >&5
13264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13265if test "${ac_cv_path_PERL+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13267else
13268 case $PERL in
13269 [\\/]* | ?:[\\/]*)
13270 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13271 ;;
13272 *)
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274for as_dir in $PATH
13275do
13276 IFS=$as_save_IFS
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13280 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13282 break 2
13283 fi
13284done
13285done
13286
13287 ;;
13288esac
13289fi
13290PERL=$ac_cv_path_PERL
13291
13292if test -n "$PERL"; then
13293 echo "$as_me:$LINENO: result: $PERL" >&5
13294echo "${ECHO_T}$PERL" >&6
13295else
13296 echo "$as_me:$LINENO: result: no" >&5
13297echo "${ECHO_T}no" >&6
13298fi
13299
13300 # Extract the first word of "perl", so it can be a program name with args.
13301set dummy perl; ac_word=$2
13302echo "$as_me:$LINENO: checking for $ac_word" >&5
13303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13304if test "${ac_cv_path_PERL+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306else
13307 case $PERL in
13308 [\\/]* | ?:[\\/]*)
13309 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13310 ;;
13311 *)
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313for as_dir in $PATH
13314do
13315 IFS=$as_save_IFS
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13319 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13321 break 2
13322 fi
13323done
13324done
13325
13326 ;;
13327esac
13328fi
13329PERL=$ac_cv_path_PERL
13330
13331if test -n "$PERL"; then
13332 echo "$as_me:$LINENO: result: $PERL" >&5
13333echo "${ECHO_T}$PERL" >&6
13334else
13335 echo "$as_me:$LINENO: result: no" >&5
13336echo "${ECHO_T}no" >&6
13337fi
13338
13339
13340 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13341echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13342 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13343
13344 save_CXXFLAGS="$CXXFLAGS"
13345 save_LIBS="$LIBS"
13346 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13347 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13348 cat >conftest.$ac_ext <<_ACEOF
13349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
13354
13355#include <EXTERN.h>
13356#include <perl.h>
13357#include <XSUB.h>
13358
13359int
13360main ()
13361{
13362
13363 PerlInterpreter *perl = perl_alloc ();
13364
13365 ;
13366 return 0;
13367}
13368_ACEOF
13369rm -f conftest.$ac_objext conftest$ac_exeext
13370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13371 (eval $ac_link) 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13381 ac_status=$?
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; } &&
13384 { ac_try='test -s conftest$ac_exeext'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 rxvt_perl_link=yes
13391else
13392 echo "$as_me: failed program was:" >&5
13393sed 's/^/| /' conftest.$ac_ext >&5
13394
13395rxvt_perl_link=no
13396fi
13397rm -f conftest.err conftest.$ac_objext \
13398 conftest$ac_exeext conftest.$ac_ext
13399 CXXFLAGS="$save_CXXFLAGS"
13400 LIBS="$save_LIBS"
13401
13402 if test x$rxvt_perl_link = xyes; then
13403 echo "$as_me:$LINENO: result: ok" >&5
13404echo "${ECHO_T}ok" >&6
13405
13406cat >>confdefs.h <<\_ACEOF
13407#define ENABLE_PERL 1
13408_ACEOF
13409
13410 IF_PERL=
13411 PERL_O=rxvtperl.o
13412 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13413 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13414 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13415 else
13416 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13417echo "$as_me: error: no, unable to link" >&2;}
13418 { (exit 1); exit 1; }; }
13419 fi
13420 else
13421 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13422echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13423 { (exit 1); exit 1; }; }
13424 fi
13425fi
13426
13427
13428
13429
13430
13431
13432
13433if test x$support_perl = xyes; then
13434 support_frills=yes
13435fi
13436
13437
13438CFLAGS=${CFLAGS--O}
13439LDFLAGS=${LDFLAGS--O}
13440
13441CPPFLAGS="$CPPFLAGS"
13442
13443
13444
13445
13446
13447
13448
13449if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13450 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13451 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13452 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13453 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13454 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13455fi
13456
13457
13458
13459
13460
13461test "$program_prefix" != NONE &&
13462 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13463# Use a double $ so make ignores it.
13464test "$program_suffix" != NONE &&
13465 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13466# Double any \ or $. echo might interpret backslashes.
13467# By default was `s,x,x', remove it if useless.
13468cat <<\_ACEOF >conftest.sed
13469s/[\\$]/&&/g;s/;s,x,x,$//
13470_ACEOF
13471program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13472rm conftest.sed
13473
13474
13475
13476
13477
13478if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13479 include_stdint_h="#include <stdint.h>"
13480else
13481 include_stdint_h="/* #include <stdint.h> */"
13482fi
13483if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13484 include_stdarg_h="#include <cstdarg>"
13485else
13486 include_stdarg_h="/* #include <cstdarg> */"
13487fi
13488if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13489 include_stdlib_h="#include <cstdlib>"
13490else
13491 include_stdlib_h="/* #include <cstdlib> */"
13492fi
13493if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13494 include_unistd_h="#include <unistd.h>"
13495else
13496 include_unistd_h="/* #include <unistd.h> */"
13497fi
13498if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13499 include_string_h="#include <cstring>"
13500else
13501 include_string_h="/* #include <cstring> */"
13502fi
13503if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13504 include_fcntl_h="#include <fcntl.h>"
13505else
13506 include_fcntl_h="/* #include <fcntl.h> */"
13507fi
13508if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13509 include_util_h="#include <util.h>"
13510else
13511 include_util_h="/* #include <util.h> */"
13512fi
13513if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13514 include_assert_h="#include <assert.h>"
13515else
13516 include_assert_h="/* #include <assert.h> */"
13517fi
13518if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13519 include_sys_ioctl_h="#include <sys/ioctl.h>"
13520else
13521 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13522fi
13523if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13524 include_sys_select_h="#include <sys/select.h>"
13525else
13526 include_sys_select_h="/* #include <sys/select.h> */"
13527fi
13528if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13529 include_sys_strredir_h="#include <sys/strredir.h>"
13530else
13531 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13532fi
13533if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13534 include_sys_time_h="#include <sys/time.h>"
13535else
13536 include_sys_time_h="/* #include <sys/time.h> */"
13537fi
13538if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13539 include_time_h="#include <time.h>"
13540else
13541 include_time_h="/* #include <time.h> */"
13542fi
13543
16800 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 13544 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13545
16801cat >confcache <<\_ACEOF 13546cat >confcache <<\_ACEOF
16802# This file is a shell script that caches the results of configure 13547# This file is a shell script that caches the results of configure
16803# tests run on this system so they can be shared between configure 13548# tests run on this system so they can be shared between configure
16804# scripts and configure runs, see configure's option --config-cache. 13549# scripts and configure runs, see configure's option --config-cache.
16805# It is not useful on other systems. If it contains results you don't 13550# It is not useful on other systems. If it contains results you don't
17321cat >>$CONFIG_STATUS <<\_ACEOF 14066cat >>$CONFIG_STATUS <<\_ACEOF
17322for ac_config_target in $ac_config_targets 14067for ac_config_target in $ac_config_targets
17323do 14068do
17324 case "$ac_config_target" in 14069 case "$ac_config_target" in
17325 # Handling of arguments. 14070 # Handling of arguments.
17326 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17327 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14071 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17328 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14072 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17329 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14073 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17330 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17331 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 14074 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17332 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17333 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 14075 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
17334 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14076 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17335echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14077echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17336 { (exit 1); exit 1; }; };; 14078 { (exit 1); exit 1; }; };;
17337 esac 14079 esac
17338done 14080done
17413s,@DEFS@,$DEFS,;t t 14155s,@DEFS@,$DEFS,;t t
17414s,@ECHO_C@,$ECHO_C,;t t 14156s,@ECHO_C@,$ECHO_C,;t t
17415s,@ECHO_N@,$ECHO_N,;t t 14157s,@ECHO_N@,$ECHO_N,;t t
17416s,@ECHO_T@,$ECHO_T,;t t 14158s,@ECHO_T@,$ECHO_T,;t t
17417s,@LIBS@,$LIBS,;t t 14159s,@LIBS@,$LIBS,;t t
14160s,@build@,$build,;t t
14161s,@build_cpu@,$build_cpu,;t t
14162s,@build_vendor@,$build_vendor,;t t
14163s,@build_os@,$build_os,;t t
14164s,@host@,$host,;t t
14165s,@host_cpu@,$host_cpu,;t t
14166s,@host_vendor@,$host_vendor,;t t
14167s,@host_os@,$host_os,;t t
17418s,@VERSION@,$VERSION,;t t 14168s,@VERSION@,$VERSION,;t t
17419s,@DATE@,$DATE,;t t 14169s,@DATE@,$DATE,;t t
17420s,@LSMDATE@,$LSMDATE,;t t 14170s,@LSMDATE@,$LSMDATE,;t t
17421s,@LIBVERSION@,$LIBVERSION,;t t 14171s,@LIBVERSION@,$LIBVERSION,;t t
17422s,@CC@,$CC,;t t 14172s,@CC@,$CC,;t t
17431s,@ac_ct_CXX@,$ac_ct_CXX,;t t 14181s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17432s,@CPP@,$CPP,;t t 14182s,@CPP@,$CPP,;t t
17433s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14183s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17434s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14184s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17435s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14185s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17436s,@AWK@,$AWK,;t t 14186s,@EGREP@,$EGREP,;t t
17437s,@LINKER@,$LINKER,;t t 14187s,@LINKER@,$LINKER,;t t
17438s,@CXXCPP@,$CXXCPP,;t t
17439s,@EGREP@,$EGREP,;t t
17440s,@build@,$build,;t t
17441s,@build_cpu@,$build_cpu,;t t
17442s,@build_vendor@,$build_vendor,;t t
17443s,@build_os@,$build_os,;t t
17444s,@host@,$host,;t t
17445s,@host_cpu@,$host_cpu,;t t
17446s,@host_vendor@,$host_vendor,;t t
17447s,@host_os@,$host_os,;t t
17448s,@LN_S@,$LN_S,;t t
17449s,@ECHO@,$ECHO,;t t
17450s,@RANLIB@,$RANLIB,;t t
17451s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17452s,@STRIP@,$STRIP,;t t
17453s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17454s,@LIBTOOL@,$LIBTOOL,;t t
17455s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 14188s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17456s,@RXVTNAME@,$RXVTNAME,;t t 14189s,@RXVTNAME@,$RXVTNAME,;t t
17457s,@MV@,$MV,;t t 14190s,@MV@,$MV,;t t
17458s,@RM@,$RM,;t t
17459s,@CP@,$CP,;t t 14191s,@CP@,$CP,;t t
17460s,@LN@,$LN,;t t 14192s,@LN@,$LN,;t t
17461s,@SED@,$SED,;t t 14193s,@SED@,$SED,;t t
14194s,@ECHO@,$ECHO,;t t
17462s,@CMP@,$CMP,;t t 14195s,@CMP@,$CMP,;t t
17463s,@TBL@,$TBL,;t t 14196s,@TIC@,$TIC,;t t
14197s,@CXXCPP@,$CXXCPP,;t t
17464s,@X_CFLAGS@,$X_CFLAGS,;t t 14198s,@X_CFLAGS@,$X_CFLAGS,;t t
17465s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 14199s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17466s,@X_LIBS@,$X_LIBS,;t t 14200s,@X_LIBS@,$X_LIBS,;t t
17467s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 14201s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17468s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 14202s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17472s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 14206s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17473s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 14207s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17474s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 14208s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17475s,@rxvt_intp_define@,$rxvt_intp_define,;t t 14209s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17476s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 14210s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
14211s,@PKG_CONFIG@,$PKG_CONFIG,;t t
14212s,@XFT_CONFIG@,$XFT_CONFIG,;t t
14213s,@PERL@,$PERL,;t t
14214s,@PERLLIB@,$PERLLIB,;t t
14215s,@PERLFLAGS@,$PERLFLAGS,;t t
14216s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14217s,@IF_PERL@,$IF_PERL,;t t
14218s,@PERL_O@,$PERL_O,;t t
17477s,@DEBUG@,$DEBUG,;t t 14219s,@DEBUG@,$DEBUG,;t t
17478s,@DINCLUDE@,$DINCLUDE,;t t 14220s,@DINCLUDE@,$DINCLUDE,;t t
17479s,@DLIB@,$DLIB,;t t 14221s,@DLIB@,$DLIB,;t t
17480s,@include_stdint_h@,$include_stdint_h,;t t 14222s,@include_stdint_h@,$include_stdint_h,;t t
17481s,@include_stdarg_h@,$include_stdarg_h,;t t 14223s,@include_stdarg_h@,$include_stdarg_h,;t t
17490s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 14232s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17491s,@include_sys_time_h@,$include_sys_time_h,;t t 14233s,@include_sys_time_h@,$include_sys_time_h,;t t
17492s,@include_time_h@,$include_time_h,;t t 14234s,@include_time_h@,$include_time_h,;t t
17493s,@LIBOBJS@,$LIBOBJS,;t t 14235s,@LIBOBJS@,$LIBOBJS,;t t
17494s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14236s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17495/@MCOMMON@/r $MCOMMON
17496s,@MCOMMON@,,;t t
17497CEOF 14237CEOF
17498 14238
17499_ACEOF 14239_ACEOF
17500 14240
17501 cat >>$CONFIG_STATUS <<\_ACEOF 14241 cat >>$CONFIG_STATUS <<\_ACEOF
17994 Install path: ${prefix}/bin 14734 Install path: ${prefix}/bin
17995 Compiler: $CXX 14735 Compiler: $CXX
17996 Compiler flags: $CFLAGS 14736 Compiler flags: $CFLAGS
17997 Linker: $LINKER" 14737 Linker: $LINKER"
17998 14738
17999if test "$MALLOC_TYPE" = S; then
18000 echo " malloc support: system default"
18001fi
18002if test "$MALLOC_TYPE" = G; then
18003 echo " malloc support: Gray Watson's dmalloc"
18004fi
18005if test "$MALLOC_TYPE" = D; then
18006 echo " malloc support: Doug Lea's malloc"
18007fi
18008
18009if test x$support_xpm = xyes; then 14739if test x$support_xpm = xyes; then
18010 echo " Xpm library: $XPM_LIBS" 14740 echo " Xpm library: $XPM_LIBS"
18011fi 14741fi
18012 14742
18013echo "
18014The following are set in config.h
18015"
18016echo " pty/tty type: "$rxvt_cv_ptys
18017if test x$support_utmp != xyes; then
18018 echo " utmp support: disabled
18019"
18020else
18021 echo " utmp support: enabled
18022 utmp file: $rxvt_cv_path_utmp
18023 utmpx file: $rxvt_cv_path_utmpx
18024 wtmp file: $rxvt_cv_path_wtmp
18025 wtmpx file: $rxvt_cv_path_wtmpx
18026 lastlog file: $rxvt_cv_path_lastlog
18027 ttys/ttytab file: $rxvt_cv_path_ttytab
18028"
18029fi
18030if test x$term != x; then 14743if test x$term != x; then
18031 echo " set TERM to: $term 14744 echo " set TERM to: $term"
18032"
18033fi 14745fi
18034if test x$terminfo != x; then 14746if test x$terminfo != x; then
18035 echo " set TERMINFO to: $terminfo 14747 echo " set TERMINFO to: $terminfo"
18036"
18037fi 14748fi
18038if test x$rxvt_cv_ptys = xUNKNOWN; then 14749echo " default resource name: $RESNAME"
18039 echo ".----------------------------------------------------------------." 14750echo " resource class: $RESCLASS"
18040 echo ". WARNING: could not determine pty/tty type. Do not build until ." 14751if test x$RESFALLBACK != x; then
18041 echo ". the appropriate PTYS_ARE_* is defined in config.h ." 14752 echo " resource class fallback: $RESFALLBACK"
18042 echo ".----------------------------------------------------------------."
18043fi 14753fi
14754echo
14755echo " embedded perl: $support_perl"
14756echo
18044if test x$support_xpm = xneedsmanualspecification; then 14757if test x$support_xpm = xneedsmanualspecification; then
18045 echo ".----------------------------------------------------------------." 14758 echo ".----------------------------------------------------------------."
18046 echo ". WARNING: --enable-xpm-background was specified however the ." 14759 echo ". WARNING: --enable-xpm-background was specified however the ."
18047 echo ". XPM includes files and libraries could not be found. ." 14760 echo ". XPM includes files and libraries could not be found. ."
18048 echo ". XPM backgrounds are now being DISABLED! If you want ." 14761 echo ". XPM backgrounds are now being DISABLED! If you want ."
18056 echo ". WARNING: --enable-xim was specified however the locale support ." 14769 echo ". WARNING: --enable-xim was specified however the locale support ."
18057 echo ". functions could not be found. ." 14770 echo ". functions could not be found. ."
18058 echo ". XIM is now being DISABLED! ." 14771 echo ". XIM is now being DISABLED! ."
18059 echo ".----------------------------------------------------------------." 14772 echo ".----------------------------------------------------------------."
18060fi 14773fi
14774
18061echo " *** Please check src/feature.h for further options *** 14775echo " *** Optionally check src/feature.h for further options ***"
18062" 14776echo
14777
14778echo ".----------------------------------------------------------------."
14779echo ". NOTE: some features are disabled by default, try ."
14780echo ". configure --help to get an idea of the optional features, ."
14781echo ". or read ./README.configure ."
14782echo ". ."
14783echo ". The script ./reconf gives a reasonable baseline, try it if ."
14784echo ". you do not want to read documentation and still want some ."
14785echo ". useful features. ."
14786echo ".----------------------------------------------------------------."
14787echo
14788

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines